PR 50016 Slow I/O on MingW due to _commit
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 OBJDUMP
589 OBJCOPY
590 WINDMC
591 WINDRES
592 STRIP
593 RANLIB
594 NM
595 LIPO
596 LD
597 DLLTOOL
598 AS
599 AR
600 RUNTEST
601 EXPECT
602 MAKEINFO
603 FLEX
604 LEX
605 M4
606 BISON
607 YACC
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 LDFLAGS_FOR_TARGET
639 CXXFLAGS_FOR_TARGET
640 CFLAGS_FOR_TARGET
641 DEBUG_PREFIX_CFLAGS_FOR_TARGET
642 SYSROOT_CFLAGS_FOR_TARGET
643 stage1_languages
644 extra_host_libiberty_configure_flags
645 clooginc
646 clooglibs
647 pplinc
648 ppllibs
649 poststage1_ldflags
650 poststage1_libs
651 stage1_libs
652 stage1_ldflags
653 extra_mpc_mpfr_configure_flags
654 extra_mpc_gmp_configure_flags
655 extra_mpfr_configure_flags
656 gmpinc
657 gmplibs
658 do_compare
659 GNATMAKE
660 GNATBIND
661 ac_ct_CXX
662 CXXFLAGS
663 CXX
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 EXTRA_CONFIGARGS_LIBJAVA
672 target_subdir
673 host_subdir
674 build_subdir
675 build_libsubdir
676 AWK
677 SED
678 LN_S
679 LN
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 target_os
684 target_vendor
685 target_cpu
686 target
687 host_os
688 host_vendor
689 host_cpu
690 host
691 target_noncanonical
692 host_noncanonical
693 build_noncanonical
694 build_os
695 build_vendor
696 build_cpu
697 build
698 TOPLEVEL_CONFIGURE_ARGUMENTS
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files='serialization_dependencies
738 host_makefile_frag
739 target_makefile_frag
740 alphaieee_frag
741 ospace_frag'
742 ac_user_opts='
743 enable_option_checking
744 with_build_libsubdir
745 enable_gold
746 enable_ld
747 enable_libquadmath
748 enable_libquadmath_support
749 enable_libada
750 enable_libssp
751 enable_static_libjava
752 enable_bootstrap
753 enable_build_with_cxx
754 enable_build_poststage1_with_cxx
755 with_mpc
756 with_mpc_include
757 with_mpc_lib
758 with_mpfr_dir
759 with_mpfr
760 with_mpfr_include
761 with_mpfr_lib
762 with_gmp_dir
763 with_gmp
764 with_gmp_include
765 with_gmp_lib
766 with_host_libstdcxx
767 with_stage1_ldflags
768 with_stage1_libs
769 with_boot_libs
770 with_boot_ldflags
771 with_ppl
772 with_ppl_include
773 with_ppl_lib
774 enable_ppl_version_check
775 with_cloog
776 with_cloog_include
777 with_cloog_lib
778 enable_cloog_backend
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
790 enable_werror
791 '
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 build_configargs
804 host_configargs
805 target_configargs
806 AR
807 AS
808 DLLTOOL
809 LD
810 LIPO
811 NM
812 RANLIB
813 STRIP
814 WINDRES
815 WINDMC
816 OBJCOPY
817 OBJDUMP
818 CC_FOR_TARGET
819 CXX_FOR_TARGET
820 GCC_FOR_TARGET
821 GCJ_FOR_TARGET
822 GFORTRAN_FOR_TARGET
823 GOC_FOR_TARGET
824 AR_FOR_TARGET
825 AS_FOR_TARGET
826 DLLTOOL_FOR_TARGET
827 LD_FOR_TARGET
828 LIPO_FOR_TARGET
829 NM_FOR_TARGET
830 OBJDUMP_FOR_TARGET
831 RANLIB_FOR_TARGET
832 STRIP_FOR_TARGET
833 WINDRES_FOR_TARGET
834 WINDMC_FOR_TARGET'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used." >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 case $srcdir in
1363   *" "*)
1364     as_fn_error "path to source, $srcdir, contains spaces"
1365     ;;
1366 esac
1367 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 Program names:
1441   --program-prefix=PREFIX            prepend PREFIX to installed program names
1442   --program-suffix=SUFFIX            append SUFFIX to installed program names
1443   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445 System types:
1446   --build=BUILD     configure for building on BUILD [guessed]
1447   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448   --target=TARGET   configure for building compilers for TARGET [HOST]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1461   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1462   --disable-libquadmath   do not build libquadmath directory
1463   --disable-libquadmath-support
1464                           disable libquadmath support for Fortran
1465   --enable-libada         build libada directory
1466   --enable-libssp         build libssp directory
1467   --enable-static-libjava[=ARG]
1468                           build static libjava [default=no]
1469   --enable-bootstrap      enable bootstrapping [yes if native build]
1470   --enable-build-with-cxx build with C++ compiler instead of C compiler
1471   --enable-build-poststage1-with-cxx
1472                           build stages 2 and 3 with C++, not C
1473   --disable-ppl-version-check
1474                           disable check for PPL version
1475   --enable-cloog-backend[=BACKEND]
1476                           set the CLooG BACKEND used to either isl, ppl or
1477                           ppl-legacy (default)
1478   --disable-cloog-version-check
1479                           disable check for CLooG version
1480   --enable-lto            enable link time optimization support
1481   --enable-stage1-languages[=all]
1482                           choose additional languages to build during stage1.
1483                           Mostly useful for compiler development
1484   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1485                           Objective-C runtime
1486   --enable-serial-[{host,target,build}-]configure
1487                           force sequential configuration of sub-packages for
1488                           the host, target or build machine, or all
1489                           sub-packages
1490   --enable-maintainer-mode
1491                           enable make rules and dependencies not useful (and
1492                           sometimes confusing) to the casual installer
1493   --enable-stage1-checking[=all]
1494                           choose additional checking for stage1 of the
1495                           compiler
1496   --enable-werror         enable -Werror in bootstrap stage2 and later
1497
1498 Optional Packages:
1499   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1502   --with-mpc=PATH         specify prefix directory for installed MPC package.
1503                           Equivalent to --with-mpc-include=PATH/include plus
1504                           --with-mpc-lib=PATH/lib
1505   --with-mpc-include=PATH specify directory for installed MPC include files
1506   --with-mpc-lib=PATH     specify directory for the installed MPC library
1507   --with-mpfr-dir=PATH    this option has been REMOVED
1508   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1509                           Equivalent to --with-mpfr-include=PATH/include plus
1510                           --with-mpfr-lib=PATH/lib
1511   --with-mpfr-include=PATH
1512                           specify directory for installed MPFR include files
1513   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1514   --with-gmp-dir=PATH     this option has been REMOVED
1515   --with-gmp=PATH         specify prefix directory for the installed GMP
1516                           package. Equivalent to
1517                           --with-gmp-include=PATH/include plus
1518                           --with-gmp-lib=PATH/lib
1519   --with-gmp-include=PATH specify directory for installed GMP include files
1520   --with-gmp-lib=PATH     specify directory for the installed GMP library
1521   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522                           linking with PPL
1523   --with-stage1-ldflags=FLAGS
1524                           linker flags for stage1
1525   --with-stage1-libs=LIBS libraries for stage1
1526   --with-boot-libs=LIBS   libraries for stage2 and later
1527   --with-boot-ldflags=FLAGS
1528                           linker flags for stage2 and later
1529   --with-ppl=PATH         specify prefix directory for the installed PPL
1530                           package. Equivalent to
1531                           --with-ppl-include=PATH/include plus
1532                           --with-ppl-lib=PATH/lib
1533   --with-ppl-include=PATH specify directory for installed PPL include files
1534   --with-ppl-lib=PATH     specify directory for the installed PPL library
1535   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1536                           package. Equivalent to
1537                           --with-cloog-include=PATH/include plus
1538                           --with-cloog-lib=PATH/lib
1539   --with-cloog-include=PATH
1540                           Specify directory for installed CLooG include files
1541   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1542                           library
1543   --with-build-sysroot=SYSROOT
1544                           use sysroot as the system root during the build
1545   --with-debug-prefix-map='A=B C=D ...'
1546                           map A to B, C to D ... in debug information
1547   --with-build-config='NAME NAME2...'
1548                           use config/NAME.mk build configuration
1549   --with-build-time-tools=PATH
1550                           use given path to find target tools during the build
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CXX         C++ compiler command
1561   CXXFLAGS    C++ compiler flags
1562   build_configargs
1563               additional configure arguments for build directories
1564   host_configargs
1565               additional configure arguments for host directories
1566   target_configargs
1567               additional configure arguments for target directories
1568   AR          AR for the host
1569   AS          AS for the host
1570   DLLTOOL     DLLTOOL for the host
1571   LD          LD for the host
1572   LIPO        LIPO for the host
1573   NM          NM for the host
1574   RANLIB      RANLIB for the host
1575   STRIP       STRIP for the host
1576   WINDRES     WINDRES for the host
1577   WINDMC      WINDMC for the host
1578   OBJCOPY     OBJCOPY for the host
1579   OBJDUMP     OBJDUMP for the host
1580   CC_FOR_TARGET
1581               CC for the target
1582   CXX_FOR_TARGET
1583               CXX for the target
1584   GCC_FOR_TARGET
1585               GCC for the target
1586   GCJ_FOR_TARGET
1587               GCJ for the target
1588   GFORTRAN_FOR_TARGET
1589               GFORTRAN for the target
1590   GOC_FOR_TARGET
1591               GOC for the target
1592   AR_FOR_TARGET
1593               AR for the target
1594   AS_FOR_TARGET
1595               AS for the target
1596   DLLTOOL_FOR_TARGET
1597               DLLTOOL for the target
1598   LD_FOR_TARGET
1599               LD for the target
1600   LIPO_FOR_TARGET
1601               LIPO for the target
1602   NM_FOR_TARGET
1603               NM for the target
1604   OBJDUMP_FOR_TARGET
1605               OBJDUMP for the target
1606   RANLIB_FOR_TARGET
1607               RANLIB for the target
1608   STRIP_FOR_TARGET
1609               STRIP for the target
1610   WINDRES_FOR_TARGET
1611               WINDRES for the target
1612   WINDMC_FOR_TARGET
1613               WINDMC for the target
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 Report bugs to the package provider.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" ||
1627       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628       continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.64
1683
1684 Copyright (C) 2009 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688   exit
1689 fi
1690
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1694
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   rm -f conftest.$ac_objext
1702   if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_compile") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && {
1718          test -z "$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        } && test -s conftest.$ac_objext; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726         ac_retval=1
1727 fi
1728   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729   return $ac_retval
1730
1731 } # ac_fn_c_try_compile
1732
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   rm -f conftest.$ac_objext
1740   if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_compile") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && {
1756          test -z "$ac_cxx_werror_flag" ||
1757          test ! -s conftest.err
1758        } && test -s conftest.$ac_objext; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767   return $ac_retval
1768
1769 } # ac_fn_cxx_try_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext conftest$ac_exeext
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest$ac_exeext && {
1797          test "$cross_compiling" = yes ||
1798          $as_test_x conftest$ac_exeext
1799        }; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809   # interfere with the next link command; also delete a directory that is
1810   # left behind by Apple's compiler.  We do this before executing the actions.
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813   return $ac_retval
1814
1815 } # ac_fn_c_try_link
1816 cat >config.log <<_ACEOF
1817 This file contains any messages produced by compilers while
1818 running configure, to aid debugging if configure makes a mistake.
1819
1820 It was created by $as_me, which was
1821 generated by GNU Autoconf 2.64.  Invocation command line was
1822
1823   $ $0 $@
1824
1825 _ACEOF
1826 exec 5>>config.log
1827 {
1828 cat <<_ASUNAME
1829 ## --------- ##
1830 ## Platform. ##
1831 ## --------- ##
1832
1833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1841
1842 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1843 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1846 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1847 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1848 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1849
1850 _ASUNAME
1851
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857     $as_echo "PATH: $as_dir"
1858   done
1859 IFS=$as_save_IFS
1860
1861 } >&5
1862
1863 cat >&5 <<_ACEOF
1864
1865
1866 ## ----------- ##
1867 ## Core tests. ##
1868 ## ----------- ##
1869
1870 _ACEOF
1871
1872
1873 # Keep a trace of the command line.
1874 # Strip out --no-create and --no-recursion so they do not pile up.
1875 # Strip out --silent because we don't want to record it for future runs.
1876 # Also quote any args containing shell meta-characters.
1877 # Make two passes to allow for proper duplicate-argument suppression.
1878 ac_configure_args=
1879 ac_configure_args0=
1880 ac_configure_args1=
1881 ac_must_keep_next=false
1882 for ac_pass in 1 2
1883 do
1884   for ac_arg
1885   do
1886     case $ac_arg in
1887     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889     | -silent | --silent | --silen | --sile | --sil)
1890       continue ;;
1891     *\'*)
1892       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1893     esac
1894     case $ac_pass in
1895     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896     2)
1897       as_fn_append ac_configure_args1 " '$ac_arg'"
1898       if test $ac_must_keep_next = true; then
1899         ac_must_keep_next=false # Got value, back to normal.
1900       else
1901         case $ac_arg in
1902           *=* | --config-cache | -C | -disable-* | --disable-* \
1903           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905           | -with-* | --with-* | -without-* | --without-* | --x)
1906             case "$ac_configure_args0 " in
1907               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908             esac
1909             ;;
1910           -* ) ac_must_keep_next=true ;;
1911         esac
1912       fi
1913       as_fn_append ac_configure_args " '$ac_arg'"
1914       ;;
1915     esac
1916   done
1917 done
1918 { ac_configure_args0=; unset ac_configure_args0;}
1919 { ac_configure_args1=; unset ac_configure_args1;}
1920
1921 # When interrupted or exit'd, cleanup temporary files, and complete
1922 # config.log.  We remove comments because anyway the quotes in there
1923 # would cause problems or look ugly.
1924 # WARNING: Use '\'' to represent an apostrophe within the trap.
1925 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1926 trap 'exit_status=$?
1927   # Save into config.log some information that might help in debugging.
1928   {
1929     echo
1930
1931     cat <<\_ASBOX
1932 ## ---------------- ##
1933 ## Cache variables. ##
1934 ## ---------------- ##
1935 _ASBOX
1936     echo
1937     # The following way of writing the cache mishandles newlines in values,
1938 (
1939   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940     eval ac_val=\$$ac_var
1941     case $ac_val in #(
1942     *${as_nl}*)
1943       case $ac_var in #(
1944       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946       esac
1947       case $ac_var in #(
1948       _ | IFS | as_nl) ;; #(
1949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950       *) { eval $ac_var=; unset $ac_var;} ;;
1951       esac ;;
1952     esac
1953   done
1954   (set) 2>&1 |
1955     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956     *${as_nl}ac_space=\ *)
1957       sed -n \
1958         "s/'\''/'\''\\\\'\'''\''/g;
1959           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960       ;; #(
1961     *)
1962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963       ;;
1964     esac |
1965     sort
1966 )
1967     echo
1968
1969     cat <<\_ASBOX
1970 ## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##
1973 _ASBOX
1974     echo
1975     for ac_var in $ac_subst_vars
1976     do
1977       eval ac_val=\$$ac_var
1978       case $ac_val in
1979       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980       esac
1981       $as_echo "$ac_var='\''$ac_val'\''"
1982     done | sort
1983     echo
1984
1985     if test -n "$ac_subst_files"; then
1986       cat <<\_ASBOX
1987 ## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##
1990 _ASBOX
1991       echo
1992       for ac_var in $ac_subst_files
1993       do
1994         eval ac_val=\$$ac_var
1995         case $ac_val in
1996         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997         esac
1998         $as_echo "$ac_var='\''$ac_val'\''"
1999       done | sort
2000       echo
2001     fi
2002
2003     if test -s confdefs.h; then
2004       cat <<\_ASBOX
2005 ## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##
2008 _ASBOX
2009       echo
2010       cat confdefs.h
2011       echo
2012     fi
2013     test "$ac_signal" != 0 &&
2014       $as_echo "$as_me: caught signal $ac_signal"
2015     $as_echo "$as_me: exit $exit_status"
2016   } >&5
2017   rm -f core *.core core.conftest.* &&
2018     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019     exit $exit_status
2020 ' 0
2021 for ac_signal in 1 2 13 15; do
2022   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2025
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2028
2029 $as_echo "/* confdefs.h */" > confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063   ac_site_file1=$CONFIG_SITE
2064 elif test "x$prefix" != xNONE; then
2065   ac_site_file1=$prefix/share/config.site
2066   ac_site_file2=$prefix/etc/config.site
2067 else
2068   ac_site_file1=$ac_default_prefix/share/config.site
2069   ac_site_file2=$ac_default_prefix/etc/config.site
2070 fi
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 do
2073   test "x$ac_site_file" = xNONE && continue
2074   if test -r "$ac_site_file"; then
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077     sed 's/^/| /' "$ac_site_file" >&5
2078     . "$ac_site_file"
2079   fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083   # Some versions of bash will fail to source /dev/null (special
2084   # files actually), so we avoid doing that.
2085   if test -f "$cache_file"; then
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088     case $cache_file in
2089       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090       *)                      . "./$cache_file";;
2091     esac
2092   fi
2093 else
2094   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096   >$cache_file
2097 fi
2098
2099 # Check that the precious variables saved in the cache have kept the same
2100 # value.
2101 ac_cache_corrupted=false
2102 for ac_var in $ac_precious_vars; do
2103   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104   eval ac_new_set=\$ac_env_${ac_var}_set
2105   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106   eval ac_new_val=\$ac_env_${ac_var}_value
2107   case $ac_old_set,$ac_new_set in
2108     set,)
2109       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111       ac_cache_corrupted=: ;;
2112     ,set)
2113       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115       ac_cache_corrupted=: ;;
2116     ,);;
2117     *)
2118       if test "x$ac_old_val" != "x$ac_new_val"; then
2119         # differences in whitespace do not lead to failure.
2120         ac_old_val_w=`echo x $ac_old_val`
2121         ac_new_val_w=`echo x $ac_new_val`
2122         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125           ac_cache_corrupted=:
2126         else
2127           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129           eval $ac_var=\$ac_old_val
2130         fi
2131         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2132 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2133         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2134 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2135       fi;;
2136   esac
2137   # Pass precious variables to config.status.
2138   if test "$ac_new_set" = set; then
2139     case $ac_new_val in
2140     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141     *) ac_arg=$ac_var=$ac_new_val ;;
2142     esac
2143     case " $ac_configure_args " in
2144       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2145       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146     esac
2147   fi
2148 done
2149 if $ac_cache_corrupted; then
2150   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 fi
2156 ## -------------------- ##
2157 ## Main body of script. ##
2158 ## -------------------- ##
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174 progname=$0
2175 # if PWD already has a value, it is probably wrong.
2176 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2177
2178 # Export original configure arguments for use by sub-configures.
2179 # Quote arguments with shell meta charatcers.
2180 TOPLEVEL_CONFIGURE_ARGUMENTS=
2181 set -- "$progname" "$@"
2182 for ac_arg
2183 do
2184   case "$ac_arg" in
2185   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2186     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2187     # if the argument is of the form -foo=baz, quote the baz part only
2188     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2189   *) ;;
2190   esac
2191   # Add the quoted argument to the list.
2192   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2193 done
2194 if test "$silent" = yes; then
2195   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2196 fi
2197 # Remove the initial space we just introduced and, as these will be
2198 # expanded by make, quote '$'.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2200
2201
2202 # Find the build, host, and target systems.
2203 ac_aux_dir=
2204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205   for ac_t in install-sh install.sh shtool; do
2206     if test -f "$ac_dir/$ac_t"; then
2207       ac_aux_dir=$ac_dir
2208       ac_install_sh="$ac_aux_dir/$ac_t -c"
2209       break 2
2210     fi
2211   done
2212 done
2213 if test -z "$ac_aux_dir"; then
2214   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2215 fi
2216
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2224
2225
2226 # Make sure we can run config.sub.
2227 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2228   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2229
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2231 $as_echo_n "checking build system type... " >&6; }
2232 if test "${ac_cv_build+set}" = set; then :
2233   $as_echo_n "(cached) " >&6
2234 else
2235   ac_build_alias=$build_alias
2236 test "x$ac_build_alias" = x &&
2237   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2238 test "x$ac_build_alias" = x &&
2239   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2240 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2241   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2242
2243 fi
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2245 $as_echo "$ac_cv_build" >&6; }
2246 case $ac_cv_build in
2247 *-*-*) ;;
2248 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2249 esac
2250 build=$ac_cv_build
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_build
2253 shift
2254 build_cpu=$1
2255 build_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 build_os=$*
2260 IFS=$ac_save_IFS
2261 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2262
2263
2264  case ${build_alias} in
2265   "") build_noncanonical=${build} ;;
2266   *) build_noncanonical=${build_alias} ;;
2267 esac
2268
2269
2270
2271  case ${host_alias} in
2272   "") host_noncanonical=${build_noncanonical} ;;
2273   *) host_noncanonical=${host_alias} ;;
2274 esac
2275
2276
2277
2278  case ${target_alias} in
2279   "") target_noncanonical=${host_noncanonical} ;;
2280   *) target_noncanonical=${target_alias} ;;
2281 esac
2282
2283
2284
2285
2286 test "$host_noncanonical" = "$target_noncanonical" &&
2287   test "$program_prefix$program_suffix$program_transform_name" = \
2288     NONENONEs,x,x, &&
2289   program_transform_name=s,y,y,
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if test "${ac_cv_host+set}" = set; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   if test "x$host_alias" = x; then
2297   ac_cv_host=$ac_cv_build
2298 else
2299   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301 fi
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325 $as_echo_n "checking target system type... " >&6; }
2326 if test "${ac_cv_target+set}" = set; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   if test "x$target_alias" = x; then
2330   ac_cv_target=$ac_cv_host
2331 else
2332   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2334 fi
2335
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338 $as_echo "$ac_cv_target" >&6; }
2339 case $ac_cv_target in
2340 *-*-*) ;;
2341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342 esac
2343 target=$ac_cv_target
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_target
2346 shift
2347 target_cpu=$1
2348 target_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 target_os=$*
2353 IFS=$ac_save_IFS
2354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2355
2356
2357 # The aliases save the names the user supplied, while $host etc.
2358 # will get canonicalized.
2359 test -n "$target_alias" &&
2360   test "$program_prefix$program_suffix$program_transform_name" = \
2361     NONENONEs,x,x, &&
2362   program_prefix=${target_alias}-
2363
2364 test "$program_prefix" != NONE &&
2365   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374
2375
2376 # Get 'install' or 'install-sh' and its variants.
2377 # Find a good install program.  We prefer a C program (faster),
2378 # so one script is as good as another.  But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then :
2395   $as_echo_n "(cached) " >&6
2396 else
2397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402     # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404   ./ | .// | /[cC]/* | \
2405   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407   /usr/ucb/* ) ;;
2408   *)
2409     # OSF1 and SCO ODT 3.0 have their own names for install.
2410     # Don't use installbsd from OSF since it installs stuff as root
2411     # by default.
2412     for ac_prog in ginstall scoinst install; do
2413       for ac_exec_ext in '' $ac_executable_extensions; do
2414         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2415           if test $ac_prog = install &&
2416             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417             # AIX install.  It has an incompatible calling convention.
2418             :
2419           elif test $ac_prog = install &&
2420             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421             # program-specific install script used by HP pwplus--don't use.
2422             :
2423           else
2424             rm -rf conftest.one conftest.two conftest.dir
2425             echo one > conftest.one
2426             echo two > conftest.two
2427             mkdir conftest.dir
2428             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429               test -s conftest.one && test -s conftest.two &&
2430               test -s conftest.dir/conftest.one &&
2431               test -s conftest.dir/conftest.two
2432             then
2433               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434               break 3
2435             fi
2436           fi
2437         fi
2438       done
2439     done
2440     ;;
2441 esac
2442
2443   done
2444 IFS=$as_save_IFS
2445
2446 rm -rf conftest.one conftest.two conftest.dir
2447
2448 fi
2449   if test "${ac_cv_path_install+set}" = set; then
2450     INSTALL=$ac_cv_path_install
2451   else
2452     # As a last resort, use the slow shell script.  Don't cache a
2453     # value for INSTALL within a source directory, because that will
2454     # break other packages using the cache if that directory is
2455     # removed, or if the value is a relative name.
2456     INSTALL=$ac_install_sh
2457   fi
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2461
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2471 $as_echo_n "checking whether ln works... " >&6; }
2472 if test "${acx_cv_prog_LN+set}" = set; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   rm -f conftestdata_t
2476 echo >conftestdata_f
2477 if ln conftestdata_f conftestdata_t 2>/dev/null
2478 then
2479   acx_cv_prog_LN=ln
2480 else
2481   acx_cv_prog_LN=no
2482 fi
2483 rm -f conftestdata_f conftestdata_t
2484
2485 fi
2486 if test $acx_cv_prog_LN = no; then
2487   LN="cp"
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2489 $as_echo "no, using $LN" >&6; }
2490 else
2491   LN="$acx_cv_prog_LN"
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 fi
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2497 $as_echo_n "checking whether ln -s works... " >&6; }
2498 LN_S=$as_ln_s
2499 if test "$LN_S" = "ln -s"; then
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501 $as_echo "yes" >&6; }
2502 else
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2504 $as_echo "no, using $LN_S" >&6; }
2505 fi
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2509 if test "${ac_cv_path_SED+set}" = set; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2513      for ac_i in 1 2 3 4 5 6 7; do
2514        ac_script="$ac_script$as_nl$ac_script"
2515      done
2516      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2517      { ac_script=; unset ac_script;}
2518      if test -z "$SED"; then
2519   ac_path_SED_found=false
2520   # Loop through the user's path and test for each of PROGNAME-LIST
2521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526     for ac_prog in sed gsed; do
2527     for ac_exec_ext in '' $ac_executable_extensions; do
2528       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2529       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2530 # Check for GNU ac_path_SED and select it if it is found.
2531   # Check for GNU $ac_path_SED
2532 case `"$ac_path_SED" --version 2>&1` in
2533 *GNU*)
2534   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2535 *)
2536   ac_count=0
2537   $as_echo_n 0123456789 >"conftest.in"
2538   while :
2539   do
2540     cat "conftest.in" "conftest.in" >"conftest.tmp"
2541     mv "conftest.tmp" "conftest.in"
2542     cp "conftest.in" "conftest.nl"
2543     $as_echo '' >> "conftest.nl"
2544     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2545     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2546     as_fn_arith $ac_count + 1 && ac_count=$as_val
2547     if test $ac_count -gt ${ac_path_SED_max-0}; then
2548       # Best one so far, save it but keep looking for a better one
2549       ac_cv_path_SED="$ac_path_SED"
2550       ac_path_SED_max=$ac_count
2551     fi
2552     # 10*(2^10) chars as input seems more than enough
2553     test $ac_count -gt 10 && break
2554   done
2555   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2556 esac
2557
2558       $ac_path_SED_found && break 3
2559     done
2560   done
2561   done
2562 IFS=$as_save_IFS
2563   if test -z "$ac_cv_path_SED"; then
2564     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2565   fi
2566 else
2567   ac_cv_path_SED=$SED
2568 fi
2569
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2572 $as_echo "$ac_cv_path_SED" >&6; }
2573  SED="$ac_cv_path_SED"
2574   rm -f conftest.sed
2575
2576 for ac_prog in gawk mawk nawk awk
2577 do
2578   # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_AWK+set}" = set; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   if test -n "$AWK"; then
2586   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     ac_cv_prog_AWK="$ac_prog"
2596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600   done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 AWK=$ac_cv_prog_AWK
2606 if test -n "$AWK"; then
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608 $as_echo "$AWK" >&6; }
2609 else
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615   test -n "$AWK" && break
2616 done
2617
2618
2619 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2620
2621 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2622 # a relative path.
2623 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2624   INSTALL="${srcpwd}/install-sh -c"
2625 fi
2626
2627 # Set srcdir to "." if that's what it is.
2628 # This is important for multilib support.
2629 pwd=`${PWDCMD-pwd}`
2630 if test "${pwd}" = "${srcpwd}" ; then
2631   srcdir=.
2632 fi
2633
2634 topsrcdir=$srcpwd
2635
2636 extra_host_args=
2637
2638 ### To add a new directory to the tree, first choose whether it is a target
2639 ### or a host dependent tool.  Then put it into the appropriate list
2640 ### (library or tools, host or target), doing a dependency sort.
2641
2642 # Subdirs will be configured in the order listed in build_configdirs,
2643 # configdirs, or target_configdirs; see the serialization section below.
2644
2645 # Dependency sorting is only needed when *configuration* must be done in
2646 # a particular order.  In all cases a dependency should be specified in
2647 # the Makefile, whether or not it's implicitly specified here.
2648
2649 # Double entries in build_configdirs, configdirs, or target_configdirs may
2650 # cause circular dependencies and break everything horribly.
2651
2652 # these library is used by various programs built for the build
2653 # environment
2654 #
2655 build_libs="build-libiberty"
2656
2657 # these tools are built for the build environment
2658 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2659
2660 # these libraries are used by various programs built for the host environment
2661 #
2662 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2663
2664 # these tools are built for the host environment
2665 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2666 # know that we are building the simulator.
2667 # binutils, gas and ld appear in that order because it makes sense to run
2668 # "make check" in that particular order.
2669 # If --enable-gold is used, "gold" may replace "ld".
2670 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2671
2672 # libgcj represents the runtime libraries only used by gcj.
2673 libgcj="target-libffi \
2674         target-zlib \
2675         target-libjava"
2676
2677 # these libraries are built for the target environment, and are built after
2678 # the host libraries and the host tools (which may be a cross compiler)
2679 # Note that libiberty is not a target library.
2680 target_libraries="target-libgcc \
2681                 target-libgloss \
2682                 target-newlib \
2683                 target-libgomp \
2684                 target-libitm \
2685                 target-libstdc++-v3 \
2686                 target-libmudflap \
2687                 target-libssp \
2688                 target-libquadmath \
2689                 target-libgfortran \
2690                 target-boehm-gc \
2691                 ${libgcj} \
2692                 target-libobjc \
2693                 target-libada \
2694                 target-libgo"
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.
2701 #
2702 target_tools="target-rda"
2703
2704 ################################################################################
2705
2706 ## All tools belong in one of the four categories, and are assigned above
2707 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2708 ## is important because configure will choke if they ever get through.
2709 ## ${configdirs} is directories we build using the host tools.
2710 ## ${target_configdirs} is directories we build using the target tools.
2711 configdirs=`echo ${host_libs} ${host_tools}`
2712 target_configdirs=`echo ${target_libraries} ${target_tools}`
2713 build_configdirs=`echo ${build_libs} ${build_tools}`
2714
2715
2716
2717 ################################################################################
2718
2719 srcname="gnu development package"
2720
2721 # This gets set non-empty for some net releases of packages.
2722 appdirs=""
2723
2724 # Define is_cross_compiler to save on calls to 'test'.
2725 is_cross_compiler=
2726 if test x"${host}" = x"${target}" ; then
2727   is_cross_compiler=no
2728 else
2729   is_cross_compiler=yes
2730 fi
2731
2732 # Find the build and target subdir names.
2733
2734 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2735 # have matching libraries, they should use host libraries: Makefile.tpl
2736 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2737 # However, they still use the build modules, because the corresponding
2738 # host modules (e.g. bison) are only built for the host when bootstrap
2739 # finishes. So:
2740 # - build_subdir is where we find build modules, and never changes.
2741 # - build_libsubdir is where we find build libraries, and can be overridden.
2742
2743 # Prefix 'build-' so this never conflicts with target_subdir.
2744 build_subdir="build-${build_noncanonical}"
2745
2746 # Check whether --with-build-libsubdir was given.
2747 if test "${with_build_libsubdir+set}" = set; then :
2748   withval=$with_build_libsubdir; build_libsubdir="$withval"
2749 else
2750   build_libsubdir="$build_subdir"
2751 fi
2752
2753 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2754 if ( test $srcdir = . && test -d gcc ) \
2755    || test -d $srcdir/../host-${host_noncanonical}; then
2756   host_subdir="host-${host_noncanonical}"
2757 else
2758   host_subdir=.
2759 fi
2760 # No prefix.
2761 target_subdir=${target_noncanonical}
2762
2763 # Be sure to cover against remnants of an in-tree build.
2764 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2765   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2766 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2767 fi
2768
2769 # Skipdirs are removed silently.
2770 skipdirs=
2771 # Noconfigdirs are removed loudly.
2772 noconfigdirs=""
2773
2774 use_gnu_ld=
2775 # Make sure we don't let GNU ld be added if we didn't want it.
2776 if test x$with_gnu_ld = xno ; then
2777   use_gnu_ld=no
2778   noconfigdirs="$noconfigdirs ld gold"
2779 fi
2780
2781 use_gnu_as=
2782 # Make sure we don't let GNU as be added if we didn't want it.
2783 if test x$with_gnu_as = xno ; then
2784   use_gnu_as=no
2785   noconfigdirs="$noconfigdirs gas"
2786 fi
2787
2788 use_included_zlib=
2789 # Make sure we don't let ZLIB be added if we didn't want it.
2790 if test x$with_system_zlib = xyes ; then
2791   use_included_zlib=no
2792   noconfigdirs="$noconfigdirs zlib"
2793 fi
2794
2795 # some tools are so dependent upon X11 that if we're not building with X,
2796 # it's not even worth trying to configure, much less build, that tool.
2797
2798 case ${with_x} in
2799   yes | "") ;; # the default value for this tree is that X11 is available
2800   no)
2801     skipdirs="${skipdirs} tk itcl libgui"
2802     # We won't be able to build gdbtk without X.
2803     enable_gdbtk=no
2804     ;;
2805   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2806 esac
2807
2808 # Some are only suitable for cross toolchains.
2809 # Remove these if host=target.
2810 cross_only="target-libgloss target-newlib target-opcodes"
2811
2812 case $is_cross_compiler in
2813   no) skipdirs="${skipdirs} ${cross_only}" ;;
2814 esac
2815
2816 # If both --with-headers and --with-libs are specified, default to
2817 # --without-newlib.
2818 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2819    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2820   if test x"${with_newlib}" = x ; then
2821     with_newlib=no
2822   fi
2823 fi
2824
2825 # Recognize --with-newlib/--without-newlib.
2826 case ${with_newlib} in
2827   no) skipdirs="${skipdirs} target-newlib" ;;
2828   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2829 esac
2830
2831 # Handle --enable-gold, --enable-ld.
2832 # --disable-gold [--enable-ld]
2833 #     Build only ld.  Default option.
2834 # --enable-gold [--enable-ld]
2835 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2836 #     as "ld.bfd" and "ld".
2837 # --enable-gold=default [--enable-ld]
2838 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2839 #     install ld as "ld.bfd".
2840 # --enable-gold[=default] --disable-ld
2841 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2842 # --enable-gold --enable-ld=default
2843 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2844 #     and ld.bfd).
2845 #     In other words, ld is default
2846 # --enable-gold=default --enable-ld=default
2847 #     Error.
2848
2849 default_ld=
2850 # Check whether --enable-gold was given.
2851 if test "${enable_gold+set}" = set; then :
2852   enableval=$enable_gold; ENABLE_GOLD=$enableval
2853 else
2854   ENABLE_GOLD=no
2855 fi
2856
2857 case "${ENABLE_GOLD}" in
2858   yes|default)
2859     # Check for ELF target.
2860     is_elf=no
2861     case "${target}" in
2862       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2863       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2864       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2865       | *-*-solaris2* | *-*-nto*)
2866         case "${target}" in
2867           *-*-linux*aout* | *-*-linux*oldld*)
2868             ;;
2869           *)
2870             is_elf=yes
2871             ;;
2872         esac
2873     esac
2874
2875     if test "$is_elf" = "yes"; then
2876       # Check for target supported by gold.
2877       case "${target}" in
2878         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2879           configdirs="$configdirs gold"
2880           if test x${ENABLE_GOLD} = xdefault; then
2881             default_ld=gold
2882           fi
2883           ENABLE_GOLD=yes
2884           ;;
2885       esac
2886     fi
2887     ;;
2888   no)
2889     ;;
2890   *)
2891     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2892     ;;
2893 esac
2894
2895 # Check whether --enable-ld was given.
2896 if test "${enable_ld+set}" = set; then :
2897   enableval=$enable_ld; ENABLE_LD=$enableval
2898 else
2899   ENABLE_LD=yes
2900 fi
2901
2902
2903 case "${ENABLE_LD}" in
2904   default)
2905     if test x${default_ld} != x; then
2906       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2907     fi
2908     ;;
2909   yes)
2910     ;;
2911   no)
2912     if test x${ENABLE_GOLD} != xyes; then
2913       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2914 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2915     fi
2916     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2917     ;;
2918   *)
2919     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2920     ;;
2921 esac
2922
2923 # Configure extra directories which are host specific
2924
2925 case "${host}" in
2926   *-cygwin*)
2927     configdirs="$configdirs libtermcap" ;;
2928 esac
2929
2930 # A target can indicate whether a language isn't supported for some reason.
2931 # Only spaces may be used in this macro; not newlines or tabs.
2932 unsupported_languages=
2933
2934 # Remove more programs from consideration, based on the host or
2935 # target this usually means that a port of the program doesn't
2936 # exist yet.
2937
2938 case "${host}" in
2939   i[3456789]86-*-msdosdjgpp*)
2940     noconfigdirs="$noconfigdirs tcl tk itcl"
2941     ;;
2942 esac
2943
2944
2945 # Check whether --enable-libquadmath was given.
2946 if test "${enable_libquadmath+set}" = set; then :
2947   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2948 else
2949   ENABLE_LIBQUADMATH=yes
2950 fi
2951
2952 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2953   noconfigdirs="$noconfigdirs target-libquadmath"
2954 fi
2955
2956
2957 # Check whether --enable-libquadmath-support was given.
2958 if test "${enable_libquadmath_support+set}" = set; then :
2959   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2960 else
2961   ENABLE_LIBQUADMATH_SUPPORT=yes
2962 fi
2963
2964 enable_libquadmath_support=
2965 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2966   enable_libquadmath_support=no
2967 fi
2968
2969
2970 # Check whether --enable-libada was given.
2971 if test "${enable_libada+set}" = set; then :
2972   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2973 else
2974   ENABLE_LIBADA=yes
2975 fi
2976
2977 if test "${ENABLE_LIBADA}" != "yes" ; then
2978   noconfigdirs="$noconfigdirs gnattools"
2979 fi
2980
2981 # Check whether --enable-libssp was given.
2982 if test "${enable_libssp+set}" = set; then :
2983   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2984 else
2985   ENABLE_LIBSSP=yes
2986 fi
2987
2988
2989 # Save it here so that, even in case of --enable-libgcj, if the Java
2990 # front-end isn't enabled, we still get libgcj disabled.
2991 libgcj_saved=$libgcj
2992 case $enable_libgcj in
2993 yes)
2994   # If we reset it here, it won't get added to noconfigdirs in the
2995   # target-specific build rules, so it will be forcibly enabled
2996   # (unless the Java language itself isn't enabled).
2997   libgcj=
2998   ;;
2999 no)
3000   # Make sure we get it printed in the list of not supported target libs.
3001   # Don't disable libffi, though, other languages use it.
3002   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3003   # Clear libgcj_saved so that even if java is enabled libffi won't be
3004   # built.
3005   libgcj_saved=
3006   ;;
3007 esac
3008
3009 # Check whether --enable-static-libjava was given.
3010 if test "${enable_static_libjava+set}" = set; then :
3011   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3012 else
3013   ENABLE_STATIC_LIBJAVA=no
3014 fi
3015
3016 enable_static_libjava=
3017 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3018   enable_static_libjava=yes
3019 fi
3020
3021 if test x$enable_static_libjava != xyes ; then
3022   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3023 fi
3024
3025
3026 # Disable libmudflap on some systems.
3027 if test x$enable_libmudflap = x ; then
3028     case "${target}" in
3029     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3030         # Enable libmudflap by default in GNU and friends.
3031         ;;
3032     *-*-freebsd*)
3033         # Enable libmudflap by default in FreeBSD.
3034         ;;
3035     *)
3036         # Disable it by default everywhere else.
3037         noconfigdirs="$noconfigdirs target-libmudflap"
3038         ;;
3039     esac
3040 fi
3041
3042 # Disable libgomp on non POSIX hosted systems.
3043 if test x$enable_libgomp = x ; then
3044     # Enable libgomp by default on hosted POSIX systems.
3045     case "${target}" in
3046     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3047         ;;
3048     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3049         ;;
3050     *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3051         ;;
3052     *-*-darwin* | *-*-aix*)
3053         ;;
3054     *)
3055         noconfigdirs="$noconfigdirs target-libgomp"
3056         ;;
3057     esac
3058 fi
3059
3060 # Disable libitm on unsupported systems.
3061 if test -d ${srcdir}/libitm; then
3062     if test x$enable_libitm = x; then
3063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3064 $as_echo_n "checking for libitm support... " >&6; }
3065         if (srcdir=${srcdir}/libitm; \
3066                 . ${srcdir}/configure.tgt; \
3067                 test -n "$UNSUPPORTED")
3068         then
3069             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071             noconfigdirs="$noconfigdirs target-libitm"
3072         else
3073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075         fi
3076     fi
3077 fi
3078
3079 # Disable libssp for some systems.
3080 case "${target}" in
3081   avr-*-*)
3082     # No hosted I/O support.
3083     noconfigdirs="$noconfigdirs target-libssp"
3084     ;;
3085   powerpc-*-aix* | rs6000-*-aix*)
3086     noconfigdirs="$noconfigdirs target-libssp"
3087     ;;
3088 esac
3089
3090 # Disable libstdc++-v3 for some systems.
3091 case "${target}" in
3092   *-*-vxworks*)
3093     # VxWorks uses the Dinkumware C++ library.
3094     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3095     ;;
3096   arm*-wince-pe*)
3097     # the C++ libraries don't build on top of CE's C libraries
3098     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3099     ;;
3100   avr-*-*)
3101     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102     ;;
3103 esac
3104
3105 # Disable Fortran for some systems.
3106 case "${target}" in
3107   mmix-*-*)
3108     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3109     unsupported_languages="$unsupported_languages fortran"
3110     ;;
3111 esac
3112
3113 # Disable Java if libffi is not supported.
3114 case "${target}" in
3115   alpha*-*-*)
3116     ;;
3117   arm*-*-*)
3118     ;;
3119   cris-*-*)
3120     ;;
3121   frv-*-*)
3122     ;;
3123   hppa*-*-linux*)
3124     ;;
3125   hppa*-*-hpux*)
3126     ;;
3127   i?86-*-*)
3128     ;;
3129   ia64*-*-*)
3130     ;;
3131   m32r*-*-*)
3132     ;;
3133   m68k-*-*)
3134     ;;
3135   mips-sgi-irix6.* | mips*-*-rtems*)
3136     ;;
3137   mips*-*-linux*)
3138     ;;
3139   powerpc*-*-linux*)
3140     ;;
3141   powerpc-*-darwin*)
3142     ;;
3143   powerpc-*-aix* | rs6000-*-aix*)
3144     ;;
3145   powerpc-*-freebsd*)
3146     ;;
3147   powerpc64-*-freebsd*)
3148     ;;
3149   powerpc*-*-rtems*)
3150     ;;
3151   s390-*-* | s390x-*-*)
3152     ;;
3153   sh-*-* | sh[34]*-*-*)
3154     ;;
3155   sh64-*-* | sh5*-*-*)
3156     ;;
3157   sparc*-*-*)
3158     ;;
3159   x86_64-*-*)
3160     ;;
3161   *-*-*)
3162     unsupported_languages="$unsupported_languages java"
3163     ;;
3164 esac
3165
3166 # Disable Java, libgcj or related libraries for some systems.
3167 case "${target}" in
3168   powerpc-*-darwin*)
3169     ;;
3170   i[3456789]86-*-darwin*)
3171     ;;
3172   x86_64-*-darwin[912]*)
3173     ;;
3174   *-*-darwin*)
3175     noconfigdirs="$noconfigdirs ${libgcj}"
3176     ;;
3177   *-*-netware*)
3178     noconfigdirs="$noconfigdirs ${libgcj}"
3179     ;;
3180   *-*-rtems*)
3181     noconfigdirs="$noconfigdirs ${libgcj}"
3182     ;;
3183   *-*-tpf*)
3184     noconfigdirs="$noconfigdirs ${libgcj}"
3185     ;;
3186   *-*-uclinux*)
3187     noconfigdirs="$noconfigdirs ${libgcj}"
3188     ;;
3189   *-*-vxworks*)
3190     noconfigdirs="$noconfigdirs ${libgcj}"
3191     ;;
3192   alpha*-*-*vms*)
3193     noconfigdirs="$noconfigdirs ${libgcj}"
3194     ;;
3195   arm-wince-pe)
3196     noconfigdirs="$noconfigdirs ${libgcj}"
3197     ;;
3198   arm*-*-symbianelf*)
3199     noconfigdirs="$noconfigdirs ${libgcj}"
3200     ;;
3201   bfin-*-*)
3202     noconfigdirs="$noconfigdirs target-boehm-gc"
3203     ;;
3204   cris-*-* | crisv32-*-*)
3205     unsupported_languages="$unsupported_languages java"
3206     case "${target}" in
3207       *-*-linux*)
3208         ;;
3209       *) # See PR46792 regarding target-libffi.
3210         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3211     esac
3212     ;;
3213   hppa*64*-*-linux*)
3214     # In this case, it's because the hppa64-linux target is for
3215     # the kernel only at this point and has no libc, and thus no
3216     # headers, crt*.o, etc., all of which are needed by these.
3217     unsupported_languages="$unsupported_languages java"
3218     ;;
3219   hppa*64*-*-hpux*)
3220     noconfigdirs="$noconfigdirs ${libgcj}"
3221     ;;
3222   hppa*-hp-hpux11*)
3223     ;;
3224   hppa*-*-hpux*)
3225     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3226     # build on HP-UX 10.20.
3227     noconfigdirs="$noconfigdirs ${libgcj}"
3228     ;;
3229   ia64*-*-*vms*)
3230     noconfigdirs="$noconfigdirs ${libgcj}"
3231     ;;
3232   i[3456789]86-w64-mingw*)
3233     noconfigdirs="$noconfigdirs ${libgcj}"
3234     ;;
3235   i[3456789]86-*-mingw*)
3236     noconfigdirs="$noconfigdirs ${libgcj}"
3237     ;;
3238   x86_64-*-mingw*)
3239     noconfigdirs="$noconfigdirs ${libgcj}"
3240     ;;
3241   mmix-*-*)
3242     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3243     ;;
3244   powerpc-*-aix*)
3245     # copied from rs6000-*-* entry
3246     noconfigdirs="$noconfigdirs ${libgcj}"
3247     ;;
3248   rs6000-*-aix*)
3249     noconfigdirs="$noconfigdirs ${libgcj}"
3250     ;;
3251   mips*-*-irix6*)
3252     # Linking libjava exceeds command-line length limits on at least
3253     # IRIX 6.2, but not on IRIX 6.5.
3254     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3255     # <oldham@codesourcery.com>
3256     noconfigdirs="$noconfigdirs ${libgcj}"
3257     ;;
3258   *-*-lynxos*)
3259     noconfigdirs="$noconfigdirs ${libgcj}"
3260     ;;
3261 esac
3262
3263 # Default libgloss CPU subdirectory.
3264 libgloss_dir="$target_cpu"
3265
3266 case "${target}" in
3267   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3268     libgloss_dir=wince
3269     ;;
3270   arm*-*-*)
3271     libgloss_dir=arm
3272     ;;
3273   cris-*-* | crisv32-*-*)
3274     libgloss_dir=cris
3275     ;;
3276   hppa*-*-*)
3277     libgloss_dir=pa
3278     ;;
3279   i[3456789]86-*-*)
3280     libgloss_dir=i386
3281     ;;
3282   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3283     libgloss_dir=m68hc11
3284     ;;
3285   m68*-*-* | fido-*-*)
3286     libgloss_dir=m68k
3287     ;;
3288   mips*-*-*)
3289     libgloss_dir=mips
3290     ;;
3291   powerpc*-*-*)
3292     libgloss_dir=rs6000
3293     ;;
3294   sparc*-*-*)
3295     libgloss_dir=sparc
3296     ;;
3297 esac
3298
3299 # Disable newlib and libgloss for various target OSes.
3300 case "${target}" in
3301   alpha*-dec-osf*)
3302     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3303     ;;
3304   i[3456789]86-*-linux*)
3305     # This section makes it possible to build newlib natively on linux.
3306     # If we are using a cross compiler then don't configure newlib.
3307     if test x${is_cross_compiler} != xno ; then
3308       noconfigdirs="$noconfigdirs target-newlib"
3309     fi
3310     noconfigdirs="$noconfigdirs target-libgloss"
3311     # If we are not using a cross compiler, do configure newlib.
3312     # Note however, that newlib will only be configured in this situation
3313     # if the --with-newlib option has been given, because otherwise
3314     # 'target-newlib' will appear in skipdirs.
3315     ;;
3316   i[3456789]86-*-rdos*)
3317     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3318     ;;
3319   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3320     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3321     ;;
3322   sparc-*-sunos4*)
3323     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3324     ;;
3325   *-*-aix*)
3326     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3327     ;;
3328   *-*-beos*)
3329     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3330     ;;
3331   *-*-chorusos)
3332     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3333     ;;
3334   *-*-dragonfly*)
3335     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3336     ;;
3337   *-*-freebsd*)
3338     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3339     ;;
3340   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3341     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3342     ;;
3343   *-*-lynxos*)
3344     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3345     ;;
3346   *-*-mingw*)
3347     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348     ;;
3349   *-*-netbsd*)
3350     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3351     ;;
3352   *-*-netware*)
3353     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354     ;;
3355   *-*-tpf*)
3356     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3357     ;;
3358   *-*-uclinux*)
3359     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360     ;;
3361   *-*-vxworks*)
3362     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363     ;;
3364 esac
3365
3366 case "${target}" in
3367   *-*-chorusos)
3368     ;;
3369   powerpc-*-darwin*)
3370     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3371     noconfigdirs="$noconfigdirs sim target-rda"
3372     ;;
3373   i[3456789]86-*-darwin*)
3374     noconfigdirs="$noconfigdirs ld gprof"
3375     noconfigdirs="$noconfigdirs sim target-rda"
3376     ;;
3377   x86_64-*-darwin[912]*)
3378     noconfigdirs="$noconfigdirs ld gas gprof"
3379     noconfigdirs="$noconfigdirs sim target-rda"
3380     ;;
3381   *-*-darwin*)
3382     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3383     noconfigdirs="$noconfigdirs sim target-rda"
3384     ;;
3385   *-*-dragonfly*)
3386     ;;
3387   *-*-freebsd*)
3388     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3389         && test -f /usr/local/include/gmp.h; then
3390       with_gmp=/usr/local
3391     fi
3392     ;;
3393   *-*-kaos*)
3394     # Remove unsupported stuff on all kaOS configurations.
3395     noconfigdirs="$noconfigdirs target-libgloss"
3396     ;;
3397   *-*-netbsd*)
3398     ;;
3399   *-*-netware*)
3400     ;;
3401   *-*-rtems*)
3402     noconfigdirs="$noconfigdirs target-libgloss"
3403     ;;
3404     # The tpf target doesn't support gdb yet.
3405   *-*-tpf*)
3406     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3407     ;;
3408   *-*-uclinux*)
3409     noconfigdirs="$noconfigdirs target-rda"
3410     ;;
3411   *-*-vxworks*)
3412     ;;
3413   alpha*-dec-osf*)
3414     # ld works, but does not support shared libraries.
3415     # gas doesn't generate exception information.
3416     noconfigdirs="$noconfigdirs gas ld"
3417     ;;
3418   alpha*-*-*vms*)
3419     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3420     ;;
3421   alpha*-*-*)
3422     # newlib is not 64 bit ready
3423     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424     ;;
3425   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3426     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3427     ;;
3428   arc-*-*)
3429     noconfigdirs="$noconfigdirs target-libgloss"
3430     ;;
3431   arm-*-pe*)
3432     noconfigdirs="$noconfigdirs target-libgloss"
3433     ;;
3434   arm-*-riscix*)
3435     noconfigdirs="$noconfigdirs ld target-libgloss"
3436     ;;
3437   c4x-*-* | tic4x-*-*)
3438     noconfigdirs="$noconfigdirs target-libgloss"
3439     ;;
3440   tic54x-*-*)
3441     noconfigdirs="$noconfigdirs target-libgloss gdb"
3442     ;;
3443   cr16-*-*)
3444     noconfigdirs="$noconfigdirs gdb"
3445     ;;
3446   d10v-*-*)
3447     noconfigdirs="$noconfigdirs target-libgloss"
3448     ;;
3449   d30v-*-*)
3450     noconfigdirs="$noconfigdirs gdb"
3451     ;;
3452   fr30-*-elf*)
3453     noconfigdirs="$noconfigdirs gdb"
3454     ;;
3455   moxie-*-*)
3456     noconfigdirs="$noconfigdirs gprof"
3457     ;;
3458   h8300*-*-*)
3459     noconfigdirs="$noconfigdirs target-libgloss"
3460     ;;
3461   h8500-*-*)
3462     noconfigdirs="$noconfigdirs target-libgloss"
3463     ;;
3464   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3465     ;;
3466   hppa*64*-*-linux*)
3467     ;;
3468   hppa*-*-linux*)
3469     ;;
3470   hppa*-*-*elf* | \
3471   hppa*-*-lites* | \
3472   hppa*-*-openbsd* | \
3473   hppa*64*-*-*)
3474     ;;
3475   hppa*-hp-hpux11*)
3476     noconfigdirs="$noconfigdirs ld"
3477     ;;
3478   hppa*-*-pro*)
3479     ;;
3480   hppa*-*-*)
3481     noconfigdirs="$noconfigdirs ld"
3482     ;;
3483   i960-*-*)
3484     noconfigdirs="$noconfigdirs gdb"
3485     ;;
3486   ia64*-*-elf*)
3487     # No gdb support yet.
3488     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3489     ;;
3490   ia64*-**-hpux*)
3491     # No ld support yet.
3492     noconfigdirs="$noconfigdirs libgui itcl ld"
3493     ;;
3494   ia64*-*-*vms*)
3495     # No gdb or ld support yet.
3496     noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3497     ;;
3498   i[3456789]86-w64-mingw*)
3499     ;;
3500   i[3456789]86-*-mingw*)
3501     target_configdirs="$target_configdirs target-winsup"
3502     ;;
3503   *-*-cygwin*)
3504     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3505     noconfigdirs="$noconfigdirs target-libgloss"
3506     # always build newlib if winsup directory is present.
3507     if test -d "$srcdir/winsup/cygwin"; then
3508       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3509     elif test -d "$srcdir/newlib"; then
3510       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3511     fi
3512     ;;
3513   i[3456789]86-*-pe)
3514     noconfigdirs="$noconfigdirs target-libgloss"
3515     ;;
3516   i[3456789]86-*-sco3.2v5*)
3517     # The linker does not yet know about weak symbols in COFF,
3518     # and is not configured to handle mixed ELF and COFF.
3519     noconfigdirs="$noconfigdirs ld target-libgloss"
3520     ;;
3521   i[3456789]86-*-sco*)
3522     noconfigdirs="$noconfigdirs gprof target-libgloss"
3523     ;;
3524   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3525     noconfigdirs="$noconfigdirs target-libgloss"
3526     ;;
3527   i[3456789]86-*-sysv4*)
3528     noconfigdirs="$noconfigdirs target-libgloss"
3529     ;;
3530   i[3456789]86-*-beos*)
3531     noconfigdirs="$noconfigdirs gdb"
3532     ;;
3533   i[3456789]86-*-rdos*)
3534     noconfigdirs="$noconfigdirs gdb"
3535     ;;
3536   mmix-*-*)
3537     noconfigdirs="$noconfigdirs gdb"
3538     ;;
3539   mt-*-*)
3540     noconfigdirs="$noconfigdirs sim"
3541     ;;
3542   powerpc-*-aix*)
3543     # copied from rs6000-*-* entry
3544     noconfigdirs="$noconfigdirs gprof"
3545     ;;
3546   powerpc*-*-winnt* | powerpc*-*-pe*)
3547     target_configdirs="$target_configdirs target-winsup"
3548     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3549     # always build newlib.
3550     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3551     ;;
3552     # This is temporary until we can link against shared libraries
3553   powerpcle-*-solaris*)
3554     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3555     ;;
3556   powerpc-*-beos*)
3557     noconfigdirs="$noconfigdirs gdb"
3558     ;;
3559   rs6000-*-lynxos*)
3560     noconfigdirs="$noconfigdirs gprof"
3561     ;;
3562   rs6000-*-aix*)
3563     noconfigdirs="$noconfigdirs gprof"
3564     ;;
3565   rs6000-*-*)
3566     noconfigdirs="$noconfigdirs gprof"
3567     ;;
3568   m68k-apollo-*)
3569     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3570     ;;
3571   microblaze*)
3572     noconfigdirs="$noconfigdirs gprof"
3573     ;;
3574   mips*-sde-elf*)
3575     if test x$with_newlib = xyes; then
3576       noconfigdirs="$noconfigdirs gprof"
3577     fi
3578     ;;
3579   mips*-*-irix5*)
3580     noconfigdirs="$noconfigdirs gprof target-libgloss"
3581     ;;
3582   mips*-*-irix6*)
3583     noconfigdirs="$noconfigdirs gprof target-libgloss"
3584     ;;
3585   mips*-*-bsd*)
3586     noconfigdirs="$noconfigdirs gprof target-libgloss"
3587     ;;
3588   mips*-*-linux*)
3589     ;;
3590   mips*-*-*)
3591     noconfigdirs="$noconfigdirs gprof"
3592     ;;
3593   sh-*-* | sh64-*-*)
3594     case "${target}" in
3595       sh*-*-elf)
3596          ;;
3597       *)
3598          noconfigdirs="$noconfigdirs target-libgloss" ;;
3599     esac
3600     ;;
3601   sparc-*-sunos4*)
3602     if test x${is_cross_compiler} = xno ; then
3603            use_gnu_ld=no
3604     fi
3605     ;;
3606   tic6x-*-*)
3607     noconfigdirs="$noconfigdirs sim"
3608     ;;
3609   tilepro-*-* | tilegx-*-*)
3610     noconfigdirs="$noconfigdirs sim"
3611     ;;
3612   v810-*-*)
3613     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3614     ;;
3615   vax-*-*)
3616     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617     ;;
3618 esac
3619
3620 # If we aren't building newlib, then don't build libgloss, since libgloss
3621 # depends upon some newlib header files.
3622 case "${noconfigdirs}" in
3623   *target-libgloss*) ;;
3624   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3625 esac
3626
3627 # Work in distributions that contain no compiler tools, like Autoconf.
3628 host_makefile_frag=/dev/null
3629 if test -d ${srcdir}/config ; then
3630 case "${host}" in
3631   i[3456789]86-*-msdosdjgpp*)
3632     host_makefile_frag="config/mh-djgpp"
3633     ;;
3634   *-cygwin*)
3635
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3637 $as_echo_n "checking to see if cat works as expected... " >&6; }
3638 echo a >cygwin-cat-check
3639 if test `cat cygwin-cat-check` = a ; then
3640   rm cygwin-cat-check
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3643 else
3644   rm cygwin-cat-check
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647   as_fn_error "The cat command does not ignore carriage return characters.
3648   Please either mount the build directory in binary mode or run the following
3649   commands before running any configure script:
3650 set -o igncr
3651 export SHELLOPTS
3652   " "$LINENO" 5
3653 fi
3654
3655     host_makefile_frag="config/mh-cygwin"
3656     ;;
3657   *-mingw*)
3658     host_makefile_frag="config/mh-mingw"
3659     ;;
3660   *-interix*)
3661     host_makefile_frag="config/mh-interix"
3662     ;;
3663   hppa*-hp-hpux10*)
3664     host_makefile_frag="config/mh-pa-hpux10"
3665     ;;
3666   hppa*-hp-hpux*)
3667     host_makefile_frag="config/mh-pa"
3668     ;;
3669   hppa*-*)
3670     host_makefile_frag="config/mh-pa"
3671     ;;
3672   *-*-darwin*)
3673     host_makefile_frag="config/mh-darwin"
3674     ;;
3675   powerpc-*-aix*)
3676     host_makefile_frag="config/mh-ppc-aix"
3677     ;;
3678   rs6000-*-aix*)
3679     host_makefile_frag="config/mh-ppc-aix"
3680     ;;
3681 esac
3682 fi
3683
3684 if test "${build}" != "${host}" ; then
3685   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3686   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3687   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3688   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3689   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3690   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3691   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3692   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3693   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3694   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3695   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3696   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3697   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3698 else
3699   AR_FOR_BUILD="\$(AR)"
3700   AS_FOR_BUILD="\$(AS)"
3701   CC_FOR_BUILD="\$(CC)"
3702   CXX_FOR_BUILD="\$(CXX)"
3703   GCJ_FOR_BUILD="\$(GCJ)"
3704   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3705   GOC_FOR_BUILD="\$(GOC)"
3706   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3707   LD_FOR_BUILD="\$(LD)"
3708   NM_FOR_BUILD="\$(NM)"
3709   RANLIB_FOR_BUILD="\$(RANLIB)"
3710   WINDRES_FOR_BUILD="\$(WINDRES)"
3711   WINDMC_FOR_BUILD="\$(WINDMC)"
3712 fi
3713
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 if test -n "$ac_tool_prefix"; then
3720   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_CC+set}" = set; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   if test -n "$CC"; then
3728   ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739     break 2
3740   fi
3741 done
3742   done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3751 else
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3754 fi
3755
3756
3757 fi
3758 if test -z "$ac_cv_prog_CC"; then
3759   ac_ct_CC=$CC
3760   # Extract the first word of "gcc", so it can be a program name with args.
3761 set dummy gcc; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   if test -n "$ac_ct_CC"; then
3768   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777     ac_cv_prog_ac_ct_CC="gcc"
3778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788 if test -n "$ac_ct_CC"; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790 $as_echo "$ac_ct_CC" >&6; }
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796   if test "x$ac_ct_CC" = x; then
3797     CC=""
3798   else
3799     case $cross_compiling:$ac_tool_warned in
3800 yes:)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3804 esac
3805     CC=$ac_ct_CC
3806   fi
3807 else
3808   CC="$ac_cv_prog_CC"
3809 fi
3810
3811 if test -z "$CC"; then
3812           if test -n "$ac_tool_prefix"; then
3813     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}cc; ac_word=$2
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 $as_echo_n "checking for $ac_word... " >&6; }
3817 if test "${ac_cv_prog_CC+set}" = set; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820   if test -n "$CC"; then
3821   ac_cv_prog_CC="$CC" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826   IFS=$as_save_IFS
3827   test -z "$as_dir" && as_dir=.
3828     for ac_exec_ext in '' $ac_executable_extensions; do
3829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830     ac_cv_prog_CC="${ac_tool_prefix}cc"
3831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832     break 2
3833   fi
3834 done
3835   done
3836 IFS=$as_save_IFS
3837
3838 fi
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3844 else
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3847 fi
3848
3849
3850   fi
3851 fi
3852 if test -z "$CC"; then
3853   # Extract the first word of "cc", so it can be a program name with args.
3854 set dummy cc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   if test -n "$CC"; then
3861   ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863   ac_prog_rejected=no
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867   IFS=$as_save_IFS
3868   test -z "$as_dir" && as_dir=.
3869     for ac_exec_ext in '' $ac_executable_extensions; do
3870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3872        ac_prog_rejected=yes
3873        continue
3874      fi
3875     ac_cv_prog_CC="cc"
3876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880   done
3881 IFS=$as_save_IFS
3882
3883 if test $ac_prog_rejected = yes; then
3884   # We found a bogon in the path, so make sure we never use it.
3885   set dummy $ac_cv_prog_CC
3886   shift
3887   if test $# != 0; then
3888     # We chose a different compiler from the bogus one.
3889     # However, it has the same basename, so the bogon will be chosen
3890     # first if we set CC to just the basename; use the full file name.
3891     shift
3892     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3893   fi
3894 fi
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900 $as_echo "$CC" >&6; }
3901 else
3902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906
3907 fi
3908 if test -z "$CC"; then
3909   if test -n "$ac_tool_prefix"; then
3910   for ac_prog in cl.exe
3911   do
3912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_CC+set}" = set; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -n "$CC"; then
3920   ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
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     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934   done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3943 else
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949     test -n "$CC" && break
3950   done
3951 fi
3952 if test -z "$CC"; then
3953   ac_ct_CC=$CC
3954   for ac_prog in cl.exe
3955 do
3956   # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   if test -n "$ac_ct_CC"; then
3964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971     for ac_exec_ext in '' $ac_executable_extensions; do
3972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973     ac_cv_prog_ac_ct_CC="$ac_prog"
3974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978   done
3979 IFS=$as_save_IFS
3980
3981 fi
3982 fi
3983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3984 if test -n "$ac_ct_CC"; then
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3986 $as_echo "$ac_ct_CC" >&6; }
3987 else
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993   test -n "$ac_ct_CC" && break
3994 done
3995
3996   if test "x$ac_ct_CC" = x; then
3997     CC=""
3998   else
3999     case $cross_compiling:$ac_tool_warned in
4000 yes:)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4004 esac
4005     CC=$ac_ct_CC
4006   fi
4007 fi
4008
4009 fi
4010
4011
4012 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error "no acceptable C compiler found in \$PATH
4015 See \`config.log' for more details." "$LINENO" 5; }
4016
4017 # Provide some information about the compiler.
4018 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4019 set X $ac_compile
4020 ac_compiler=$2
4021 for ac_option in --version -v -V -qversion; do
4022   { { ac_try="$ac_compiler $ac_option >&5"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4030   ac_status=$?
4031   if test -s conftest.err; then
4032     sed '10a\
4033 ... rest of stderr output deleted ...
4034          10q' conftest.err >conftest.er1
4035     cat conftest.er1 >&5
4036     rm -f conftest.er1 conftest.err
4037   fi
4038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039   test $ac_status = 0; }
4040 done
4041
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 ac_clean_files_save=$ac_clean_files
4054 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4055 # Try to create an executable without -o first, disregard a.out.
4056 # It will help us diagnose broken compilers, and finding out an intuition
4057 # of exeext.
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4059 $as_echo_n "checking for C compiler default output file name... " >&6; }
4060 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061
4062 # The possible output files:
4063 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4064
4065 ac_rmfiles=
4066 for ac_file in $ac_files
4067 do
4068   case $ac_file in
4069     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4070     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4071   esac
4072 done
4073 rm -f $ac_rmfiles
4074
4075 if { { ac_try="$ac_link_default"
4076 case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082   (eval "$ac_link_default") 2>&5
4083   ac_status=$?
4084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085   test $ac_status = 0; }; then :
4086   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4088 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4089 # so that the user can short-circuit this test for compilers unknown to
4090 # Autoconf.
4091 for ac_file in $ac_files ''
4092 do
4093   test -f "$ac_file" || continue
4094   case $ac_file in
4095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4096         ;;
4097     [ab].out )
4098         # We found the default executable, but exeext='' is most
4099         # certainly right.
4100         break;;
4101     *.* )
4102         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4103         then :; else
4104            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4105         fi
4106         # We set ac_cv_exeext here because the later test for it is not
4107         # safe: cross compilers may not add the suffix if given an `-o'
4108         # argument, so we may need to know it at that point already.
4109         # Even if this section looks crufty: it has the advantage of
4110         # actually working.
4111         break;;
4112     * )
4113         break;;
4114   esac
4115 done
4116 test "$ac_cv_exeext" = no && ac_cv_exeext=
4117
4118 else
4119   ac_file=''
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4122 $as_echo "$ac_file" >&6; }
4123 if test -z "$ac_file"; then :
4124   $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 { as_fn_set_status 77
4130 as_fn_error "C compiler cannot create executables
4131 See \`config.log' for more details." "$LINENO" 5; }; }
4132 fi
4133 ac_exeext=$ac_cv_exeext
4134
4135 # Check that the compiler produces executables we can run.  If not, either
4136 # the compiler is broken, or we cross compile.
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4138 $as_echo_n "checking whether the C compiler works... " >&6; }
4139 # If not cross compiling, check that we can run a simple program.
4140 if test "$cross_compiling" != yes; then
4141   if { ac_try='./$ac_file'
4142   { { case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148   (eval "$ac_try") 2>&5
4149   ac_status=$?
4150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151   test $ac_status = 0; }; }; then
4152     cross_compiling=no
4153   else
4154     if test "$cross_compiling" = maybe; then
4155         cross_compiling=yes
4156     else
4157         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error "cannot run C compiled programs.
4160 If you meant to cross compile, use \`--host'.
4161 See \`config.log' for more details." "$LINENO" 5; }
4162     fi
4163   fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166 $as_echo "yes" >&6; }
4167
4168 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4169 ac_clean_files=$ac_clean_files_save
4170 # Check that the compiler produces executables we can run.  If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4173 $as_echo_n "checking whether we are cross compiling... " >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4175 $as_echo "$cross_compiling" >&6; }
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4178 $as_echo_n "checking for suffix of executables... " >&6; }
4179 if { { ac_try="$ac_link"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 $as_echo "$ac_try_echo"; } >&5
4186   (eval "$ac_link") 2>&5
4187   ac_status=$?
4188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189   test $ac_status = 0; }; then :
4190   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4191 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4192 # work properly (i.e., refer to `conftest.exe'), while it won't with
4193 # `rm'.
4194 for ac_file in conftest.exe conftest conftest.*; do
4195   test -f "$ac_file" || continue
4196   case $ac_file in
4197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4198     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4199           break;;
4200     * ) break;;
4201   esac
4202 done
4203 else
4204   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error "cannot compute suffix of executables: cannot compile and link
4207 See \`config.log' for more details." "$LINENO" 5; }
4208 fi
4209 rm -f conftest$ac_cv_exeext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4211 $as_echo "$ac_cv_exeext" >&6; }
4212
4213 rm -f conftest.$ac_ext
4214 EXEEXT=$ac_cv_exeext
4215 ac_exeext=$EXEEXT
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4217 $as_echo_n "checking for suffix of object files... " >&6; }
4218 if test "${ac_cv_objext+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.o conftest.obj
4233 if { { ac_try="$ac_compile"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240   (eval "$ac_compile") 2>&5
4241   ac_status=$?
4242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243   test $ac_status = 0; }; then :
4244   for ac_file in conftest.o conftest.obj conftest.*; do
4245   test -f "$ac_file" || continue;
4246   case $ac_file in
4247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4248     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4249        break;;
4250   esac
4251 done
4252 else
4253   $as_echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error "cannot compute suffix of object files: cannot compile
4259 See \`config.log' for more details." "$LINENO" 5; }
4260 fi
4261 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4264 $as_echo "$ac_cv_objext" >&6; }
4265 OBJEXT=$ac_cv_objext
4266 ac_objext=$OBJEXT
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4268 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4269 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278 #ifndef __GNUC__
4279        choke me
4280 #endif
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287   ac_compiler_gnu=yes
4288 else
4289   ac_compiler_gnu=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4297 if test $ac_compiler_gnu = yes; then
4298   GCC=yes
4299 else
4300   GCC=
4301 fi
4302 ac_test_CFLAGS=${CFLAGS+set}
4303 ac_save_CFLAGS=$CFLAGS
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4305 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4306 if test "${ac_cv_prog_cc_g+set}" = set; then :
4307   $as_echo_n "(cached) " >&6
4308 else
4309   ac_save_c_werror_flag=$ac_c_werror_flag
4310    ac_c_werror_flag=yes
4311    ac_cv_prog_cc_g=no
4312    CFLAGS="-g"
4313    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315
4316 int
4317 main ()
4318 {
4319
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325   ac_cv_prog_cc_g=yes
4326 else
4327   CFLAGS=""
4328       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330
4331 int
4332 main ()
4333 {
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340
4341 else
4342   ac_c_werror_flag=$ac_save_c_werror_flag
4343          CFLAGS="-g"
4344          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346
4347 int
4348 main ()
4349 {
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356   ac_cv_prog_cc_g=yes
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363    ac_c_werror_flag=$ac_save_c_werror_flag
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4366 $as_echo "$ac_cv_prog_cc_g" >&6; }
4367 if test "$ac_test_CFLAGS" = set; then
4368   CFLAGS=$ac_save_CFLAGS
4369 elif test $ac_cv_prog_cc_g = yes; then
4370   if test "$GCC" = yes; then
4371     CFLAGS="-g -O2"
4372   else
4373     CFLAGS="-g"
4374   fi
4375 else
4376   if test "$GCC" = yes; then
4377     CFLAGS="-O2"
4378   else
4379     CFLAGS=
4380   fi
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4383 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4384 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   ac_cv_prog_cc_c89=no
4388 ac_save_CC=$CC
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391 #include <stdarg.h>
4392 #include <stdio.h>
4393 #include <sys/types.h>
4394 #include <sys/stat.h>
4395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4396 struct buf { int x; };
4397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4398 static char *e (p, i)
4399      char **p;
4400      int i;
4401 {
4402   return p[i];
4403 }
4404 static char *f (char * (*g) (char **, int), char **p, ...)
4405 {
4406   char *s;
4407   va_list v;
4408   va_start (v,p);
4409   s = g (p, va_arg (v,int));
4410   va_end (v);
4411   return s;
4412 }
4413
4414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4415    function prototypes and stuff, but not '\xHH' hex character constants.
4416    These don't provoke an error unfortunately, instead are silently treated
4417    as 'x'.  The following induces an error, until -std is added to get
4418    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4419    array size at least.  It's necessary to write '\x00'==0 to get something
4420    that's true only with -std.  */
4421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4422
4423 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4424    inside strings and character constants.  */
4425 #define FOO(x) 'x'
4426 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4427
4428 int test (int i, double x);
4429 struct s1 {int (*f) (int a);};
4430 struct s2 {int (*f) (double a);};
4431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4432 int argc;
4433 char **argv;
4434 int
4435 main ()
4436 {
4437 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4443         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4444 do
4445   CC="$ac_save_CC $ac_arg"
4446   if ac_fn_c_try_compile "$LINENO"; then :
4447   ac_cv_prog_cc_c89=$ac_arg
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext
4450   test "x$ac_cv_prog_cc_c89" != "xno" && break
4451 done
4452 rm -f conftest.$ac_ext
4453 CC=$ac_save_CC
4454
4455 fi
4456 # AC_CACHE_VAL
4457 case "x$ac_cv_prog_cc_c89" in
4458   x)
4459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460 $as_echo "none needed" >&6; } ;;
4461   xno)
4462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4463 $as_echo "unsupported" >&6; } ;;
4464   *)
4465     CC="$CC $ac_cv_prog_cc_c89"
4466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4467 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4468 esac
4469 if test "x$ac_cv_prog_cc_c89" != xno; then :
4470
4471 fi
4472
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 ac_ext=cpp
4480 ac_cpp='$CXXCPP $CPPFLAGS'
4481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4484 if test -z "$CXX"; then
4485   if test -n "$CCC"; then
4486     CXX=$CCC
4487   else
4488     if test -n "$ac_tool_prefix"; then
4489   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4490   do
4491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if test "${ac_cv_prog_CXX+set}" = set; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   if test -n "$CXX"; then
4499   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513   done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 CXX=$ac_cv_prog_CXX
4519 if test -n "$CXX"; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4521 $as_echo "$CXX" >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527
4528     test -n "$CXX" && break
4529   done
4530 fi
4531 if test -z "$CXX"; then
4532   ac_ct_CXX=$CXX
4533   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4534 do
4535   # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542   if test -n "$ac_ct_CXX"; then
4543   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550     for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     ac_cv_prog_ac_ct_CXX="$ac_prog"
4553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557   done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4563 if test -n "$ac_ct_CXX"; then
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4565 $as_echo "$ac_ct_CXX" >&6; }
4566 else
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572   test -n "$ac_ct_CXX" && break
4573 done
4574
4575   if test "x$ac_ct_CXX" = x; then
4576     CXX="g++"
4577   else
4578     case $cross_compiling:$ac_tool_warned in
4579 yes:)
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582 ac_tool_warned=yes ;;
4583 esac
4584     CXX=$ac_ct_CXX
4585   fi
4586 fi
4587
4588   fi
4589 fi
4590 # Provide some information about the compiler.
4591 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4592 set X $ac_compile
4593 ac_compiler=$2
4594 for ac_option in --version -v -V -qversion; do
4595   { { ac_try="$ac_compiler $ac_option >&5"
4596 case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4603   ac_status=$?
4604   if test -s conftest.err; then
4605     sed '10a\
4606 ... rest of stderr output deleted ...
4607          10q' conftest.err >conftest.er1
4608     cat conftest.er1 >&5
4609     rm -f conftest.er1 conftest.err
4610   fi
4611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612   test $ac_status = 0; }
4613 done
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4616 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4617 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626 #ifndef __GNUC__
4627        choke me
4628 #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_cxx_try_compile "$LINENO"; then :
4635   ac_compiler_gnu=yes
4636 else
4637   ac_compiler_gnu=no
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4644 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4645 if test $ac_compiler_gnu = yes; then
4646   GXX=yes
4647 else
4648   GXX=
4649 fi
4650 ac_test_CXXFLAGS=${CXXFLAGS+set}
4651 ac_save_CXXFLAGS=$CXXFLAGS
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4653 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4654 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4658    ac_cxx_werror_flag=yes
4659    ac_cv_prog_cxx_g=no
4660    CXXFLAGS="-g"
4661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663
4664 int
4665 main ()
4666 {
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 if ac_fn_cxx_try_compile "$LINENO"; then :
4673   ac_cv_prog_cxx_g=yes
4674 else
4675   CXXFLAGS=""
4676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_cxx_try_compile "$LINENO"; then :
4688
4689 else
4690   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4691          CXXFLAGS="-g"
4692          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694
4695 int
4696 main ()
4697 {
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_cxx_try_compile "$LINENO"; then :
4704   ac_cv_prog_cxx_g=yes
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4714 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4715 if test "$ac_test_CXXFLAGS" = set; then
4716   CXXFLAGS=$ac_save_CXXFLAGS
4717 elif test $ac_cv_prog_cxx_g = yes; then
4718   if test "$GXX" = yes; then
4719     CXXFLAGS="-g -O2"
4720   else
4721     CXXFLAGS="-g"
4722   fi
4723 else
4724   if test "$GXX" = yes; then
4725     CXXFLAGS="-O2"
4726   else
4727     CXXFLAGS=
4728   fi
4729 fi
4730 ac_ext=c
4731 ac_cpp='$CPP $CPPFLAGS'
4732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736
4737 # We must set the default linker to the linker used by gcc for the correct
4738 # operation of libtool.  If LD is not defined and we are using gcc, try to
4739 # set the LD default to the ld used by gcc.
4740 if test -z "$LD"; then
4741   if test "$GCC" = yes; then
4742     case $build in
4743     *-*-mingw*)
4744       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4745     *)
4746       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4747     esac
4748     case $gcc_prog_ld in
4749     # Accept absolute paths.
4750     [\\/]* | [A-Za-z]:[\\/]*)
4751       LD="$gcc_prog_ld" ;;
4752     esac
4753   fi
4754 fi
4755
4756
4757
4758
4759 if test -n "$ac_tool_prefix"; then
4760   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -n "$GNATBIND"; then
4768   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 GNATBIND=$ac_cv_prog_GNATBIND
4788 if test -n "$GNATBIND"; then
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790 $as_echo "$GNATBIND" >&6; }
4791 else
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797 fi
4798 if test -z "$ac_cv_prog_GNATBIND"; then
4799   ac_ct_GNATBIND=$GNATBIND
4800   # Extract the first word of "gnatbind", so it can be a program name with args.
4801 set dummy gnatbind; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test -n "$ac_ct_GNATBIND"; then
4808   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_exec_ext in '' $ac_executable_extensions; do
4816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822   done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828 if test -n "$ac_ct_GNATBIND"; then
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830 $as_echo "$ac_ct_GNATBIND" >&6; }
4831 else
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836   if test "x$ac_ct_GNATBIND" = x; then
4837     GNATBIND="no"
4838   else
4839     case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845     GNATBIND=$ac_ct_GNATBIND
4846   fi
4847 else
4848   GNATBIND="$ac_cv_prog_GNATBIND"
4849 fi
4850
4851 if test -n "$ac_tool_prefix"; then
4852   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if test -n "$GNATMAKE"; then
4860   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 GNATMAKE=$ac_cv_prog_GNATMAKE
4880 if test -n "$GNATMAKE"; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882 $as_echo "$GNATMAKE" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_GNATMAKE"; then
4891   ac_ct_GNATMAKE=$GNATMAKE
4892   # Extract the first word of "gnatmake", so it can be a program name with args.
4893 set dummy gnatmake; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   if test -n "$ac_ct_GNATMAKE"; then
4900   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914   done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920 if test -n "$ac_ct_GNATMAKE"; then
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922 $as_echo "$ac_ct_GNATMAKE" >&6; }
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928   if test "x$ac_ct_GNATMAKE" = x; then
4929     GNATMAKE="no"
4930   else
4931     case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937     GNATMAKE=$ac_ct_GNATMAKE
4938   fi
4939 else
4940   GNATMAKE="$ac_cv_prog_GNATMAKE"
4941 fi
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   cat >conftest.adb <<EOF
4949 procedure conftest is begin null; end conftest;
4950 EOF
4951 acx_cv_cc_gcc_supports_ada=no
4952 # There is a bug in old released versions of GCC which causes the
4953 # driver to exit successfully when the appropriate language module
4954 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4955 # Therefore we must check for the error message as well as an
4956 # unsuccessful exit.
4957 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958 # given a .adb file, but produce no object file.  So we must check
4959 # if an object file was really produced to guard against this.
4960 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4961 if test x"$errors" = x && test -f conftest.$ac_objext; then
4962   acx_cv_cc_gcc_supports_ada=yes
4963 fi
4964 rm -f conftest.*
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4968
4969 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4970   have_gnat=yes
4971 else
4972   have_gnat=no
4973 fi
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4976 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4977 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980    echo abfoo >t1
4981   echo cdfoo >t2
4982   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4983   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4984     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4985       :
4986     else
4987       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4988     fi
4989   fi
4990   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4991     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4992       :
4993     else
4994       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4995     fi
4996   fi
4997   rm t1 t2
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5001 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5002 do_compare="$gcc_cv_prog_cmp_skip"
5003
5004
5005
5006 # Check whether --enable-bootstrap was given.
5007 if test "${enable_bootstrap+set}" = set; then :
5008   enableval=$enable_bootstrap;
5009 else
5010   enable_bootstrap=default
5011 fi
5012
5013
5014 # Issue errors and warnings for invalid/strange bootstrap combinations.
5015 if test -r $srcdir/gcc/configure; then
5016   have_compiler=yes
5017 else
5018   have_compiler=no
5019 fi
5020
5021 case "$have_compiler:$host:$target:$enable_bootstrap" in
5022   *:*:*:no) ;;
5023
5024   # Default behavior.  Enable bootstrap if we have a compiler
5025   # and we are in a native configuration.
5026   yes:$build:$build:default)
5027     enable_bootstrap=yes ;;
5028
5029   *:*:*:default)
5030     enable_bootstrap=no ;;
5031
5032   # We have a compiler and we are in a native configuration, bootstrap is ok
5033   yes:$build:$build:yes)
5034     ;;
5035
5036   # Other configurations, but we have a compiler.  Assume the user knows
5037   # what he's doing.
5038   yes:*:*:yes)
5039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5040 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5041     ;;
5042
5043   # No compiler: if they passed --enable-bootstrap explicitly, fail
5044   no:*:*:yes)
5045     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5046
5047   # Fail if wrong command line
5048   *)
5049     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5050     ;;
5051 esac
5052
5053 # See if we are building gcc with C++.
5054 # Check whether --enable-build-with-cxx was given.
5055 if test "${enable_build_with_cxx+set}" = set; then :
5056   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5057 else
5058   ENABLE_BUILD_WITH_CXX=no
5059 fi
5060
5061
5062 # Build stage1 with C and build stages 2 and 3 with C++.
5063 # Check whether --enable-build-poststage1-with-cxx was given.
5064 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5065   enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5066 else
5067   ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5068 fi
5069
5070
5071 # Used for setting $lt_cv_objdir
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5073 $as_echo_n "checking for objdir... " >&6; }
5074 if test "${lt_cv_objdir+set}" = set; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   rm -f .libs 2>/dev/null
5078 mkdir .libs 2>/dev/null
5079 if test -d .libs; then
5080   lt_cv_objdir=.libs
5081 else
5082   # MS-DOS does not allow filenames that begin with a dot.
5083   lt_cv_objdir=_libs
5084 fi
5085 rmdir .libs 2>/dev/null
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5088 $as_echo "$lt_cv_objdir" >&6; }
5089 objdir=$lt_cv_objdir
5090
5091
5092
5093
5094
5095 cat >>confdefs.h <<_ACEOF
5096 #define LT_OBJDIR "$lt_cv_objdir/"
5097 _ACEOF
5098
5099
5100
5101 # Check for GMP, MPFR and MPC
5102 gmplibs="-lmpc -lmpfr -lgmp"
5103 gmpinc=
5104 have_gmp=no
5105
5106 # Specify a location for mpc
5107 # check for this first so it ends up on the link line before mpfr.
5108
5109 # Check whether --with-mpc was given.
5110 if test "${with_mpc+set}" = set; then :
5111   withval=$with_mpc;
5112 fi
5113
5114
5115 # Check whether --with-mpc-include was given.
5116 if test "${with_mpc_include+set}" = set; then :
5117   withval=$with_mpc_include;
5118 fi
5119
5120
5121 # Check whether --with-mpc-lib was given.
5122 if test "${with_mpc_lib+set}" = set; then :
5123   withval=$with_mpc_lib;
5124 fi
5125
5126
5127 if test "x$with_mpc" != x; then
5128   gmplibs="-L$with_mpc/lib $gmplibs"
5129   gmpinc="-I$with_mpc/include $gmpinc"
5130 fi
5131 if test "x$with_mpc_include" != x; then
5132   gmpinc="-I$with_mpc_include $gmpinc"
5133 fi
5134 if test "x$with_mpc_lib" != x; then
5135   gmplibs="-L$with_mpc_lib $gmplibs"
5136 fi
5137 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5138   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5139   gmpinc='-I$$s/mpc/src '"$gmpinc"
5140   # Do not test the mpc version.  Assume that it is sufficient, since
5141   # it is in the source tree, and the library has not been built yet
5142   # but it would be included on the link line in the version check below
5143   # hence making the test fail.
5144   have_gmp=yes
5145 fi
5146
5147 # Specify a location for mpfr
5148 # check for this first so it ends up on the link line before gmp.
5149
5150 # Check whether --with-mpfr-dir was given.
5151 if test "${with_mpfr_dir+set}" = set; then :
5152   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5153 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5154 fi
5155
5156
5157
5158 # Check whether --with-mpfr was given.
5159 if test "${with_mpfr+set}" = set; then :
5160   withval=$with_mpfr;
5161 fi
5162
5163
5164 # Check whether --with-mpfr-include was given.
5165 if test "${with_mpfr_include+set}" = set; then :
5166   withval=$with_mpfr_include;
5167 fi
5168
5169
5170 # Check whether --with-mpfr-lib was given.
5171 if test "${with_mpfr_lib+set}" = set; then :
5172   withval=$with_mpfr_lib;
5173 fi
5174
5175
5176 if test "x$with_mpfr" != x; then
5177   gmplibs="-L$with_mpfr/lib $gmplibs"
5178   gmpinc="-I$with_mpfr/include $gmpinc"
5179 fi
5180 if test "x$with_mpfr_include" != x; then
5181   gmpinc="-I$with_mpfr_include $gmpinc"
5182 fi
5183 if test "x$with_mpfr_lib" != x; then
5184   gmplibs="-L$with_mpfr_lib $gmplibs"
5185 fi
5186 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5187   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5188   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5189   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5190   # Do not test the mpfr version.  Assume that it is sufficient, since
5191   # it is in the source tree, and the library has not been built yet
5192   # but it would be included on the link line in the version check below
5193   # hence making the test fail.
5194   have_gmp=yes
5195 fi
5196
5197 # Specify a location for gmp
5198
5199 # Check whether --with-gmp-dir was given.
5200 if test "${with_gmp_dir+set}" = set; then :
5201   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5202 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5203 fi
5204
5205
5206
5207 # Check whether --with-gmp was given.
5208 if test "${with_gmp+set}" = set; then :
5209   withval=$with_gmp;
5210 fi
5211
5212
5213 # Check whether --with-gmp-include was given.
5214 if test "${with_gmp_include+set}" = set; then :
5215   withval=$with_gmp_include;
5216 fi
5217
5218
5219 # Check whether --with-gmp-lib was given.
5220 if test "${with_gmp_lib+set}" = set; then :
5221   withval=$with_gmp_lib;
5222 fi
5223
5224
5225
5226 if test "x$with_gmp" != x; then
5227   gmplibs="-L$with_gmp/lib $gmplibs"
5228   gmpinc="-I$with_gmp/include $gmpinc"
5229 fi
5230 if test "x$with_gmp_include" != x; then
5231   gmpinc="-I$with_gmp_include $gmpinc"
5232 fi
5233 if test "x$with_gmp_lib" != x; then
5234   gmplibs="-L$with_gmp_lib $gmplibs"
5235 fi
5236 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5237   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5238   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5239   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5240   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5241   # Do not test the gmp version.  Assume that it is sufficient, since
5242   # it is in the source tree, and the library has not been built yet
5243   # but it would be included on the link line in the version check below
5244   # hence making the test fail.
5245   have_gmp=yes
5246 fi
5247
5248 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5249   have_gmp=yes
5250   saved_CFLAGS="$CFLAGS"
5251   CFLAGS="$CFLAGS $gmpinc"
5252   # Check for the recommended and required versions of GMP.
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5254 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5255
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h.  */
5258 #include "gmp.h"
5259 int
5260 main ()
5261 {
5262
5263   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5264   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5265   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5266   choke me
5267   #endif
5268
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h.  */
5276 #include <gmp.h>
5277 int
5278 main ()
5279 {
5280
5281   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5282   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5283   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5284   choke me
5285   #endif
5286
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5296 $as_echo "buggy but acceptable" >&6; }
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 else
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }; have_gmp=no
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304
5305   # If we have GMP, check the MPFR version.
5306   if test x"$have_gmp" = xyes; then
5307     # Check for the recommended and required versions of MPFR.
5308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5309 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h.  */
5312 #include <gmp.h>
5313     #include <mpfr.h>
5314 int
5315 main ()
5316 {
5317
5318     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5319     choke me
5320     #endif
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h.  */
5329 #include <gmp.h>
5330     #include <mpfr.h>
5331 int
5332 main ()
5333 {
5334
5335     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5336     choke me
5337     #endif
5338
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348 $as_echo "buggy but acceptable" >&6; }
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }; have_gmp=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356   fi
5357
5358   # Check for the MPC header version.
5359   if test x"$have_gmp" = xyes ; then
5360     # Check for the recommended and required versions of MPC.
5361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5362 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h.  */
5365 #include <mpc.h>
5366 int
5367 main ()
5368 {
5369
5370     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5371     choke me
5372     #endif
5373
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <mpc.h>
5382 int
5383 main ()
5384 {
5385
5386     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5387     choke me
5388     #endif
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5399 $as_echo "buggy but acceptable" >&6; }
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }; have_gmp=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407   fi
5408
5409   # Now check the MPFR library.
5410   if test x"$have_gmp" = xyes; then
5411     saved_LIBS="$LIBS"
5412     LIBS="$LIBS $gmplibs"
5413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5414 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5415     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h.  */
5417 #include <mpc.h>
5418 int
5419 main ()
5420 {
5421
5422     mpfr_t n;
5423     mpfr_t x;
5424     mpc_t c;
5425     int t;
5426     mpfr_init (n);
5427     mpfr_init (x);
5428     mpfr_atan2 (n, n, x, GMP_RNDN);
5429     mpfr_erfc (n, x, GMP_RNDN);
5430     mpfr_subnormalize (x, t, GMP_RNDN);
5431     mpfr_clear(n);
5432     mpfr_clear(x);
5433     mpc_init2 (c, 53);
5434     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5435     mpc_cosh (c, c, MPC_RNDNN);
5436     mpc_pow (c, c, c, MPC_RNDNN);
5437     mpc_acosh (c, c, MPC_RNDNN);
5438     mpc_clear (c);
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"; then :
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 $as_echo "yes" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }; have_gmp=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext \
5452     conftest$ac_exeext conftest.$ac_ext
5453     LIBS="$saved_LIBS"
5454   fi
5455
5456   CFLAGS="$saved_CFLAGS"
5457
5458 # The library versions listed in the error message below should match
5459 # the HARD-minimums enforced above.
5460   if test x$have_gmp != xyes; then
5461     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5462 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5463 their locations.  Source code for these libraries can be found at
5464 their respective hosting sites as well as at
5465 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5466 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5467 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5468 make sure that you have installed both the libraries and the header
5469 files.  They may be located in separate packages." "$LINENO" 5
5470   fi
5471 fi
5472
5473 # Flags needed for both GMP, MPFR and/or MPC.
5474
5475
5476
5477
5478
5479
5480 # Allow host libstdc++ to be specified for static linking with PPL.
5481
5482 # Check whether --with-host-libstdcxx was given.
5483 if test "${with_host_libstdcxx+set}" = set; then :
5484   withval=$with_host_libstdcxx;
5485 fi
5486
5487
5488 case $with_host_libstdcxx in
5489   no|yes)
5490     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5491     ;;
5492 esac
5493
5494 # Linker flags to use for stage1 or when not boostrapping.
5495
5496 # Check whether --with-stage1-ldflags was given.
5497 if test "${with_stage1_ldflags+set}" = set; then :
5498   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5499    stage1_ldflags=
5500  else
5501    stage1_ldflags=$withval
5502  fi
5503 else
5504   stage1_ldflags=
5505 fi
5506
5507
5508
5509 # Libraries to use for stage1 or when not bootstrapping.
5510
5511 # Check whether --with-stage1-libs was given.
5512 if test "${with_stage1_libs+set}" = set; then :
5513   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5514    stage1_libs=
5515  else
5516    stage1_libs=$withval
5517  fi
5518 else
5519   stage1_libs=$with_host_libstdcxx
5520 fi
5521
5522
5523
5524 # Libraries to use for stage2 and later builds.  This defaults to the
5525 # argument passed to --with-host-libstdcxx.
5526
5527 # Check whether --with-boot-libs was given.
5528 if test "${with_boot_libs+set}" = set; then :
5529   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5530    poststage1_libs=
5531  else
5532    poststage1_libs=$withval
5533  fi
5534 else
5535   poststage1_libs=$with_host_libstdcxx
5536 fi
5537
5538
5539
5540 # Linker flags to use for stage2 and later builds.
5541
5542 # Check whether --with-boot-ldflags was given.
5543 if test "${with_boot_ldflags+set}" = set; then :
5544   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5545    poststage1_ldflags=
5546  else
5547    poststage1_ldflags=$withval
5548  fi
5549 else
5550   poststage1_ldflags=
5551  # In stages 2 and 3, default to linking libstdc++ and libgcc
5552  # statically.  But if the user explicitly specified the libraries to
5553  # use, trust that they are doing what they want.
5554  if test "$poststage1_libs" = ""; then
5555    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5556  fi
5557 fi
5558
5559
5560
5561 # Check for PPL
5562 ppllibs=
5563 pplinc=
5564 pwllib=
5565
5566
5567 # Check whether --with-ppl was given.
5568 if test "${with_ppl+set}" = set; then :
5569   withval=$with_ppl;
5570 fi
5571
5572
5573 # Check whether --with-ppl-include was given.
5574 if test "${with_ppl_include+set}" = set; then :
5575   withval=$with_ppl_include;
5576 fi
5577
5578
5579 # Check whether --with-ppl-lib was given.
5580 if test "${with_ppl_lib+set}" = set; then :
5581   withval=$with_ppl_lib;
5582 fi
5583
5584
5585 # Check whether --enable-ppl-version-check was given.
5586 if test "${enable_ppl_version_check+set}" = set; then :
5587   enableval=$enable_ppl_version_check;
5588 fi
5589
5590
5591 case $with_ppl in
5592   yes | no | "")
5593     ;;
5594   *)
5595     ppllibs="-L$with_ppl/lib"
5596     pplinc="-I$with_ppl/include $pplinc"
5597     if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5598       with_ppl=yes
5599     else
5600       as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5601     fi
5602     ;;
5603 esac
5604
5605 if test x"$with_ppl_include" != x; then
5606   pplinc="-I$with_ppl_include $pplinc"
5607   with_ppl=yes
5608 fi
5609
5610 if test "x$with_ppl_lib" != x; then
5611   ppllibs="-L$with_ppl_lib"
5612   with_ppl=yes
5613 fi
5614
5615 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5616   if test x"$enable_watchdog" = xyes; then
5617     pwllib="-lpwl"
5618   fi
5619   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5620   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5621   enable_ppl_version_check=no
5622   with_ppl=yes
5623 fi
5624
5625 if test "x$with_ppl" != xno; then
5626   if test "x$pwllib" = x; then
5627     saved_LIBS="$LIBS"
5628     LIBS="$LIBS $ppllibs -lstdc++ -lm"
5629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5630 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5631 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   ac_check_lib_save_LIBS=$LIBS
5635 LIBS="-lpwl  $LIBS"
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638
5639 /* Override any GCC internal prototype to avoid an error.
5640    Use char because int might match the return type of a GCC
5641    builtin and then its argument prototype would still apply.  */
5642 #ifdef __cplusplus
5643 extern "C"
5644 #endif
5645 char PWL_handle_timeout ();
5646 int
5647 main ()
5648 {
5649 return PWL_handle_timeout ();
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_link "$LINENO"; then :
5655   ac_cv_lib_pwl_PWL_handle_timeout=yes
5656 else
5657   ac_cv_lib_pwl_PWL_handle_timeout=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext \
5660     conftest$ac_exeext conftest.$ac_ext
5661 LIBS=$ac_check_lib_save_LIBS
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5664 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5665 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5666   pwllib="-lpwl"
5667 fi
5668
5669     LIBS="$saved_LIBS"
5670   fi
5671
5672   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5673
5674   if test "$enable_ppl_version_check" != no; then
5675     saved_CFLAGS="$CFLAGS"
5676     CFLAGS="$CFLAGS $pplinc $gmpinc"
5677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5678 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h.  */
5681 #include "ppl_c.h"
5682 int
5683 main ()
5684 {
5685
5686     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5687     choke me
5688     #endif
5689
5690   ;
5691   return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702     CFLAGS="$saved_CFLAGS"
5703   fi
5704 fi
5705
5706 # Flags needed for PPL
5707
5708
5709
5710
5711 # Check for CLOOG
5712
5713
5714
5715 # Check whether --with-cloog was given.
5716 if test "${with_cloog+set}" = set; then :
5717   withval=$with_cloog;
5718 fi
5719
5720
5721 # Check whether --with-cloog-include was given.
5722 if test "${with_cloog_include+set}" = set; then :
5723   withval=$with_cloog_include;
5724 fi
5725
5726
5727 # Check whether --with-cloog-lib was given.
5728 if test "${with_cloog_lib+set}" = set; then :
5729   withval=$with_cloog_lib;
5730 fi
5731
5732
5733   # Check whether --enable-cloog-backend was given.
5734 if test "${enable_cloog_backend+set}" = set; then :
5735   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5736         cloog_backend=isl
5737       elif test "x${enableval}" = "xppl"; then
5738         cloog_backend=ppl
5739       else
5740         cloog_backend=ppl-legacy
5741       fi
5742 else
5743   cloog_backend=ppl-legacy
5744 fi
5745
5746   # Check whether --enable-cloog-version-check was given.
5747 if test "${enable_cloog_version_check+set}" = set; then :
5748   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5749 else
5750   ENABLE_CLOOG_CHECK=yes
5751 fi
5752
5753
5754   # Initialize clooglibs and clooginc.
5755   case $with_cloog in
5756     no)
5757       clooglibs=
5758       clooginc=
5759       ;;
5760     "" | yes)
5761       ;;
5762     *)
5763       clooglibs="-L$with_cloog/lib"
5764       clooginc="-I$with_cloog/include"
5765       ;;
5766   esac
5767   if test "x${with_cloog_include}" != x ; then
5768     clooginc="-I$with_cloog_include"
5769   fi
5770   if test "x${with_cloog_lib}" != x; then
5771     clooglibs="-L$with_cloog_lib"
5772   fi
5773
5774
5775
5776
5777
5778 if test "x$with_ppl" = "xno"; then
5779
5780
5781
5782   if test "x${with_cloog}" = xno; then
5783     graphite_requested=no
5784   elif test "x${with_cloog}" != x \
5785     || test "x${with_cloog_include}" != x \
5786     || test "x${with_cloog_lib}" != x ; then
5787     graphite_requested=yes
5788   else
5789     graphite_requested=no
5790   fi
5791
5792
5793   if test "${graphite_requested}" = yes; then
5794     as_fn_error "Unable to find a usable PPL.  See config.log for details." "$LINENO" 5
5795   fi
5796   with_cloog=no
5797 fi
5798 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5799   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5800   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5801   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5802 fi
5803 if test "x$with_cloog" != "xno"; then
5804
5805
5806
5807   _cloog_saved_CFLAGS=$CFLAGS
5808   _cloog_saved_CPPFLAGS=$CPPFLAGS
5809   _cloog_saved_LDFLAGS=$LDFLAGS
5810   _cloog_saved_LIBS=$LIBS
5811
5812   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5813
5814     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5815   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5816   LDFLAGS="${LDFLAGS} ${clooglibs}"
5817
5818   case $cloog_backend in
5819     "ppl-legacy")
5820     CFLAGS="${CFLAGS} ${pplinc}"
5821     LDFLAGS="${LDFLAGS} ${ppllibs}"
5822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5823 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5824 if test "${gcc_cv_cloog_type+set}" = set; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   LIBS="-lcloog ${_cloog_saved_LIBS}"
5828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h.  */
5830 #include "cloog/cloog.h"
5831 int
5832 main ()
5833 {
5834 #ifndef CLOOG_PPL_BACKEND
5835     choke me
5836    #endif
5837   ;
5838   return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842   gcc_cv_cloog_type="PPL Legacy"
5843 else
5844   gcc_cv_cloog_type=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext \
5847     conftest$ac_exeext conftest.$ac_ext
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850 $as_echo "$gcc_cv_cloog_type" >&6; }
5851     ;;
5852     "isl")
5853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5854 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5855 if test "${gcc_cv_cloog_type+set}" = set; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5859       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h.  */
5861 #include "cloog/cloog.h"
5862 int
5863 main ()
5864 {
5865 cloog_version ()
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"; then :
5871   gcc_cv_cloog_type="ISL"
5872 else
5873   gcc_cv_cloog_type=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext \
5876     conftest$ac_exeext conftest.$ac_ext
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5879 $as_echo "$gcc_cv_cloog_type" >&6; }
5880     ;;
5881     "ppl")
5882     CFLAGS="${CFLAGS} ${pplinc}"
5883     LDFLAGS="${LDFLAGS} ${ppllibs}"
5884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5885 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5886 if test "${gcc_cv_cloog_type+set}" = set; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h.  */
5892 #include "cloog/cloog.h"
5893    #include "cloog/ppl/cloog.h"
5894 int
5895 main ()
5896 {
5897 cloog_version ()
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_link "$LINENO"; then :
5903   gcc_cv_cloog_type="PPL"
5904 else
5905   gcc_cv_cloog_type=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext \
5908     conftest$ac_exeext conftest.$ac_ext
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5911 $as_echo "$gcc_cv_cloog_type" >&6; }
5912     ;;
5913     *)
5914       gcc_cv_cloog_type=""
5915   esac
5916
5917   case $gcc_cv_cloog_type in
5918     "PPL Legacy")
5919       clooginc="${clooginc}"
5920       clooglibs="${clooglibs} -lcloog"
5921       cloog_org=no
5922       ;;
5923     "ISL")
5924       clooginc="${clooginc} ${_cloogorginc}"
5925       clooglibs="${clooglibs} -lcloog-isl -lisl"
5926       cloog_org=yes
5927       ;;
5928     "PPL")
5929       clooginc="${clooginc} ${_cloogorginc}"
5930       clooglibs="${clooglibs} -lcloog-ppl"
5931       cloog_org=yes
5932       ;;
5933     *)
5934       clooglibs=
5935       clooginc=
5936       cloog_org=
5937       ;;
5938   esac
5939
5940   LIBS=$_cloog_saved_LIBS
5941   CFLAGS=$_cloog_saved_CFLAGS
5942   CPPFLAGS=$_cloog_saved_CPPFLAGS
5943   LDFLAGS=$_cloog_saved_LDFLAGS
5944
5945
5946
5947
5948
5949   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5950     _cloog_saved_CFLAGS=$CFLAGS
5951     _cloog_saved_LDFLAGS=$LDFLAGS
5952
5953     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5954     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5955
5956     if test "${cloog_org}" = yes ; then
5957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5958 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5959 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h.  */
5964 #include "cloog/cloog.h"
5965 int
5966 main ()
5967 {
5968 #if CLOOG_VERSION_MAJOR != 0 \
5969     || CLOOG_VERSION_MINOR != 16 \
5970     || CLOOG_VERSION_REVISION < 1
5971     choke me
5972    #endif
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978   gcc_cv_cloog_ct_0_14_0=yes
5979 else
5980   gcc_cv_cloog_ct_0_14_0=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5985 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5986     elif test "${cloog_org}" = no ; then
5987       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5988 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5989 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h.  */
5994 #include "cloog/cloog.h"
5995 int
5996 main ()
5997 {
5998 #if CLOOG_VERSION_MAJOR != 0 \
5999     || CLOOG_VERSION_MINOR != 15 \
6000     || CLOOG_VERSION_REVISION < 5
6001     choke me
6002    #endif
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h.  */
6010 #include "cloog/cloog.h"
6011 int
6012 main ()
6013 {
6014 #if CLOOG_VERSION_MAJOR != 0 \
6015     || CLOOG_VERSION_MINOR != 15 \
6016     || CLOOG_VERSION_REVISION < 9
6017     choke me
6018    #endif
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024   gcc_cv_cloog_ct_0_15_5=yes
6025 else
6026   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 else
6030   gcc_cv_cloog_ct_0_15_5=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6035 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6036     fi
6037
6038     CFLAGS=$_cloog_saved_CFLAGS
6039     LDFLAGS=$_cloog_saved_LDFLAGS
6040   fi
6041
6042
6043
6044
6045
6046
6047
6048   if test "x${with_cloog}" = xno; then
6049     graphite_requested=no
6050   elif test "x${with_cloog}" != x \
6051     || test "x${with_cloog_include}" != x \
6052     || test "x${with_cloog_lib}" != x ; then
6053     graphite_requested=yes
6054   else
6055     graphite_requested=no
6056   fi
6057
6058
6059
6060   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6061     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6062     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6063     clooglibs=
6064     clooginc=
6065   fi
6066
6067   if test "${graphite_requested}" = yes \
6068     && test "x${clooglibs}" = x \
6069     && test "x${clooginc}" = x ; then
6070
6071     as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
6072   fi
6073
6074
6075 fi
6076
6077 # Check for LTO support.
6078 # Check whether --enable-lto was given.
6079 if test "${enable_lto+set}" = set; then :
6080   enableval=$enable_lto; enable_lto=$enableval
6081 else
6082   enable_lto=yes; default_enable_lto=yes
6083 fi
6084
6085
6086
6087
6088
6089 target_elf=no
6090 case $target in
6091   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6092   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6093   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6094     target_elf=no
6095     ;;
6096   *)
6097     target_elf=yes
6098     ;;
6099 esac
6100
6101 if test $target_elf = yes; then :
6102   # ELF platforms build the lto-plugin always.
6103   build_lto_plugin=yes
6104
6105 else
6106   if test x"$default_enable_lto" = x"yes" ; then
6107     case $target in
6108       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6109       # On other non-ELF platforms, LTO has yet to be validated.
6110       *) enable_lto=no ;;
6111     esac
6112   else
6113   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6114   # It would also be nice to check the binutils support, but we don't
6115   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6116   # warn during gcc/ subconfigure; unless you're bootstrapping with
6117   # -flto it won't be needed until after installation anyway.
6118     case $target in
6119       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6120       *) if test x"$enable_lto" = x"yes"; then
6121         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6122         fi
6123       ;;
6124     esac
6125   fi
6126   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6127   # Build it unless LTO was explicitly disabled.
6128   case $target in
6129     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6130     *) ;;
6131   esac
6132
6133 fi
6134
6135
6136
6137 # By default, C is the only stage 1 language.
6138 stage1_languages=,c,
6139
6140 # Target libraries that we bootstrap.
6141 bootstrap_target_libs=,target-libgcc,
6142
6143 # Figure out what language subdirectories are present.
6144 # Look if the user specified --enable-languages="..."; if not, use
6145 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6146 # go away some day.
6147 # NB:  embedded tabs in this IF block -- do not untabify
6148 if test -d ${srcdir}/gcc; then
6149   if test x"${enable_languages+set}" != xset; then
6150     if test x"${LANGUAGES+set}" = xset; then
6151       enable_languages="${LANGUAGES}"
6152         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6153     else
6154       enable_languages=all
6155     fi
6156   else
6157     if test x"${enable_languages}" = x ||
6158        test x"${enable_languages}" = xyes;
6159        then
6160       echo configure.in: --enable-languages needs at least one language argument 1>&2
6161       exit 1
6162     fi
6163   fi
6164   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6165
6166   # 'f95' is the old name for the 'fortran' language. We issue a warning
6167   # and make the substitution.
6168   case ,${enable_languages}, in
6169     *,f95,*)
6170       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6171       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6172       ;;
6173   esac
6174
6175   # If bootstrapping, then using --enable-build-with-cxx or
6176   # --enable-build-poststage1-with-cxx requires enabling C++.
6177   case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6178     *,c++,*:*:*) ;;
6179     *:*,yes,*:yes)
6180       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6181         enable_languages="${enable_languages},c++"
6182       else
6183         as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6184       fi
6185       ;;
6186   esac
6187
6188   # First scan to see if an enabled language requires some other language.
6189   # We assume that a given config-lang.in will list all the language
6190   # front ends it requires, even if some are required indirectly.
6191   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6192     case ${lang_frag} in
6193       ..) ;;
6194       # The odd quoting in the next line works around
6195       # an apparent bug in bash 1.12 on linux.
6196       ${srcdir}/gcc/[*]/config-lang.in) ;;
6197       *)
6198         # From the config-lang.in, get $language, $lang_requires, and
6199         # $lang_requires_boot_languages.
6200         language=
6201         lang_requires=
6202         lang_requires_boot_languages=
6203         . ${lang_frag}
6204         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6205           case ,${enable_languages}, in
6206             *,$other,*) ;;
6207             *,all,*) ;;
6208             *,$language,*)
6209               echo " \`$other' language required by \`$language'; enabling" 1>&2
6210               enable_languages="${enable_languages},${other}"
6211               ;;
6212           esac
6213         done
6214         for other in ${lang_requires_boot_languages} ; do
6215           if test "$other" != "c"; then
6216             case ,${enable_stage1_languages}, in
6217               *,$other,*) ;;
6218               *,all,*) ;;
6219               *)
6220                 case ,${enable_languages}, in
6221                   *,$language,*)
6222                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6223                     enable_stage1_languages="$enable_stage1_languages,${other}"
6224                     ;;
6225                 esac
6226                 ;;
6227             esac
6228           fi
6229         done
6230         ;;
6231     esac
6232   done
6233
6234   new_enable_languages=,c,
6235
6236   # If LTO is enabled, add the LTO front end.
6237   extra_host_libiberty_configure_flags=
6238   if test "$enable_lto" = "yes" ; then
6239     case ,${enable_languages}, in
6240       *,lto,*) ;;
6241       *) enable_languages="${enable_languages},lto" ;;
6242     esac
6243     if test "${build_lto_plugin}" = "yes" ; then
6244       configdirs="$configdirs lto-plugin"
6245       extra_host_libiberty_configure_flags=--enable-shared
6246     fi
6247   fi
6248
6249
6250   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6251   potential_languages=,c,
6252
6253   enabled_target_libs=
6254   disabled_target_libs=
6255
6256   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6257     case ${lang_frag} in
6258       ..) ;;
6259       # The odd quoting in the next line works around
6260       # an apparent bug in bash 1.12 on linux.
6261       ${srcdir}/gcc/[*]/config-lang.in) ;;
6262       *)
6263         # From the config-lang.in, get $language, $target_libs,
6264         # $lang_dirs, $boot_language, and $build_by_default
6265         language=
6266         target_libs=
6267         lang_dirs=
6268         subdir_requires=
6269         boot_language=no
6270         build_by_default=yes
6271         . ${lang_frag}
6272         if test x${language} = x; then
6273           echo "${lang_frag} doesn't set \$language." 1>&2
6274           exit 1
6275         fi
6276
6277         if test "$language" = "c++"; then
6278           if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6279              || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6280             boot_language=yes
6281           fi
6282         fi
6283
6284         case ,${enable_languages}, in
6285           *,${language},*)
6286             # Language was explicitly selected; include it.
6287             add_this_lang=yes
6288             ;;
6289           *,all,*)
6290             # 'all' was selected, select it if it is a default language
6291             add_this_lang=${build_by_default}
6292             ;;
6293           *)
6294             add_this_lang=no
6295             ;;
6296         esac
6297
6298         # Disable languages that need other directories if these aren't available.
6299         for i in $subdir_requires; do
6300           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6301           case ,${enable_languages}, in
6302             *,${language},*)
6303               # Specifically requested language; tell them.
6304               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6305               ;;
6306             *)
6307               # Silently disable.
6308               add_this_lang=unsupported
6309               ;;
6310           esac
6311         done
6312
6313         # Disable Ada if no preexisting GNAT is available.
6314         case ,${enable_languages},:${language}:${have_gnat} in
6315           *,${language},*:ada:no)
6316             # Specifically requested language; tell them.
6317             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6318             ;;
6319           *:ada:no)
6320             # Silently disable.
6321             add_this_lang=unsupported
6322             ;;
6323         esac
6324
6325         # Disable a language that is unsupported by the target.
6326         case " $unsupported_languages " in
6327           *" $language "*)
6328             add_this_lang=unsupported
6329             ;;
6330         esac
6331
6332         case $add_this_lang in
6333           unsupported)
6334             # Remove language-dependent dirs.
6335             disabled_target_libs="$disabled_target_libs $target_libs"
6336             noconfigdirs="$noconfigdirs $lang_dirs"
6337             ;;
6338           no)
6339             # Remove language-dependent dirs; still show language as supported.
6340             disabled_target_libs="$disabled_target_libs $target_libs"
6341             noconfigdirs="$noconfigdirs $lang_dirs"
6342             potential_languages="${potential_languages}${language},"
6343             ;;
6344           yes)
6345             new_enable_languages="${new_enable_languages}${language},"
6346             potential_languages="${potential_languages}${language},"
6347             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6348             enabled_target_libs="$enabled_target_libs $target_libs"
6349             case "${boot_language}:,$enable_stage1_languages," in
6350               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6351                 # Add to (comma-separated) list of stage 1 languages.
6352                 case ",$stage1_languages," in
6353                   *,$language,* | ,yes, | ,all,) ;;
6354                   *) stage1_languages="${stage1_languages}${language}," ;;
6355                 esac
6356                 # We need to bootstrap any supporting libraries.
6357                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6358                 ;;
6359             esac
6360             ;;
6361         esac
6362         ;;
6363     esac
6364   done
6365
6366   # Add target libraries which are only needed for disabled languages
6367   # to noconfigdirs.
6368   if test -n "$disabled_target_libs"; then
6369     for dir in $disabled_target_libs; do
6370       case " $enabled_target_libs " in
6371       *" ${dir} "*) ;;
6372       *) noconfigdirs="$noconfigdirs $dir" ;;
6373       esac
6374     done
6375   fi
6376
6377   # Check whether --enable-stage1-languages was given.
6378 if test "${enable_stage1_languages+set}" = set; then :
6379   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6380     ,no,|,,)
6381       # Set it to something that will have no effect in the loop below
6382       enable_stage1_languages=c ;;
6383     ,yes,)
6384       enable_stage1_languages=`echo $new_enable_languages | \
6385         sed -e "s/^,//" -e "s/,$//" ` ;;
6386     *,all,*)
6387       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6388         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6389   esac
6390
6391   # Add "good" languages from enable_stage1_languages to stage1_languages,
6392   # while "bad" languages go in missing_languages.  Leave no duplicates.
6393   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6394     case $potential_languages in
6395       *,$i,*)
6396         case $stage1_languages in
6397           *,$i,*) ;;
6398           *) stage1_languages="$stage1_languages$i," ;;
6399         esac ;;
6400       *)
6401         case $missing_languages in
6402           *,$i,*) ;;
6403           *) missing_languages="$missing_languages$i," ;;
6404         esac ;;
6405      esac
6406   done
6407 fi
6408
6409
6410   # Remove leading/trailing commas that were added for simplicity
6411   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6412   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6413   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6414   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6415
6416   if test "x$missing_languages" != x; then
6417     as_fn_error "
6418 The following requested languages could not be built: ${missing_languages}
6419 Supported languages are: ${potential_languages}" "$LINENO" 5
6420   fi
6421   if test "x$new_enable_languages" != "x$enable_languages"; then
6422     echo The following languages will be built: ${new_enable_languages}
6423     enable_languages="$new_enable_languages"
6424   fi
6425
6426
6427   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6428 fi
6429
6430 # Handle --disable-<component> generically.
6431 for dir in $configdirs $build_configdirs $target_configdirs ; do
6432   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6433   varname=`echo $dirname | sed -e s/+/_/g`
6434   if eval test x\${enable_${varname}} "=" xno ; then
6435     noconfigdirs="$noconfigdirs $dir"
6436   fi
6437 done
6438
6439 # Check for Boehm's garbage collector
6440 # Check whether --enable-objc-gc was given.
6441 if test "${enable_objc_gc+set}" = set; then :
6442   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6443   *,objc,*:*:yes:*target-boehm-gc*)
6444     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6445     ;;
6446 esac
6447 fi
6448
6449
6450 # Make sure we only build Boehm's garbage collector if required.
6451 case ,${enable_languages},:${enable_objc_gc} in
6452   *,objc,*:yes)
6453     # Keep target-boehm-gc if requested for Objective-C.
6454     ;;
6455   *)
6456     # Otherwise remove target-boehm-gc depending on target-libjava.
6457     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6458       noconfigdirs="$noconfigdirs target-boehm-gc"
6459     fi
6460     ;;
6461 esac
6462
6463 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464 # $build_configdirs and $target_configdirs.
6465 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467 notsupp=""
6468 for dir in . $skipdirs $noconfigdirs ; do
6469   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6470   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472     if test -r $srcdir/$dirname/configure ; then
6473       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474         true
6475       else
6476         notsupp="$notsupp $dir"
6477       fi
6478     fi
6479   fi
6480   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482     if test -r $srcdir/$dirname/configure ; then
6483       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484         true
6485       else
6486         notsupp="$notsupp $dir"
6487       fi
6488     fi
6489   fi
6490   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492     if test -r $srcdir/$dirname/configure ; then
6493       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494         true
6495       else
6496         notsupp="$notsupp $dir"
6497       fi
6498     fi
6499   fi
6500 done
6501
6502 # Quietly strip out all directories which aren't configurable in this tree.
6503 # This relies on all configurable subdirectories being autoconfiscated, which
6504 # is now the case.
6505 build_configdirs_all="$build_configdirs"
6506 build_configdirs=
6507 for i in ${build_configdirs_all} ; do
6508   j=`echo $i | sed -e s/build-//g`
6509   if test -f ${srcdir}/$j/configure ; then
6510     build_configdirs="${build_configdirs} $i"
6511   fi
6512 done
6513
6514 configdirs_all="$configdirs"
6515 configdirs=
6516 for i in ${configdirs_all} ; do
6517   if test -f ${srcdir}/$i/configure ; then
6518     configdirs="${configdirs} $i"
6519   fi
6520 done
6521
6522 target_configdirs_all="$target_configdirs"
6523 target_configdirs=
6524 for i in ${target_configdirs_all} ; do
6525   j=`echo $i | sed -e s/target-//g`
6526   if test -f ${srcdir}/$j/configure ; then
6527     target_configdirs="${target_configdirs} $i"
6528   fi
6529 done
6530
6531 # Produce a warning message for the subdirs we can't configure.
6532 # This isn't especially interesting in the Cygnus tree, but in the individual
6533 # FSF releases, it's important to let people know when their machine isn't
6534 # supported by the one or two programs in a package.
6535
6536 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6537   # If $appdirs is non-empty, at least one of those directories must still
6538   # be configured, or we error out.  (E.g., if the gas release supports a
6539   # specified target in some subdirs but not the gas subdir, we shouldn't
6540   # pretend that all is well.)
6541   if test -n "$appdirs" ; then
6542     for dir in $appdirs ; do
6543       if test -r $dir/Makefile.in ; then
6544         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6545           appdirs=""
6546           break
6547         fi
6548         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6549           appdirs=""
6550           break
6551         fi
6552       fi
6553     done
6554     if test -n "$appdirs" ; then
6555       echo "*** This configuration is not supported by this package." 1>&2
6556       exit 1
6557     fi
6558   fi
6559   # Okay, some application will build, or we don't care to check.  Still
6560   # notify of subdirs not getting built.
6561   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6562   echo "    ${notsupp}" 1>&2
6563   echo "    (Any other directories should still work fine.)" 1>&2
6564 fi
6565
6566 case "$host" in
6567   *msdosdjgpp*)
6568     enable_gdbtk=no ;;
6569 esac
6570
6571 # To find our prefix, in gcc_cv_tool_prefix.
6572
6573 # The user is always right.
6574 if test "${PATH_SEPARATOR+set}" != set; then
6575   echo "#! /bin/sh" >conf$$.sh
6576   echo  "exit 0"   >>conf$$.sh
6577   chmod +x conf$$.sh
6578   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6579     PATH_SEPARATOR=';'
6580   else
6581     PATH_SEPARATOR=:
6582   fi
6583   rm -f conf$$.sh
6584 fi
6585
6586
6587
6588 if test "x$exec_prefix" = xNONE; then
6589         if test "x$prefix" = xNONE; then
6590                 gcc_cv_tool_prefix=$ac_default_prefix
6591         else
6592                 gcc_cv_tool_prefix=$prefix
6593         fi
6594 else
6595         gcc_cv_tool_prefix=$exec_prefix
6596 fi
6597
6598 # If there is no compiler in the tree, use the PATH only.  In any
6599 # case, if there is no compiler in the tree nobody should use
6600 # AS_FOR_TARGET and LD_FOR_TARGET.
6601 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6602     gcc_version=`cat $srcdir/gcc/BASE-VER`
6603     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6604     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6605     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6606     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6607     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6608     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6609 else
6610     gcc_cv_tool_dirs=
6611 fi
6612
6613 if test x$build = x$target && test -n "$md_exec_prefix"; then
6614         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6615 fi
6616
6617
6618
6619 copy_dirs=
6620
6621
6622 # Check whether --with-build-sysroot was given.
6623 if test "${with_build_sysroot+set}" = set; then :
6624   withval=$with_build_sysroot; if test x"$withval" != x ; then
6625      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6626    fi
6627 else
6628   SYSROOT_CFLAGS_FOR_TARGET=
6629 fi
6630
6631
6632
6633
6634 # Check whether --with-debug-prefix-map was given.
6635 if test "${with_debug_prefix_map+set}" = set; then :
6636   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6637      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6638      for debug_map in $withval; do
6639        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6640      done
6641    fi
6642 else
6643   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6644 fi
6645
6646
6647
6648 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6649 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6650 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6651 # We want to ensure that TARGET libraries (which we know are built with
6652 # gcc) are built with "-O2 -g", so include those options when setting
6653 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6654 if test "x$CFLAGS_FOR_TARGET" = x; then
6655   CFLAGS_FOR_TARGET=$CFLAGS
6656   case " $CFLAGS " in
6657     *" -O2 "*) ;;
6658     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6659   esac
6660   case " $CFLAGS " in
6661     *" -g "* | *" -g3 "*) ;;
6662     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6663   esac
6664 fi
6665
6666
6667 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6668   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6669   case " $CXXFLAGS " in
6670     *" -O2 "*) ;;
6671     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6672   esac
6673   case " $CXXFLAGS " in
6674     *" -g "* | *" -g3 "*) ;;
6675     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6676   esac
6677 fi
6678
6679
6680
6681
6682 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6683 # the named directory are copied to $(tooldir)/sys-include.
6684 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6685   if test x${is_cross_compiler} = xno ; then
6686     echo 1>&2 '***' --with-headers is only supported when cross compiling
6687     exit 1
6688   fi
6689   if test x"${with_headers}" != xyes ; then
6690     x=${gcc_cv_tool_prefix}
6691     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6692   fi
6693 fi
6694
6695 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6696 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6697 # are permitted.
6698 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6699   if test x${is_cross_compiler} = xno ; then
6700     echo 1>&2 '***' --with-libs is only supported when cross compiling
6701     exit 1
6702   fi
6703   if test x"${with_libs}" != xyes ; then
6704     # Copy the libraries in reverse order, so that files in the first named
6705     # library override files in subsequent libraries.
6706     x=${gcc_cv_tool_prefix}
6707     for l in ${with_libs}; do
6708       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6709     done
6710   fi
6711 fi
6712
6713 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6714 #
6715 # This is done by determining whether or not the appropriate directory
6716 # is available, and by checking whether or not specific configurations
6717 # have requested that this magic not happen.
6718 #
6719 # The command line options always override the explicit settings in
6720 # configure.in, and the settings in configure.in override this magic.
6721 #
6722 # If the default for a toolchain is to use GNU as and ld, and you don't
6723 # want to do that, then you should use the --without-gnu-as and
6724 # --without-gnu-ld options for the configure script.  Similarly, if
6725 # the default is to use the included zlib and you don't want to do that,
6726 # you should use the --with-system-zlib option for the configure script.
6727
6728 if test x${use_gnu_as} = x &&
6729    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6730   with_gnu_as=yes
6731   extra_host_args="$extra_host_args --with-gnu-as"
6732 fi
6733
6734 if test x${use_gnu_ld} = x &&
6735    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6736   with_gnu_ld=yes
6737   extra_host_args="$extra_host_args --with-gnu-ld"
6738 fi
6739
6740 if test x${use_included_zlib} = x &&
6741    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6742   :
6743 else
6744   with_system_zlib=yes
6745   extra_host_args="$extra_host_args --with-system-zlib"
6746 fi
6747
6748 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6749 # can detect this case.
6750
6751 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6752   with_newlib=yes
6753   extra_host_args="$extra_host_args --with-newlib"
6754 fi
6755
6756 # Handle ${copy_dirs}
6757 set fnord ${copy_dirs}
6758 shift
6759 while test $# != 0 ; do
6760   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6761     :
6762   else
6763     echo Copying $1 to $2
6764
6765     # Use the install script to create the directory and all required
6766     # parent directories.
6767     if test -d $2 ; then
6768       :
6769     else
6770       echo >config.temp
6771       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6772     fi
6773
6774     # Copy the directory, assuming we have tar.
6775     # FIXME: Should we use B in the second tar?  Not all systems support it.
6776     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6777
6778     # It is the responsibility of the user to correctly adjust all
6779     # symlinks.  If somebody can figure out how to handle them correctly
6780     # here, feel free to add the code.
6781
6782     echo $1 > $2/COPIED
6783   fi
6784   shift; shift
6785 done
6786
6787 # Determine a target-dependent exec_prefix that the installed
6788 # gcc will search in.  Keep this list sorted by triplet, with
6789 # the *-*-osname triplets last.
6790 md_exec_prefix=
6791 case "${target}" in
6792   i[34567]86-pc-msdosdjgpp*)
6793     md_exec_prefix=/dev/env/DJDIR/bin
6794     ;;
6795   *-*-hpux* | \
6796   *-*-nto-qnx* | \
6797   *-*-solaris2*)
6798     md_exec_prefix=/usr/ccs/bin
6799     ;;
6800 esac
6801
6802 extra_arflags_for_target=
6803 extra_nmflags_for_target=
6804 extra_ranlibflags_for_target=
6805 target_makefile_frag=/dev/null
6806 case "${target}" in
6807   spu-*-*)
6808     target_makefile_frag="config/mt-spu"
6809     ;;
6810   mips*-sde-elf*)
6811     target_makefile_frag="config/mt-sde"
6812     ;;
6813   mipsisa*-*-elfoabi*)
6814     target_makefile_frag="config/mt-mips-elfoabi"
6815     ;;
6816   mips*-*-*linux* | mips*-*-gnu*)
6817     target_makefile_frag="config/mt-mips-gnu"
6818     ;;
6819   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6820     target_makefile_frag="config/mt-gnu"
6821     ;;
6822   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6823     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6824     # commands to handle both 32-bit and 64-bit objects.  These flags are
6825     # harmless if we're using GNU nm or ar.
6826     extra_arflags_for_target=" -X32_64"
6827     extra_nmflags_for_target=" -B -X32_64"
6828     ;;
6829   *-*-darwin[3-9]*)
6830     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6831     extra_ranlibflags_for_target=" -c"
6832     ;;
6833 esac
6834
6835 alphaieee_frag=/dev/null
6836 case $target in
6837   alpha*-*-*)
6838     # This just makes sure to use the -mieee option to build target libs.
6839     # This should probably be set individually by each library.
6840     alphaieee_frag="config/mt-alphaieee"
6841     ;;
6842 esac
6843
6844 # If --enable-target-optspace always use -Os instead of -O2 to build
6845 # the target libraries, similarly if it is not specified, use -Os
6846 # on selected platforms.
6847 ospace_frag=/dev/null
6848 case "${enable_target_optspace}:${target}" in
6849   yes:*)
6850     ospace_frag="config/mt-ospace"
6851     ;;
6852   :d30v-*)
6853     ospace_frag="config/mt-d30v"
6854     ;;
6855   :m32r-* | :d10v-* | :fr30-*)
6856     ospace_frag="config/mt-ospace"
6857     ;;
6858   no:* | :*)
6859     ;;
6860   *)
6861     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6862     ;;
6863 esac
6864
6865 # Default to using --with-stabs for certain targets.
6866 if test x${with_stabs} = x ; then
6867   case "${target}" in
6868   mips*-*-irix[56]*)
6869     ;;
6870   mips*-*-* | alpha*-*-osf*)
6871     with_stabs=yes;
6872     extra_host_args="${extra_host_args} --with-stabs"
6873     ;;
6874   esac
6875 fi
6876
6877 # Some systems (e.g., one of the i386-aix systems the gas testers are
6878 # using) don't handle "\$" correctly, so don't use it here.
6879 tooldir='${exec_prefix}'/${target_noncanonical}
6880 build_tooldir=${tooldir}
6881
6882 # Create a .gdbinit file which runs the one in srcdir
6883 # and tells GDB to look there for source files.
6884
6885 if test -r ${srcdir}/.gdbinit ; then
6886   case ${srcdir} in
6887     .) ;;
6888     *) cat > ./.gdbinit <<EOF
6889 # ${NO_EDIT}
6890 dir ${srcdir}
6891 dir .
6892 source ${srcdir}/.gdbinit
6893 EOF
6894     ;;
6895   esac
6896 fi
6897
6898 # Make sure that the compiler is able to generate an executable.  If it
6899 # can't, we are probably in trouble.  We don't care whether we can run the
6900 # executable--we might be using a cross compiler--we only care whether it
6901 # can be created.  At this point the main configure script has set CC.
6902 we_are_ok=no
6903 echo "int main () { return 0; }" > conftest.c
6904 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6905 if test $? = 0 ; then
6906   if test -s conftest || test -s conftest.exe ; then
6907     we_are_ok=yes
6908   fi
6909 fi
6910 case $we_are_ok in
6911   no)
6912     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6913     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6914     rm -f conftest*
6915     exit 1
6916     ;;
6917 esac
6918 rm -f conftest*
6919
6920 # Decide which environment variable is used to find dynamic libraries.
6921 case "${host}" in
6922   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6923   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6924   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6925   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6926 esac
6927
6928 # On systems where the dynamic library environment variable is PATH,
6929 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6930 # built executables to PATH.
6931 if test "$RPATH_ENVVAR" = PATH; then
6932   GCC_SHLIB_SUBDIR=/shlib
6933 else
6934   GCC_SHLIB_SUBDIR=
6935 fi
6936
6937 # Record target_configdirs and the configure arguments for target and
6938 # build configuration in Makefile.
6939 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6940 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6941
6942 # If we are building libgomp, bootstrap it.
6943 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6944   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6945 fi
6946
6947 # Determine whether gdb needs tk/tcl or not.
6948 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6949 # and in that case we want gdb to be built without tk.  Ugh!
6950 # In fact I believe gdb is the *only* package directly dependent on tk,
6951 # so we should be able to put the 'maybe's in unconditionally and
6952 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6953 # 100% sure that that's safe though.
6954
6955 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6956 case "$enable_gdbtk" in
6957   no)
6958     GDB_TK="" ;;
6959   yes)
6960     GDB_TK="${gdb_tk}" ;;
6961   *)
6962     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6963     # distro.  Eventually someone will fix this and move Insight, nee
6964     # gdbtk to a separate directory.
6965     if test -d ${srcdir}/gdb/gdbtk ; then
6966       GDB_TK="${gdb_tk}"
6967     else
6968       GDB_TK=""
6969     fi
6970     ;;
6971 esac
6972 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6973 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6974
6975 # Strip out unwanted targets.
6976
6977 # While at that, we remove Makefiles if we were started for recursive
6978 # configuration, so that the top-level Makefile reconfigures them,
6979 # like we used to do when configure itself was recursive.
6980
6981 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6982 # but now we're fixing up the Makefile ourselves with the additional
6983 # commands passed to AC_CONFIG_FILES.  Use separate variables
6984 # extrasub-{build,host,target} not because there is any reason to split
6985 # the substitutions up that way, but only to remain below the limit of
6986 # 99 commands in a script, for HP-UX sed.
6987 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6988
6989 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6990   yes:yes:*\ gold\ *:*,c++,*) ;;
6991   yes:yes:*\ gold\ *:*)
6992     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6993     ;;
6994 esac
6995
6996 # Adjust the toplevel makefile according to whether bootstrap was selected.
6997 case $enable_bootstrap in
6998   yes)
6999     bootstrap_suffix=bootstrap
7000     BUILD_CONFIG=bootstrap-debug
7001     ;;
7002   no)
7003     bootstrap_suffix=no-bootstrap
7004     BUILD_CONFIG=
7005     ;;
7006 esac
7007
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7009 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7010
7011
7012 # Check whether --with-build-config was given.
7013 if test "${with_build_config+set}" = set; then :
7014   withval=$with_build_config; case $with_build_config in
7015    yes) with_build_config= ;;
7016    no) with_build_config= BUILD_CONFIG= ;;
7017    esac
7018 fi
7019
7020
7021 if test "x${with_build_config}" != x; then
7022   BUILD_CONFIG=$with_build_config
7023 else
7024   case $BUILD_CONFIG in
7025   bootstrap-debug)
7026     if echo "int f (void) { return 0; }" > conftest.c &&
7027        ${CC} -c conftest.c &&
7028        mv conftest.o conftest.o.g0 &&
7029        ${CC} -c -g conftest.c &&
7030        mv conftest.o conftest.o.g &&
7031        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7032       :
7033     else
7034       BUILD_CONFIG=
7035     fi
7036     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7037     ;;
7038   esac
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7041 $as_echo "$BUILD_CONFIG" >&6; }
7042
7043
7044 extrasub_build=
7045 for module in ${build_configdirs} ; do
7046   if test -z "${no_recursion}" \
7047      && test -f ${build_subdir}/${module}/Makefile; then
7048     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7049     rm -f ${build_subdir}/${module}/Makefile
7050   fi
7051   extrasub_build="$extrasub_build
7052 /^@if build-$module\$/d
7053 /^@endif build-$module\$/d
7054 /^@if build-$module-$bootstrap_suffix\$/d
7055 /^@endif build-$module-$bootstrap_suffix\$/d"
7056 done
7057 extrasub_host=
7058 for module in ${configdirs} ; do
7059   if test -z "${no_recursion}"; then
7060     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7061       if test -f ${file}; then
7062         echo 1>&2 "*** removing ${file} to force reconfigure"
7063         rm -f ${file}
7064       fi
7065     done
7066   fi
7067   extrasub_host="$extrasub_host
7068 /^@if $module\$/d
7069 /^@endif $module\$/d
7070 /^@if $module-$bootstrap_suffix\$/d
7071 /^@endif $module-$bootstrap_suffix\$/d"
7072 done
7073 extrasub_target=
7074 for module in ${target_configdirs} ; do
7075   if test -z "${no_recursion}" \
7076      && test -f ${target_subdir}/${module}/Makefile; then
7077     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7078     rm -f ${target_subdir}/${module}/Makefile
7079   fi
7080
7081   # We only bootstrap target libraries listed in bootstrap_target_libs.
7082   case $bootstrap_target_libs in
7083     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7084     *) target_bootstrap_suffix=no-bootstrap ;;
7085   esac
7086
7087   extrasub_target="$extrasub_target
7088 /^@if target-$module\$/d
7089 /^@endif target-$module\$/d
7090 /^@if target-$module-$target_bootstrap_suffix\$/d
7091 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7092 done
7093
7094 # Do the final fixup along with target modules.
7095 extrasub_target="$extrasub_target
7096 /^@if /,/^@endif /d"
7097
7098 # Create the serialization dependencies.  This uses a temporary file.
7099
7100 # Check whether --enable-serial-configure was given.
7101 if test "${enable_serial_configure+set}" = set; then :
7102   enableval=$enable_serial_configure;
7103 fi
7104
7105
7106 case ${enable_serial_configure} in
7107   yes)
7108     enable_serial_build_configure=yes
7109     enable_serial_host_configure=yes
7110     enable_serial_target_configure=yes
7111     ;;
7112 esac
7113
7114 # These force 'configure's to be done one at a time, to avoid problems
7115 # with contention over a shared config.cache.
7116 rm -f serdep.tmp
7117 echo '# serdep.tmp' > serdep.tmp
7118 olditem=
7119 test "x${enable_serial_build_configure}" = xyes &&
7120 for item in ${build_configdirs} ; do
7121   case ${olditem} in
7122     "") ;;
7123     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7124   esac
7125   olditem=${item}
7126 done
7127 olditem=
7128 test "x${enable_serial_host_configure}" = xyes &&
7129 for item in ${configdirs} ; do
7130   case ${olditem} in
7131     "") ;;
7132     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7133   esac
7134   olditem=${item}
7135 done
7136 olditem=
7137 test "x${enable_serial_target_configure}" = xyes &&
7138 for item in ${target_configdirs} ; do
7139   case ${olditem} in
7140     "") ;;
7141     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7142   esac
7143   olditem=${item}
7144 done
7145 serialization_dependencies=serdep.tmp
7146
7147
7148 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7149 # target, nonopt, and variable assignments.  These are the ones we
7150 # might not want to pass down to subconfigures.  The exception being
7151 # --cache-file=/dev/null, which is used to turn off the use of cache
7152 # files altogether, and which should be passed on to subconfigures.
7153 # Also strip program-prefix, program-suffix, and program-transform-name,
7154 # so that we can pass down a consistent program-transform-name.
7155 baseargs=
7156 tbaseargs=
7157 keep_next=no
7158 skip_next=no
7159 eval "set -- $ac_configure_args"
7160 for ac_arg
7161 do
7162   if test X"$skip_next" = X"yes"; then
7163     skip_next=no
7164     continue
7165   fi
7166   if test X"$keep_next" = X"yes"; then
7167     case $ac_arg in
7168       *\'*)
7169         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7170     esac
7171     baseargs="$baseargs '$ac_arg'"
7172     tbaseargs="$tbaseargs '$ac_arg'"
7173     keep_next=no
7174     continue
7175   fi
7176
7177   # Handle separated arguments.  Based on the logic generated by
7178   # autoconf 2.59.
7179   case $ac_arg in
7180     *=* | --config-cache | -C | -disable-* | --disable-* \
7181       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7182       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7183       | -with-* | --with-* | -without-* | --without-* | --x)
7184       separate_arg=no
7185       ;;
7186     -*)
7187       separate_arg=yes
7188       ;;
7189     *)
7190       separate_arg=no
7191       ;;
7192   esac
7193
7194   skip_targ=no
7195   case $ac_arg in
7196
7197   --with-* | --without-*)
7198     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7199
7200     case $libopt in
7201     *[-_]include)
7202       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7203       ;;
7204     *[-_]lib)
7205       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7206       ;;
7207     *)
7208       lib=$libopt
7209       ;;
7210     esac
7211
7212
7213     case $lib in
7214     mpc | mpfr | gmp | ppl | cloog)
7215       # If we're processing --with-$lib, --with-$lib-include or
7216       # --with-$lib-lib, for one of the libs above, and target is
7217       # different from host, don't pass the current argument to any
7218       # target library's configure.
7219       if test x$is_cross_compiler = xyes; then
7220         skip_targ=yes
7221       fi
7222       ;;
7223     esac
7224     ;;
7225   esac
7226
7227   case "$ac_arg" in
7228     --cache-file=/dev/null | \
7229     -cache-file=/dev/null )
7230       # Handled here to avoid the test to skip args below.
7231       baseargs="$baseargs '$ac_arg'"
7232       tbaseargs="$tbaseargs '$ac_arg'"
7233       # Assert: $separate_arg should always be no.
7234       keep_next=$separate_arg
7235       ;;
7236     --no*)
7237       continue
7238       ;;
7239     --c* | \
7240     --sr* | \
7241     --ho* | \
7242     --bu* | \
7243     --t* | \
7244     --program-* | \
7245     -cache_file* | \
7246     -srcdir* | \
7247     -host* | \
7248     -build* | \
7249     -target* | \
7250     -program-prefix* | \
7251     -program-suffix* | \
7252     -program-transform-name* )
7253       skip_next=$separate_arg
7254       continue
7255       ;;
7256     -*)
7257       # An option.  Add it.
7258       case $ac_arg in
7259         *\'*)
7260           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7261       esac
7262       baseargs="$baseargs '$ac_arg'"
7263       if test X"$skip_targ" = Xno; then
7264         tbaseargs="$tbaseargs '$ac_arg'"
7265       fi
7266       keep_next=$separate_arg
7267       ;;
7268     *)
7269       # Either a variable assignment, or a nonopt (triplet).  Don't
7270       # pass it down; let the Makefile handle this.
7271       continue
7272       ;;
7273   esac
7274 done
7275 # Remove the initial space we just introduced and, as these will be
7276 # expanded by make, quote '$'.
7277 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7278
7279 # Add in --program-transform-name, after --program-prefix and
7280 # --program-suffix have been applied to it.  Autoconf has already
7281 # doubled dollar signs and backslashes in program_transform_name; we want
7282 # the backslashes un-doubled, and then the entire thing wrapped in single
7283 # quotes, because this will be expanded first by make and then by the shell.
7284 # Also, because we want to override the logic in subdir configure scripts to
7285 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7286 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7287 ${program_transform_name}
7288 EOF_SED
7289 gcc_transform_name=`cat conftestsed.out`
7290 rm -f conftestsed.out
7291 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7292 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7293 if test "$silent" = yes; then
7294   baseargs="$baseargs --silent"
7295   tbaseargs="$tbaseargs --silent"
7296 fi
7297 baseargs="$baseargs --disable-option-checking"
7298 tbaseargs="$tbaseargs --disable-option-checking"
7299
7300 # Record and document user additions to sub configure arguments.
7301
7302
7303
7304
7305 # For the build-side libraries, we just need to pretend we're native,
7306 # and not use the same cache file.  Multilibs are neither needed nor
7307 # desired.
7308 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7309
7310 # For host modules, accept cache file option, or specification as blank.
7311 case "${cache_file}" in
7312 "") # empty
7313   cache_file_option="" ;;
7314 /* | [A-Za-z]:[\\/]* ) # absolute path
7315   cache_file_option="--cache-file=${cache_file}" ;;
7316 *) # relative path
7317   cache_file_option="--cache-file=../${cache_file}" ;;
7318 esac
7319
7320 # Host dirs don't like to share a cache file either, horribly enough.
7321 # This seems to be due to autoconf 2.5x stupidity.
7322 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7323
7324 target_configargs="$target_configargs ${tbaseargs}"
7325
7326 # Passing a --with-cross-host argument lets the target libraries know
7327 # whether they are being built with a cross-compiler or being built
7328 # native.  However, it would be better to use other mechanisms to make the
7329 # sorts of decisions they want to make on this basis.  Please consider
7330 # this option to be deprecated.  FIXME.
7331 if test x${is_cross_compiler} = xyes ; then
7332   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7333 fi
7334
7335 # Default to --enable-multilib.
7336 if test x${enable_multilib} = x ; then
7337   target_configargs="--enable-multilib ${target_configargs}"
7338 fi
7339
7340 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7341 # changed from the earlier setting of with_newlib.
7342 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7343   target_configargs="--with-newlib ${target_configargs}"
7344 fi
7345
7346 # Different target subdirs use different values of certain variables
7347 # (notably CXX).  Worse, multilibs use *lots* of different values.
7348 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7349 # it doesn't automatically accept command-line overrides of them.
7350 # This means it's not safe for target subdirs to share a cache file,
7351 # which is disgusting, but there you have it.  Hopefully this can be
7352 # fixed in future.  It's still worthwhile to use a cache file for each
7353 # directory.  I think.
7354
7355 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7356 # We need to pass --target, as newer autoconf's requires consistency
7357 # for target_alias and gcc doesn't manage it consistently.
7358 target_configargs="--cache-file=./config.cache ${target_configargs}"
7359
7360 FLAGS_FOR_TARGET=
7361 case " $target_configdirs " in
7362  *" newlib "*)
7363   case " $target_configargs " in
7364   *" --with-newlib "*)
7365    case "$target" in
7366     *-cygwin*)
7367       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'
7368       ;;
7369    esac
7370
7371    # If we're not building GCC, don't discard standard headers.
7372    if test -d ${srcdir}/gcc; then
7373      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7374
7375      if test "${build}" != "${host}"; then
7376        # On Canadian crosses, CC_FOR_TARGET will have already been set
7377        # by `configure', so we won't have an opportunity to add -Bgcc/
7378        # to it.  This is right: we don't want to search that directory
7379        # for binaries, but we want the header files in there, so add
7380        # them explicitly.
7381        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7382
7383        # Someone might think of using the pre-installed headers on
7384        # Canadian crosses, in case the installed compiler is not fully
7385        # compatible with the compiler being built.  In this case, it
7386        # would be better to flag an error than risking having
7387        # incompatible object files being constructed.  We can't
7388        # guarantee that an error will be flagged, but let's hope the
7389        # compiler will do it, when presented with incompatible header
7390        # files.
7391      fi
7392    fi
7393
7394    case "${target}-${is_cross_compiler}" in
7395    i[3456789]86-*-linux*-no)
7396       # Here host == target, so we don't need to build gcc,
7397       # so we don't want to discard standard headers.
7398       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7399       ;;
7400    *)
7401       # If we're building newlib, use its generic headers last, but search
7402       # for any libc-related directories first (so make it the last -B
7403       # switch).
7404       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7405
7406       # If we're building libgloss, find the startup file, simulator library
7407       # and linker script.
7408       case " $target_configdirs " in
7409         *" libgloss "*)
7410         # Look for startup file, simulator library and maybe linker script.
7411         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7412         # Look for libnosys.a in case the target needs it.
7413         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7414         # Most targets have the linker script in the source directory.
7415         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7416         ;;
7417       esac
7418       ;;
7419    esac
7420    ;;
7421   esac
7422   ;;
7423 esac
7424
7425 case "$target" in
7426   x86_64-*mingw* | *-w64-mingw*)
7427   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7428   # however, use a symlink named 'mingw' in ${prefix} .
7429     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7430     ;;
7431   *-mingw*)
7432   # MinGW can't be handled as Cygwin above since it does not use newlib.
7433     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'
7434     ;;
7435 esac
7436
7437 # Allow the user to override the flags for
7438 # our build compiler if desired.
7439 if test x"${build}" = x"${host}" ; then
7440   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7441   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7442   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7443 fi
7444
7445 # On Canadian crosses, we'll be searching the right directories for
7446 # the previously-installed cross compiler, so don't bother to add
7447 # flags for directories within the install tree of the compiler
7448 # being built; programs in there won't even run.
7449 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7450   # Search for pre-installed headers if nothing else fits.
7451   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7452 fi
7453
7454 if test "x${use_gnu_ld}" = x &&
7455    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7456   # Arrange for us to find uninstalled linker scripts.
7457   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7458 fi
7459
7460 # Search for other target-specific linker scripts and such.
7461 case "${target}" in
7462   mep*)
7463     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7464     ;;
7465 esac
7466
7467 # Makefile fragments.
7468 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7469 do
7470   eval fragval=\$$frag
7471   if test $fragval != /dev/null; then
7472     eval $frag=${srcdir}/$fragval
7473   fi
7474 done
7475
7476
7477
7478
7479
7480 # Miscellanea: directories, flags, etc.
7481
7482
7483
7484
7485
7486
7487
7488
7489 # Build module lists & subconfigure args.
7490
7491
7492
7493 # Host module lists & subconfigure args.
7494
7495
7496
7497
7498 # Target module lists & subconfigure args.
7499
7500
7501
7502 # Build tools.
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 # Generate default definitions for YACC, M4, LEX and other programs that run
7521 # on the build machine.  These are used if the Makefile can't locate these
7522 # programs in objdir.
7523 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7524
7525 for ac_prog in 'bison -y' byacc yacc
7526 do
7527   # Extract the first word of "$ac_prog", so it can be a program name with args.
7528 set dummy $ac_prog; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if test "${ac_cv_prog_YACC+set}" = set; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   if test -n "$YACC"; then
7535   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7544     ac_cv_prog_YACC="$ac_prog"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 YACC=$ac_cv_prog_YACC
7555 if test -n "$YACC"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7557 $as_echo "$YACC" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564   test -n "$YACC" && break
7565 done
7566 test -n "$YACC" || YACC="$MISSING bison -y"
7567
7568 case " $build_configdirs " in
7569   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7570 esac
7571
7572 for ac_prog in bison
7573 do
7574   # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_BISON+set}" = set; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$BISON"; then
7582   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_prog_BISON="$ac_prog"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 BISON=$ac_cv_prog_BISON
7602 if test -n "$BISON"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7604 $as_echo "$BISON" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611   test -n "$BISON" && break
7612 done
7613 test -n "$BISON" || BISON="$MISSING bison"
7614
7615 case " $build_configdirs " in
7616   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7617 esac
7618
7619 for ac_prog in gm4 gnum4 m4
7620 do
7621   # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_M4+set}" = set; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$M4"; then
7629   ac_cv_prog_M4="$M4" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638     ac_cv_prog_M4="$ac_prog"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 M4=$ac_cv_prog_M4
7649 if test -n "$M4"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7651 $as_echo "$M4" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658   test -n "$M4" && break
7659 done
7660 test -n "$M4" || M4="$MISSING m4"
7661
7662 case " $build_configdirs " in
7663   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7664 esac
7665
7666 for ac_prog in flex lex
7667 do
7668   # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_LEX+set}" = set; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$LEX"; then
7676   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_prog_LEX="$ac_prog"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 LEX=$ac_cv_prog_LEX
7696 if test -n "$LEX"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7698 $as_echo "$LEX" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704
7705   test -n "$LEX" && break
7706 done
7707 test -n "$LEX" || LEX="$MISSING flex"
7708
7709 case " $build_configdirs " in
7710   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7711   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7712 esac
7713
7714 for ac_prog in flex
7715 do
7716   # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if test "${ac_cv_prog_FLEX+set}" = set; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   if test -n "$FLEX"; then
7724   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731     for ac_exec_ext in '' $ac_executable_extensions; do
7732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733     ac_cv_prog_FLEX="$ac_prog"
7734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738   done
7739 IFS=$as_save_IFS
7740
7741 fi
7742 fi
7743 FLEX=$ac_cv_prog_FLEX
7744 if test -n "$FLEX"; then
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7746 $as_echo "$FLEX" >&6; }
7747 else
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753   test -n "$FLEX" && break
7754 done
7755 test -n "$FLEX" || FLEX="$MISSING flex"
7756
7757 case " $build_configdirs " in
7758   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7759 esac
7760
7761 for ac_prog in makeinfo
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$MAKEINFO"; then
7771   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_prog_MAKEINFO="$ac_prog"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 MAKEINFO=$ac_cv_prog_MAKEINFO
7791 if test -n "$MAKEINFO"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7793 $as_echo "$MAKEINFO" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800   test -n "$MAKEINFO" && break
7801 done
7802 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7803
7804 case " $build_configdirs " in
7805   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7806   *)
7807
7808     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7809     # higher, else we use the "missing" dummy.
7810     if ${MAKEINFO} --version \
7811        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7812       :
7813     else
7814       MAKEINFO="$MISSING makeinfo"
7815     fi
7816     ;;
7817
7818 esac
7819
7820 # FIXME: expect and dejagnu may become build tools?
7821
7822 for ac_prog in expect
7823 do
7824   # Extract the first word of "$ac_prog", so it can be a program name with args.
7825 set dummy $ac_prog; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   if test -n "$EXPECT"; then
7832   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839     for ac_exec_ext in '' $ac_executable_extensions; do
7840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841     ac_cv_prog_EXPECT="$ac_prog"
7842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846   done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 EXPECT=$ac_cv_prog_EXPECT
7852 if test -n "$EXPECT"; then
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7854 $as_echo "$EXPECT" >&6; }
7855 else
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860
7861   test -n "$EXPECT" && break
7862 done
7863 test -n "$EXPECT" || EXPECT="expect"
7864
7865 case " $configdirs " in
7866   *" expect "*)
7867     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7868     ;;
7869 esac
7870
7871 for ac_prog in runtest
7872 do
7873   # Extract the first word of "$ac_prog", so it can be a program name with args.
7874 set dummy $ac_prog; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   if test -n "$RUNTEST"; then
7881   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886   IFS=$as_save_IFS
7887   test -z "$as_dir" && as_dir=.
7888     for ac_exec_ext in '' $ac_executable_extensions; do
7889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7890     ac_cv_prog_RUNTEST="$ac_prog"
7891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892     break 2
7893   fi
7894 done
7895   done
7896 IFS=$as_save_IFS
7897
7898 fi
7899 fi
7900 RUNTEST=$ac_cv_prog_RUNTEST
7901 if test -n "$RUNTEST"; then
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7903 $as_echo "$RUNTEST" >&6; }
7904 else
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908
7909
7910   test -n "$RUNTEST" && break
7911 done
7912 test -n "$RUNTEST" || RUNTEST="runtest"
7913
7914 case " $configdirs " in
7915   *" dejagnu "*)
7916     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7917     ;;
7918 esac
7919
7920
7921 # Host tools.
7922 ncn_tool_prefix=
7923 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7924 ncn_target_tool_prefix=
7925 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7926
7927
7928
7929 if test -n "$AR"; then
7930   ac_cv_prog_AR=$AR
7931 elif test -n "$ac_cv_prog_AR"; then
7932   AR=$ac_cv_prog_AR
7933 fi
7934
7935 if test -n "$ac_cv_prog_AR"; then
7936   for ncn_progname in ar; do
7937     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7938 set dummy ${ncn_progname}; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_AR+set}" = set; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$AR"; then
7945   ac_cv_prog_AR="$AR" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954     ac_cv_prog_AR="${ncn_progname}"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 AR=$ac_cv_prog_AR
7965 if test -n "$AR"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7967 $as_echo "$AR" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974   done
7975 fi
7976
7977 for ncn_progname in ar; do
7978   if test -n "$ncn_tool_prefix"; then
7979     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7980 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_AR+set}" = set; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   if test -n "$AR"; then
7987   ac_cv_prog_AR="$AR" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994     for ac_exec_ext in '' $ac_executable_extensions; do
7995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001   done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 AR=$ac_cv_prog_AR
8007 if test -n "$AR"; then
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009 $as_echo "$AR" >&6; }
8010 else
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016   fi
8017   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8018     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8019 set dummy ${ncn_progname}; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_AR+set}" = set; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   if test -n "$AR"; then
8026   ac_cv_prog_AR="$AR" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033     for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_prog_AR="${ncn_progname}"
8036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040   done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 AR=$ac_cv_prog_AR
8046 if test -n "$AR"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048 $as_echo "$AR" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055   fi
8056   test -n "$ac_cv_prog_AR" && break
8057 done
8058
8059 if test -z "$ac_cv_prog_AR" ; then
8060   set dummy ar
8061   if test $build = $host ; then
8062     AR="$2"
8063   else
8064     AR="${ncn_tool_prefix}$2"
8065   fi
8066 fi
8067
8068
8069
8070 if test -n "$AS"; then
8071   ac_cv_prog_AS=$AS
8072 elif test -n "$ac_cv_prog_AS"; then
8073   AS=$ac_cv_prog_AS
8074 fi
8075
8076 if test -n "$ac_cv_prog_AS"; then
8077   for ncn_progname in as; do
8078     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8079 set dummy ${ncn_progname}; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if test "${ac_cv_prog_AS+set}" = set; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   if test -n "$AS"; then
8086   ac_cv_prog_AS="$AS" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091   IFS=$as_save_IFS
8092   test -z "$as_dir" && as_dir=.
8093     for ac_exec_ext in '' $ac_executable_extensions; do
8094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8095     ac_cv_prog_AS="${ncn_progname}"
8096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097     break 2
8098   fi
8099 done
8100   done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 AS=$ac_cv_prog_AS
8106 if test -n "$AS"; then
8107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8108 $as_echo "$AS" >&6; }
8109 else
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8112 fi
8113
8114
8115   done
8116 fi
8117
8118 for ncn_progname in as; do
8119   if test -n "$ncn_tool_prefix"; then
8120     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8121 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if test "${ac_cv_prog_AS+set}" = set; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   if test -n "$AS"; then
8128   ac_cv_prog_AS="$AS" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   test -z "$as_dir" && as_dir=.
8135     for ac_exec_ext in '' $ac_executable_extensions; do
8136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139     break 2
8140   fi
8141 done
8142   done
8143 IFS=$as_save_IFS
8144
8145 fi
8146 fi
8147 AS=$ac_cv_prog_AS
8148 if test -n "$AS"; then
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150 $as_echo "$AS" >&6; }
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156
8157   fi
8158   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8159     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8160 set dummy ${ncn_progname}; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_AS+set}" = set; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   if test -n "$AS"; then
8167   ac_cv_prog_AS="$AS" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172   IFS=$as_save_IFS
8173   test -z "$as_dir" && as_dir=.
8174     for ac_exec_ext in '' $ac_executable_extensions; do
8175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176     ac_cv_prog_AS="${ncn_progname}"
8177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178     break 2
8179   fi
8180 done
8181   done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 AS=$ac_cv_prog_AS
8187 if test -n "$AS"; then
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8189 $as_echo "$AS" >&6; }
8190 else
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196   fi
8197   test -n "$ac_cv_prog_AS" && break
8198 done
8199
8200 if test -z "$ac_cv_prog_AS" ; then
8201   set dummy as
8202   if test $build = $host ; then
8203     AS="$2"
8204   else
8205     AS="${ncn_tool_prefix}$2"
8206   fi
8207 fi
8208
8209
8210
8211 if test -n "$DLLTOOL"; then
8212   ac_cv_prog_DLLTOOL=$DLLTOOL
8213 elif test -n "$ac_cv_prog_DLLTOOL"; then
8214   DLLTOOL=$ac_cv_prog_DLLTOOL
8215 fi
8216
8217 if test -n "$ac_cv_prog_DLLTOOL"; then
8218   for ncn_progname in dlltool; do
8219     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8220 set dummy ${ncn_progname}; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   if test -n "$DLLTOOL"; then
8227   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234     for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_prog_DLLTOOL="${ncn_progname}"
8237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241   done
8242 IFS=$as_save_IFS
8243
8244 fi
8245 fi
8246 DLLTOOL=$ac_cv_prog_DLLTOOL
8247 if test -n "$DLLTOOL"; then
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8249 $as_echo "$DLLTOOL" >&6; }
8250 else
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 fi
8254
8255
8256   done
8257 fi
8258
8259 for ncn_progname in dlltool; do
8260   if test -n "$ncn_tool_prefix"; then
8261     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8262 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   if test -n "$DLLTOOL"; then
8269   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274   IFS=$as_save_IFS
8275   test -z "$as_dir" && as_dir=.
8276     for ac_exec_ext in '' $ac_executable_extensions; do
8277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280     break 2
8281   fi
8282 done
8283   done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 DLLTOOL=$ac_cv_prog_DLLTOOL
8289 if test -n "$DLLTOOL"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291 $as_echo "$DLLTOOL" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298   fi
8299   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8300     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301 set dummy ${ncn_progname}; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   if test -n "$DLLTOOL"; then
8308   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315     for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_DLLTOOL="${ncn_progname}"
8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322   done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 DLLTOOL=$ac_cv_prog_DLLTOOL
8328 if test -n "$DLLTOOL"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8330 $as_echo "$DLLTOOL" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336
8337   fi
8338   test -n "$ac_cv_prog_DLLTOOL" && break
8339 done
8340
8341 if test -z "$ac_cv_prog_DLLTOOL" ; then
8342   set dummy dlltool
8343   if test $build = $host ; then
8344     DLLTOOL="$2"
8345   else
8346     DLLTOOL="${ncn_tool_prefix}$2"
8347   fi
8348 fi
8349
8350
8351
8352 if test -n "$LD"; then
8353   ac_cv_prog_LD=$LD
8354 elif test -n "$ac_cv_prog_LD"; then
8355   LD=$ac_cv_prog_LD
8356 fi
8357
8358 if test -n "$ac_cv_prog_LD"; then
8359   for ncn_progname in ld; do
8360     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8361 set dummy ${ncn_progname}; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_prog_LD+set}" = set; then :
8365   $as_echo_n "(cached) " >&6
8366 else
8367   if test -n "$LD"; then
8368   ac_cv_prog_LD="$LD" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375     for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_prog_LD="${ncn_progname}"
8378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382   done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 LD=$ac_cv_prog_LD
8388 if test -n "$LD"; then
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8390 $as_echo "$LD" >&6; }
8391 else
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397   done
8398 fi
8399
8400 for ncn_progname in ld; do
8401   if test -n "$ncn_tool_prefix"; then
8402     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8403 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_LD+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   if test -n "$LD"; then
8410   ac_cv_prog_LD="$LD" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415   IFS=$as_save_IFS
8416   test -z "$as_dir" && as_dir=.
8417     for ac_exec_ext in '' $ac_executable_extensions; do
8418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421     break 2
8422   fi
8423 done
8424   done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 LD=$ac_cv_prog_LD
8430 if test -n "$LD"; then
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432 $as_echo "$LD" >&6; }
8433 else
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439   fi
8440   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8441     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8442 set dummy ${ncn_progname}; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if test "${ac_cv_prog_LD+set}" = set; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   if test -n "$LD"; then
8449   ac_cv_prog_LD="$LD" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456     for ac_exec_ext in '' $ac_executable_extensions; do
8457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458     ac_cv_prog_LD="${ncn_progname}"
8459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463   done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 LD=$ac_cv_prog_LD
8469 if test -n "$LD"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8471 $as_echo "$LD" >&6; }
8472 else
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8475 fi
8476
8477
8478   fi
8479   test -n "$ac_cv_prog_LD" && break
8480 done
8481
8482 if test -z "$ac_cv_prog_LD" ; then
8483   set dummy ld
8484   if test $build = $host ; then
8485     LD="$2"
8486   else
8487     LD="${ncn_tool_prefix}$2"
8488   fi
8489 fi
8490
8491
8492
8493 if test -n "$LIPO"; then
8494   ac_cv_prog_LIPO=$LIPO
8495 elif test -n "$ac_cv_prog_LIPO"; then
8496   LIPO=$ac_cv_prog_LIPO
8497 fi
8498
8499 if test -n "$ac_cv_prog_LIPO"; then
8500   for ncn_progname in lipo; do
8501     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8502 set dummy ${ncn_progname}; ac_word=$2
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504 $as_echo_n "checking for $ac_word... " >&6; }
8505 if test "${ac_cv_prog_LIPO+set}" = set; then :
8506   $as_echo_n "(cached) " >&6
8507 else
8508   if test -n "$LIPO"; then
8509   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8510 else
8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $PATH
8513 do
8514   IFS=$as_save_IFS
8515   test -z "$as_dir" && as_dir=.
8516     for ac_exec_ext in '' $ac_executable_extensions; do
8517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8518     ac_cv_prog_LIPO="${ncn_progname}"
8519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520     break 2
8521   fi
8522 done
8523   done
8524 IFS=$as_save_IFS
8525
8526 fi
8527 fi
8528 LIPO=$ac_cv_prog_LIPO
8529 if test -n "$LIPO"; then
8530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8531 $as_echo "$LIPO" >&6; }
8532 else
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 $as_echo "no" >&6; }
8535 fi
8536
8537
8538   done
8539 fi
8540
8541 for ncn_progname in lipo; do
8542   if test -n "$ncn_tool_prefix"; then
8543     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8544 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_LIPO+set}" = set; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   if test -n "$LIPO"; then
8551   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556   IFS=$as_save_IFS
8557   test -z "$as_dir" && as_dir=.
8558     for ac_exec_ext in '' $ac_executable_extensions; do
8559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562     break 2
8563   fi
8564 done
8565   done
8566 IFS=$as_save_IFS
8567
8568 fi
8569 fi
8570 LIPO=$ac_cv_prog_LIPO
8571 if test -n "$LIPO"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573 $as_echo "$LIPO" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580   fi
8581   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8582     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8583 set dummy ${ncn_progname}; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if test "${ac_cv_prog_LIPO+set}" = set; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   if test -n "$LIPO"; then
8590   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597     for ac_exec_ext in '' $ac_executable_extensions; do
8598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599     ac_cv_prog_LIPO="${ncn_progname}"
8600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604   done
8605 IFS=$as_save_IFS
8606
8607 fi
8608 fi
8609 LIPO=$ac_cv_prog_LIPO
8610 if test -n "$LIPO"; then
8611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8612 $as_echo "$LIPO" >&6; }
8613 else
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618
8619   fi
8620   test -n "$ac_cv_prog_LIPO" && break
8621 done
8622
8623 if test -z "$ac_cv_prog_LIPO" ; then
8624   set dummy lipo
8625   if test $build = $host ; then
8626     LIPO="$2"
8627   else
8628     LIPO="${ncn_tool_prefix}$2"
8629   fi
8630 fi
8631
8632
8633
8634 if test -n "$NM"; then
8635   ac_cv_prog_NM=$NM
8636 elif test -n "$ac_cv_prog_NM"; then
8637   NM=$ac_cv_prog_NM
8638 fi
8639
8640 if test -n "$ac_cv_prog_NM"; then
8641   for ncn_progname in nm; do
8642     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8643 set dummy ${ncn_progname}; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if test "${ac_cv_prog_NM+set}" = set; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   if test -n "$NM"; then
8650   ac_cv_prog_NM="$NM" # Let the user override the test.
8651 else
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8654 do
8655   IFS=$as_save_IFS
8656   test -z "$as_dir" && as_dir=.
8657     for ac_exec_ext in '' $ac_executable_extensions; do
8658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659     ac_cv_prog_NM="${ncn_progname}"
8660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661     break 2
8662   fi
8663 done
8664   done
8665 IFS=$as_save_IFS
8666
8667 fi
8668 fi
8669 NM=$ac_cv_prog_NM
8670 if test -n "$NM"; then
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8672 $as_echo "$NM" >&6; }
8673 else
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8676 fi
8677
8678
8679   done
8680 fi
8681
8682 for ncn_progname in nm; do
8683   if test -n "$ncn_tool_prefix"; then
8684     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8685 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_NM+set}" = set; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   if test -n "$NM"; then
8692   ac_cv_prog_NM="$NM" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697   IFS=$as_save_IFS
8698   test -z "$as_dir" && as_dir=.
8699     for ac_exec_ext in '' $ac_executable_extensions; do
8700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703     break 2
8704   fi
8705 done
8706   done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 NM=$ac_cv_prog_NM
8712 if test -n "$NM"; then
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714 $as_echo "$NM" >&6; }
8715 else
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721   fi
8722   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8723     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8724 set dummy ${ncn_progname}; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if test "${ac_cv_prog_NM+set}" = set; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   if test -n "$NM"; then
8731   ac_cv_prog_NM="$NM" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736   IFS=$as_save_IFS
8737   test -z "$as_dir" && as_dir=.
8738     for ac_exec_ext in '' $ac_executable_extensions; do
8739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8740     ac_cv_prog_NM="${ncn_progname}"
8741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742     break 2
8743   fi
8744 done
8745   done
8746 IFS=$as_save_IFS
8747
8748 fi
8749 fi
8750 NM=$ac_cv_prog_NM
8751 if test -n "$NM"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8753 $as_echo "$NM" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758
8759
8760   fi
8761   test -n "$ac_cv_prog_NM" && break
8762 done
8763
8764 if test -z "$ac_cv_prog_NM" ; then
8765   set dummy nm
8766   if test $build = $host ; then
8767     NM="$2"
8768   else
8769     NM="${ncn_tool_prefix}$2"
8770   fi
8771 fi
8772
8773
8774
8775 if test -n "$RANLIB"; then
8776   ac_cv_prog_RANLIB=$RANLIB
8777 elif test -n "$ac_cv_prog_RANLIB"; then
8778   RANLIB=$ac_cv_prog_RANLIB
8779 fi
8780
8781 if test -n "$ac_cv_prog_RANLIB"; then
8782   for ncn_progname in ranlib; do
8783     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8784 set dummy ${ncn_progname}; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   if test -n "$RANLIB"; then
8791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796   IFS=$as_save_IFS
8797   test -z "$as_dir" && as_dir=.
8798     for ac_exec_ext in '' $ac_executable_extensions; do
8799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800     ac_cv_prog_RANLIB="${ncn_progname}"
8801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802     break 2
8803   fi
8804 done
8805   done
8806 IFS=$as_save_IFS
8807
8808 fi
8809 fi
8810 RANLIB=$ac_cv_prog_RANLIB
8811 if test -n "$RANLIB"; then
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8813 $as_echo "$RANLIB" >&6; }
8814 else
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8818
8819
8820   done
8821 fi
8822
8823 for ncn_progname in ranlib; do
8824   if test -n "$ncn_tool_prefix"; then
8825     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8826 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   if test -n "$RANLIB"; then
8833   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838   IFS=$as_save_IFS
8839   test -z "$as_dir" && as_dir=.
8840     for ac_exec_ext in '' $ac_executable_extensions; do
8841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844     break 2
8845   fi
8846 done
8847   done
8848 IFS=$as_save_IFS
8849
8850 fi
8851 fi
8852 RANLIB=$ac_cv_prog_RANLIB
8853 if test -n "$RANLIB"; then
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855 $as_echo "$RANLIB" >&6; }
8856 else
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8859 fi
8860
8861
8862   fi
8863   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8864     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8865 set dummy ${ncn_progname}; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   if test -n "$RANLIB"; then
8872   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877   IFS=$as_save_IFS
8878   test -z "$as_dir" && as_dir=.
8879     for ac_exec_ext in '' $ac_executable_extensions; do
8880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8881     ac_cv_prog_RANLIB="${ncn_progname}"
8882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883     break 2
8884   fi
8885 done
8886   done
8887 IFS=$as_save_IFS
8888
8889 fi
8890 fi
8891 RANLIB=$ac_cv_prog_RANLIB
8892 if test -n "$RANLIB"; then
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8894 $as_echo "$RANLIB" >&6; }
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900
8901   fi
8902   test -n "$ac_cv_prog_RANLIB" && break
8903 done
8904
8905 if test -z "$ac_cv_prog_RANLIB" ; then
8906   RANLIB="true"
8907 fi
8908
8909
8910
8911 if test -n "$STRIP"; then
8912   ac_cv_prog_STRIP=$STRIP
8913 elif test -n "$ac_cv_prog_STRIP"; then
8914   STRIP=$ac_cv_prog_STRIP
8915 fi
8916
8917 if test -n "$ac_cv_prog_STRIP"; then
8918   for ncn_progname in strip; do
8919     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_STRIP+set}" = set; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -n "$STRIP"; then
8927   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936     ac_cv_prog_STRIP="${ncn_progname}"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 STRIP=$ac_cv_prog_STRIP
8947 if test -n "$STRIP"; then
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8949 $as_echo "$STRIP" >&6; }
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955
8956   done
8957 fi
8958
8959 for ncn_progname in strip; do
8960   if test -n "$ncn_tool_prefix"; then
8961     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_STRIP+set}" = set; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   if test -n "$STRIP"; then
8969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974   IFS=$as_save_IFS
8975   test -z "$as_dir" && as_dir=.
8976     for ac_exec_ext in '' $ac_executable_extensions; do
8977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980     break 2
8981   fi
8982 done
8983   done
8984 IFS=$as_save_IFS
8985
8986 fi
8987 fi
8988 STRIP=$ac_cv_prog_STRIP
8989 if test -n "$STRIP"; then
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991 $as_echo "$STRIP" >&6; }
8992 else
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8995 fi
8996
8997
8998   fi
8999   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9000     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_prog_STRIP+set}" = set; then :
9005   $as_echo_n "(cached) " >&6
9006 else
9007   if test -n "$STRIP"; then
9008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013   IFS=$as_save_IFS
9014   test -z "$as_dir" && as_dir=.
9015     for ac_exec_ext in '' $ac_executable_extensions; do
9016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017     ac_cv_prog_STRIP="${ncn_progname}"
9018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019     break 2
9020   fi
9021 done
9022   done
9023 IFS=$as_save_IFS
9024
9025 fi
9026 fi
9027 STRIP=$ac_cv_prog_STRIP
9028 if test -n "$STRIP"; then
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9030 $as_echo "$STRIP" >&6; }
9031 else
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035
9036
9037   fi
9038   test -n "$ac_cv_prog_STRIP" && break
9039 done
9040
9041 if test -z "$ac_cv_prog_STRIP" ; then
9042   STRIP="true"
9043 fi
9044
9045
9046
9047 if test -n "$WINDRES"; then
9048   ac_cv_prog_WINDRES=$WINDRES
9049 elif test -n "$ac_cv_prog_WINDRES"; then
9050   WINDRES=$ac_cv_prog_WINDRES
9051 fi
9052
9053 if test -n "$ac_cv_prog_WINDRES"; then
9054   for ncn_progname in windres; do
9055     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   if test -n "$WINDRES"; then
9063   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072     ac_cv_prog_WINDRES="${ncn_progname}"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079
9080 fi
9081 fi
9082 WINDRES=$ac_cv_prog_WINDRES
9083 if test -n "$WINDRES"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9085 $as_echo "$WINDRES" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092   done
9093 fi
9094
9095 for ncn_progname in windres; do
9096   if test -n "$ncn_tool_prefix"; then
9097     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   if test -n "$WINDRES"; then
9105   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110   IFS=$as_save_IFS
9111   test -z "$as_dir" && as_dir=.
9112     for ac_exec_ext in '' $ac_executable_extensions; do
9113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116     break 2
9117   fi
9118 done
9119   done
9120 IFS=$as_save_IFS
9121
9122 fi
9123 fi
9124 WINDRES=$ac_cv_prog_WINDRES
9125 if test -n "$WINDRES"; then
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127 $as_echo "$WINDRES" >&6; }
9128 else
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134   fi
9135   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9136     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137 set dummy ${ncn_progname}; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$WINDRES"; then
9144   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153     ac_cv_prog_WINDRES="${ncn_progname}"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 WINDRES=$ac_cv_prog_WINDRES
9164 if test -n "$WINDRES"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9166 $as_echo "$WINDRES" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173   fi
9174   test -n "$ac_cv_prog_WINDRES" && break
9175 done
9176
9177 if test -z "$ac_cv_prog_WINDRES" ; then
9178   set dummy windres
9179   if test $build = $host ; then
9180     WINDRES="$2"
9181   else
9182     WINDRES="${ncn_tool_prefix}$2"
9183   fi
9184 fi
9185
9186
9187
9188 if test -n "$WINDMC"; then
9189   ac_cv_prog_WINDMC=$WINDMC
9190 elif test -n "$ac_cv_prog_WINDMC"; then
9191   WINDMC=$ac_cv_prog_WINDMC
9192 fi
9193
9194 if test -n "$ac_cv_prog_WINDMC"; then
9195   for ncn_progname in windmc; do
9196     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9197 set dummy ${ncn_progname}; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9201   $as_echo_n "(cached) " >&6
9202 else
9203   if test -n "$WINDMC"; then
9204   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209   IFS=$as_save_IFS
9210   test -z "$as_dir" && as_dir=.
9211     for ac_exec_ext in '' $ac_executable_extensions; do
9212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213     ac_cv_prog_WINDMC="${ncn_progname}"
9214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215     break 2
9216   fi
9217 done
9218   done
9219 IFS=$as_save_IFS
9220
9221 fi
9222 fi
9223 WINDMC=$ac_cv_prog_WINDMC
9224 if test -n "$WINDMC"; then
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9226 $as_echo "$WINDMC" >&6; }
9227 else
9228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9230 fi
9231
9232
9233   done
9234 fi
9235
9236 for ncn_progname in windmc; do
9237   if test -n "$ncn_tool_prefix"; then
9238     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9239 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   if test -n "$WINDMC"; then
9246   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247 else
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9250 do
9251   IFS=$as_save_IFS
9252   test -z "$as_dir" && as_dir=.
9253     for ac_exec_ext in '' $ac_executable_extensions; do
9254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9255     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257     break 2
9258   fi
9259 done
9260   done
9261 IFS=$as_save_IFS
9262
9263 fi
9264 fi
9265 WINDMC=$ac_cv_prog_WINDMC
9266 if test -n "$WINDMC"; then
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268 $as_echo "$WINDMC" >&6; }
9269 else
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274
9275   fi
9276   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9277     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9278 set dummy ${ncn_progname}; ac_word=$2
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 $as_echo_n "checking for $ac_word... " >&6; }
9281 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   if test -n "$WINDMC"; then
9285   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290   IFS=$as_save_IFS
9291   test -z "$as_dir" && as_dir=.
9292     for ac_exec_ext in '' $ac_executable_extensions; do
9293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294     ac_cv_prog_WINDMC="${ncn_progname}"
9295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9296     break 2
9297   fi
9298 done
9299   done
9300 IFS=$as_save_IFS
9301
9302 fi
9303 fi
9304 WINDMC=$ac_cv_prog_WINDMC
9305 if test -n "$WINDMC"; then
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9307 $as_echo "$WINDMC" >&6; }
9308 else
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312
9313
9314   fi
9315   test -n "$ac_cv_prog_WINDMC" && break
9316 done
9317
9318 if test -z "$ac_cv_prog_WINDMC" ; then
9319   set dummy windmc
9320   if test $build = $host ; then
9321     WINDMC="$2"
9322   else
9323     WINDMC="${ncn_tool_prefix}$2"
9324   fi
9325 fi
9326
9327
9328
9329 if test -n "$OBJCOPY"; then
9330   ac_cv_prog_OBJCOPY=$OBJCOPY
9331 elif test -n "$ac_cv_prog_OBJCOPY"; then
9332   OBJCOPY=$ac_cv_prog_OBJCOPY
9333 fi
9334
9335 if test -n "$ac_cv_prog_OBJCOPY"; then
9336   for ncn_progname in objcopy; do
9337     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9338 set dummy ${ncn_progname}; ac_word=$2
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340 $as_echo_n "checking for $ac_word... " >&6; }
9341 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   if test -n "$OBJCOPY"; then
9345   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9346 else
9347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 for as_dir in $PATH
9349 do
9350   IFS=$as_save_IFS
9351   test -z "$as_dir" && as_dir=.
9352     for ac_exec_ext in '' $ac_executable_extensions; do
9353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9354     ac_cv_prog_OBJCOPY="${ncn_progname}"
9355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356     break 2
9357   fi
9358 done
9359   done
9360 IFS=$as_save_IFS
9361
9362 fi
9363 fi
9364 OBJCOPY=$ac_cv_prog_OBJCOPY
9365 if test -n "$OBJCOPY"; then
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9367 $as_echo "$OBJCOPY" >&6; }
9368 else
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9371 fi
9372
9373
9374   done
9375 fi
9376
9377 for ncn_progname in objcopy; do
9378   if test -n "$ncn_tool_prefix"; then
9379     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9380 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384   $as_echo_n "(cached) " >&6
9385 else
9386   if test -n "$OBJCOPY"; then
9387   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392   IFS=$as_save_IFS
9393   test -z "$as_dir" && as_dir=.
9394     for ac_exec_ext in '' $ac_executable_extensions; do
9395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398     break 2
9399   fi
9400 done
9401   done
9402 IFS=$as_save_IFS
9403
9404 fi
9405 fi
9406 OBJCOPY=$ac_cv_prog_OBJCOPY
9407 if test -n "$OBJCOPY"; then
9408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409 $as_echo "$OBJCOPY" >&6; }
9410 else
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9413 fi
9414
9415
9416   fi
9417   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9418     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9419 set dummy ${ncn_progname}; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   if test -n "$OBJCOPY"; then
9426   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431   IFS=$as_save_IFS
9432   test -z "$as_dir" && as_dir=.
9433     for ac_exec_ext in '' $ac_executable_extensions; do
9434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435     ac_cv_prog_OBJCOPY="${ncn_progname}"
9436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437     break 2
9438   fi
9439 done
9440   done
9441 IFS=$as_save_IFS
9442
9443 fi
9444 fi
9445 OBJCOPY=$ac_cv_prog_OBJCOPY
9446 if test -n "$OBJCOPY"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9448 $as_echo "$OBJCOPY" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453
9454
9455   fi
9456   test -n "$ac_cv_prog_OBJCOPY" && break
9457 done
9458
9459 if test -z "$ac_cv_prog_OBJCOPY" ; then
9460   set dummy objcopy
9461   if test $build = $host ; then
9462     OBJCOPY="$2"
9463   else
9464     OBJCOPY="${ncn_tool_prefix}$2"
9465   fi
9466 fi
9467
9468
9469
9470 if test -n "$OBJDUMP"; then
9471   ac_cv_prog_OBJDUMP=$OBJDUMP
9472 elif test -n "$ac_cv_prog_OBJDUMP"; then
9473   OBJDUMP=$ac_cv_prog_OBJDUMP
9474 fi
9475
9476 if test -n "$ac_cv_prog_OBJDUMP"; then
9477   for ncn_progname in objdump; do
9478     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9479 set dummy ${ncn_progname}; ac_word=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9483   $as_echo_n "(cached) " >&6
9484 else
9485   if test -n "$OBJDUMP"; then
9486   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9487 else
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 for as_dir in $PATH
9490 do
9491   IFS=$as_save_IFS
9492   test -z "$as_dir" && as_dir=.
9493     for ac_exec_ext in '' $ac_executable_extensions; do
9494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9495     ac_cv_prog_OBJDUMP="${ncn_progname}"
9496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497     break 2
9498   fi
9499 done
9500   done
9501 IFS=$as_save_IFS
9502
9503 fi
9504 fi
9505 OBJDUMP=$ac_cv_prog_OBJDUMP
9506 if test -n "$OBJDUMP"; then
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9508 $as_echo "$OBJDUMP" >&6; }
9509 else
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9512 fi
9513
9514
9515   done
9516 fi
9517
9518 for ncn_progname in objdump; do
9519   if test -n "$ncn_tool_prefix"; then
9520     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   if test -n "$OBJDUMP"; then
9528   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9532 do
9533   IFS=$as_save_IFS
9534   test -z "$as_dir" && as_dir=.
9535     for ac_exec_ext in '' $ac_executable_extensions; do
9536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539     break 2
9540   fi
9541 done
9542   done
9543 IFS=$as_save_IFS
9544
9545 fi
9546 fi
9547 OBJDUMP=$ac_cv_prog_OBJDUMP
9548 if test -n "$OBJDUMP"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550 $as_echo "$OBJDUMP" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557   fi
9558   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9559     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9560 set dummy ${ncn_progname}; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   if test -n "$OBJDUMP"; then
9567   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9568 else
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572   IFS=$as_save_IFS
9573   test -z "$as_dir" && as_dir=.
9574     for ac_exec_ext in '' $ac_executable_extensions; do
9575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576     ac_cv_prog_OBJDUMP="${ncn_progname}"
9577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578     break 2
9579   fi
9580 done
9581   done
9582 IFS=$as_save_IFS
9583
9584 fi
9585 fi
9586 OBJDUMP=$ac_cv_prog_OBJDUMP
9587 if test -n "$OBJDUMP"; then
9588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9589 $as_echo "$OBJDUMP" >&6; }
9590 else
9591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594
9595
9596   fi
9597   test -n "$ac_cv_prog_OBJDUMP" && break
9598 done
9599
9600 if test -z "$ac_cv_prog_OBJDUMP" ; then
9601   set dummy objdump
9602   if test $build = $host ; then
9603     OBJDUMP="$2"
9604   else
9605     OBJDUMP="${ncn_tool_prefix}$2"
9606   fi
9607 fi
9608
9609
9610
9611
9612
9613
9614 # Target tools.
9615
9616 # Check whether --with-build-time-tools was given.
9617 if test "${with_build_time_tools+set}" = set; then :
9618   withval=$with_build_time_tools; case x"$withval" in
9619      x/*) ;;
9620      *)
9621        with_build_time_tools=
9622        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9623 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9624        ;;
9625    esac
9626 else
9627   with_build_time_tools=
9628 fi
9629
9630
9631
9632
9633 if test -n "$CC_FOR_TARGET"; then
9634   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9635 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9636   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9637 fi
9638
9639 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9640   for ncn_progname in cc gcc; do
9641     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   if test -n "$CC_FOR_TARGET"; then
9649   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654   IFS=$as_save_IFS
9655   test -z "$as_dir" && as_dir=.
9656     for ac_exec_ext in '' $ac_executable_extensions; do
9657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660     break 2
9661   fi
9662 done
9663   done
9664 IFS=$as_save_IFS
9665
9666 fi
9667 fi
9668 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9669 if test -n "$CC_FOR_TARGET"; then
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9671 $as_echo "$CC_FOR_TARGET" >&6; }
9672 else
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678   done
9679 fi
9680
9681 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9682   for ncn_progname in cc gcc; do
9683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9685     if test -x $with_build_time_tools/${ncn_progname}; then
9686       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688 $as_echo "yes" >&6; }
9689       break
9690     else
9691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693     fi
9694   done
9695 fi
9696
9697 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9698   for ncn_progname in cc gcc; do
9699     if test -n "$ncn_target_tool_prefix"; then
9700       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703 $as_echo_n "checking for $ac_word... " >&6; }
9704 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9705   $as_echo_n "(cached) " >&6
9706 else
9707   if test -n "$CC_FOR_TARGET"; then
9708   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9709 else
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9712 do
9713   IFS=$as_save_IFS
9714   test -z "$as_dir" && as_dir=.
9715     for ac_exec_ext in '' $ac_executable_extensions; do
9716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719     break 2
9720   fi
9721 done
9722   done
9723 IFS=$as_save_IFS
9724
9725 fi
9726 fi
9727 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9728 if test -n "$CC_FOR_TARGET"; then
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9730 $as_echo "$CC_FOR_TARGET" >&6; }
9731 else
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 fi
9735
9736
9737     fi
9738     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9739       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9740 set dummy ${ncn_progname}; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   if test -n "$CC_FOR_TARGET"; then
9747   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9748 else
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750 for as_dir in $PATH
9751 do
9752   IFS=$as_save_IFS
9753   test -z "$as_dir" && as_dir=.
9754     for ac_exec_ext in '' $ac_executable_extensions; do
9755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758     break 2
9759   fi
9760 done
9761   done
9762 IFS=$as_save_IFS
9763
9764 fi
9765 fi
9766 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9767 if test -n "$CC_FOR_TARGET"; then
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9769 $as_echo "$CC_FOR_TARGET" >&6; }
9770 else
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9773 fi
9774
9775
9776     fi
9777     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9778   done
9779 fi
9780
9781 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9782   set dummy cc gcc
9783   if test $build = $target ; then
9784     CC_FOR_TARGET="$2"
9785   else
9786     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9787   fi
9788 else
9789   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9790 fi
9791
9792
9793
9794 if test -n "$CXX_FOR_TARGET"; then
9795   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9796 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9797   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9798 fi
9799
9800 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9801   for ncn_progname in c++ g++ cxx gxx; do
9802     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803 set dummy ${ncn_progname}; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9807   $as_echo_n "(cached) " >&6
9808 else
9809   if test -n "$CXX_FOR_TARGET"; then
9810   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817     for ac_exec_ext in '' $ac_executable_extensions; do
9818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821     break 2
9822   fi
9823 done
9824   done
9825 IFS=$as_save_IFS
9826
9827 fi
9828 fi
9829 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9830 if test -n "$CXX_FOR_TARGET"; then
9831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9832 $as_echo "$CXX_FOR_TARGET" >&6; }
9833 else
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9836 fi
9837
9838
9839   done
9840 fi
9841
9842 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9843   for ncn_progname in c++ g++ cxx gxx; do
9844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9845 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9846     if test -x $with_build_time_tools/${ncn_progname}; then
9847       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9849 $as_echo "yes" >&6; }
9850       break
9851     else
9852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9854     fi
9855   done
9856 fi
9857
9858 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9859   for ncn_progname in c++ g++ cxx gxx; do
9860     if test -n "$ncn_target_tool_prefix"; then
9861       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9862 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9866   $as_echo_n "(cached) " >&6
9867 else
9868   if test -n "$CXX_FOR_TARGET"; then
9869   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9870 else
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876     for ac_exec_ext in '' $ac_executable_extensions; do
9877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880     break 2
9881   fi
9882 done
9883   done
9884 IFS=$as_save_IFS
9885
9886 fi
9887 fi
9888 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9889 if test -n "$CXX_FOR_TARGET"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9891 $as_echo "$CXX_FOR_TARGET" >&6; }
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896
9897
9898     fi
9899     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9900       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9901 set dummy ${ncn_progname}; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   if test -n "$CXX_FOR_TARGET"; then
9908   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9909 else
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9912 do
9913   IFS=$as_save_IFS
9914   test -z "$as_dir" && as_dir=.
9915     for ac_exec_ext in '' $ac_executable_extensions; do
9916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919     break 2
9920   fi
9921 done
9922   done
9923 IFS=$as_save_IFS
9924
9925 fi
9926 fi
9927 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9928 if test -n "$CXX_FOR_TARGET"; then
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9930 $as_echo "$CXX_FOR_TARGET" >&6; }
9931 else
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935
9936
9937     fi
9938     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9939   done
9940 fi
9941
9942 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9943   set dummy c++ g++ cxx gxx
9944   if test $build = $target ; then
9945     CXX_FOR_TARGET="$2"
9946   else
9947     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9948   fi
9949 else
9950   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9951 fi
9952
9953
9954
9955 if test -n "$GCC_FOR_TARGET"; then
9956   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9957 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9958   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9959 fi
9960
9961 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9962   for ncn_progname in gcc; do
9963     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9964 set dummy ${ncn_progname}; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   if test -n "$GCC_FOR_TARGET"; then
9971   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982     break 2
9983   fi
9984 done
9985   done
9986 IFS=$as_save_IFS
9987
9988 fi
9989 fi
9990 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9991 if test -n "$GCC_FOR_TARGET"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9993 $as_echo "$GCC_FOR_TARGET" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999
10000   done
10001 fi
10002
10003 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10004   for ncn_progname in gcc; do
10005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10007     if test -x $with_build_time_tools/${ncn_progname}; then
10008       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10011       break
10012     else
10013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015     fi
10016   done
10017 fi
10018
10019 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10020   for ncn_progname in gcc; do
10021     if test -n "$ncn_target_tool_prefix"; then
10022       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10027   $as_echo_n "(cached) " >&6
10028 else
10029   if test -n "$GCC_FOR_TARGET"; then
10030   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035   IFS=$as_save_IFS
10036   test -z "$as_dir" && as_dir=.
10037     for ac_exec_ext in '' $ac_executable_extensions; do
10038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10039     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041     break 2
10042   fi
10043 done
10044   done
10045 IFS=$as_save_IFS
10046
10047 fi
10048 fi
10049 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10050 if test -n "$GCC_FOR_TARGET"; then
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10052 $as_echo "$GCC_FOR_TARGET" >&6; }
10053 else
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058
10059     fi
10060     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10061       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10062 set dummy ${ncn_progname}; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   if test -n "$GCC_FOR_TARGET"; then
10069   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10070 else
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076     for ac_exec_ext in '' $ac_executable_extensions; do
10077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083   done
10084 IFS=$as_save_IFS
10085
10086 fi
10087 fi
10088 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10089 if test -n "$GCC_FOR_TARGET"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10091 $as_echo "$GCC_FOR_TARGET" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096
10097
10098     fi
10099     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10100   done
10101 fi
10102
10103 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10104   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10105 else
10106   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10107 fi
10108
10109
10110
10111 if test -n "$GCJ_FOR_TARGET"; then
10112   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10113 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10114   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10115 fi
10116
10117 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10118   for ncn_progname in gcj; do
10119     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120 set dummy ${ncn_progname}; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   if test -n "$GCJ_FOR_TARGET"; then
10127   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132   IFS=$as_save_IFS
10133   test -z "$as_dir" && as_dir=.
10134     for ac_exec_ext in '' $ac_executable_extensions; do
10135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138     break 2
10139   fi
10140 done
10141   done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10147 if test -n "$GCJ_FOR_TARGET"; then
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10149 $as_echo "$GCJ_FOR_TARGET" >&6; }
10150 else
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155
10156   done
10157 fi
10158
10159 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10160   for ncn_progname in gcj; do
10161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10162 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10163     if test -x $with_build_time_tools/${ncn_progname}; then
10164       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10166 $as_echo "yes" >&6; }
10167       break
10168     else
10169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171     fi
10172   done
10173 fi
10174
10175 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10176   for ncn_progname in gcj; do
10177     if test -n "$ncn_target_tool_prefix"; then
10178       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10179 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 $as_echo_n "checking for $ac_word... " >&6; }
10182 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   if test -n "$GCJ_FOR_TARGET"; then
10186   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10187 else
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10190 do
10191   IFS=$as_save_IFS
10192   test -z "$as_dir" && as_dir=.
10193     for ac_exec_ext in '' $ac_executable_extensions; do
10194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10195     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197     break 2
10198   fi
10199 done
10200   done
10201 IFS=$as_save_IFS
10202
10203 fi
10204 fi
10205 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10206 if test -n "$GCJ_FOR_TARGET"; then
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10208 $as_echo "$GCJ_FOR_TARGET" >&6; }
10209 else
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 fi
10213
10214
10215     fi
10216     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10217       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10218 set dummy ${ncn_progname}; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10222   $as_echo_n "(cached) " >&6
10223 else
10224   if test -n "$GCJ_FOR_TARGET"; then
10225   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10229 do
10230   IFS=$as_save_IFS
10231   test -z "$as_dir" && as_dir=.
10232     for ac_exec_ext in '' $ac_executable_extensions; do
10233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236     break 2
10237   fi
10238 done
10239   done
10240 IFS=$as_save_IFS
10241
10242 fi
10243 fi
10244 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10245 if test -n "$GCJ_FOR_TARGET"; then
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10247 $as_echo "$GCJ_FOR_TARGET" >&6; }
10248 else
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252
10253
10254     fi
10255     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10256   done
10257 fi
10258
10259 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10260   set dummy gcj
10261   if test $build = $target ; then
10262     GCJ_FOR_TARGET="$2"
10263   else
10264     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10265   fi
10266 else
10267   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10268 fi
10269
10270
10271
10272 if test -n "$GFORTRAN_FOR_TARGET"; then
10273   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10274 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10275   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10276 fi
10277
10278 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10279   for ncn_progname in gfortran; do
10280     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10281 set dummy ${ncn_progname}; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   if test -n "$GFORTRAN_FOR_TARGET"; then
10288   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10289 else
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10292 do
10293   IFS=$as_save_IFS
10294   test -z "$as_dir" && as_dir=.
10295     for ac_exec_ext in '' $ac_executable_extensions; do
10296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299     break 2
10300   fi
10301 done
10302   done
10303 IFS=$as_save_IFS
10304
10305 fi
10306 fi
10307 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10308 if test -n "$GFORTRAN_FOR_TARGET"; then
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10310 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315
10316
10317   done
10318 fi
10319
10320 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10321   for ncn_progname in gfortran; do
10322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10323 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10324     if test -x $with_build_time_tools/${ncn_progname}; then
10325       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327 $as_echo "yes" >&6; }
10328       break
10329     else
10330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332     fi
10333   done
10334 fi
10335
10336 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10337   for ncn_progname in gfortran; do
10338     if test -n "$ncn_target_tool_prefix"; then
10339       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   if test -n "$GFORTRAN_FOR_TARGET"; then
10347   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352   IFS=$as_save_IFS
10353   test -z "$as_dir" && as_dir=.
10354     for ac_exec_ext in '' $ac_executable_extensions; do
10355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358     break 2
10359   fi
10360 done
10361   done
10362 IFS=$as_save_IFS
10363
10364 fi
10365 fi
10366 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10369 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10370 else
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10373 fi
10374
10375
10376     fi
10377     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10378       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10379 set dummy ${ncn_progname}; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10383   $as_echo_n "(cached) " >&6
10384 else
10385   if test -n "$GFORTRAN_FOR_TARGET"; then
10386   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391   IFS=$as_save_IFS
10392   test -z "$as_dir" && as_dir=.
10393     for ac_exec_ext in '' $ac_executable_extensions; do
10394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397     break 2
10398   fi
10399 done
10400   done
10401 IFS=$as_save_IFS
10402
10403 fi
10404 fi
10405 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10406 if test -n "$GFORTRAN_FOR_TARGET"; then
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10408 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10409 else
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10412 fi
10413
10414
10415     fi
10416     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10417   done
10418 fi
10419
10420 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10421   set dummy gfortran
10422   if test $build = $target ; then
10423     GFORTRAN_FOR_TARGET="$2"
10424   else
10425     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10426   fi
10427 else
10428   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10429 fi
10430
10431
10432
10433 if test -n "$GOC_FOR_TARGET"; then
10434   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10435 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10436   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10437 fi
10438
10439 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10440   for ncn_progname in gccgo; do
10441     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442 set dummy ${ncn_progname}; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10446   $as_echo_n "(cached) " >&6
10447 else
10448   if test -n "$GOC_FOR_TARGET"; then
10449   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10450 else
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10453 do
10454   IFS=$as_save_IFS
10455   test -z "$as_dir" && as_dir=.
10456     for ac_exec_ext in '' $ac_executable_extensions; do
10457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460     break 2
10461   fi
10462 done
10463   done
10464 IFS=$as_save_IFS
10465
10466 fi
10467 fi
10468 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10469 if test -n "$GOC_FOR_TARGET"; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10471 $as_echo "$GOC_FOR_TARGET" >&6; }
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476
10477
10478   done
10479 fi
10480
10481 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10482   for ncn_progname in gccgo; do
10483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10484 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10485     if test -x $with_build_time_tools/${ncn_progname}; then
10486       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488 $as_echo "yes" >&6; }
10489       break
10490     else
10491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493     fi
10494   done
10495 fi
10496
10497 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10498   for ncn_progname in gccgo; do
10499     if test -n "$ncn_target_tool_prefix"; then
10500       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10501 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10505   $as_echo_n "(cached) " >&6
10506 else
10507   if test -n "$GOC_FOR_TARGET"; then
10508   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10509 else
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513   IFS=$as_save_IFS
10514   test -z "$as_dir" && as_dir=.
10515     for ac_exec_ext in '' $ac_executable_extensions; do
10516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519     break 2
10520   fi
10521 done
10522   done
10523 IFS=$as_save_IFS
10524
10525 fi
10526 fi
10527 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10528 if test -n "$GOC_FOR_TARGET"; then
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10530 $as_echo "$GOC_FOR_TARGET" >&6; }
10531 else
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10534 fi
10535
10536
10537     fi
10538     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10539       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10540 set dummy ${ncn_progname}; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   if test -n "$GOC_FOR_TARGET"; then
10547   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10548 else
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10551 do
10552   IFS=$as_save_IFS
10553   test -z "$as_dir" && as_dir=.
10554     for ac_exec_ext in '' $ac_executable_extensions; do
10555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10556     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558     break 2
10559   fi
10560 done
10561   done
10562 IFS=$as_save_IFS
10563
10564 fi
10565 fi
10566 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10567 if test -n "$GOC_FOR_TARGET"; then
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10569 $as_echo "$GOC_FOR_TARGET" >&6; }
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574
10575
10576     fi
10577     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10578   done
10579 fi
10580
10581 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10582   set dummy gccgo
10583   if test $build = $target ; then
10584     GOC_FOR_TARGET="$2"
10585   else
10586     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10587   fi
10588 else
10589   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10590 fi
10591
10592
10593
10594 cat > conftest.c << \EOF
10595 #ifdef __GNUC__
10596   gcc_yay;
10597 #endif
10598 EOF
10599 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10600   have_gcc_for_target=yes
10601 else
10602   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10603   have_gcc_for_target=no
10604 fi
10605 rm conftest.c
10606
10607
10608
10609
10610 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10611   if test -n "$with_build_time_tools"; then
10612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10613 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10614     if test -x $with_build_time_tools/ar; then
10615       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10616       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10618 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10619     else
10620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10622     fi
10623   elif test $build != $host && test $have_gcc_for_target = yes; then
10624     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10625     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10626     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10627   fi
10628 fi
10629 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10630   # Extract the first word of "ar", so it can be a program name with args.
10631 set dummy ar; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10635   $as_echo_n "(cached) " >&6
10636 else
10637   case $AR_FOR_TARGET in
10638   [\\/]* | ?:[\\/]*)
10639   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10640   ;;
10641   *)
10642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $gcc_cv_tool_dirs
10644 do
10645   IFS=$as_save_IFS
10646   test -z "$as_dir" && as_dir=.
10647     for ac_exec_ext in '' $ac_executable_extensions; do
10648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10649     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651     break 2
10652   fi
10653 done
10654   done
10655 IFS=$as_save_IFS
10656
10657   ;;
10658 esac
10659 fi
10660 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10661 if test -n "$AR_FOR_TARGET"; then
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10663 $as_echo "$AR_FOR_TARGET" >&6; }
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668
10669
10670 fi
10671 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10672
10673
10674 if test -n "$AR_FOR_TARGET"; then
10675   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10676 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10677   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10678 fi
10679
10680 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10681   for ncn_progname in ar; do
10682     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   if test -n "$AR_FOR_TARGET"; then
10690   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10691 else
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
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_prog_AR_FOR_TARGET="${ncn_progname}"
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 fi
10708 fi
10709 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10710 if test -n "$AR_FOR_TARGET"; then
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10712 $as_echo "$AR_FOR_TARGET" >&6; }
10713 else
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717
10718
10719   done
10720 fi
10721
10722 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10723   for ncn_progname in ar; do
10724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10725 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10726     if test -x $with_build_time_tools/${ncn_progname}; then
10727       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10730       break
10731     else
10732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734     fi
10735   done
10736 fi
10737
10738 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10739   for ncn_progname in ar; do
10740     if test -n "$ncn_target_tool_prefix"; then
10741       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10742 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   if test -n "$AR_FOR_TARGET"; then
10749   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10750 else
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10753 do
10754   IFS=$as_save_IFS
10755   test -z "$as_dir" && as_dir=.
10756     for ac_exec_ext in '' $ac_executable_extensions; do
10757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760     break 2
10761   fi
10762 done
10763   done
10764 IFS=$as_save_IFS
10765
10766 fi
10767 fi
10768 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10769 if test -n "$AR_FOR_TARGET"; then
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10771 $as_echo "$AR_FOR_TARGET" >&6; }
10772 else
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10775 fi
10776
10777
10778     fi
10779     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10780       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10781 set dummy ${ncn_progname}; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   if test -n "$AR_FOR_TARGET"; then
10788   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10789 else
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793   IFS=$as_save_IFS
10794   test -z "$as_dir" && as_dir=.
10795     for ac_exec_ext in '' $ac_executable_extensions; do
10796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10797     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799     break 2
10800   fi
10801 done
10802   done
10803 IFS=$as_save_IFS
10804
10805 fi
10806 fi
10807 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10808 if test -n "$AR_FOR_TARGET"; then
10809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10810 $as_echo "$AR_FOR_TARGET" >&6; }
10811 else
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815
10816
10817     fi
10818     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10819   done
10820 fi
10821
10822 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10823   set dummy ar
10824   if test $build = $target ; then
10825     AR_FOR_TARGET="$2"
10826   else
10827     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10828   fi
10829 else
10830   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10831 fi
10832
10833 else
10834   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10835 fi
10836
10837
10838
10839
10840 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10841   if test -n "$with_build_time_tools"; then
10842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10843 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10844     if test -x $with_build_time_tools/as; then
10845       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10846       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10848 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10849     else
10850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852     fi
10853   elif test $build != $host && test $have_gcc_for_target = yes; then
10854     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10855     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10856     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10857   fi
10858 fi
10859 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10860   # Extract the first word of "as", so it can be a program name with args.
10861 set dummy as; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10865   $as_echo_n "(cached) " >&6
10866 else
10867   case $AS_FOR_TARGET in
10868   [\\/]* | ?:[\\/]*)
10869   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10870   ;;
10871   *)
10872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $gcc_cv_tool_dirs
10874 do
10875   IFS=$as_save_IFS
10876   test -z "$as_dir" && as_dir=.
10877     for ac_exec_ext in '' $ac_executable_extensions; do
10878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881     break 2
10882   fi
10883 done
10884   done
10885 IFS=$as_save_IFS
10886
10887   ;;
10888 esac
10889 fi
10890 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10891 if test -n "$AS_FOR_TARGET"; then
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10893 $as_echo "$AS_FOR_TARGET" >&6; }
10894 else
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10897 fi
10898
10899
10900 fi
10901 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10902
10903
10904 if test -n "$AS_FOR_TARGET"; then
10905   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10906 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10907   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10908 fi
10909
10910 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10911   for ncn_progname in as; do
10912     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913 set dummy ${ncn_progname}; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919   if test -n "$AS_FOR_TARGET"; then
10920   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
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_prog_AS_FOR_TARGET="${ncn_progname}"
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 fi
10938 fi
10939 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10940 if test -n "$AS_FOR_TARGET"; then
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10942 $as_echo "$AS_FOR_TARGET" >&6; }
10943 else
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10946 fi
10947
10948
10949   done
10950 fi
10951
10952 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10953   for ncn_progname in as; do
10954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10956     if test -x $with_build_time_tools/${ncn_progname}; then
10957       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10959 $as_echo "yes" >&6; }
10960       break
10961     else
10962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964     fi
10965   done
10966 fi
10967
10968 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10969   for ncn_progname in as; do
10970     if test -n "$ncn_target_tool_prefix"; then
10971       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978   if test -n "$AS_FOR_TARGET"; then
10979   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10980 else
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984   IFS=$as_save_IFS
10985   test -z "$as_dir" && as_dir=.
10986     for ac_exec_ext in '' $ac_executable_extensions; do
10987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990     break 2
10991   fi
10992 done
10993   done
10994 IFS=$as_save_IFS
10995
10996 fi
10997 fi
10998 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10999 if test -n "$AS_FOR_TARGET"; then
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11001 $as_echo "$AS_FOR_TARGET" >&6; }
11002 else
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006
11007
11008     fi
11009     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11010       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11011 set dummy ${ncn_progname}; ac_word=$2
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013 $as_echo_n "checking for $ac_word... " >&6; }
11014 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   if test -n "$AS_FOR_TARGET"; then
11018   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11019 else
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11022 do
11023   IFS=$as_save_IFS
11024   test -z "$as_dir" && as_dir=.
11025     for ac_exec_ext in '' $ac_executable_extensions; do
11026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029     break 2
11030   fi
11031 done
11032   done
11033 IFS=$as_save_IFS
11034
11035 fi
11036 fi
11037 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11038 if test -n "$AS_FOR_TARGET"; then
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11040 $as_echo "$AS_FOR_TARGET" >&6; }
11041 else
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 fi
11045
11046
11047     fi
11048     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11049   done
11050 fi
11051
11052 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11053   set dummy as
11054   if test $build = $target ; then
11055     AS_FOR_TARGET="$2"
11056   else
11057     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11058   fi
11059 else
11060   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11061 fi
11062
11063 else
11064   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11065 fi
11066
11067
11068
11069
11070 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11071   if test -n "$with_build_time_tools"; then
11072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11073 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11074     if test -x $with_build_time_tools/dlltool; then
11075       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11076       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11078 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11079     else
11080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11082     fi
11083   elif test $build != $host && test $have_gcc_for_target = yes; then
11084     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11085     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11086     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11087   fi
11088 fi
11089 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11090   # Extract the first word of "dlltool", so it can be a program name with args.
11091 set dummy dlltool; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097   case $DLLTOOL_FOR_TARGET in
11098   [\\/]* | ?:[\\/]*)
11099   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11100   ;;
11101   *)
11102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $gcc_cv_tool_dirs
11104 do
11105   IFS=$as_save_IFS
11106   test -z "$as_dir" && as_dir=.
11107     for ac_exec_ext in '' $ac_executable_extensions; do
11108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111     break 2
11112   fi
11113 done
11114   done
11115 IFS=$as_save_IFS
11116
11117   ;;
11118 esac
11119 fi
11120 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11121 if test -n "$DLLTOOL_FOR_TARGET"; then
11122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11123 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11124 else
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127 fi
11128
11129
11130 fi
11131 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11132
11133
11134 if test -n "$DLLTOOL_FOR_TARGET"; then
11135   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11136 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11137   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11138 fi
11139
11140 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11141   for ncn_progname in dlltool; do
11142     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11143 set dummy ${ncn_progname}; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   if test -n "$DLLTOOL_FOR_TARGET"; then
11150   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11151 else
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
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_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
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 fi
11168 fi
11169 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11170 if test -n "$DLLTOOL_FOR_TARGET"; then
11171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11172 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11173 else
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176 fi
11177
11178
11179   done
11180 fi
11181
11182 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11183   for ncn_progname in dlltool; do
11184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11186     if test -x $with_build_time_tools/${ncn_progname}; then
11187       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189 $as_echo "yes" >&6; }
11190       break
11191     else
11192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194     fi
11195   done
11196 fi
11197
11198 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11199   for ncn_progname in dlltool; do
11200     if test -n "$ncn_target_tool_prefix"; then
11201       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11206   $as_echo_n "(cached) " >&6
11207 else
11208   if test -n "$DLLTOOL_FOR_TARGET"; then
11209   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11210 else
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214   IFS=$as_save_IFS
11215   test -z "$as_dir" && as_dir=.
11216     for ac_exec_ext in '' $ac_executable_extensions; do
11217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220     break 2
11221   fi
11222 done
11223   done
11224 IFS=$as_save_IFS
11225
11226 fi
11227 fi
11228 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11231 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11232 else
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236
11237
11238     fi
11239     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11240       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11241 set dummy ${ncn_progname}; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   if test -n "$DLLTOOL_FOR_TARGET"; then
11248   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11249 else
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11252 do
11253   IFS=$as_save_IFS
11254   test -z "$as_dir" && as_dir=.
11255     for ac_exec_ext in '' $ac_executable_extensions; do
11256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259     break 2
11260   fi
11261 done
11262   done
11263 IFS=$as_save_IFS
11264
11265 fi
11266 fi
11267 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11268 if test -n "$DLLTOOL_FOR_TARGET"; then
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11270 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11271 else
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275
11276
11277     fi
11278     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11279   done
11280 fi
11281
11282 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11283   set dummy dlltool
11284   if test $build = $target ; then
11285     DLLTOOL_FOR_TARGET="$2"
11286   else
11287     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11288   fi
11289 else
11290   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11291 fi
11292
11293 else
11294   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11295 fi
11296
11297
11298
11299
11300 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11301   if test -n "$with_build_time_tools"; then
11302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11303 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11304     if test -x $with_build_time_tools/ld; then
11305       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11306       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11308 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11309     else
11310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312     fi
11313   elif test $build != $host && test $have_gcc_for_target = yes; then
11314     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11315     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11316     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11317   fi
11318 fi
11319 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11320   # Extract the first word of "ld", so it can be a program name with args.
11321 set dummy ld; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   case $LD_FOR_TARGET in
11328   [\\/]* | ?:[\\/]*)
11329   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11330   ;;
11331   *)
11332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $gcc_cv_tool_dirs
11334 do
11335   IFS=$as_save_IFS
11336   test -z "$as_dir" && as_dir=.
11337     for ac_exec_ext in '' $ac_executable_extensions; do
11338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341     break 2
11342   fi
11343 done
11344   done
11345 IFS=$as_save_IFS
11346
11347   ;;
11348 esac
11349 fi
11350 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11351 if test -n "$LD_FOR_TARGET"; then
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11353 $as_echo "$LD_FOR_TARGET" >&6; }
11354 else
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358
11359
11360 fi
11361 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11362
11363
11364 if test -n "$LD_FOR_TARGET"; then
11365   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11366 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11367   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11368 fi
11369
11370 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11371   for ncn_progname in ld; do
11372     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11373 set dummy ${ncn_progname}; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   if test -n "$LD_FOR_TARGET"; then
11380   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11381 else
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
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_prog_LD_FOR_TARGET="${ncn_progname}"
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 fi
11398 fi
11399 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11400 if test -n "$LD_FOR_TARGET"; then
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11402 $as_echo "$LD_FOR_TARGET" >&6; }
11403 else
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 fi
11407
11408
11409   done
11410 fi
11411
11412 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11413   for ncn_progname in ld; do
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11416     if test -x $with_build_time_tools/${ncn_progname}; then
11417       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11419 $as_echo "yes" >&6; }
11420       break
11421     else
11422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11424     fi
11425   done
11426 fi
11427
11428 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11429   for ncn_progname in ld; do
11430     if test -n "$ncn_target_tool_prefix"; then
11431       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11436   $as_echo_n "(cached) " >&6
11437 else
11438   if test -n "$LD_FOR_TARGET"; then
11439   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11440 else
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444   IFS=$as_save_IFS
11445   test -z "$as_dir" && as_dir=.
11446     for ac_exec_ext in '' $ac_executable_extensions; do
11447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11448     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450     break 2
11451   fi
11452 done
11453   done
11454 IFS=$as_save_IFS
11455
11456 fi
11457 fi
11458 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11459 if test -n "$LD_FOR_TARGET"; then
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11461 $as_echo "$LD_FOR_TARGET" >&6; }
11462 else
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11465 fi
11466
11467
11468     fi
11469     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11470       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11471 set dummy ${ncn_progname}; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477   if test -n "$LD_FOR_TARGET"; then
11478   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11479 else
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11482 do
11483   IFS=$as_save_IFS
11484   test -z "$as_dir" && as_dir=.
11485     for ac_exec_ext in '' $ac_executable_extensions; do
11486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489     break 2
11490   fi
11491 done
11492   done
11493 IFS=$as_save_IFS
11494
11495 fi
11496 fi
11497 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11498 if test -n "$LD_FOR_TARGET"; then
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11500 $as_echo "$LD_FOR_TARGET" >&6; }
11501 else
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505
11506
11507     fi
11508     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11509   done
11510 fi
11511
11512 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11513   set dummy ld
11514   if test $build = $target ; then
11515     LD_FOR_TARGET="$2"
11516   else
11517     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11518   fi
11519 else
11520   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11521 fi
11522
11523 else
11524   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11525 fi
11526
11527
11528
11529
11530 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11531   if test -n "$with_build_time_tools"; then
11532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11533 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11534     if test -x $with_build_time_tools/lipo; then
11535       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11536       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11538 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11539     else
11540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542     fi
11543   elif test $build != $host && test $have_gcc_for_target = yes; then
11544     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11545     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11546     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11547   fi
11548 fi
11549 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11550   # Extract the first word of "lipo", so it can be a program name with args.
11551 set dummy lipo; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   case $LIPO_FOR_TARGET in
11558   [\\/]* | ?:[\\/]*)
11559   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11560   ;;
11561   *)
11562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $gcc_cv_tool_dirs
11564 do
11565   IFS=$as_save_IFS
11566   test -z "$as_dir" && as_dir=.
11567     for ac_exec_ext in '' $ac_executable_extensions; do
11568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571     break 2
11572   fi
11573 done
11574   done
11575 IFS=$as_save_IFS
11576
11577   ;;
11578 esac
11579 fi
11580 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11581 if test -n "$LIPO_FOR_TARGET"; then
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11583 $as_echo "$LIPO_FOR_TARGET" >&6; }
11584 else
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11587 fi
11588
11589
11590 fi
11591 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11592
11593
11594 if test -n "$LIPO_FOR_TARGET"; then
11595   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11596 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11597   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11598 fi
11599
11600 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11601   for ncn_progname in lipo; do
11602     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11603 set dummy ${ncn_progname}; ac_word=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   if test -n "$LIPO_FOR_TARGET"; then
11610   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11611 else
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
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_prog_LIPO_FOR_TARGET="${ncn_progname}"
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 fi
11628 fi
11629 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11630 if test -n "$LIPO_FOR_TARGET"; then
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11632 $as_echo "$LIPO_FOR_TARGET" >&6; }
11633 else
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 fi
11637
11638
11639   done
11640 fi
11641
11642 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11643   for ncn_progname in lipo; do
11644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11646     if test -x $with_build_time_tools/${ncn_progname}; then
11647       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11650       break
11651     else
11652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654     fi
11655   done
11656 fi
11657
11658 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11659   for ncn_progname in lipo; do
11660     if test -n "$ncn_target_tool_prefix"; then
11661       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -n "$LIPO_FOR_TARGET"; then
11669   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_exec_ext in '' $ac_executable_extensions; do
11677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11689 if test -n "$LIPO_FOR_TARGET"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11691 $as_echo "$LIPO_FOR_TARGET" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698     fi
11699     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11700       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11701 set dummy ${ncn_progname}; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   if test -n "$LIPO_FOR_TARGET"; then
11708   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11709 else
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in $PATH
11712 do
11713   IFS=$as_save_IFS
11714   test -z "$as_dir" && as_dir=.
11715     for ac_exec_ext in '' $ac_executable_extensions; do
11716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11717     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719     break 2
11720   fi
11721 done
11722   done
11723 IFS=$as_save_IFS
11724
11725 fi
11726 fi
11727 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11728 if test -n "$LIPO_FOR_TARGET"; then
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11730 $as_echo "$LIPO_FOR_TARGET" >&6; }
11731 else
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734 fi
11735
11736
11737     fi
11738     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11739   done
11740 fi
11741
11742 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11743   set dummy lipo
11744   if test $build = $target ; then
11745     LIPO_FOR_TARGET="$2"
11746   else
11747     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11748   fi
11749 else
11750   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11751 fi
11752
11753 else
11754   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11755 fi
11756
11757
11758
11759
11760 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11761   if test -n "$with_build_time_tools"; then
11762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11763 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11764     if test -x $with_build_time_tools/nm; then
11765       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11766       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11768 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11769     else
11770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772     fi
11773   elif test $build != $host && test $have_gcc_for_target = yes; then
11774     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11775     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11776     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11777   fi
11778 fi
11779 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11780   # Extract the first word of "nm", so it can be a program name with args.
11781 set dummy nm; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   case $NM_FOR_TARGET in
11788   [\\/]* | ?:[\\/]*)
11789   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11790   ;;
11791   *)
11792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $gcc_cv_tool_dirs
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804   done
11805 IFS=$as_save_IFS
11806
11807   ;;
11808 esac
11809 fi
11810 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11811 if test -n "$NM_FOR_TARGET"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11813 $as_echo "$NM_FOR_TARGET" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11822
11823
11824 if test -n "$NM_FOR_TARGET"; then
11825   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11826 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11827   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11828 fi
11829
11830 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11831   for ncn_progname in nm; do
11832     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11833 set dummy ${ncn_progname}; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   if test -n "$NM_FOR_TARGET"; then
11840   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11841 else
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
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_prog_NM_FOR_TARGET="${ncn_progname}"
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 fi
11858 fi
11859 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11860 if test -n "$NM_FOR_TARGET"; then
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11862 $as_echo "$NM_FOR_TARGET" >&6; }
11863 else
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 fi
11867
11868
11869   done
11870 fi
11871
11872 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11873   for ncn_progname in nm; do
11874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11876     if test -x $with_build_time_tools/${ncn_progname}; then
11877       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880       break
11881     else
11882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884     fi
11885   done
11886 fi
11887
11888 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11889   for ncn_progname in nm; do
11890     if test -n "$ncn_target_tool_prefix"; then
11891       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   if test -n "$NM_FOR_TARGET"; then
11899   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904   IFS=$as_save_IFS
11905   test -z "$as_dir" && as_dir=.
11906     for ac_exec_ext in '' $ac_executable_extensions; do
11907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910     break 2
11911   fi
11912 done
11913   done
11914 IFS=$as_save_IFS
11915
11916 fi
11917 fi
11918 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11919 if test -n "$NM_FOR_TARGET"; then
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11921 $as_echo "$NM_FOR_TARGET" >&6; }
11922 else
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928     fi
11929     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11930       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11931 set dummy ${ncn_progname}; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   if test -n "$NM_FOR_TARGET"; then
11938   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11939 else
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943   IFS=$as_save_IFS
11944   test -z "$as_dir" && as_dir=.
11945     for ac_exec_ext in '' $ac_executable_extensions; do
11946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11947     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949     break 2
11950   fi
11951 done
11952   done
11953 IFS=$as_save_IFS
11954
11955 fi
11956 fi
11957 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11958 if test -n "$NM_FOR_TARGET"; then
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11960 $as_echo "$NM_FOR_TARGET" >&6; }
11961 else
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 fi
11965
11966
11967     fi
11968     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11969   done
11970 fi
11971
11972 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11973   set dummy nm
11974   if test $build = $target ; then
11975     NM_FOR_TARGET="$2"
11976   else
11977     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11978   fi
11979 else
11980   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11981 fi
11982
11983 else
11984   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11985 fi
11986
11987
11988
11989
11990 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11991   if test -n "$with_build_time_tools"; then
11992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11993 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11994     if test -x $with_build_time_tools/objdump; then
11995       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11996       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11998 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11999     else
12000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12002     fi
12003   elif test $build != $host && test $have_gcc_for_target = yes; then
12004     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12005     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12006     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12007   fi
12008 fi
12009 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12010   # Extract the first word of "objdump", so it can be a program name with args.
12011 set dummy objdump; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   case $OBJDUMP_FOR_TARGET in
12018   [\\/]* | ?:[\\/]*)
12019   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12020   ;;
12021   *)
12022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $gcc_cv_tool_dirs
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027     for ac_exec_ext in '' $ac_executable_extensions; do
12028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034   done
12035 IFS=$as_save_IFS
12036
12037   ;;
12038 esac
12039 fi
12040 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12041 if test -n "$OBJDUMP_FOR_TARGET"; then
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12043 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12044 else
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 fi
12051 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12052
12053
12054 if test -n "$OBJDUMP_FOR_TARGET"; then
12055   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12056 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12057   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12058 fi
12059
12060 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12061   for ncn_progname in objdump; do
12062     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12063 set dummy ${ncn_progname}; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   if test -n "$OBJDUMP_FOR_TARGET"; then
12070   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12071 else
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
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_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
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 fi
12088 fi
12089 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12090 if test -n "$OBJDUMP_FOR_TARGET"; then
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12092 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12093 else
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 fi
12097
12098
12099   done
12100 fi
12101
12102 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12103   for ncn_progname in objdump; do
12104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12106     if test -x $with_build_time_tools/${ncn_progname}; then
12107       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109 $as_echo "yes" >&6; }
12110       break
12111     else
12112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114     fi
12115   done
12116 fi
12117
12118 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12119   for ncn_progname in objdump; do
12120     if test -n "$ncn_target_tool_prefix"; then
12121       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   if test -n "$OBJDUMP_FOR_TARGET"; then
12129   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134   IFS=$as_save_IFS
12135   test -z "$as_dir" && as_dir=.
12136     for ac_exec_ext in '' $ac_executable_extensions; do
12137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140     break 2
12141   fi
12142 done
12143   done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12149 if test -n "$OBJDUMP_FOR_TARGET"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12151 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158     fi
12159     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12160       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12161 set dummy ${ncn_progname}; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   if test -n "$OBJDUMP_FOR_TARGET"; then
12168   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12169 else
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12177     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179     break 2
12180   fi
12181 done
12182   done
12183 IFS=$as_save_IFS
12184
12185 fi
12186 fi
12187 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12188 if test -n "$OBJDUMP_FOR_TARGET"; then
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12190 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12191 else
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197     fi
12198     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12199   done
12200 fi
12201
12202 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12203   set dummy objdump
12204   if test $build = $target ; then
12205     OBJDUMP_FOR_TARGET="$2"
12206   else
12207     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12208   fi
12209 else
12210   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12211 fi
12212
12213 else
12214   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12215 fi
12216
12217
12218
12219
12220 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12221   if test -n "$with_build_time_tools"; then
12222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12223 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12224     if test -x $with_build_time_tools/ranlib; then
12225       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12226       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12228 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12229     else
12230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12232     fi
12233   elif test $build != $host && test $have_gcc_for_target = yes; then
12234     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12235     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12236     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12237   fi
12238 fi
12239 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12240   # Extract the first word of "ranlib", so it can be a program name with args.
12241 set dummy ranlib; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12245   $as_echo_n "(cached) " >&6
12246 else
12247   case $RANLIB_FOR_TARGET in
12248   [\\/]* | ?:[\\/]*)
12249   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12250   ;;
12251   *)
12252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $gcc_cv_tool_dirs
12254 do
12255   IFS=$as_save_IFS
12256   test -z "$as_dir" && as_dir=.
12257     for ac_exec_ext in '' $ac_executable_extensions; do
12258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261     break 2
12262   fi
12263 done
12264   done
12265 IFS=$as_save_IFS
12266
12267   ;;
12268 esac
12269 fi
12270 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12271 if test -n "$RANLIB_FOR_TARGET"; then
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12273 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12274 else
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12277 fi
12278
12279
12280 fi
12281 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12282
12283
12284 if test -n "$RANLIB_FOR_TARGET"; then
12285   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12286 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12287   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12288 fi
12289
12290 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12291   for ncn_progname in ranlib; do
12292     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293 set dummy ${ncn_progname}; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   if test -n "$RANLIB_FOR_TARGET"; then
12300   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
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_prog_RANLIB_FOR_TARGET="${ncn_progname}"
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 fi
12318 fi
12319 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12320 if test -n "$RANLIB_FOR_TARGET"; then
12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12322 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12323 else
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327
12328
12329   done
12330 fi
12331
12332 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12333   for ncn_progname in ranlib; do
12334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12336     if test -x $with_build_time_tools/${ncn_progname}; then
12337       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12339 $as_echo "yes" >&6; }
12340       break
12341     else
12342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344     fi
12345   done
12346 fi
12347
12348 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12349   for ncn_progname in ranlib; do
12350     if test -n "$ncn_target_tool_prefix"; then
12351       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358   if test -n "$RANLIB_FOR_TARGET"; then
12359   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366     for ac_exec_ext in '' $ac_executable_extensions; do
12367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370     break 2
12371   fi
12372 done
12373   done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12379 if test -n "$RANLIB_FOR_TARGET"; then
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12381 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387
12388     fi
12389     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12390       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12391 set dummy ${ncn_progname}; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   if test -n "$RANLIB_FOR_TARGET"; then
12398   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403   IFS=$as_save_IFS
12404   test -z "$as_dir" && as_dir=.
12405     for ac_exec_ext in '' $ac_executable_extensions; do
12406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409     break 2
12410   fi
12411 done
12412   done
12413 IFS=$as_save_IFS
12414
12415 fi
12416 fi
12417 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12418 if test -n "$RANLIB_FOR_TARGET"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12420 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427     fi
12428     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12429   done
12430 fi
12431
12432 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12433   set dummy ranlib
12434   if test $build = $target ; then
12435     RANLIB_FOR_TARGET="$2"
12436   else
12437     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12438   fi
12439 else
12440   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12441 fi
12442
12443 else
12444   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12445 fi
12446
12447
12448
12449
12450 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12451   if test -n "$with_build_time_tools"; then
12452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12453 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12454     if test -x $with_build_time_tools/strip; then
12455       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12456       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12458 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12459     else
12460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12462     fi
12463   elif test $build != $host && test $have_gcc_for_target = yes; then
12464     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12465     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12466     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12467   fi
12468 fi
12469 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12470   # Extract the first word of "strip", so it can be a program name with args.
12471 set dummy strip; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   case $STRIP_FOR_TARGET in
12478   [\\/]* | ?:[\\/]*)
12479   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12480   ;;
12481   *)
12482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $gcc_cv_tool_dirs
12484 do
12485   IFS=$as_save_IFS
12486   test -z "$as_dir" && as_dir=.
12487     for ac_exec_ext in '' $ac_executable_extensions; do
12488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491     break 2
12492   fi
12493 done
12494   done
12495 IFS=$as_save_IFS
12496
12497   ;;
12498 esac
12499 fi
12500 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12501 if test -n "$STRIP_FOR_TARGET"; then
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12503 $as_echo "$STRIP_FOR_TARGET" >&6; }
12504 else
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510 fi
12511 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12512
12513
12514 if test -n "$STRIP_FOR_TARGET"; then
12515   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12516 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12517   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12518 fi
12519
12520 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12521   for ncn_progname in strip; do
12522     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12523 set dummy ${ncn_progname}; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529   if test -n "$STRIP_FOR_TARGET"; then
12530   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12531 else
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
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_prog_STRIP_FOR_TARGET="${ncn_progname}"
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 fi
12548 fi
12549 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12550 if test -n "$STRIP_FOR_TARGET"; then
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12552 $as_echo "$STRIP_FOR_TARGET" >&6; }
12553 else
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 fi
12557
12558
12559   done
12560 fi
12561
12562 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12563   for ncn_progname in strip; do
12564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12566     if test -x $with_build_time_tools/${ncn_progname}; then
12567       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12569 $as_echo "yes" >&6; }
12570       break
12571     else
12572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12574     fi
12575   done
12576 fi
12577
12578 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12579   for ncn_progname in strip; do
12580     if test -n "$ncn_target_tool_prefix"; then
12581       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   if test -n "$STRIP_FOR_TARGET"; then
12589   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594   IFS=$as_save_IFS
12595   test -z "$as_dir" && as_dir=.
12596     for ac_exec_ext in '' $ac_executable_extensions; do
12597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600     break 2
12601   fi
12602 done
12603   done
12604 IFS=$as_save_IFS
12605
12606 fi
12607 fi
12608 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12609 if test -n "$STRIP_FOR_TARGET"; then
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12611 $as_echo "$STRIP_FOR_TARGET" >&6; }
12612 else
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617
12618     fi
12619     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12620       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12621 set dummy ${ncn_progname}; ac_word=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   if test -n "$STRIP_FOR_TARGET"; then
12628   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12629 else
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12632 do
12633   IFS=$as_save_IFS
12634   test -z "$as_dir" && as_dir=.
12635     for ac_exec_ext in '' $ac_executable_extensions; do
12636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639     break 2
12640   fi
12641 done
12642   done
12643 IFS=$as_save_IFS
12644
12645 fi
12646 fi
12647 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12648 if test -n "$STRIP_FOR_TARGET"; then
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12650 $as_echo "$STRIP_FOR_TARGET" >&6; }
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654 fi
12655
12656
12657     fi
12658     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12659   done
12660 fi
12661
12662 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12663   set dummy strip
12664   if test $build = $target ; then
12665     STRIP_FOR_TARGET="$2"
12666   else
12667     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12668   fi
12669 else
12670   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12671 fi
12672
12673 else
12674   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12675 fi
12676
12677
12678
12679
12680 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12681   if test -n "$with_build_time_tools"; then
12682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12683 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12684     if test -x $with_build_time_tools/windres; then
12685       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12686       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12688 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12689     else
12690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692     fi
12693   elif test $build != $host && test $have_gcc_for_target = yes; then
12694     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12695     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12696     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12697   fi
12698 fi
12699 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12700   # Extract the first word of "windres", so it can be a program name with args.
12701 set dummy windres; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   case $WINDRES_FOR_TARGET in
12708   [\\/]* | ?:[\\/]*)
12709   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12710   ;;
12711   *)
12712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $gcc_cv_tool_dirs
12714 do
12715   IFS=$as_save_IFS
12716   test -z "$as_dir" && as_dir=.
12717     for ac_exec_ext in '' $ac_executable_extensions; do
12718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721     break 2
12722   fi
12723 done
12724   done
12725 IFS=$as_save_IFS
12726
12727   ;;
12728 esac
12729 fi
12730 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12731 if test -n "$WINDRES_FOR_TARGET"; then
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12733 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12734 else
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 fi
12738
12739
12740 fi
12741 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12742
12743
12744 if test -n "$WINDRES_FOR_TARGET"; then
12745   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12746 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12747   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12748 fi
12749
12750 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12751   for ncn_progname in windres; do
12752     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753 set dummy ${ncn_progname}; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   if test -n "$WINDRES_FOR_TARGET"; then
12760   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767     for ac_exec_ext in '' $ac_executable_extensions; do
12768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771     break 2
12772   fi
12773 done
12774   done
12775 IFS=$as_save_IFS
12776
12777 fi
12778 fi
12779 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12780 if test -n "$WINDRES_FOR_TARGET"; then
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12782 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12783 else
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12787
12788
12789   done
12790 fi
12791
12792 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12793   for ncn_progname in windres; do
12794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12796     if test -x $with_build_time_tools/${ncn_progname}; then
12797       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799 $as_echo "yes" >&6; }
12800       break
12801     else
12802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804     fi
12805   done
12806 fi
12807
12808 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12809   for ncn_progname in windres; do
12810     if test -n "$ncn_target_tool_prefix"; then
12811       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12816   $as_echo_n "(cached) " >&6
12817 else
12818   if test -n "$WINDRES_FOR_TARGET"; then
12819   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824   IFS=$as_save_IFS
12825   test -z "$as_dir" && as_dir=.
12826     for ac_exec_ext in '' $ac_executable_extensions; do
12827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830     break 2
12831   fi
12832 done
12833   done
12834 IFS=$as_save_IFS
12835
12836 fi
12837 fi
12838 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12839 if test -n "$WINDRES_FOR_TARGET"; then
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12841 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848     fi
12849     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12850       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12851 set dummy ${ncn_progname}; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   if test -n "$WINDRES_FOR_TARGET"; then
12858   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12859 else
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863   IFS=$as_save_IFS
12864   test -z "$as_dir" && as_dir=.
12865     for ac_exec_ext in '' $ac_executable_extensions; do
12866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869     break 2
12870   fi
12871 done
12872   done
12873 IFS=$as_save_IFS
12874
12875 fi
12876 fi
12877 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12878 if test -n "$WINDRES_FOR_TARGET"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12880 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885
12886
12887     fi
12888     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12889   done
12890 fi
12891
12892 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12893   set dummy windres
12894   if test $build = $target ; then
12895     WINDRES_FOR_TARGET="$2"
12896   else
12897     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12898   fi
12899 else
12900   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12901 fi
12902
12903 else
12904   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12905 fi
12906
12907
12908
12909
12910 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12911   if test -n "$with_build_time_tools"; then
12912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12913 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12914     if test -x $with_build_time_tools/windmc; then
12915       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12916       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12918 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12919     else
12920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922     fi
12923   elif test $build != $host && test $have_gcc_for_target = yes; then
12924     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12925     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12926     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12927   fi
12928 fi
12929 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12930   # Extract the first word of "windmc", so it can be a program name with args.
12931 set dummy windmc; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937   case $WINDMC_FOR_TARGET in
12938   [\\/]* | ?:[\\/]*)
12939   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12940   ;;
12941   *)
12942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $gcc_cv_tool_dirs
12944 do
12945   IFS=$as_save_IFS
12946   test -z "$as_dir" && as_dir=.
12947     for ac_exec_ext in '' $ac_executable_extensions; do
12948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951     break 2
12952   fi
12953 done
12954   done
12955 IFS=$as_save_IFS
12956
12957   ;;
12958 esac
12959 fi
12960 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12961 if test -n "$WINDMC_FOR_TARGET"; then
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12963 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12964 else
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12967 fi
12968
12969
12970 fi
12971 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12972
12973
12974 if test -n "$WINDMC_FOR_TARGET"; then
12975   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12976 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12977   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12978 fi
12979
12980 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12981   for ncn_progname in windmc; do
12982     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12983 set dummy ${ncn_progname}; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   if test -n "$WINDMC_FOR_TARGET"; then
12990   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12991 else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12994 do
12995   IFS=$as_save_IFS
12996   test -z "$as_dir" && as_dir=.
12997     for ac_exec_ext in '' $ac_executable_extensions; do
12998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12999     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001     break 2
13002   fi
13003 done
13004   done
13005 IFS=$as_save_IFS
13006
13007 fi
13008 fi
13009 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13010 if test -n "$WINDMC_FOR_TARGET"; then
13011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13012 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13013 else
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13016 fi
13017
13018
13019   done
13020 fi
13021
13022 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13023   for ncn_progname in windmc; do
13024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13026     if test -x $with_build_time_tools/${ncn_progname}; then
13027       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13029 $as_echo "yes" >&6; }
13030       break
13031     else
13032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034     fi
13035   done
13036 fi
13037
13038 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13039   for ncn_progname in windmc; do
13040     if test -n "$ncn_target_tool_prefix"; then
13041       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   if test -n "$WINDMC_FOR_TARGET"; then
13049   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054   IFS=$as_save_IFS
13055   test -z "$as_dir" && as_dir=.
13056     for ac_exec_ext in '' $ac_executable_extensions; do
13057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060     break 2
13061   fi
13062 done
13063   done
13064 IFS=$as_save_IFS
13065
13066 fi
13067 fi
13068 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13069 if test -n "$WINDMC_FOR_TARGET"; then
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13071 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13072 else
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077
13078     fi
13079     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13080       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13081 set dummy ${ncn_progname}; ac_word=$2
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 $as_echo_n "checking for $ac_word... " >&6; }
13084 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   if test -n "$WINDMC_FOR_TARGET"; then
13088   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13089 else
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093   IFS=$as_save_IFS
13094   test -z "$as_dir" && as_dir=.
13095     for ac_exec_ext in '' $ac_executable_extensions; do
13096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099     break 2
13100   fi
13101 done
13102   done
13103 IFS=$as_save_IFS
13104
13105 fi
13106 fi
13107 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13108 if test -n "$WINDMC_FOR_TARGET"; then
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13110 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13111 else
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115
13116
13117     fi
13118     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13119   done
13120 fi
13121
13122 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13123   set dummy windmc
13124   if test $build = $target ; then
13125     WINDMC_FOR_TARGET="$2"
13126   else
13127     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13128   fi
13129 else
13130   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13131 fi
13132
13133 else
13134   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13135 fi
13136
13137
13138 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13139
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13141 $as_echo_n "checking where to find the target ar... " >&6; }
13142 if test "x${build}" != "x${host}" ; then
13143   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13144     # We already found the complete path
13145     ac_dir=`dirname $AR_FOR_TARGET`
13146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13147 $as_echo "pre-installed in $ac_dir" >&6; }
13148   else
13149     # Canadian cross, just use what we found
13150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13151 $as_echo "pre-installed" >&6; }
13152   fi
13153 else
13154   ok=yes
13155   case " ${configdirs} " in
13156     *" binutils "*) ;;
13157     *) ok=no ;;
13158   esac
13159
13160   if test $ok = yes; then
13161     # An in-tree tool is available and we can use it
13162     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13164 $as_echo "just compiled" >&6; }
13165   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13166     # We already found the complete path
13167     ac_dir=`dirname $AR_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   elif test "x$target" = "x$host"; then
13171     # We can use an host tool
13172     AR_FOR_TARGET='$(AR)'
13173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13174 $as_echo "host tool" >&6; }
13175   else
13176     # We need a cross tool
13177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13178 $as_echo "pre-installed" >&6; }
13179   fi
13180 fi
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13183 $as_echo_n "checking where to find the target as... " >&6; }
13184 if test "x${build}" != "x${host}" ; then
13185   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13186     # We already found the complete path
13187     ac_dir=`dirname $AS_FOR_TARGET`
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13189 $as_echo "pre-installed in $ac_dir" >&6; }
13190   else
13191     # Canadian cross, just use what we found
13192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13193 $as_echo "pre-installed" >&6; }
13194   fi
13195 else
13196   ok=yes
13197   case " ${configdirs} " in
13198     *" gas "*) ;;
13199     *) ok=no ;;
13200   esac
13201
13202   if test $ok = yes; then
13203     # An in-tree tool is available and we can use it
13204     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13206 $as_echo "just compiled" >&6; }
13207   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13208     # We already found the complete path
13209     ac_dir=`dirname $AS_FOR_TARGET`
13210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13211 $as_echo "pre-installed in $ac_dir" >&6; }
13212   elif test "x$target" = "x$host"; then
13213     # We can use an host tool
13214     AS_FOR_TARGET='$(AS)'
13215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13216 $as_echo "host tool" >&6; }
13217   else
13218     # We need a cross tool
13219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13220 $as_echo "pre-installed" >&6; }
13221   fi
13222 fi
13223
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13225 $as_echo_n "checking where to find the target cc... " >&6; }
13226 if test "x${build}" != "x${host}" ; then
13227   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13228     # We already found the complete path
13229     ac_dir=`dirname $CC_FOR_TARGET`
13230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13231 $as_echo "pre-installed in $ac_dir" >&6; }
13232   else
13233     # Canadian cross, just use what we found
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13235 $as_echo "pre-installed" >&6; }
13236   fi
13237 else
13238   ok=yes
13239   case " ${configdirs} " in
13240     *" gcc "*) ;;
13241     *) ok=no ;;
13242   esac
13243
13244   if test $ok = yes; then
13245     # An in-tree tool is available and we can use it
13246     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13248 $as_echo "just compiled" >&6; }
13249   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13250     # We already found the complete path
13251     ac_dir=`dirname $CC_FOR_TARGET`
13252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13253 $as_echo "pre-installed in $ac_dir" >&6; }
13254   elif test "x$target" = "x$host"; then
13255     # We can use an host tool
13256     CC_FOR_TARGET='$(CC)'
13257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13258 $as_echo "host tool" >&6; }
13259   else
13260     # We need a cross tool
13261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13262 $as_echo "pre-installed" >&6; }
13263   fi
13264 fi
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13267 $as_echo_n "checking where to find the target c++... " >&6; }
13268 if test "x${build}" != "x${host}" ; then
13269   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13270     # We already found the complete path
13271     ac_dir=`dirname $CXX_FOR_TARGET`
13272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13273 $as_echo "pre-installed in $ac_dir" >&6; }
13274   else
13275     # Canadian cross, just use what we found
13276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13277 $as_echo "pre-installed" >&6; }
13278   fi
13279 else
13280   ok=yes
13281   case " ${configdirs} " in
13282     *" gcc "*) ;;
13283     *) ok=no ;;
13284   esac
13285   case ,${enable_languages}, in
13286     *,c++,*) ;;
13287     *) ok=no ;;
13288   esac
13289   if test $ok = yes; then
13290     # An in-tree tool is available and we can use it
13291     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13293 $as_echo "just compiled" >&6; }
13294   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13295     # We already found the complete path
13296     ac_dir=`dirname $CXX_FOR_TARGET`
13297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13298 $as_echo "pre-installed in $ac_dir" >&6; }
13299   elif test "x$target" = "x$host"; then
13300     # We can use an host tool
13301     CXX_FOR_TARGET='$(CXX)'
13302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13303 $as_echo "host tool" >&6; }
13304   else
13305     # We need a cross tool
13306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13307 $as_echo "pre-installed" >&6; }
13308   fi
13309 fi
13310
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13312 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13313 if test "x${build}" != "x${host}" ; then
13314   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13315     # We already found the complete path
13316     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13318 $as_echo "pre-installed in $ac_dir" >&6; }
13319   else
13320     # Canadian cross, just use what we found
13321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13322 $as_echo "pre-installed" >&6; }
13323   fi
13324 else
13325   ok=yes
13326   case " ${configdirs} " in
13327     *" gcc "*) ;;
13328     *) ok=no ;;
13329   esac
13330   case ,${enable_languages}, in
13331     *,c++,*) ;;
13332     *) ok=no ;;
13333   esac
13334   if test $ok = yes; then
13335     # An in-tree tool is available and we can use it
13336     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'
13337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13338 $as_echo "just compiled" >&6; }
13339   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13340     # We already found the complete path
13341     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13343 $as_echo "pre-installed in $ac_dir" >&6; }
13344   elif test "x$target" = "x$host"; then
13345     # We can use an host tool
13346     RAW_CXX_FOR_TARGET='$(CXX)'
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13348 $as_echo "host tool" >&6; }
13349   else
13350     # We need a cross tool
13351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352 $as_echo "pre-installed" >&6; }
13353   fi
13354 fi
13355
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13357 $as_echo_n "checking where to find the target dlltool... " >&6; }
13358 if test "x${build}" != "x${host}" ; then
13359   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13360     # We already found the complete path
13361     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363 $as_echo "pre-installed in $ac_dir" >&6; }
13364   else
13365     # Canadian cross, just use what we found
13366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13367 $as_echo "pre-installed" >&6; }
13368   fi
13369 else
13370   ok=yes
13371   case " ${configdirs} " in
13372     *" binutils "*) ;;
13373     *) ok=no ;;
13374   esac
13375
13376   if test $ok = yes; then
13377     # An in-tree tool is available and we can use it
13378     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13380 $as_echo "just compiled" >&6; }
13381   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13382     # We already found the complete path
13383     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13385 $as_echo "pre-installed in $ac_dir" >&6; }
13386   elif test "x$target" = "x$host"; then
13387     # We can use an host tool
13388     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13390 $as_echo "host tool" >&6; }
13391   else
13392     # We need a cross tool
13393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394 $as_echo "pre-installed" >&6; }
13395   fi
13396 fi
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13399 $as_echo_n "checking where to find the target gcc... " >&6; }
13400 if test "x${build}" != "x${host}" ; then
13401   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13402     # We already found the complete path
13403     ac_dir=`dirname $GCC_FOR_TARGET`
13404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405 $as_echo "pre-installed in $ac_dir" >&6; }
13406   else
13407     # Canadian cross, just use what we found
13408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13409 $as_echo "pre-installed" >&6; }
13410   fi
13411 else
13412   ok=yes
13413   case " ${configdirs} " in
13414     *" gcc "*) ;;
13415     *) ok=no ;;
13416   esac
13417
13418   if test $ok = yes; then
13419     # An in-tree tool is available and we can use it
13420     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13422 $as_echo "just compiled" >&6; }
13423   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13424     # We already found the complete path
13425     ac_dir=`dirname $GCC_FOR_TARGET`
13426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427 $as_echo "pre-installed in $ac_dir" >&6; }
13428   elif test "x$target" = "x$host"; then
13429     # We can use an host tool
13430     GCC_FOR_TARGET='$()'
13431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13432 $as_echo "host tool" >&6; }
13433   else
13434     # We need a cross tool
13435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436 $as_echo "pre-installed" >&6; }
13437   fi
13438 fi
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13441 $as_echo_n "checking where to find the target gcj... " >&6; }
13442 if test "x${build}" != "x${host}" ; then
13443   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13444     # We already found the complete path
13445     ac_dir=`dirname $GCJ_FOR_TARGET`
13446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447 $as_echo "pre-installed in $ac_dir" >&6; }
13448   else
13449     # Canadian cross, just use what we found
13450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13451 $as_echo "pre-installed" >&6; }
13452   fi
13453 else
13454   ok=yes
13455   case " ${configdirs} " in
13456     *" gcc "*) ;;
13457     *) ok=no ;;
13458   esac
13459   case ,${enable_languages}, in
13460     *,java,*) ;;
13461     *) ok=no ;;
13462   esac
13463   if test $ok = yes; then
13464     # An in-tree tool is available and we can use it
13465     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13467 $as_echo "just compiled" >&6; }
13468   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13469     # We already found the complete path
13470     ac_dir=`dirname $GCJ_FOR_TARGET`
13471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13472 $as_echo "pre-installed in $ac_dir" >&6; }
13473   elif test "x$target" = "x$host"; then
13474     # We can use an host tool
13475     GCJ_FOR_TARGET='$(GCJ)'
13476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13477 $as_echo "host tool" >&6; }
13478   else
13479     # We need a cross tool
13480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13481 $as_echo "pre-installed" >&6; }
13482   fi
13483 fi
13484
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13486 $as_echo_n "checking where to find the target gfortran... " >&6; }
13487 if test "x${build}" != "x${host}" ; then
13488   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13489     # We already found the complete path
13490     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492 $as_echo "pre-installed in $ac_dir" >&6; }
13493   else
13494     # Canadian cross, just use what we found
13495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13496 $as_echo "pre-installed" >&6; }
13497   fi
13498 else
13499   ok=yes
13500   case " ${configdirs} " in
13501     *" gcc "*) ;;
13502     *) ok=no ;;
13503   esac
13504   case ,${enable_languages}, in
13505     *,fortran,*) ;;
13506     *) ok=no ;;
13507   esac
13508   if test $ok = yes; then
13509     # An in-tree tool is available and we can use it
13510     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13512 $as_echo "just compiled" >&6; }
13513   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13514     # We already found the complete path
13515     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13517 $as_echo "pre-installed in $ac_dir" >&6; }
13518   elif test "x$target" = "x$host"; then
13519     # We can use an host tool
13520     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13522 $as_echo "host tool" >&6; }
13523   else
13524     # We need a cross tool
13525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526 $as_echo "pre-installed" >&6; }
13527   fi
13528 fi
13529
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13531 $as_echo_n "checking where to find the target gccgo... " >&6; }
13532 if test "x${build}" != "x${host}" ; then
13533   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13534     # We already found the complete path
13535     ac_dir=`dirname $GOC_FOR_TARGET`
13536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537 $as_echo "pre-installed in $ac_dir" >&6; }
13538   else
13539     # Canadian cross, just use what we found
13540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13541 $as_echo "pre-installed" >&6; }
13542   fi
13543 else
13544   ok=yes
13545   case " ${configdirs} " in
13546     *" gcc "*) ;;
13547     *) ok=no ;;
13548   esac
13549   case ,${enable_languages}, in
13550     *,go,*) ;;
13551     *) ok=no ;;
13552   esac
13553   if test $ok = yes; then
13554     # An in-tree tool is available and we can use it
13555     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13557 $as_echo "just compiled" >&6; }
13558   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13559     # We already found the complete path
13560     ac_dir=`dirname $GOC_FOR_TARGET`
13561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13562 $as_echo "pre-installed in $ac_dir" >&6; }
13563   elif test "x$target" = "x$host"; then
13564     # We can use an host tool
13565     GOC_FOR_TARGET='$(GOC)'
13566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13567 $as_echo "host tool" >&6; }
13568   else
13569     # We need a cross tool
13570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571 $as_echo "pre-installed" >&6; }
13572   fi
13573 fi
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13576 $as_echo_n "checking where to find the target ld... " >&6; }
13577 if test "x${build}" != "x${host}" ; then
13578   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13579     # We already found the complete path
13580     ac_dir=`dirname $LD_FOR_TARGET`
13581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583   else
13584     # Canadian cross, just use what we found
13585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586 $as_echo "pre-installed" >&6; }
13587   fi
13588 else
13589   ok=yes
13590   case " ${configdirs} " in
13591     *" ld "*) ;;
13592     *) ok=no ;;
13593   esac
13594
13595   if test $ok = yes; then
13596     # An in-tree tool is available and we can use it
13597     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13599 $as_echo "just compiled" >&6; }
13600   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13601     # We already found the complete path
13602     ac_dir=`dirname $LD_FOR_TARGET`
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13604 $as_echo "pre-installed in $ac_dir" >&6; }
13605   elif test "x$target" = "x$host"; then
13606     # We can use an host tool
13607     LD_FOR_TARGET='$(LD)'
13608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13609 $as_echo "host tool" >&6; }
13610   else
13611     # We need a cross tool
13612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613 $as_echo "pre-installed" >&6; }
13614   fi
13615 fi
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13618 $as_echo_n "checking where to find the target lipo... " >&6; }
13619 if test "x${build}" != "x${host}" ; then
13620   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13621     # We already found the complete path
13622     ac_dir=`dirname $LIPO_FOR_TARGET`
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624 $as_echo "pre-installed in $ac_dir" >&6; }
13625   else
13626     # Canadian cross, just use what we found
13627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628 $as_echo "pre-installed" >&6; }
13629   fi
13630 else
13631   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13632     # We already found the complete path
13633     ac_dir=`dirname $LIPO_FOR_TARGET`
13634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635 $as_echo "pre-installed in $ac_dir" >&6; }
13636   elif test "x$target" = "x$host"; then
13637     # We can use an host tool
13638     LIPO_FOR_TARGET='$(LIPO)'
13639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13640 $as_echo "host tool" >&6; }
13641   else
13642     # We need a cross tool
13643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644 $as_echo "pre-installed" >&6; }
13645   fi
13646 fi
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13649 $as_echo_n "checking where to find the target nm... " >&6; }
13650 if test "x${build}" != "x${host}" ; then
13651   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13652     # We already found the complete path
13653     ac_dir=`dirname $NM_FOR_TARGET`
13654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13655 $as_echo "pre-installed in $ac_dir" >&6; }
13656   else
13657     # Canadian cross, just use what we found
13658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659 $as_echo "pre-installed" >&6; }
13660   fi
13661 else
13662   ok=yes
13663   case " ${configdirs} " in
13664     *" binutils "*) ;;
13665     *) ok=no ;;
13666   esac
13667
13668   if test $ok = yes; then
13669     # An in-tree tool is available and we can use it
13670     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13672 $as_echo "just compiled" >&6; }
13673   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13674     # We already found the complete path
13675     ac_dir=`dirname $NM_FOR_TARGET`
13676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677 $as_echo "pre-installed in $ac_dir" >&6; }
13678   elif test "x$target" = "x$host"; then
13679     # We can use an host tool
13680     NM_FOR_TARGET='$(NM)'
13681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13682 $as_echo "host tool" >&6; }
13683   else
13684     # We need a cross tool
13685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686 $as_echo "pre-installed" >&6; }
13687   fi
13688 fi
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13691 $as_echo_n "checking where to find the target objdump... " >&6; }
13692 if test "x${build}" != "x${host}" ; then
13693   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13694     # We already found the complete path
13695     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697 $as_echo "pre-installed in $ac_dir" >&6; }
13698   else
13699     # Canadian cross, just use what we found
13700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701 $as_echo "pre-installed" >&6; }
13702   fi
13703 else
13704   ok=yes
13705   case " ${configdirs} " in
13706     *" binutils "*) ;;
13707     *) ok=no ;;
13708   esac
13709
13710   if test $ok = yes; then
13711     # An in-tree tool is available and we can use it
13712     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13714 $as_echo "just compiled" >&6; }
13715   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13716     # We already found the complete path
13717     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13719 $as_echo "pre-installed in $ac_dir" >&6; }
13720   elif test "x$target" = "x$host"; then
13721     # We can use an host tool
13722     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13724 $as_echo "host tool" >&6; }
13725   else
13726     # We need a cross tool
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728 $as_echo "pre-installed" >&6; }
13729   fi
13730 fi
13731
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13733 $as_echo_n "checking where to find the target ranlib... " >&6; }
13734 if test "x${build}" != "x${host}" ; then
13735   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13736     # We already found the complete path
13737     ac_dir=`dirname $RANLIB_FOR_TARGET`
13738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13739 $as_echo "pre-installed in $ac_dir" >&6; }
13740   else
13741     # Canadian cross, just use what we found
13742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13743 $as_echo "pre-installed" >&6; }
13744   fi
13745 else
13746   ok=yes
13747   case " ${configdirs} " in
13748     *" binutils "*) ;;
13749     *) ok=no ;;
13750   esac
13751
13752   if test $ok = yes; then
13753     # An in-tree tool is available and we can use it
13754     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13756 $as_echo "just compiled" >&6; }
13757   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13758     # We already found the complete path
13759     ac_dir=`dirname $RANLIB_FOR_TARGET`
13760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13761 $as_echo "pre-installed in $ac_dir" >&6; }
13762   elif test "x$target" = "x$host"; then
13763     # We can use an host tool
13764     RANLIB_FOR_TARGET='$(RANLIB)'
13765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13766 $as_echo "host tool" >&6; }
13767   else
13768     # We need a cross tool
13769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770 $as_echo "pre-installed" >&6; }
13771   fi
13772 fi
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13775 $as_echo_n "checking where to find the target strip... " >&6; }
13776 if test "x${build}" != "x${host}" ; then
13777   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13778     # We already found the complete path
13779     ac_dir=`dirname $STRIP_FOR_TARGET`
13780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781 $as_echo "pre-installed in $ac_dir" >&6; }
13782   else
13783     # Canadian cross, just use what we found
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13785 $as_echo "pre-installed" >&6; }
13786   fi
13787 else
13788   ok=yes
13789   case " ${configdirs} " in
13790     *" binutils "*) ;;
13791     *) ok=no ;;
13792   esac
13793
13794   if test $ok = yes; then
13795     # An in-tree tool is available and we can use it
13796     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13798 $as_echo "just compiled" >&6; }
13799   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13800     # We already found the complete path
13801     ac_dir=`dirname $STRIP_FOR_TARGET`
13802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13803 $as_echo "pre-installed in $ac_dir" >&6; }
13804   elif test "x$target" = "x$host"; then
13805     # We can use an host tool
13806     STRIP_FOR_TARGET='$(STRIP)'
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13808 $as_echo "host tool" >&6; }
13809   else
13810     # We need a cross tool
13811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812 $as_echo "pre-installed" >&6; }
13813   fi
13814 fi
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13817 $as_echo_n "checking where to find the target windres... " >&6; }
13818 if test "x${build}" != "x${host}" ; then
13819   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13820     # We already found the complete path
13821     ac_dir=`dirname $WINDRES_FOR_TARGET`
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824   else
13825     # Canadian cross, just use what we found
13826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827 $as_echo "pre-installed" >&6; }
13828   fi
13829 else
13830   ok=yes
13831   case " ${configdirs} " in
13832     *" binutils "*) ;;
13833     *) ok=no ;;
13834   esac
13835
13836   if test $ok = yes; then
13837     # An in-tree tool is available and we can use it
13838     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13840 $as_echo "just compiled" >&6; }
13841   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13842     # We already found the complete path
13843     ac_dir=`dirname $WINDRES_FOR_TARGET`
13844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845 $as_echo "pre-installed in $ac_dir" >&6; }
13846   elif test "x$target" = "x$host"; then
13847     # We can use an host tool
13848     WINDRES_FOR_TARGET='$(WINDRES)'
13849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13850 $as_echo "host tool" >&6; }
13851   else
13852     # We need a cross tool
13853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854 $as_echo "pre-installed" >&6; }
13855   fi
13856 fi
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13859 $as_echo_n "checking where to find the target windmc... " >&6; }
13860 if test "x${build}" != "x${host}" ; then
13861   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13862     # We already found the complete path
13863     ac_dir=`dirname $WINDMC_FOR_TARGET`
13864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865 $as_echo "pre-installed in $ac_dir" >&6; }
13866   else
13867     # Canadian cross, just use what we found
13868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869 $as_echo "pre-installed" >&6; }
13870   fi
13871 else
13872   ok=yes
13873   case " ${configdirs} " in
13874     *" binutils "*) ;;
13875     *) ok=no ;;
13876   esac
13877
13878   if test $ok = yes; then
13879     # An in-tree tool is available and we can use it
13880     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13882 $as_echo "just compiled" >&6; }
13883   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13884     # We already found the complete path
13885     ac_dir=`dirname $WINDMC_FOR_TARGET`
13886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887 $as_echo "pre-installed in $ac_dir" >&6; }
13888   elif test "x$target" = "x$host"; then
13889     # We can use an host tool
13890     WINDMC_FOR_TARGET='$(WINDMC)'
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13892 $as_echo "host tool" >&6; }
13893   else
13894     # We need a cross tool
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896 $as_echo "pre-installed" >&6; }
13897   fi
13898 fi
13899
13900
13901
13902
13903
13904 # Certain tools may need extra flags.
13905 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13906 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13907 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13908
13909 # When building target libraries, except in a Canadian cross, we use
13910 # the same toolchain as the compiler we just built.
13911 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13912 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13913 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13914 if test $host = $build; then
13915   case " $configdirs " in
13916     *" gcc "*)
13917       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13918       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13919       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13920       ;;
13921   esac
13922 fi
13923
13924
13925
13926
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13929 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13930 # Check whether --enable-maintainer-mode was given.
13931 if test "${enable_maintainer_mode+set}" = set; then :
13932   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13933 else
13934   USE_MAINTAINER_MODE=no
13935 fi
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13938 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13939
13940
13941 if test "$USE_MAINTAINER_MODE" = yes; then
13942   MAINTAINER_MODE_TRUE=
13943   MAINTAINER_MODE_FALSE='#'
13944 else
13945   MAINTAINER_MODE_TRUE='#'
13946   MAINTAINER_MODE_FALSE=
13947 fi
13948 MAINT=$MAINTAINER_MODE_TRUE
13949
13950 # ---------------------
13951 # GCC bootstrap support
13952 # ---------------------
13953
13954 # Stage specific cflags for build.
13955 stage1_cflags="-g"
13956 case $build in
13957   vax-*-*)
13958     case ${GCC} in
13959       yes) stage1_cflags="-g -Wa,-J" ;;
13960       *) stage1_cflags="-g -J" ;;
13961     esac ;;
13962 esac
13963
13964 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13965 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13966   saved_CFLAGS="$CFLAGS"
13967
13968   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13969   CFLAGS="$CFLAGS -fkeep-inline-functions"
13970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13971 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h.  */
13974
13975 #if (__GNUC__ < 3) \
13976     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13977                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13978 #error http://gcc.gnu.org/PR29382
13979 #endif
13980
13981 int
13982 main ()
13983 {
13984
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 if ac_fn_c_try_compile "$LINENO"; then :
13990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13992 else
13993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13995 fi
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997
13998   CFLAGS="$saved_CFLAGS"
13999 fi
14000
14001
14002
14003 # Enable --enable-checking in stage1 of the compiler.
14004 # Check whether --enable-stage1-checking was given.
14005 if test "${enable_stage1_checking+set}" = set; then :
14006   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14007 else
14008   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14009   stage1_checking=--enable-checking=yes,types
14010 else
14011   stage1_checking=--enable-checking=$enable_checking,types
14012 fi
14013 fi
14014
14015
14016
14017 # Enable -Werror in bootstrap stage2 and later.
14018 # Check whether --enable-werror was given.
14019 if test "${enable_werror+set}" = set; then :
14020   enableval=$enable_werror;
14021 else
14022   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14023   enable_werror=yes
14024 else
14025   enable_werror=no
14026 fi
14027 fi
14028
14029 case ${enable_werror} in
14030   yes) stage2_werror_flag="--enable-werror-always" ;;
14031   *) stage2_werror_flag="" ;;
14032 esac
14033
14034
14035 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14036 # --enable-build-with-cxx after stage1.
14037 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14038   POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14039 else
14040   POSTSTAGE1_CONFIGURE_FLAGS=
14041 fi
14042
14043
14044 # Specify what files to not compare during bootstrap.
14045
14046 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14047 case "$target" in
14048   hppa*64*-*-hpux*) ;;
14049   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14050 esac
14051 case " $configdirs " in
14052 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14053 esac
14054
14055
14056 ac_config_files="$ac_config_files Makefile"
14057
14058 cat >confcache <<\_ACEOF
14059 # This file is a shell script that caches the results of configure
14060 # tests run on this system so they can be shared between configure
14061 # scripts and configure runs, see configure's option --config-cache.
14062 # It is not useful on other systems.  If it contains results you don't
14063 # want to keep, you may remove or edit it.
14064 #
14065 # config.status only pays attention to the cache file if you give it
14066 # the --recheck option to rerun configure.
14067 #
14068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14070 # following values.
14071
14072 _ACEOF
14073
14074 # The following way of writing the cache mishandles newlines in values,
14075 # but we know of no workaround that is simple, portable, and efficient.
14076 # So, we kill variables containing newlines.
14077 # Ultrix sh set writes to stderr and can't be redirected directly,
14078 # and sets the high bit in the cache file unless we assign to the vars.
14079 (
14080   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14081     eval ac_val=\$$ac_var
14082     case $ac_val in #(
14083     *${as_nl}*)
14084       case $ac_var in #(
14085       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14087       esac
14088       case $ac_var in #(
14089       _ | IFS | as_nl) ;; #(
14090       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14091       *) { eval $ac_var=; unset $ac_var;} ;;
14092       esac ;;
14093     esac
14094   done
14095
14096   (set) 2>&1 |
14097     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14098     *${as_nl}ac_space=\ *)
14099       # `set' does not quote correctly, so add quotes: double-quote
14100       # substitution turns \\\\ into \\, and sed turns \\ into \.
14101       sed -n \
14102         "s/'/'\\\\''/g;
14103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14104       ;; #(
14105     *)
14106       # `set' quotes correctly as required by POSIX, so do not add quotes.
14107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14108       ;;
14109     esac |
14110     sort
14111 ) |
14112   sed '
14113      /^ac_cv_env_/b end
14114      t clear
14115      :clear
14116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14117      t end
14118      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14119      :end' >>confcache
14120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14121   if test -w "$cache_file"; then
14122     test "x$cache_file" != "x/dev/null" &&
14123       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14124 $as_echo "$as_me: updating cache $cache_file" >&6;}
14125     cat confcache >$cache_file
14126   else
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14129   fi
14130 fi
14131 rm -f confcache
14132
14133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134 # Let make expand exec_prefix.
14135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14136
14137 # Transform confdefs.h into DEFS.
14138 # Protect against shell expansion while executing Makefile rules.
14139 # Protect against Makefile macro expansion.
14140 #
14141 # If the first sed substitution is executed (which looks for macros that
14142 # take arguments), then branch to the quote section.  Otherwise,
14143 # look for a macro that doesn't take arguments.
14144 ac_script='
14145 :mline
14146 /\\$/{
14147  N
14148  s,\\\n,,
14149  b mline
14150 }
14151 t clear
14152 :clear
14153 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14154 t quote
14155 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14156 t quote
14157 b any
14158 :quote
14159 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14160 s/\[/\\&/g
14161 s/\]/\\&/g
14162 s/\$/$$/g
14163 H
14164 :any
14165 ${
14166         g
14167         s/^\n//
14168         s/\n/ /g
14169         p
14170 }
14171 '
14172 DEFS=`sed -n "$ac_script" confdefs.h`
14173
14174
14175 ac_libobjs=
14176 ac_ltlibobjs=
14177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14178   # 1. Remove the extension, and $U if already installed.
14179   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14180   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14181   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14182   #    will be set to the directory where LIBOBJS objects are built.
14183   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14184   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14185 done
14186 LIBOBJS=$ac_libobjs
14187
14188 LTLIBOBJS=$ac_ltlibobjs
14189
14190
14191
14192 : ${CONFIG_STATUS=./config.status}
14193 ac_write_fail=0
14194 ac_clean_files_save=$ac_clean_files
14195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14198 as_write_fail=0
14199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14200 #! $SHELL
14201 # Generated by $as_me.
14202 # Run this file to recreate the current configuration.
14203 # Compiler output produced by configure, useful for debugging
14204 # configure, is in config.log if it exists.
14205
14206 debug=false
14207 ac_cs_recheck=false
14208 ac_cs_silent=false
14209
14210 SHELL=\${CONFIG_SHELL-$SHELL}
14211 export SHELL
14212 _ASEOF
14213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14214 ## -------------------- ##
14215 ## M4sh Initialization. ##
14216 ## -------------------- ##
14217
14218 # Be more Bourne compatible
14219 DUALCASE=1; export DUALCASE # for MKS sh
14220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14221   emulate sh
14222   NULLCMD=:
14223   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14224   # is contrary to our usage.  Disable this feature.
14225   alias -g '${1+"$@"}'='"$@"'
14226   setopt NO_GLOB_SUBST
14227 else
14228   case `(set -o) 2>/dev/null` in #(
14229   *posix*) :
14230     set -o posix ;; #(
14231   *) :
14232      ;;
14233 esac
14234 fi
14235
14236
14237 as_nl='
14238 '
14239 export as_nl
14240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14244 # Prefer a ksh shell builtin over an external printf program on Solaris,
14245 # but without wasting forks for bash or zsh.
14246 if test -z "$BASH_VERSION$ZSH_VERSION" \
14247     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14248   as_echo='print -r --'
14249   as_echo_n='print -rn --'
14250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14251   as_echo='printf %s\n'
14252   as_echo_n='printf %s'
14253 else
14254   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14255     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14256     as_echo_n='/usr/ucb/echo -n'
14257   else
14258     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14259     as_echo_n_body='eval
14260       arg=$1;
14261       case $arg in #(
14262       *"$as_nl"*)
14263         expr "X$arg" : "X\\(.*\\)$as_nl";
14264         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14265       esac;
14266       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14267     '
14268     export as_echo_n_body
14269     as_echo_n='sh -c $as_echo_n_body as_echo'
14270   fi
14271   export as_echo_body
14272   as_echo='sh -c $as_echo_body as_echo'
14273 fi
14274
14275 # The user is always right.
14276 if test "${PATH_SEPARATOR+set}" != set; then
14277   PATH_SEPARATOR=:
14278   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14279     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14280       PATH_SEPARATOR=';'
14281   }
14282 fi
14283
14284
14285 # IFS
14286 # We need space, tab and new line, in precisely that order.  Quoting is
14287 # there to prevent editors from complaining about space-tab.
14288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14289 # splitting by setting IFS to empty value.)
14290 IFS=" ""        $as_nl"
14291
14292 # Find who we are.  Look in the path if we contain no directory separator.
14293 case $0 in #((
14294   *[\\/]* ) as_myself=$0 ;;
14295   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14297 do
14298   IFS=$as_save_IFS
14299   test -z "$as_dir" && as_dir=.
14300     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14301   done
14302 IFS=$as_save_IFS
14303
14304      ;;
14305 esac
14306 # We did not find ourselves, most probably we were run as `sh COMMAND'
14307 # in which case we are not to be found in the path.
14308 if test "x$as_myself" = x; then
14309   as_myself=$0
14310 fi
14311 if test ! -f "$as_myself"; then
14312   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313   exit 1
14314 fi
14315
14316 # Unset variables that we do not need and which cause bugs (e.g. in
14317 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14318 # suppresses any "Segmentation fault" message there.  '((' could
14319 # trigger a bug in pdksh 5.2.14.
14320 for as_var in BASH_ENV ENV MAIL MAILPATH
14321 do eval test x\${$as_var+set} = xset \
14322   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14323 done
14324 PS1='$ '
14325 PS2='> '
14326 PS4='+ '
14327
14328 # NLS nuisances.
14329 LC_ALL=C
14330 export LC_ALL
14331 LANGUAGE=C
14332 export LANGUAGE
14333
14334 # CDPATH.
14335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337
14338 # as_fn_error ERROR [LINENO LOG_FD]
14339 # ---------------------------------
14340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14342 # script with status $?, using 1 if that was 0.
14343 as_fn_error ()
14344 {
14345   as_status=$?; test $as_status -eq 0 && as_status=1
14346   if test "$3"; then
14347     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14348     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14349   fi
14350   $as_echo "$as_me: error: $1" >&2
14351   as_fn_exit $as_status
14352 } # as_fn_error
14353
14354
14355 # as_fn_set_status STATUS
14356 # -----------------------
14357 # Set $? to STATUS, without forking.
14358 as_fn_set_status ()
14359 {
14360   return $1
14361 } # as_fn_set_status
14362
14363 # as_fn_exit STATUS
14364 # -----------------
14365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14366 as_fn_exit ()
14367 {
14368   set +e
14369   as_fn_set_status $1
14370   exit $1
14371 } # as_fn_exit
14372
14373 # as_fn_unset VAR
14374 # ---------------
14375 # Portably unset VAR.
14376 as_fn_unset ()
14377 {
14378   { eval $1=; unset $1;}
14379 }
14380 as_unset=as_fn_unset
14381 # as_fn_append VAR VALUE
14382 # ----------------------
14383 # Append the text in VALUE to the end of the definition contained in VAR. Take
14384 # advantage of any shell optimizations that allow amortized linear growth over
14385 # repeated appends, instead of the typical quadratic growth present in naive
14386 # implementations.
14387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14388   eval 'as_fn_append ()
14389   {
14390     eval $1+=\$2
14391   }'
14392 else
14393   as_fn_append ()
14394   {
14395     eval $1=\$$1\$2
14396   }
14397 fi # as_fn_append
14398
14399 # as_fn_arith ARG...
14400 # ------------------
14401 # Perform arithmetic evaluation on the ARGs, and store the result in the
14402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14403 # must be portable across $(()) and expr.
14404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14405   eval 'as_fn_arith ()
14406   {
14407     as_val=$(( $* ))
14408   }'
14409 else
14410   as_fn_arith ()
14411   {
14412     as_val=`expr "$@" || test $? -eq 1`
14413   }
14414 fi # as_fn_arith
14415
14416
14417 if expr a : '\(a\)' >/dev/null 2>&1 &&
14418    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14419   as_expr=expr
14420 else
14421   as_expr=false
14422 fi
14423
14424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14425   as_basename=basename
14426 else
14427   as_basename=false
14428 fi
14429
14430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14431   as_dirname=dirname
14432 else
14433   as_dirname=false
14434 fi
14435
14436 as_me=`$as_basename -- "$0" ||
14437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14438          X"$0" : 'X\(//\)$' \| \
14439          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440 $as_echo X/"$0" |
14441     sed '/^.*\/\([^/][^/]*\)\/*$/{
14442             s//\1/
14443             q
14444           }
14445           /^X\/\(\/\/\)$/{
14446             s//\1/
14447             q
14448           }
14449           /^X\/\(\/\).*/{
14450             s//\1/
14451             q
14452           }
14453           s/.*/./; q'`
14454
14455 # Avoid depending upon Character Ranges.
14456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14459 as_cr_digits='0123456789'
14460 as_cr_alnum=$as_cr_Letters$as_cr_digits
14461
14462 ECHO_C= ECHO_N= ECHO_T=
14463 case `echo -n x` in #(((((
14464 -n*)
14465   case `echo 'xy\c'` in
14466   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14467   xy)  ECHO_C='\c';;
14468   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14469        ECHO_T=' ';;
14470   esac;;
14471 *)
14472   ECHO_N='-n';;
14473 esac
14474
14475 rm -f conf$$ conf$$.exe conf$$.file
14476 if test -d conf$$.dir; then
14477   rm -f conf$$.dir/conf$$.file
14478 else
14479   rm -f conf$$.dir
14480   mkdir conf$$.dir 2>/dev/null
14481 fi
14482 if (echo >conf$$.file) 2>/dev/null; then
14483   if ln -s conf$$.file conf$$ 2>/dev/null; then
14484     as_ln_s='ln -s'
14485     # ... but there are two gotchas:
14486     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14487     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14488     # In both cases, we have to default to `cp -p'.
14489     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14490       as_ln_s='cp -p'
14491   elif ln conf$$.file conf$$ 2>/dev/null; then
14492     as_ln_s=ln
14493   else
14494     as_ln_s='cp -p'
14495   fi
14496 else
14497   as_ln_s='cp -p'
14498 fi
14499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14500 rmdir conf$$.dir 2>/dev/null
14501
14502
14503 # as_fn_mkdir_p
14504 # -------------
14505 # Create "$as_dir" as a directory, including parents if necessary.
14506 as_fn_mkdir_p ()
14507 {
14508
14509   case $as_dir in #(
14510   -*) as_dir=./$as_dir;;
14511   esac
14512   test -d "$as_dir" || eval $as_mkdir_p || {
14513     as_dirs=
14514     while :; do
14515       case $as_dir in #(
14516       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14517       *) as_qdir=$as_dir;;
14518       esac
14519       as_dirs="'$as_qdir' $as_dirs"
14520       as_dir=`$as_dirname -- "$as_dir" ||
14521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522          X"$as_dir" : 'X\(//\)[^/]' \| \
14523          X"$as_dir" : 'X\(//\)$' \| \
14524          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14525 $as_echo X"$as_dir" |
14526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527             s//\1/
14528             q
14529           }
14530           /^X\(\/\/\)[^/].*/{
14531             s//\1/
14532             q
14533           }
14534           /^X\(\/\/\)$/{
14535             s//\1/
14536             q
14537           }
14538           /^X\(\/\).*/{
14539             s//\1/
14540             q
14541           }
14542           s/.*/./; q'`
14543       test -d "$as_dir" && break
14544     done
14545     test -z "$as_dirs" || eval "mkdir $as_dirs"
14546   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14547
14548
14549 } # as_fn_mkdir_p
14550 if mkdir -p . 2>/dev/null; then
14551   as_mkdir_p='mkdir -p "$as_dir"'
14552 else
14553   test -d ./-p && rmdir ./-p
14554   as_mkdir_p=false
14555 fi
14556
14557 if test -x / >/dev/null 2>&1; then
14558   as_test_x='test -x'
14559 else
14560   if ls -dL / >/dev/null 2>&1; then
14561     as_ls_L_option=L
14562   else
14563     as_ls_L_option=
14564   fi
14565   as_test_x='
14566     eval sh -c '\''
14567       if test -d "$1"; then
14568         test -d "$1/.";
14569       else
14570         case $1 in #(
14571         -*)set "./$1";;
14572         esac;
14573         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14574         ???[sx]*):;;*)false;;esac;fi
14575     '\'' sh
14576   '
14577 fi
14578 as_executable_p=$as_test_x
14579
14580 # Sed expression to map a string onto a valid CPP name.
14581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583 # Sed expression to map a string onto a valid variable name.
14584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
14587 exec 6>&1
14588 ## ----------------------------------- ##
14589 ## Main body of $CONFIG_STATUS script. ##
14590 ## ----------------------------------- ##
14591 _ASEOF
14592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14593
14594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595 # Save the log message, to keep $0 and so on meaningful, and to
14596 # report actual input values of CONFIG_FILES etc. instead of their
14597 # values after options handling.
14598 ac_log="
14599 This file was extended by $as_me, which was
14600 generated by GNU Autoconf 2.64.  Invocation command line was
14601
14602   CONFIG_FILES    = $CONFIG_FILES
14603   CONFIG_HEADERS  = $CONFIG_HEADERS
14604   CONFIG_LINKS    = $CONFIG_LINKS
14605   CONFIG_COMMANDS = $CONFIG_COMMANDS
14606   $ $0 $@
14607
14608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14609 "
14610
14611 _ACEOF
14612
14613 case $ac_config_files in *"
14614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14615 esac
14616
14617
14618
14619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620 # Files that config.status was made for.
14621 config_files="$ac_config_files"
14622
14623 _ACEOF
14624
14625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14626 ac_cs_usage="\
14627 \`$as_me' instantiates files and other configuration actions
14628 from templates according to the current configuration.  Unless the files
14629 and actions are specified as TAGs, all are instantiated by default.
14630
14631 Usage: $0 [OPTION]... [TAG]...
14632
14633   -h, --help       print this help, then exit
14634   -V, --version    print version number and configuration settings, then exit
14635   -q, --quiet, --silent
14636                    do not print progress messages
14637   -d, --debug      don't remove temporary files
14638       --recheck    update $as_me by reconfiguring in the same conditions
14639       --file=FILE[:TEMPLATE]
14640                    instantiate the configuration file FILE
14641
14642 Configuration files:
14643 $config_files
14644
14645 Report bugs to the package provider."
14646
14647 _ACEOF
14648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 ac_cs_version="\\
14650 config.status
14651 configured by $0, generated by GNU Autoconf 2.64,
14652   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14653
14654 Copyright (C) 2009 Free Software Foundation, Inc.
14655 This config.status script is free software; the Free Software Foundation
14656 gives unlimited permission to copy, distribute and modify it."
14657
14658 ac_pwd='$ac_pwd'
14659 srcdir='$srcdir'
14660 INSTALL='$INSTALL'
14661 AWK='$AWK'
14662 test -n "\$AWK" || AWK=awk
14663 _ACEOF
14664
14665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666 # The default lists apply if the user does not specify any file.
14667 ac_need_defaults=:
14668 while test $# != 0
14669 do
14670   case $1 in
14671   --*=*)
14672     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14673     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14674     ac_shift=:
14675     ;;
14676   *)
14677     ac_option=$1
14678     ac_optarg=$2
14679     ac_shift=shift
14680     ;;
14681   esac
14682
14683   case $ac_option in
14684   # Handling of the options.
14685   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14686     ac_cs_recheck=: ;;
14687   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688     $as_echo "$ac_cs_version"; exit ;;
14689   --debug | --debu | --deb | --de | --d | -d )
14690     debug=: ;;
14691   --file | --fil | --fi | --f )
14692     $ac_shift
14693     case $ac_optarg in
14694     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14695     esac
14696     as_fn_append CONFIG_FILES " '$ac_optarg'"
14697     ac_need_defaults=false;;
14698   --he | --h |  --help | --hel | -h )
14699     $as_echo "$ac_cs_usage"; exit ;;
14700   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14701   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14702     ac_cs_silent=: ;;
14703
14704   # This is an error.
14705   -*) as_fn_error "unrecognized option: \`$1'
14706 Try \`$0 --help' for more information." ;;
14707
14708   *) as_fn_append ac_config_targets " $1"
14709      ac_need_defaults=false ;;
14710
14711   esac
14712   shift
14713 done
14714
14715 ac_configure_extra_args=
14716
14717 if $ac_cs_silent; then
14718   exec 6>/dev/null
14719   ac_configure_extra_args="$ac_configure_extra_args --silent"
14720 fi
14721
14722 _ACEOF
14723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14724 if \$ac_cs_recheck; then
14725   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14726   shift
14727   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14728   CONFIG_SHELL='$SHELL'
14729   export CONFIG_SHELL
14730   exec "\$@"
14731 fi
14732
14733 _ACEOF
14734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735 exec 5>>config.log
14736 {
14737   echo
14738   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739 ## Running $as_me. ##
14740 _ASBOX
14741   $as_echo "$ac_log"
14742 } >&5
14743
14744 _ACEOF
14745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14746 #
14747 # INIT-COMMANDS
14748 #
14749 extrasub_build="$extrasub_build"
14750    extrasub_host="$extrasub_host"
14751    extrasub_target="$extrasub_target"
14752
14753 _ACEOF
14754
14755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14756
14757 # Handling of arguments.
14758 for ac_config_target in $ac_config_targets
14759 do
14760   case $ac_config_target in
14761     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762
14763   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14764   esac
14765 done
14766
14767
14768 # If the user did not use the arguments to specify the items to instantiate,
14769 # then the envvar interface is used.  Set only those that are not.
14770 # We use the long form for the default assignment because of an extremely
14771 # bizarre bug on SunOS 4.1.3.
14772 if $ac_need_defaults; then
14773   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14774 fi
14775
14776 # Have a temporary directory for convenience.  Make it in the build tree
14777 # simply because there is no reason against having it here, and in addition,
14778 # creating and moving files from /tmp can sometimes cause problems.
14779 # Hook for its removal unless debugging.
14780 # Note that there is a small window in which the directory will not be cleaned:
14781 # after its creation but before its name has been assigned to `$tmp'.
14782 $debug ||
14783 {
14784   tmp=
14785   trap 'exit_status=$?
14786   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14787 ' 0
14788   trap 'as_fn_exit 1' 1 2 13 15
14789 }
14790 # Create a (secure) tmp directory for tmp files.
14791
14792 {
14793   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14794   test -n "$tmp" && test -d "$tmp"
14795 }  ||
14796 {
14797   tmp=./conf$$-$RANDOM
14798   (umask 077 && mkdir "$tmp")
14799 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14800
14801 # Set up the scripts for CONFIG_FILES section.
14802 # No need to generate them if there are no CONFIG_FILES.
14803 # This happens for instance with `./config.status config.h'.
14804 if test -n "$CONFIG_FILES"; then
14805
14806 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14807   ac_cs_awk_getline=:
14808   ac_cs_awk_pipe_init=
14809   ac_cs_awk_read_file='
14810       while ((getline aline < (F[key])) > 0)
14811         print(aline)
14812       close(F[key])'
14813   ac_cs_awk_pipe_fini=
14814 else
14815   ac_cs_awk_getline=false
14816   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14817   ac_cs_awk_read_file='
14818       print "|#_!!_#|"
14819       print "cat " F[key] " &&"
14820       '$ac_cs_awk_pipe_init
14821   # The final `:' finishes the AND list.
14822   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14823 fi
14824 ac_cr=`echo X | tr X '\015'`
14825 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14826 # But we know of no other shell where ac_cr would be empty at this
14827 # point, so we can use a bashism as a fallback.
14828 if test "x$ac_cr" = x; then
14829   eval ac_cr=\$\'\\r\'
14830 fi
14831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833   ac_cs_awk_cr='\r'
14834 else
14835   ac_cs_awk_cr=$ac_cr
14836 fi
14837
14838 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14839 _ACEOF
14840
14841 # Create commands to substitute file output variables.
14842 {
14843   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14844   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14845   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14846   echo "_ACAWK" &&
14847   echo "_ACEOF"
14848 } >conf$$files.sh &&
14849 . ./conf$$files.sh ||
14850   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851 rm -f conf$$files.sh
14852
14853 {
14854   echo "cat >conf$$subs.awk <<_ACEOF" &&
14855   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14856   echo "_ACEOF"
14857 } >conf$$subs.sh ||
14858   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14860 ac_delim='%!_!# '
14861 for ac_last_try in false false false false false :; do
14862   . ./conf$$subs.sh ||
14863     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14864
14865   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866   if test $ac_delim_n = $ac_delim_num; then
14867     break
14868   elif $ac_last_try; then
14869     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870   else
14871     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14872   fi
14873 done
14874 rm -f conf$$subs.sh
14875
14876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14878 _ACEOF
14879 sed -n '
14880 h
14881 s/^/S["/; s/!.*/"]=/
14882 p
14883 g
14884 s/^[^!]*!//
14885 :repl
14886 t repl
14887 s/'"$ac_delim"'$//
14888 t delim
14889 :nl
14890 h
14891 s/\(.\{148\}\).*/\1/
14892 t more1
14893 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14894 p
14895 n
14896 b repl
14897 :more1
14898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14899 p
14900 g
14901 s/.\{148\}//
14902 t nl
14903 :delim
14904 h
14905 s/\(.\{148\}\).*/\1/
14906 t more2
14907 s/["\\]/\\&/g; s/^/"/; s/$/"/
14908 p
14909 b
14910 :more2
14911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14912 p
14913 g
14914 s/.\{148\}//
14915 t delim
14916 ' <conf$$subs.awk | sed '
14917 /^[^""]/{
14918   N
14919   s/\n//
14920 }
14921 ' >>$CONFIG_STATUS || ac_write_fail=1
14922 rm -f conf$$subs.awk
14923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924 _ACAWK
14925 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14926   for (key in S) S_is_set[key] = 1
14927   FS = "\a"
14928   \$ac_cs_awk_pipe_init
14929 }
14930 {
14931   line = $ 0
14932   nfields = split(line, field, "@")
14933   substed = 0
14934   len = length(field[1])
14935   for (i = 2; i < nfields; i++) {
14936     key = field[i]
14937     keylen = length(key)
14938     if (S_is_set[key]) {
14939       value = S[key]
14940       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14941       len += length(value) + length(field[++i])
14942       substed = 1
14943     } else
14944       len += 1 + keylen
14945   }
14946   if (nfields == 3 && !substed) {
14947     key = field[2]
14948     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14949       \$ac_cs_awk_read_file
14950       next
14951     }
14952   }
14953   print line
14954 }
14955 \$ac_cs_awk_pipe_fini
14956 _ACAWK
14957 _ACEOF
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14960   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14961 else
14962   cat
14963 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14964   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14965 _ACEOF
14966
14967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14969 # trailing colons and then remove the whole line if VPATH becomes empty
14970 # (actually we leave an empty line to preserve line numbers).
14971 if test "x$srcdir" = x.; then
14972   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14973 s/:*\$(srcdir):*/:/
14974 s/:*\${srcdir}:*/:/
14975 s/:*@srcdir@:*/:/
14976 s/^\([^=]*=[     ]*\):*/\1/
14977 s/:*$//
14978 s/^[^=]*=[       ]*$//
14979 }'
14980 fi
14981
14982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983 fi # test -n "$CONFIG_FILES"
14984
14985
14986 eval set X "  :F $CONFIG_FILES      "
14987 shift
14988 for ac_tag
14989 do
14990   case $ac_tag in
14991   :[FHLC]) ac_mode=$ac_tag; continue;;
14992   esac
14993   case $ac_mode$ac_tag in
14994   :[FHL]*:*);;
14995   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14996   :[FH]-) ac_tag=-:-;;
14997   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14998   esac
14999   ac_save_IFS=$IFS
15000   IFS=:
15001   set x $ac_tag
15002   IFS=$ac_save_IFS
15003   shift
15004   ac_file=$1
15005   shift
15006
15007   case $ac_mode in
15008   :L) ac_source=$1;;
15009   :[FH])
15010     ac_file_inputs=
15011     for ac_f
15012     do
15013       case $ac_f in
15014       -) ac_f="$tmp/stdin";;
15015       *) # Look for the file first in the build tree, then in the source tree
15016          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15017          # because $ac_f cannot contain `:'.
15018          test -f "$ac_f" ||
15019            case $ac_f in
15020            [\\/$]*) false;;
15021            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022            esac ||
15023            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15024       esac
15025       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15026       as_fn_append ac_file_inputs " '$ac_f'"
15027     done
15028
15029     # Let's still pretend it is `configure' which instantiates (i.e., don't
15030     # use $as_me), people would be surprised to read:
15031     #    /* config.h.  Generated by config.status.  */
15032     configure_input='Generated from '`
15033           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15034         `' by configure.'
15035     if test x"$ac_file" != x-; then
15036       configure_input="$ac_file.  $configure_input"
15037       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15038 $as_echo "$as_me: creating $ac_file" >&6;}
15039     fi
15040     # Neutralize special characters interpreted by sed in replacement strings.
15041     case $configure_input in #(
15042     *\&* | *\|* | *\\* )
15043        ac_sed_conf_input=`$as_echo "$configure_input" |
15044        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15045     *) ac_sed_conf_input=$configure_input;;
15046     esac
15047
15048     case $ac_tag in
15049     *:-:* | *:-) cat >"$tmp/stdin" \
15050       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15051     esac
15052     ;;
15053   esac
15054
15055   ac_dir=`$as_dirname -- "$ac_file" ||
15056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15057          X"$ac_file" : 'X\(//\)[^/]' \| \
15058          X"$ac_file" : 'X\(//\)$' \| \
15059          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15060 $as_echo X"$ac_file" |
15061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15062             s//\1/
15063             q
15064           }
15065           /^X\(\/\/\)[^/].*/{
15066             s//\1/
15067             q
15068           }
15069           /^X\(\/\/\)$/{
15070             s//\1/
15071             q
15072           }
15073           /^X\(\/\).*/{
15074             s//\1/
15075             q
15076           }
15077           s/.*/./; q'`
15078   as_dir="$ac_dir"; as_fn_mkdir_p
15079   ac_builddir=.
15080
15081 case "$ac_dir" in
15082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15083 *)
15084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15085   # A ".." for each directory in $ac_dir_suffix.
15086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15087   case $ac_top_builddir_sub in
15088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090   esac ;;
15091 esac
15092 ac_abs_top_builddir=$ac_pwd
15093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15094 # for backward compatibility:
15095 ac_top_builddir=$ac_top_build_prefix
15096
15097 case $srcdir in
15098   .)  # We are building in place.
15099     ac_srcdir=.
15100     ac_top_srcdir=$ac_top_builddir_sub
15101     ac_abs_top_srcdir=$ac_pwd ;;
15102   [\\/]* | ?:[\\/]* )  # Absolute name.
15103     ac_srcdir=$srcdir$ac_dir_suffix;
15104     ac_top_srcdir=$srcdir
15105     ac_abs_top_srcdir=$srcdir ;;
15106   *) # Relative name.
15107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15108     ac_top_srcdir=$ac_top_build_prefix$srcdir
15109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15110 esac
15111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15112
15113
15114   case $ac_mode in
15115   :F)
15116   #
15117   # CONFIG_FILE
15118   #
15119
15120   case $INSTALL in
15121   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15122   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15123   esac
15124 _ACEOF
15125
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 # If the template does not know about datarootdir, expand it.
15128 # FIXME: This hack should be removed a few years after 2.60.
15129 ac_datarootdir_hack=; ac_datarootdir_seen=
15130 ac_sed_dataroot='
15131 /datarootdir/ {
15132   p
15133   q
15134 }
15135 /@datadir@/p
15136 /@docdir@/p
15137 /@infodir@/p
15138 /@localedir@/p
15139 /@mandir@/p'
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147   ac_datarootdir_hack='
15148   s&@datadir@&$datadir&g
15149   s&@docdir@&$docdir&g
15150   s&@infodir@&$infodir&g
15151   s&@localedir@&$localedir&g
15152   s&@mandir@&$mandir&g
15153   s&\\\${datarootdir}&$datarootdir&g' ;;
15154 esac
15155 _ACEOF
15156
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15162 $extrasub
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165 :t
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15179 "
15180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15181 if $ac_cs_awk_getline; then
15182   $AWK -f "$tmp/subs.awk"
15183 else
15184   $AWK -f "$tmp/subs.awk" | $SHELL
15185 fi >$tmp/out \
15186   || as_fn_error "could not create $ac_file" "$LINENO" 5
15187
15188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192 which seems to be undefined.  Please make sure it is defined." >&5
15193 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194 which seems to be undefined.  Please make sure it is defined." >&2;}
15195
15196   rm -f "$tmp/stdin"
15197   case $ac_file in
15198   -) cat "$tmp/out" && rm -f "$tmp/out";;
15199   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15200   esac \
15201   || as_fn_error "could not create $ac_file" "$LINENO" 5
15202  ;;
15203
15204
15205
15206   esac
15207
15208
15209   case $ac_file$ac_mode in
15210     "Makefile":F) sed "$extrasub_build" Makefile |
15211    sed "$extrasub_host" |
15212    sed "$extrasub_target" > mf$$
15213    mv -f mf$$ Makefile ;;
15214
15215   esac
15216 done # for ac_tag
15217
15218
15219 as_fn_exit 0
15220 _ACEOF
15221 ac_clean_files=$ac_clean_files_save
15222
15223 test $ac_write_fail = 0 ||
15224   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15225
15226
15227 # configure is writing to config.log, and then calls config.status.
15228 # config.status does its own redirection, appending to config.log.
15229 # Unfortunately, on DOS this fails, as config.log is still kept open
15230 # by configure, so config.status won't be able to write to it; its
15231 # output is simply discarded.  So we exec the FD to /dev/null,
15232 # effectively closing config.log, so it can be properly (re)opened and
15233 # appended to by config.status.  When coming back to configure, we
15234 # need to make the FD available again.
15235 if test "$no_create" != yes; then
15236   ac_cs_success=:
15237   ac_config_status_args=
15238   test "$silent" = yes &&
15239     ac_config_status_args="$ac_config_status_args --quiet"
15240   exec 5>/dev/null
15241   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242   exec 5>>config.log
15243   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244   # would make configure fail if this is the last instruction.
15245   $ac_cs_success || as_fn_exit $?
15246 fi
15247 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15248   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15249 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15250 fi
15251