OSDN Git Service

715915c6a63bb74cf05bf3c87f71c46e88fb6f78
[pf3gnuchains/gcc-fork.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172   if (eval "$as_required") 2>/dev/null; then :
173   as_have_required=yes
174 else
175   as_have_required=no
176 fi
177   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179 else
180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 as_found=false
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
183 do
184   IFS=$as_save_IFS
185   test -z "$as_dir" && as_dir=.
186   as_found=:
187   case $as_dir in #(
188          /*)
189            for as_base in sh bash ksh sh5; do
190              # Try only shells that exist, to save several forks.
191              as_shell=$as_dir/$as_base
192              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194   CONFIG_SHELL=$as_shell as_have_required=yes
195                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196   break 2
197 fi
198 fi
199            done;;
200        esac
201   as_found=false
202 done
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205   CONFIG_SHELL=$SHELL as_have_required=yes
206 fi; }
207 IFS=$as_save_IFS
208
209
210       if test "x$CONFIG_SHELL" != x; then :
211   # We cannot yet assume a decent shell, so we have to provide a
212         # neutralization value for shells without unset; and this also
213         # works around shells that cannot unset nonexistent variables.
214         BASH_ENV=/dev/null
215         ENV=/dev/null
216         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217         export CONFIG_SHELL
218         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219 fi
220
221     if test x$as_have_required = xno; then :
222   $as_echo "$0: This script requires a shell more modern than all"
223   $as_echo "$0: the shells that I found on your system."
224   if test x${ZSH_VERSION+set} = xset ; then
225     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
227   else
228     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229 $0: including any error possibly output before this
230 $0: message. Then install a modern shell, or manually run
231 $0: the script under such a shell if you do have one."
232   fi
233   exit 1
234 fi
235 fi
236 fi
237 SHELL=${CONFIG_SHELL-/bin/sh}
238 export SHELL
239 # Unset more variables known to interfere with behavior of common tools.
240 CLICOLOR_FORCE= GREP_OPTIONS=
241 unset CLICOLOR_FORCE GREP_OPTIONS
242
243 ## --------------------- ##
244 ## M4sh Shell Functions. ##
245 ## --------------------- ##
246 # as_fn_unset VAR
247 # ---------------
248 # Portably unset VAR.
249 as_fn_unset ()
250 {
251   { eval $1=; unset $1;}
252 }
253 as_unset=as_fn_unset
254
255 # as_fn_set_status STATUS
256 # -----------------------
257 # Set $? to STATUS, without forking.
258 as_fn_set_status ()
259 {
260   return $1
261 } # as_fn_set_status
262
263 # as_fn_exit STATUS
264 # -----------------
265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266 as_fn_exit ()
267 {
268   set +e
269   as_fn_set_status $1
270   exit $1
271 } # as_fn_exit
272
273 # as_fn_mkdir_p
274 # -------------
275 # Create "$as_dir" as a directory, including parents if necessary.
276 as_fn_mkdir_p ()
277 {
278
279   case $as_dir in #(
280   -*) as_dir=./$as_dir;;
281   esac
282   test -d "$as_dir" || eval $as_mkdir_p || {
283     as_dirs=
284     while :; do
285       case $as_dir in #(
286       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287       *) as_qdir=$as_dir;;
288       esac
289       as_dirs="'$as_qdir' $as_dirs"
290       as_dir=`$as_dirname -- "$as_dir" ||
291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292          X"$as_dir" : 'X\(//\)[^/]' \| \
293          X"$as_dir" : 'X\(//\)$' \| \
294          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295 $as_echo X"$as_dir" |
296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297             s//\1/
298             q
299           }
300           /^X\(\/\/\)[^/].*/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)$/{
305             s//\1/
306             q
307           }
308           /^X\(\/\).*/{
309             s//\1/
310             q
311           }
312           s/.*/./; q'`
313       test -d "$as_dir" && break
314     done
315     test -z "$as_dirs" || eval "mkdir $as_dirs"
316   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319 } # as_fn_mkdir_p
320 # as_fn_append VAR VALUE
321 # ----------------------
322 # Append the text in VALUE to the end of the definition contained in VAR. Take
323 # advantage of any shell optimizations that allow amortized linear growth over
324 # repeated appends, instead of the typical quadratic growth present in naive
325 # implementations.
326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327   eval 'as_fn_append ()
328   {
329     eval $1+=\$2
330   }'
331 else
332   as_fn_append ()
333   {
334     eval $1=\$$1\$2
335   }
336 fi # as_fn_append
337
338 # as_fn_arith ARG...
339 # ------------------
340 # Perform arithmetic evaluation on the ARGs, and store the result in the
341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
342 # must be portable across $(()) and expr.
343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344   eval 'as_fn_arith ()
345   {
346     as_val=$(( $* ))
347   }'
348 else
349   as_fn_arith ()
350   {
351     as_val=`expr "$@" || test $? -eq 1`
352   }
353 fi # as_fn_arith
354
355
356 # as_fn_error ERROR [LINENO LOG_FD]
357 # ---------------------------------
358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360 # script with status $?, using 1 if that was 0.
361 as_fn_error ()
362 {
363   as_status=$?; test $as_status -eq 0 && as_status=1
364   if test "$3"; then
365     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367   fi
368   $as_echo "$as_me: error: $1" >&2
369   as_fn_exit $as_status
370 } # as_fn_error
371
372 if expr a : '\(a\)' >/dev/null 2>&1 &&
373    test "X`expr 00001 : '.*\(...\)'`" = X001; then
374   as_expr=expr
375 else
376   as_expr=false
377 fi
378
379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
380   as_basename=basename
381 else
382   as_basename=false
383 fi
384
385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386   as_dirname=dirname
387 else
388   as_dirname=false
389 fi
390
391 as_me=`$as_basename -- "$0" ||
392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393          X"$0" : 'X\(//\)$' \| \
394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395 $as_echo X/"$0" |
396     sed '/^.*\/\([^/][^/]*\)\/*$/{
397             s//\1/
398             q
399           }
400           /^X\/\(\/\/\)$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\).*/{
405             s//\1/
406             q
407           }
408           s/.*/./; q'`
409
410 # Avoid depending upon Character Ranges.
411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414 as_cr_digits='0123456789'
415 as_cr_alnum=$as_cr_Letters$as_cr_digits
416
417
418   as_lineno_1=$LINENO as_lineno_1a=$LINENO
419   as_lineno_2=$LINENO as_lineno_2a=$LINENO
420   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
423   sed -n '
424     p
425     /[$]LINENO/=
426   ' <$as_myself |
427     sed '
428       s/[$]LINENO.*/&-/
429       t lineno
430       b
431       :lineno
432       N
433       :loop
434       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
435       t loop
436       s/-\n.*//
437     ' >$as_me.lineno &&
438   chmod +x "$as_me.lineno" ||
439     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
440
441   # Don't try to exec as it changes $[0], causing all sort of problems
442   # (the dirname of $[0] is not the place where we might find the
443   # original and so on.  Autoconf is especially sensitive to this).
444   . "./$as_me.lineno"
445   # Exit status is that of the last command.
446   exit
447 }
448
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
451 -n*)
452   case `echo 'xy\c'` in
453   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
454   xy)  ECHO_C='\c';;
455   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
456        ECHO_T=' ';;
457   esac;;
458 *)
459   ECHO_N='-n';;
460 esac
461
462 rm -f conf$$ conf$$.exe conf$$.file
463 if test -d conf$$.dir; then
464   rm -f conf$$.dir/conf$$.file
465 else
466   rm -f conf$$.dir
467   mkdir conf$$.dir 2>/dev/null
468 fi
469 if (echo >conf$$.file) 2>/dev/null; then
470   if ln -s conf$$.file conf$$ 2>/dev/null; then
471     as_ln_s='ln -s'
472     # ... but there are two gotchas:
473     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475     # In both cases, we have to default to `cp -p'.
476     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477       as_ln_s='cp -p'
478   elif ln conf$$.file conf$$ 2>/dev/null; then
479     as_ln_s=ln
480   else
481     as_ln_s='cp -p'
482   fi
483 else
484   as_ln_s='cp -p'
485 fi
486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487 rmdir conf$$.dir 2>/dev/null
488
489 if mkdir -p . 2>/dev/null; then
490   as_mkdir_p='mkdir -p "$as_dir"'
491 else
492   test -d ./-p && rmdir ./-p
493   as_mkdir_p=false
494 fi
495
496 if test -x / >/dev/null 2>&1; then
497   as_test_x='test -x'
498 else
499   if ls -dL / >/dev/null 2>&1; then
500     as_ls_L_option=L
501   else
502     as_ls_L_option=
503   fi
504   as_test_x='
505     eval sh -c '\''
506       if test -d "$1"; then
507         test -d "$1/.";
508       else
509         case $1 in #(
510         -*)set "./$1";;
511         esac;
512         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513         ???[sx]*):;;*)false;;esac;fi
514     '\'' sh
515   '
516 fi
517 as_executable_p=$as_test_x
518
519 # Sed expression to map a string onto a valid CPP name.
520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521
522 # Sed expression to map a string onto a valid variable name.
523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524
525
526 exec 7<&0 </dev/null 6>&1
527
528 # Name of the host.
529 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530 # so uname gets run too.
531 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532
533 #
534 # Initializations.
535 #
536 ac_default_prefix=/usr/local
537 ac_clean_files=
538 ac_config_libobj_dir=.
539 LIBOBJS=
540 cross_compiling=no
541 subdirs=
542 MFLAGS=
543 MAKEFLAGS=
544
545 # Identity of this package.
546 PACKAGE_NAME=
547 PACKAGE_TARNAME=
548 PACKAGE_VERSION=
549 PACKAGE_STRING=
550 PACKAGE_BUGREPORT=
551 PACKAGE_URL=
552
553 ac_unique_file="move-if-change"
554 enable_option_checking=no
555 ac_subst_vars='LTLIBOBJS
556 LIBOBJS
557 compare_exclusions
558 stage2_werror_flag
559 stage1_checking
560 stage1_cflags
561 MAINT
562 MAINTAINER_MODE_FALSE
563 MAINTAINER_MODE_TRUE
564 COMPILER_NM_FOR_TARGET
565 COMPILER_LD_FOR_TARGET
566 COMPILER_AS_FOR_TARGET
567 FLAGS_FOR_TARGET
568 RAW_CXX_FOR_TARGET
569 WINDMC_FOR_TARGET
570 WINDRES_FOR_TARGET
571 STRIP_FOR_TARGET
572 RANLIB_FOR_TARGET
573 OBJDUMP_FOR_TARGET
574 NM_FOR_TARGET
575 LIPO_FOR_TARGET
576 LD_FOR_TARGET
577 DLLTOOL_FOR_TARGET
578 AS_FOR_TARGET
579 AR_FOR_TARGET
580 GFORTRAN_FOR_TARGET
581 GCJ_FOR_TARGET
582 GCC_FOR_TARGET
583 CXX_FOR_TARGET
584 CC_FOR_TARGET
585 OBJDUMP
586 OBJCOPY
587 WINDMC
588 WINDRES
589 STRIP
590 RANLIB
591 NM
592 LIPO
593 LD
594 DLLTOOL
595 AS
596 AR
597 RUNTEST
598 EXPECT
599 MAKEINFO
600 FLEX
601 LEX
602 M4
603 BISON
604 YACC
605 config_shell
606 WINDRES_FOR_BUILD
607 WINDMC_FOR_BUILD
608 RANLIB_FOR_BUILD
609 NM_FOR_BUILD
610 LD_FOR_BUILD
611 LDFLAGS_FOR_BUILD
612 GFORTRAN_FOR_BUILD
613 GCJ_FOR_BUILD
614 DLLTOOL_FOR_BUILD
615 CXX_FOR_BUILD
616 CXXFLAGS_FOR_BUILD
617 CFLAGS_FOR_BUILD
618 CC_FOR_BUILD
619 AS_FOR_BUILD
620 AR_FOR_BUILD
621 target_configargs
622 configdirs
623 host_configargs
624 build_configdirs
625 build_configargs
626 INSTALL_GDB_TK
627 GDB_TK
628 CONFIGURE_GDB_TK
629 build_tooldir
630 tooldir
631 GCC_SHLIB_SUBDIR
632 RPATH_ENVVAR
633 CXXFLAGS_FOR_TARGET
634 CFLAGS_FOR_TARGET
635 DEBUG_PREFIX_CFLAGS_FOR_TARGET
636 SYSROOT_CFLAGS_FOR_TARGET
637 stage1_languages
638 clooginc
639 clooglibs
640 pplinc
641 ppllibs
642 poststage1_libs
643 poststage1_ldflags
644 stage1_libs
645 stage1_ldflags
646 extra_mpc_mpfr_configure_flags
647 extra_mpc_gmp_configure_flags
648 extra_mpfr_configure_flags
649 gmpinc
650 gmplibs
651 do_compare
652 GNATMAKE
653 GNATBIND
654 ac_ct_CXX
655 CXXFLAGS
656 CXX
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 target_subdir
665 host_subdir
666 build_subdir
667 build_libsubdir
668 LN_S
669 LN
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 target_noncanonical
682 host_noncanonical
683 build_noncanonical
684 build_os
685 build_vendor
686 build_cpu
687 build
688 TOPLEVEL_CONFIGURE_ARGUMENTS
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files='serialization_dependencies
728 host_makefile_frag
729 target_makefile_frag
730 alphaieee_frag
731 ospace_frag'
732 ac_user_opts='
733 enable_option_checking
734 with_build_libsubdir
735 enable_gold
736 enable_libada
737 enable_libssp
738 enable_build_with_cxx
739 with_mpc
740 with_mpc_include
741 with_mpc_lib
742 with_mpfr_dir
743 with_mpfr
744 with_mpfr_include
745 with_mpfr_lib
746 with_gmp_dir
747 with_gmp
748 with_gmp_include
749 with_gmp_lib
750 with_host_libstdcxx
751 with_stage1_ldflags
752 with_stage1_libs
753 with_boot_ldflags
754 with_boot_libs
755 with_ppl
756 with_ppl_include
757 with_ppl_lib
758 enable_ppl_version_check
759 with_cloog
760 with_cloog_include
761 with_cloog_lib
762 enable_cloog_version_check
763 enable_stage1_languages
764 enable_objc_gc
765 with_build_sysroot
766 with_debug_prefix_map
767 enable_bootstrap
768 enable_serial_configure
769 with_build_time_tools
770 enable_maintainer_mode
771 enable_stage1_checking
772 enable_werror
773 with_datarootdir
774 with_docdir
775 with_pdfdir
776 with_htmldir
777 '
778       ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CXX
787 CXXFLAGS
788 CCC
789 AR
790 AS
791 DLLTOOL
792 LD
793 LIPO
794 NM
795 RANLIB
796 STRIP
797 WINDRES
798 WINDMC
799 OBJCOPY
800 OBJDUMP
801 CC_FOR_TARGET
802 CXX_FOR_TARGET
803 GCC_FOR_TARGET
804 GCJ_FOR_TARGET
805 GFORTRAN_FOR_TARGET
806 AR_FOR_TARGET
807 AS_FOR_TARGET
808 DLLTOOL_FOR_TARGET
809 LD_FOR_TARGET
810 LIPO_FOR_TARGET
811 NM_FOR_TARGET
812 OBJDUMP_FOR_TARGET
813 RANLIB_FOR_TARGET
814 STRIP_FOR_TARGET
815 WINDRES_FOR_TARGET
816 WINDMC_FOR_TARGET'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925       as_fn_error "invalid feature name: $ac_useropt"
926     ac_useropt_orig=$ac_useropt
927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928     case $ac_user_opts in
929       *"
930 "enable_$ac_useropt"
931 "*) ;;
932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933          ac_unrecognized_sep=', ';;
934     esac
935     eval enable_$ac_useropt=no ;;
936
937   -docdir | --docdir | --docdi | --doc | --do)
938     ac_prev=docdir ;;
939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940     docdir=$ac_optarg ;;
941
942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943     ac_prev=dvidir ;;
944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945     dvidir=$ac_optarg ;;
946
947   -enable-* | --enable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=\$ac_optarg ;;
962
963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965   | --exec | --exe | --ex)
966     ac_prev=exec_prefix ;;
967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969   | --exec=* | --exe=* | --ex=*)
970     exec_prefix=$ac_optarg ;;
971
972   -gas | --gas | --ga | --g)
973     # Obsolete; use --with-gas.
974     with_gas=yes ;;
975
976   -help | --help | --hel | --he | -h)
977     ac_init_help=long ;;
978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979     ac_init_help=recursive ;;
980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981     ac_init_help=short ;;
982
983   -host | --host | --hos | --ho)
984     ac_prev=host_alias ;;
985   -host=* | --host=* | --hos=* | --ho=*)
986     host_alias=$ac_optarg ;;
987
988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989     ac_prev=htmldir ;;
990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991   | --ht=*)
992     htmldir=$ac_optarg ;;
993
994   -includedir | --includedir | --includedi | --included | --include \
995   | --includ | --inclu | --incl | --inc)
996     ac_prev=includedir ;;
997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998   | --includ=* | --inclu=* | --incl=* | --inc=*)
999     includedir=$ac_optarg ;;
1000
1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
1002     ac_prev=infodir ;;
1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004     infodir=$ac_optarg ;;
1005
1006   -libdir | --libdir | --libdi | --libd)
1007     ac_prev=libdir ;;
1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009     libdir=$ac_optarg ;;
1010
1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012   | --libexe | --libex | --libe)
1013     ac_prev=libexecdir ;;
1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015   | --libexe=* | --libex=* | --libe=*)
1016     libexecdir=$ac_optarg ;;
1017
1018   -localedir | --localedir | --localedi | --localed | --locale)
1019     ac_prev=localedir ;;
1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021     localedir=$ac_optarg ;;
1022
1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
1024   | --localstate | --localstat | --localsta | --localst | --locals)
1025     ac_prev=localstatedir ;;
1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028     localstatedir=$ac_optarg ;;
1029
1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031     ac_prev=mandir ;;
1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033     mandir=$ac_optarg ;;
1034
1035   -nfp | --nfp | --nf)
1036     # Obsolete; use --without-fp.
1037     with_fp=no ;;
1038
1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040   | --no-cr | --no-c | -n)
1041     no_create=yes ;;
1042
1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045     no_recursion=yes ;;
1046
1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049   | --oldin | --oldi | --old | --ol | --o)
1050     ac_prev=oldincludedir ;;
1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054     oldincludedir=$ac_optarg ;;
1055
1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057     ac_prev=prefix ;;
1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059     prefix=$ac_optarg ;;
1060
1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062   | --program-pre | --program-pr | --program-p)
1063     ac_prev=program_prefix ;;
1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066     program_prefix=$ac_optarg ;;
1067
1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069   | --program-suf | --program-su | --program-s)
1070     ac_prev=program_suffix ;;
1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073     program_suffix=$ac_optarg ;;
1074
1075   -program-transform-name | --program-transform-name \
1076   | --program-transform-nam | --program-transform-na \
1077   | --program-transform-n | --program-transform- \
1078   | --program-transform | --program-transfor \
1079   | --program-transfo | --program-transf \
1080   | --program-trans | --program-tran \
1081   | --progr-tra | --program-tr | --program-t)
1082     ac_prev=program_transform_name ;;
1083   -program-transform-name=* | --program-transform-name=* \
1084   | --program-transform-nam=* | --program-transform-na=* \
1085   | --program-transform-n=* | --program-transform-=* \
1086   | --program-transform=* | --program-transfor=* \
1087   | --program-transfo=* | --program-transf=* \
1088   | --program-trans=* | --program-tran=* \
1089   | --progr-tra=* | --program-tr=* | --program-t=*)
1090     program_transform_name=$ac_optarg ;;
1091
1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093     ac_prev=pdfdir ;;
1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095     pdfdir=$ac_optarg ;;
1096
1097   -psdir | --psdir | --psdi | --psd | --ps)
1098     ac_prev=psdir ;;
1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100     psdir=$ac_optarg ;;
1101
1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103   | -silent | --silent | --silen | --sile | --sil)
1104     silent=yes ;;
1105
1106   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107     ac_prev=sbindir ;;
1108   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109   | --sbi=* | --sb=*)
1110     sbindir=$ac_optarg ;;
1111
1112   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114   | --sharedst | --shareds | --shared | --share | --shar \
1115   | --sha | --sh)
1116     ac_prev=sharedstatedir ;;
1117   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120   | --sha=* | --sh=*)
1121     sharedstatedir=$ac_optarg ;;
1122
1123   -site | --site | --sit)
1124     ac_prev=site ;;
1125   -site=* | --site=* | --sit=*)
1126     site=$ac_optarg ;;
1127
1128   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129     ac_prev=srcdir ;;
1130   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131     srcdir=$ac_optarg ;;
1132
1133   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134   | --syscon | --sysco | --sysc | --sys | --sy)
1135     ac_prev=sysconfdir ;;
1136   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138     sysconfdir=$ac_optarg ;;
1139
1140   -target | --target | --targe | --targ | --tar | --ta | --t)
1141     ac_prev=target_alias ;;
1142   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143     target_alias=$ac_optarg ;;
1144
1145   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146     verbose=yes ;;
1147
1148   -version | --version | --versio | --versi | --vers | -V)
1149     ac_init_version=: ;;
1150
1151   -with-* | --with-*)
1152     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155       as_fn_error "invalid package name: $ac_useropt"
1156     ac_useropt_orig=$ac_useropt
1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158     case $ac_user_opts in
1159       *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163          ac_unrecognized_sep=', ';;
1164     esac
1165     eval with_$ac_useropt=\$ac_optarg ;;
1166
1167   -without-* | --without-*)
1168     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171       as_fn_error "invalid package name: $ac_useropt"
1172     ac_useropt_orig=$ac_useropt
1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174     case $ac_user_opts in
1175       *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179          ac_unrecognized_sep=', ';;
1180     esac
1181     eval with_$ac_useropt=no ;;
1182
1183   --x)
1184     # Obsolete; use --with-x.
1185     with_x=yes ;;
1186
1187   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188   | --x-incl | --x-inc | --x-in | --x-i)
1189     ac_prev=x_includes ;;
1190   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192     x_includes=$ac_optarg ;;
1193
1194   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196     ac_prev=x_libraries ;;
1197   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199     x_libraries=$ac_optarg ;;
1200
1201   -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1203     ;;
1204
1205   *=*)
1206     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207     # Reject names that are not valid shell variable names.
1208     case $ac_envvar in #(
1209       '' | [0-9]* | *[!_$as_cr_alnum]* )
1210       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211     esac
1212     eval $ac_envvar=\$ac_optarg
1213     export $ac_envvar ;;
1214
1215   *)
1216     # FIXME: should be removed in autoconf 3.0.
1217     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221     ;;
1222
1223   esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228   as_fn_error "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232   case $enable_option_checking in
1233     no) ;;
1234     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236   esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241                 datadir sysconfdir sharedstatedir localstatedir includedir \
1242                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243                 libdir localedir mandir
1244 do
1245   eval ac_val=\$$ac_var
1246   # Remove trailing slashes.
1247   case $ac_val in
1248     */ )
1249       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250       eval $ac_var=\$ac_val;;
1251   esac
1252   # Be sure to have absolute directory names.
1253   case $ac_val in
1254     [\\/$]* | ?:[\\/]* )  continue;;
1255     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256   esac
1257   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269   if test "x$build_alias" = x; then
1270     cross_compiling=maybe
1271     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272     If a cross compiler is detected then cross compile mode will be used." >&2
1273   elif test "x$build_alias" != "x$host_alias"; then
1274     cross_compiling=yes
1275   fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287   as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289   as_fn_error "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294   ac_srcdir_defaulted=yes
1295   # Try the directory containing this script, then the parent directory.
1296   ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298          X"$as_myself" : 'X\(//\)[^/]' \| \
1299          X"$as_myself" : 'X\(//\)$' \| \
1300          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\/\)[^/].*/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\).*/{
1315             s//\1/
1316             q
1317           }
1318           s/.*/./; q'`
1319   srcdir=$ac_confdir
1320   if test ! -r "$srcdir/$ac_unique_file"; then
1321     srcdir=..
1322   fi
1323 else
1324   ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333         pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336   srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1345
1346 for ac_var in $ac_precious_vars; do
1347   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_env_${ac_var}_value=\$${ac_var}
1349   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357   # Omit some internal or obsolete options to make the list less imposing.
1358   # This message is too long to be a string in the A/UX 3.1 sh.
1359   cat <<_ACEOF
1360 \`configure' configures this package to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370   -h, --help              display this help and exit
1371       --help=short        display options specific to this package
1372       --help=recursive    display the short help of all the included packages
1373   -V, --version           display version information and exit
1374   -q, --quiet, --silent   do not print \`checking...' messages
1375       --cache-file=FILE   cache test results in FILE [disabled]
1376   -C, --config-cache      alias for \`--cache-file=config.cache'
1377   -n, --no-create         do not create output files
1378       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381   --prefix=PREFIX         install architecture-independent files in PREFIX
1382                           [$ac_default_prefix]
1383   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                           [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394   --bindir=DIR            user executables [EPREFIX/bin]
1395   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396   --libexecdir=DIR        program executables [EPREFIX/libexec]
1397   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400   --libdir=DIR            object code libraries [EPREFIX/lib]
1401   --includedir=DIR        C header files [PREFIX/include]
1402   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405   --infodir=DIR           info documentation [DATAROOTDIR/info]
1406   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407   --mandir=DIR            man documentation [DATAROOTDIR/man]
1408   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1409   --htmldir=DIR           html documentation [DOCDIR]
1410   --dvidir=DIR            dvi documentation [DOCDIR]
1411   --pdfdir=DIR            pdf documentation [DOCDIR]
1412   --psdir=DIR             ps documentation [DOCDIR]
1413 _ACEOF
1414
1415   cat <<\_ACEOF
1416
1417 Program names:
1418   --program-prefix=PREFIX            prepend PREFIX to installed program names
1419   --program-suffix=SUFFIX            append SUFFIX to installed program names
1420   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425   --target=TARGET   configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430
1431   cat <<\_ACEOF
1432
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --enable-gold           use gold instead of ld
1438   --enable-libada         build libada directory
1439   --enable-libssp         build libssp directory
1440   --enable-build-with-cxx build with C++ compiler instead of C compiler
1441   --disable-ppl-version-check    disable check for PPL version
1442   --disable-cloog-version-check  disable check for CLooG version
1443   --enable-stage1-languages[=all]   choose additional languages to build during
1444                           stage1.  Mostly useful for compiler development.
1445   --enable-objc-gc        enable use of Boehm's garbage collector with the
1446                           GNU Objective-C runtime
1447   --enable-bootstrap      enable bootstrapping [yes if native build]
1448   --enable-serial-[{host,target,build}-]configure
1449                           force sequential configuration of
1450                           sub-packages for the host, target or build
1451                           machine, or all sub-packages
1452   --enable-maintainer-mode enable make rules and dependencies not useful
1453                           (and sometimes confusing) to the casual installer
1454   --enable-stage1-checking[=all]   choose additional checking for stage1
1455                           of the compiler
1456   --enable-werror         enable -Werror in bootstrap stage2 and later
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1462   --with-mpc=PATH        specify prefix directory for installed MPC package.
1463                           Equivalent to --with-mpc-include=PATH/include
1464                           plus --with-mpc-lib=PATH/lib
1465   --with-mpc-include=PATH
1466                           specify directory for installed MPC include files
1467   --with-mpc-lib=PATH    specify directory for the installed MPC library
1468   --with-mpfr-dir=PATH    this option has been REMOVED
1469   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1470                           Equivalent to --with-mpfr-include=PATH/include
1471                           plus --with-mpfr-lib=PATH/lib
1472   --with-mpfr-include=PATH
1473                           specify directory for installed MPFR include files
1474   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1475   --with-gmp-dir=PATH     this option has been REMOVED
1476   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1477                           Equivalent to --with-gmp-include=PATH/include
1478                           plus --with-gmp-lib=PATH/lib
1479   --with-gmp-include=PATH specify directory for installed GMP include files
1480   --with-gmp-lib=PATH     specify directory for the installed GMP library
1481   --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1482                           when linking with PPL
1483   --with-stage1-ldflags=FLAGS Linker flags for stage1
1484   -with-stage1-libs=LIBS      Libraries for stage1
1485   --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1486   --with-boot-libs=LIBS     Libraries for stage2 and later
1487   --with-ppl=PATH         Specify prefix directory for the installed PPL package
1488                           Equivalent to --with-ppl-include=PATH/include
1489                           plus --with-ppl-lib=PATH/lib
1490   --with-ppl-include=PATH Specify directory for installed PPL include files
1491   --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1492   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL package
1493                           Equivalent to --with-cloog-include=PATH/include
1494                           plus --with-cloog-lib=PATH/lib
1495   --with-cloog-include=PATH Specify directory for installed CLooG include files
1496   --with-cloog-lib=PATH   Specify the directory for the installed CLooG library
1497   --with-build-sysroot=SYSROOT
1498                           use sysroot as the system root during the build
1499   --with-debug-prefix-map='A=B C=D ...'
1500                              map A to B, C to D ... in debug information
1501   --with-build-time-tools=PATH
1502                           use given path to find target tools during the build
1503   --with-datarootdir      use datarootdir as the data root directory.
1504   --with-docdir           install documentation in this directory.
1505   --with-pdfdir           install pdf in this directory.
1506   --with-htmldir          install html in this directory.
1507
1508 Some influential environment variables:
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   LIBS        libraries to pass to the linker, e.g. -l<library>
1514   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CXX         C++ compiler command
1517   CXXFLAGS    C++ compiler flags
1518   AR          AR for the host
1519   AS          AS for the host
1520   DLLTOOL     DLLTOOL for the host
1521   LD          LD for the host
1522   LIPO        LIPO for the host
1523   NM          NM for the host
1524   RANLIB      RANLIB for the host
1525   STRIP       STRIP for the host
1526   WINDRES     WINDRES for the host
1527   WINDMC      WINDMC for the host
1528   OBJCOPY     OBJCOPY for the host
1529   OBJDUMP     OBJDUMP for the host
1530   CC_FOR_TARGET
1531               CC for the target
1532   CXX_FOR_TARGET
1533               CXX for the target
1534   GCC_FOR_TARGET
1535               GCC for the target
1536   GCJ_FOR_TARGET
1537               GCJ for the target
1538   GFORTRAN_FOR_TARGET
1539               GFORTRAN for the target
1540   AR_FOR_TARGET
1541               AR for the target
1542   AS_FOR_TARGET
1543               AS for the target
1544   DLLTOOL_FOR_TARGET
1545               DLLTOOL for the target
1546   LD_FOR_TARGET
1547               LD for the target
1548   LIPO_FOR_TARGET
1549               LIPO for the target
1550   NM_FOR_TARGET
1551               NM for the target
1552   OBJDUMP_FOR_TARGET
1553               OBJDUMP for the target
1554   RANLIB_FOR_TARGET
1555               RANLIB for the target
1556   STRIP_FOR_TARGET
1557               STRIP for the target
1558   WINDRES_FOR_TARGET
1559               WINDRES for the target
1560   WINDMC_FOR_TARGET
1561               WINDMC for the target
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to the package provider.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572   # If there are subdirs, report their specific --help.
1573   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574     test -d "$ac_dir" ||
1575       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576       continue
1577     ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583   # A ".." for each directory in $ac_dir_suffix.
1584   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585   case $ac_top_builddir_sub in
1586   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588   esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596   .)  # We are building in place.
1597     ac_srcdir=.
1598     ac_top_srcdir=$ac_top_builddir_sub
1599     ac_abs_top_srcdir=$ac_pwd ;;
1600   [\\/]* | ?:[\\/]* )  # Absolute name.
1601     ac_srcdir=$srcdir$ac_dir_suffix;
1602     ac_top_srcdir=$srcdir
1603     ac_abs_top_srcdir=$srcdir ;;
1604   *) # Relative name.
1605     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606     ac_top_srcdir=$ac_top_build_prefix$srcdir
1607     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611     cd "$ac_dir" || { ac_status=$?; continue; }
1612     # Check for guested configure.
1613     if test -f "$ac_srcdir/configure.gnu"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616     elif test -f "$ac_srcdir/configure"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure" --help=recursive
1619     else
1620       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621     fi || ac_status=$?
1622     cd "$ac_pwd" || { ac_status=$?; break; }
1623   done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628   cat <<\_ACEOF
1629 configure
1630 generated by GNU Autoconf 2.64
1631
1632 Copyright (C) 2009 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636   exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   rm -f conftest.$ac_objext
1650   if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_compile") 2>conftest.err
1658   ac_status=$?
1659   if test -s conftest.err; then
1660     grep -v '^ *+' conftest.err >conftest.er1
1661     cat conftest.er1 >&5
1662     mv -f conftest.er1 conftest.err
1663   fi
1664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665   test $ac_status = 0; } && {
1666          test -z "$ac_c_werror_flag" ||
1667          test ! -s conftest.err
1668        } && test -s conftest.$ac_objext; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674         ac_retval=1
1675 fi
1676   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677   return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_cxx_try_compile LINENO
1682 # ----------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_cxx_try_compile ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   rm -f conftest.$ac_objext
1688   if { { ac_try="$ac_compile"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_compile") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && {
1704          test -z "$ac_cxx_werror_flag" ||
1705          test ! -s conftest.err
1706        } && test -s conftest.$ac_objext; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712         ac_retval=1
1713 fi
1714   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715   return $ac_retval
1716
1717 } # ac_fn_cxx_try_compile
1718
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   rm -f conftest.$ac_objext conftest$ac_exeext
1726   if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_link") 2>conftest.err
1734   ac_status=$?
1735   if test -s conftest.err; then
1736     grep -v '^ *+' conftest.err >conftest.er1
1737     cat conftest.er1 >&5
1738     mv -f conftest.er1 conftest.err
1739   fi
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && {
1742          test -z "$ac_c_werror_flag" ||
1743          test ! -s conftest.err
1744        } && test -s conftest$ac_exeext && {
1745          test "$cross_compiling" = yes ||
1746          $as_test_x conftest$ac_exeext
1747        }; then :
1748   ac_retval=0
1749 else
1750   $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753         ac_retval=1
1754 fi
1755   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757   # interfere with the next link command; also delete a directory that is
1758   # left behind by Apple's compiler.  We do this before executing the actions.
1759   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761   return $ac_retval
1762
1763 } # ac_fn_c_try_link
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1767
1768 It was created by $as_me, which was
1769 generated by GNU Autoconf 2.64.  Invocation command line was
1770
1771   $ $0 $@
1772
1773 _ACEOF
1774 exec 5>>config.log
1775 {
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1780
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1789
1790 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1791 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1794 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1795 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1796 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1797
1798 _ASUNAME
1799
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803   IFS=$as_save_IFS
1804   test -z "$as_dir" && as_dir=.
1805     $as_echo "PATH: $as_dir"
1806   done
1807 IFS=$as_save_IFS
1808
1809 } >&5
1810
1811 cat >&5 <<_ACEOF
1812
1813
1814 ## ----------- ##
1815 ## Core tests. ##
1816 ## ----------- ##
1817
1818 _ACEOF
1819
1820
1821 # Keep a trace of the command line.
1822 # Strip out --no-create and --no-recursion so they do not pile up.
1823 # Strip out --silent because we don't want to record it for future runs.
1824 # Also quote any args containing shell meta-characters.
1825 # Make two passes to allow for proper duplicate-argument suppression.
1826 ac_configure_args=
1827 ac_configure_args0=
1828 ac_configure_args1=
1829 ac_must_keep_next=false
1830 for ac_pass in 1 2
1831 do
1832   for ac_arg
1833   do
1834     case $ac_arg in
1835     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837     | -silent | --silent | --silen | --sile | --sil)
1838       continue ;;
1839     *\'*)
1840       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841     esac
1842     case $ac_pass in
1843     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1844     2)
1845       as_fn_append ac_configure_args1 " '$ac_arg'"
1846       if test $ac_must_keep_next = true; then
1847         ac_must_keep_next=false # Got value, back to normal.
1848       else
1849         case $ac_arg in
1850           *=* | --config-cache | -C | -disable-* | --disable-* \
1851           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853           | -with-* | --with-* | -without-* | --without-* | --x)
1854             case "$ac_configure_args0 " in
1855               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856             esac
1857             ;;
1858           -* ) ac_must_keep_next=true ;;
1859         esac
1860       fi
1861       as_fn_append ac_configure_args " '$ac_arg'"
1862       ;;
1863     esac
1864   done
1865 done
1866 { ac_configure_args0=; unset ac_configure_args0;}
1867 { ac_configure_args1=; unset ac_configure_args1;}
1868
1869 # When interrupted or exit'd, cleanup temporary files, and complete
1870 # config.log.  We remove comments because anyway the quotes in there
1871 # would cause problems or look ugly.
1872 # WARNING: Use '\'' to represent an apostrophe within the trap.
1873 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874 trap 'exit_status=$?
1875   # Save into config.log some information that might help in debugging.
1876   {
1877     echo
1878
1879     cat <<\_ASBOX
1880 ## ---------------- ##
1881 ## Cache variables. ##
1882 ## ---------------- ##
1883 _ASBOX
1884     echo
1885     # The following way of writing the cache mishandles newlines in values,
1886 (
1887   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888     eval ac_val=\$$ac_var
1889     case $ac_val in #(
1890     *${as_nl}*)
1891       case $ac_var in #(
1892       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894       esac
1895       case $ac_var in #(
1896       _ | IFS | as_nl) ;; #(
1897       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898       *) { eval $ac_var=; unset $ac_var;} ;;
1899       esac ;;
1900     esac
1901   done
1902   (set) 2>&1 |
1903     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904     *${as_nl}ac_space=\ *)
1905       sed -n \
1906         "s/'\''/'\''\\\\'\'''\''/g;
1907           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908       ;; #(
1909     *)
1910       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1911       ;;
1912     esac |
1913     sort
1914 )
1915     echo
1916
1917     cat <<\_ASBOX
1918 ## ----------------- ##
1919 ## Output variables. ##
1920 ## ----------------- ##
1921 _ASBOX
1922     echo
1923     for ac_var in $ac_subst_vars
1924     do
1925       eval ac_val=\$$ac_var
1926       case $ac_val in
1927       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928       esac
1929       $as_echo "$ac_var='\''$ac_val'\''"
1930     done | sort
1931     echo
1932
1933     if test -n "$ac_subst_files"; then
1934       cat <<\_ASBOX
1935 ## ------------------- ##
1936 ## File substitutions. ##
1937 ## ------------------- ##
1938 _ASBOX
1939       echo
1940       for ac_var in $ac_subst_files
1941       do
1942         eval ac_val=\$$ac_var
1943         case $ac_val in
1944         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945         esac
1946         $as_echo "$ac_var='\''$ac_val'\''"
1947       done | sort
1948       echo
1949     fi
1950
1951     if test -s confdefs.h; then
1952       cat <<\_ASBOX
1953 ## ----------- ##
1954 ## confdefs.h. ##
1955 ## ----------- ##
1956 _ASBOX
1957       echo
1958       cat confdefs.h
1959       echo
1960     fi
1961     test "$ac_signal" != 0 &&
1962       $as_echo "$as_me: caught signal $ac_signal"
1963     $as_echo "$as_me: exit $exit_status"
1964   } >&5
1965   rm -f core *.core core.conftest.* &&
1966     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1967     exit $exit_status
1968 ' 0
1969 for ac_signal in 1 2 13 15; do
1970   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1971 done
1972 ac_signal=0
1973
1974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1975 rm -f -r conftest* confdefs.h
1976
1977 $as_echo "/* confdefs.h */" > confdefs.h
1978
1979 # Predefined preprocessor variables.
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_NAME "$PACKAGE_NAME"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987 _ACEOF
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1991 _ACEOF
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_STRING "$PACKAGE_STRING"
1995 _ACEOF
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999 _ACEOF
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_URL "$PACKAGE_URL"
2003 _ACEOF
2004
2005
2006 # Let the site file select an alternate cache file if it wants to.
2007 # Prefer an explicitly selected file to automatically selected ones.
2008 ac_site_file1=NONE
2009 ac_site_file2=NONE
2010 if test -n "$CONFIG_SITE"; then
2011   ac_site_file1=$CONFIG_SITE
2012 elif test "x$prefix" != xNONE; then
2013   ac_site_file1=$prefix/share/config.site
2014   ac_site_file2=$prefix/etc/config.site
2015 else
2016   ac_site_file1=$ac_default_prefix/share/config.site
2017   ac_site_file2=$ac_default_prefix/etc/config.site
2018 fi
2019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2020 do
2021   test "x$ac_site_file" = xNONE && continue
2022   if test -r "$ac_site_file"; then
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2025     sed 's/^/| /' "$ac_site_file" >&5
2026     . "$ac_site_file"
2027   fi
2028 done
2029
2030 if test -r "$cache_file"; then
2031   # Some versions of bash will fail to source /dev/null (special
2032   # files actually), so we avoid doing that.
2033   if test -f "$cache_file"; then
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035 $as_echo "$as_me: loading cache $cache_file" >&6;}
2036     case $cache_file in
2037       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038       *)                      . "./$cache_file";;
2039     esac
2040   fi
2041 else
2042   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043 $as_echo "$as_me: creating cache $cache_file" >&6;}
2044   >$cache_file
2045 fi
2046
2047 # Check that the precious variables saved in the cache have kept the same
2048 # value.
2049 ac_cache_corrupted=false
2050 for ac_var in $ac_precious_vars; do
2051   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052   eval ac_new_set=\$ac_env_${ac_var}_set
2053   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054   eval ac_new_val=\$ac_env_${ac_var}_value
2055   case $ac_old_set,$ac_new_set in
2056     set,)
2057       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2059       ac_cache_corrupted=: ;;
2060     ,set)
2061       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2063       ac_cache_corrupted=: ;;
2064     ,);;
2065     *)
2066       if test "x$ac_old_val" != "x$ac_new_val"; then
2067         # differences in whitespace do not lead to failure.
2068         ac_old_val_w=`echo x $ac_old_val`
2069         ac_new_val_w=`echo x $ac_new_val`
2070         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073           ac_cache_corrupted=:
2074         else
2075           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077           eval $ac_var=\$ac_old_val
2078         fi
2079         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2080 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2081         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2082 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2083       fi;;
2084   esac
2085   # Pass precious variables to config.status.
2086   if test "$ac_new_set" = set; then
2087     case $ac_new_val in
2088     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2089     *) ac_arg=$ac_var=$ac_new_val ;;
2090     esac
2091     case " $ac_configure_args " in
2092       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2093       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2094     esac
2095   fi
2096 done
2097 if $ac_cache_corrupted; then
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2103 fi
2104 ## -------------------- ##
2105 ## Main body of script. ##
2106 ## -------------------- ##
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122 progname=$0
2123 # if PWD already has a value, it is probably wrong.
2124 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2125
2126 # Export original configure arguments for use by sub-configures.
2127 # Quote arguments with shell meta charatcers.
2128 TOPLEVEL_CONFIGURE_ARGUMENTS=
2129 set -- "$progname" "$@"
2130 for ac_arg
2131 do
2132   case "$ac_arg" in
2133   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2134     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2135     # if the argument is of the form -foo=baz, quote the baz part only
2136     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2137   *) ;;
2138   esac
2139   # Add the quoted argument to the list.
2140   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2141 done
2142 if test "$silent" = yes; then
2143   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2144 fi
2145 # Remove the initial space we just introduced and, as these will be
2146 # expanded by make, quote '$'.
2147 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2148
2149
2150 # Find the build, host, and target systems.
2151 ac_aux_dir=
2152 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2153   for ac_t in install-sh install.sh shtool; do
2154     if test -f "$ac_dir/$ac_t"; then
2155       ac_aux_dir=$ac_dir
2156       ac_install_sh="$ac_aux_dir/$ac_t -c"
2157       break 2
2158     fi
2159   done
2160 done
2161 if test -z "$ac_aux_dir"; then
2162   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2163 fi
2164
2165 # These three variables are undocumented and unsupported,
2166 # and are intended to be withdrawn in a future Autoconf release.
2167 # They can cause serious problems if a builder's source tree is in a directory
2168 # whose full name contains unusual characters.
2169 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2170 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2171 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2172
2173
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2177
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2179 $as_echo_n "checking build system type... " >&6; }
2180 if test "${ac_cv_build+set}" = set; then :
2181   $as_echo_n "(cached) " >&6
2182 else
2183   ac_build_alias=$build_alias
2184 test "x$ac_build_alias" = x &&
2185   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186 test "x$ac_build_alias" = x &&
2187   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2189   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2190
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2193 $as_echo "$ac_cv_build" >&6; }
2194 case $ac_cv_build in
2195 *-*-*) ;;
2196 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2197 esac
2198 build=$ac_cv_build
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_build
2201 shift
2202 build_cpu=$1
2203 build_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 build_os=$*
2208 IFS=$ac_save_IFS
2209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2210
2211
2212  case ${build_alias} in
2213   "") build_noncanonical=${build} ;;
2214   *) build_noncanonical=${build_alias} ;;
2215 esac
2216
2217
2218
2219  case ${host_alias} in
2220   "") host_noncanonical=${build_noncanonical} ;;
2221   *) host_noncanonical=${host_alias} ;;
2222 esac
2223
2224
2225
2226  case ${target_alias} in
2227   "") target_noncanonical=${host_noncanonical} ;;
2228   *) target_noncanonical=${target_alias} ;;
2229 esac
2230
2231
2232
2233
2234 test "$host_noncanonical" = "$target_noncanonical" &&
2235   test "$program_prefix$program_suffix$program_transform_name" = \
2236     NONENONEs,x,x, &&
2237   program_transform_name=s,y,y,
2238
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2240 $as_echo_n "checking host system type... " >&6; }
2241 if test "${ac_cv_host+set}" = set; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   if test "x$host_alias" = x; then
2245   ac_cv_host=$ac_cv_build
2246 else
2247   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2248     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2249 fi
2250
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2253 $as_echo "$ac_cv_host" >&6; }
2254 case $ac_cv_host in
2255 *-*-*) ;;
2256 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2257 esac
2258 host=$ac_cv_host
2259 ac_save_IFS=$IFS; IFS='-'
2260 set x $ac_cv_host
2261 shift
2262 host_cpu=$1
2263 host_vendor=$2
2264 shift; shift
2265 # Remember, the first character of IFS is used to create $*,
2266 # except with old shells:
2267 host_os=$*
2268 IFS=$ac_save_IFS
2269 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2270
2271
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2273 $as_echo_n "checking target system type... " >&6; }
2274 if test "${ac_cv_target+set}" = set; then :
2275   $as_echo_n "(cached) " >&6
2276 else
2277   if test "x$target_alias" = x; then
2278   ac_cv_target=$ac_cv_host
2279 else
2280   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2281     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2282 fi
2283
2284 fi
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2286 $as_echo "$ac_cv_target" >&6; }
2287 case $ac_cv_target in
2288 *-*-*) ;;
2289 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2290 esac
2291 target=$ac_cv_target
2292 ac_save_IFS=$IFS; IFS='-'
2293 set x $ac_cv_target
2294 shift
2295 target_cpu=$1
2296 target_vendor=$2
2297 shift; shift
2298 # Remember, the first character of IFS is used to create $*,
2299 # except with old shells:
2300 target_os=$*
2301 IFS=$ac_save_IFS
2302 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2303
2304
2305 # The aliases save the names the user supplied, while $host etc.
2306 # will get canonicalized.
2307 test -n "$target_alias" &&
2308   test "$program_prefix$program_suffix$program_transform_name" = \
2309     NONENONEs,x,x, &&
2310   program_prefix=${target_alias}-
2311
2312 test "$program_prefix" != NONE &&
2313   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $.
2318 # By default was `s,x,x', remove it if useless.
2319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2321
2322
2323
2324 # Get 'install' or 'install-sh' and its variants.
2325 # Find a good install program.  We prefer a C program (faster),
2326 # so one script is as good as another.  But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if test "${ac_cv_path_install+set}" = set; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350     # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352   ./ | .// | /[cC]/* | \
2353   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355   /usr/ucb/* ) ;;
2356   *)
2357     # OSF1 and SCO ODT 3.0 have their own names for install.
2358     # Don't use installbsd from OSF since it installs stuff as root
2359     # by default.
2360     for ac_prog in ginstall scoinst install; do
2361       for ac_exec_ext in '' $ac_executable_extensions; do
2362         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363           if test $ac_prog = install &&
2364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # AIX install.  It has an incompatible calling convention.
2366             :
2367           elif test $ac_prog = install &&
2368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369             # program-specific install script used by HP pwplus--don't use.
2370             :
2371           else
2372             rm -rf conftest.one conftest.two conftest.dir
2373             echo one > conftest.one
2374             echo two > conftest.two
2375             mkdir conftest.dir
2376             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377               test -s conftest.one && test -s conftest.two &&
2378               test -s conftest.dir/conftest.one &&
2379               test -s conftest.dir/conftest.two
2380             then
2381               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382               break 3
2383             fi
2384           fi
2385         fi
2386       done
2387     done
2388     ;;
2389 esac
2390
2391   done
2392 IFS=$as_save_IFS
2393
2394 rm -rf conftest.one conftest.two conftest.dir
2395
2396 fi
2397   if test "${ac_cv_path_install+set}" = set; then
2398     INSTALL=$ac_cv_path_install
2399   else
2400     # As a last resort, use the slow shell script.  Don't cache a
2401     # value for INSTALL within a source directory, because that will
2402     # break other packages using the cache if that directory is
2403     # removed, or if the value is a relative name.
2404     INSTALL=$ac_install_sh
2405   fi
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2409
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2419 $as_echo_n "checking whether ln works... " >&6; }
2420 if test "${acx_cv_prog_LN+set}" = set; then :
2421   $as_echo_n "(cached) " >&6
2422 else
2423   rm -f conftestdata_t
2424 echo >conftestdata_f
2425 if ln conftestdata_f conftestdata_t 2>/dev/null
2426 then
2427   acx_cv_prog_LN=ln
2428 else
2429   acx_cv_prog_LN=no
2430 fi
2431 rm -f conftestdata_f conftestdata_t
2432
2433 fi
2434 if test $acx_cv_prog_LN = no; then
2435   LN="cp"
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2437 $as_echo "no, using $LN" >&6; }
2438 else
2439   LN="$acx_cv_prog_LN"
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 fi
2443
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2445 $as_echo_n "checking whether ln -s works... " >&6; }
2446 LN_S=$as_ln_s
2447 if test "$LN_S" = "ln -s"; then
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449 $as_echo "yes" >&6; }
2450 else
2451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2452 $as_echo "no, using $LN_S" >&6; }
2453 fi
2454
2455
2456 ### we might need to use some other shell than /bin/sh for running subshells
2457 ### If we are on Windows, search for the shell.  This will permit people
2458 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2459 ### without also having to set CONFIG_SHELL.  This code will work when
2460 ### using bash, which sets OSTYPE.
2461 case "${OSTYPE}" in
2462 *win32*)
2463   if test x${CONFIG_SHELL} = x ; then
2464     if test ! -f /bin/sh ; then
2465       if test x${SHELL} != x && test -f ${SHELL} ; then
2466         CONFIG_SHELL=${SHELL}
2467         export CONFIG_SHELL
2468       else
2469         for prog in sh sh.exe bash bash.exe; do
2470           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2471           for dir in $PATH; do
2472             test -z "$dir" && dir=.
2473             if test -f $dir/$prog; then
2474               CONFIG_SHELL=$dir/$prog
2475               export CONFIG_SHELL
2476               break
2477             fi
2478           done
2479           IFS="$save_ifs"
2480           test -n "${CONFIG_SHELL}" && break
2481         done
2482       fi
2483     fi
2484   fi
2485   ;;
2486 esac
2487
2488 config_shell=${CONFIG_SHELL-/bin/sh}
2489
2490 moveifchange=${srcdir}/move-if-change
2491
2492 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2493
2494 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2495 # a relative path.
2496 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2497   INSTALL="${srcpwd}/install-sh -c"
2498 fi
2499
2500 # Set srcdir to "." if that's what it is.
2501 # This is important for multilib support.
2502 pwd=`${PWDCMD-pwd}`
2503 if test "${pwd}" = "${srcpwd}" ; then
2504   srcdir=.
2505 fi
2506
2507 topsrcdir=$srcpwd
2508
2509 extra_host_args=
2510
2511 ### To add a new directory to the tree, first choose whether it is a target
2512 ### or a host dependent tool.  Then put it into the appropriate list
2513 ### (library or tools, host or target), doing a dependency sort.
2514
2515 # Subdirs will be configured in the order listed in build_configdirs,
2516 # configdirs, or target_configdirs; see the serialization section below.
2517
2518 # Dependency sorting is only needed when *configuration* must be done in
2519 # a particular order.  In all cases a dependency should be specified in
2520 # the Makefile, whether or not it's implicitly specified here.
2521
2522 # Double entries in build_configdirs, configdirs, or target_configdirs may
2523 # cause circular dependencies and break everything horribly.
2524
2525 # these library is used by various programs built for the build
2526 # environment
2527 #
2528 build_libs="build-libiberty"
2529
2530 # these tools are built for the build environment
2531 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2532
2533 # these libraries are used by various programs built for the host environment
2534 #
2535 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2536
2537 # these tools are built for the host environment
2538 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2539 # know that we are building the simulator.
2540 # binutils, gas and ld appear in that order because it makes sense to run
2541 # "make check" in that particular order.
2542 # If --enable-gold is used, "gold" will replace "ld".
2543 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2544
2545 # libgcj represents the runtime libraries only used by gcj.
2546 libgcj="target-libffi \
2547         target-zlib \
2548         target-qthreads \
2549         target-libjava"
2550
2551 # these libraries are built for the target environment, and are built after
2552 # the host libraries and the host tools (which may be a cross compiler)
2553 #
2554 target_libraries="target-libgcc \
2555                 target-libiberty \
2556                 target-libgloss \
2557                 target-newlib \
2558                 target-libgomp \
2559                 target-libstdc++-v3 \
2560                 target-libmudflap \
2561                 target-libssp \
2562                 target-libgfortran \
2563                 target-boehm-gc \
2564                 ${libgcj} \
2565                 target-libobjc \
2566                 target-libada"
2567
2568 # these tools are built using the target libraries, and are intended to
2569 # run only in the target environment
2570 #
2571 # note: any program that *uses* libraries that are in the "target_libraries"
2572 # list belongs in this list.  those programs are also very likely
2573 # candidates for the "native_only" list which follows
2574 #
2575 target_tools="target-examples target-groff target-gperf target-rda"
2576
2577 ################################################################################
2578
2579 ## All tools belong in one of the four categories, and are assigned above
2580 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2581 ## is important because configure will choke if they ever get through.
2582 ## ${configdirs} is directories we build using the host tools.
2583 ## ${target_configdirs} is directories we build using the target tools.
2584 configdirs=`echo ${host_libs} ${host_tools}`
2585 target_configdirs=`echo ${target_libraries} ${target_tools}`
2586 build_configdirs=`echo ${build_libs} ${build_tools}`
2587
2588
2589
2590 ################################################################################
2591
2592 srcname="gnu development package"
2593
2594 # This gets set non-empty for some net releases of packages.
2595 appdirs=""
2596
2597 # Define is_cross_compiler to save on calls to 'test'.
2598 is_cross_compiler=
2599 if test x"${host}" = x"${target}" ; then
2600   is_cross_compiler=no
2601 else
2602   is_cross_compiler=yes
2603 fi
2604
2605 # Find the build and target subdir names.
2606
2607 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2608 # have matching libraries, they should use host libraries: Makefile.tpl
2609 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2610 # However, they still use the build modules, because the corresponding
2611 # host modules (e.g. bison) are only built for the host when bootstrap
2612 # finishes. So:
2613 # - build_subdir is where we find build modules, and never changes.
2614 # - build_libsubdir is where we find build libraries, and can be overridden.
2615
2616 # Prefix 'build-' so this never conflicts with target_subdir.
2617 build_subdir="build-${build_noncanonical}"
2618
2619 # Check whether --with-build-libsubdir was given.
2620 if test "${with_build_libsubdir+set}" = set; then :
2621   withval=$with_build_libsubdir; build_libsubdir="$withval"
2622 else
2623   build_libsubdir="$build_subdir"
2624 fi
2625
2626 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2627 if ( test $srcdir = . && test -d gcc ) \
2628    || test -d $srcdir/../host-${host_noncanonical}; then
2629   host_subdir="host-${host_noncanonical}"
2630 else
2631   host_subdir=.
2632 fi
2633 # No prefix.
2634 target_subdir=${target_noncanonical}
2635
2636
2637 # Skipdirs are removed silently.
2638 skipdirs=
2639 # Noconfigdirs are removed loudly.
2640 noconfigdirs=""
2641
2642 use_gnu_ld=
2643 # Make sure we don't let GNU ld be added if we didn't want it.
2644 if test x$with_gnu_ld = xno ; then
2645   use_gnu_ld=no
2646   noconfigdirs="$noconfigdirs ld gold"
2647 fi
2648
2649 use_gnu_as=
2650 # Make sure we don't let GNU as be added if we didn't want it.
2651 if test x$with_gnu_as = xno ; then
2652   use_gnu_as=no
2653   noconfigdirs="$noconfigdirs gas"
2654 fi
2655
2656 # some tools are so dependent upon X11 that if we're not building with X,
2657 # it's not even worth trying to configure, much less build, that tool.
2658
2659 case ${with_x} in
2660   yes | "") ;; # the default value for this tree is that X11 is available
2661   no)
2662     skipdirs="${skipdirs} tk itcl libgui"
2663     # We won't be able to build gdbtk without X.
2664     enable_gdbtk=no
2665     ;;
2666   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2667 esac
2668
2669 # Some tools are only suitable for building in a "native" situation.
2670 # Remove these if host!=target.
2671 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2672
2673 # Similarly, some are only suitable for cross toolchains.
2674 # Remove these if host=target.
2675 cross_only="target-libgloss target-newlib target-opcodes"
2676
2677 case $is_cross_compiler in
2678   no) skipdirs="${skipdirs} ${cross_only}" ;;
2679   yes) skipdirs="${skipdirs} ${native_only}" ;;
2680 esac
2681
2682 # If both --with-headers and --with-libs are specified, default to
2683 # --without-newlib.
2684 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2685    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2686   if test x"${with_newlib}" = x ; then
2687     with_newlib=no
2688   fi
2689 fi
2690
2691 # Recognize --with-newlib/--without-newlib.
2692 case ${with_newlib} in
2693   no) skipdirs="${skipdirs} target-newlib" ;;
2694   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2695 esac
2696
2697 # Handle --enable-gold.
2698
2699 # Check whether --enable-gold was given.
2700 if test "${enable_gold+set}" = set; then :
2701   enableval=$enable_gold; ENABLE_GOLD=$enableval
2702 else
2703   ENABLE_GOLD=no
2704 fi
2705
2706 if test "${ENABLE_GOLD}" = "yes"; then
2707   # Check for ELF target.
2708   is_elf=no
2709   case "${target}" in
2710     *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2711     | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2712     | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2713       case "${target}" in
2714         *-*-linux*aout* | *-*-linux*oldld*)
2715           ;;
2716         *)
2717           is_elf=yes
2718           ;;
2719       esac
2720   esac
2721
2722   if test "$is_elf" = "yes"; then
2723     # Check for target supported by gold.
2724     case "${target}" in
2725       i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2726         configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2727         ;;
2728     esac
2729   fi
2730 fi
2731
2732 # Configure extra directories which are host specific
2733
2734 case "${host}" in
2735   *-cygwin*)
2736     configdirs="$configdirs libtermcap" ;;
2737 esac
2738
2739 # A target can indicate whether a language isn't supported for some reason.
2740 # Only spaces may be used in this macro; not newlines or tabs.
2741 unsupported_languages=
2742
2743 # Remove more programs from consideration, based on the host or
2744 # target this usually means that a port of the program doesn't
2745 # exist yet.
2746
2747 case "${host}" in
2748   hppa*64*-*-*)
2749     noconfigdirs="$noconfigdirs byacc"
2750     ;;
2751   i[3456789]86-*-vsta)
2752     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2753     ;;
2754   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2755     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2756     ;;
2757   x86_64-*-mingw*)
2758     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2759     ;;
2760   i[3456789]86-*-mingw32*)
2761     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2762     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2763     ;;
2764   i[3456789]86-*-beos*)
2765     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2766     ;;
2767   *-*-cygwin*)
2768     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2769     ;;
2770   *-*-netbsd*)
2771     noconfigdirs="$noconfigdirs rcs"
2772     ;;
2773   ppc*-*-pe)
2774     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2775     ;;
2776   powerpc-*-beos*)
2777     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2778     ;;
2779 esac
2780
2781
2782 # Check whether --enable-libada was given.
2783 if test "${enable_libada+set}" = set; then :
2784   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2785 else
2786   ENABLE_LIBADA=yes
2787 fi
2788
2789 if test "${ENABLE_LIBADA}" != "yes" ; then
2790   noconfigdirs="$noconfigdirs gnattools"
2791 fi
2792
2793 # Check whether --enable-libssp was given.
2794 if test "${enable_libssp+set}" = set; then :
2795   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2796 else
2797   ENABLE_LIBSSP=yes
2798 fi
2799
2800
2801 # Save it here so that, even in case of --enable-libgcj, if the Java
2802 # front-end isn't enabled, we still get libgcj disabled.
2803 libgcj_saved=$libgcj
2804 case $enable_libgcj in
2805 yes)
2806   # If we reset it here, it won't get added to noconfigdirs in the
2807   # target-specific build rules, so it will be forcibly enabled
2808   # (unless the Java language itself isn't enabled).
2809   libgcj=
2810   ;;
2811 no)
2812   # Make sure we get it printed in the list of not supported target libs.
2813   noconfigdirs="$noconfigdirs ${libgcj}"
2814   ;;
2815 esac
2816
2817
2818 # Disable libmudflap on some systems.
2819 if test x$enable_libmudflap = x ; then
2820     case "${target}" in
2821     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2822         # Enable libmudflap by default in GNU and friends.
2823         ;;
2824     *-*-freebsd*)
2825         # Enable libmudflap by default in FreeBSD.
2826         ;;
2827     *)
2828         # Disable it by default everywhere else.
2829         noconfigdirs="$noconfigdirs target-libmudflap"
2830         ;;
2831     esac
2832 fi
2833
2834 # Disable libgomp on non POSIX hosted systems.
2835 if test x$enable_libgomp = x ; then
2836     # Enable libgomp by default on hosted POSIX systems.
2837     case "${target}" in
2838     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2839         ;;
2840     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2841         ;;
2842     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2843         ;;
2844     *-*-darwin* | *-*-aix*)
2845         ;;
2846     *)
2847         noconfigdirs="$noconfigdirs target-libgomp"
2848         ;;
2849     esac
2850 fi
2851
2852 # Default libgloss CPU subdirectory.
2853 libgloss_dir="$target_cpu"
2854
2855 case "${target}" in
2856   *-*-chorusos)
2857     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2858     ;;
2859   powerpc-*-darwin*)
2860     noconfigdirs="$noconfigdirs ld gas gdb gprof"
2861     noconfigdirs="$noconfigdirs sim target-rda"
2862     ;;
2863   i[3456789]86-*-darwin*)
2864     noconfigdirs="$noconfigdirs ld gprof"
2865     noconfigdirs="$noconfigdirs sim target-rda"
2866     ;;
2867   x86_64-*-darwin[912]*)
2868     noconfigdirs="$noconfigdirs ld gas gprof"
2869     noconfigdirs="$noconfigdirs sim target-rda"
2870     ;;
2871   *-*-darwin*)
2872     noconfigdirs="$noconfigdirs ld gas gdb gprof"
2873     noconfigdirs="$noconfigdirs sim target-rda"
2874     noconfigdirs="$noconfigdirs ${libgcj}"
2875     ;;
2876   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2877     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2878     ;;
2879   *-*-freebsd*)
2880     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2881     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2882         && test -f /usr/local/include/gmp.h; then
2883       with_gmp=/usr/local
2884     fi
2885
2886     # Skip some stuff that's unsupported on some FreeBSD configurations.
2887     case "${target}" in
2888       i*86-*-*) ;;
2889       alpha*-*-*) ;;
2890       *)
2891         noconfigdirs="$noconfigdirs ${libgcj}"
2892         ;;
2893     esac
2894     ;;
2895   *-*-kaos*)
2896     # Remove unsupported stuff on all kaOS configurations.
2897     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2898     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2899     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2900     noconfigdirs="$noconfigdirs target-libgloss"
2901     ;;
2902   *-*-netbsd*)
2903     # Skip some stuff on all NetBSD configurations.
2904     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2905
2906     # Skip some stuff that's unsupported on some NetBSD configurations.
2907     case "${target}" in
2908       i*86-*-netbsdelf*) ;;
2909       arm*-*-netbsdelf*) ;;
2910       *)
2911         noconfigdirs="$noconfigdirs ${libgcj}"
2912         ;;
2913     esac
2914     ;;
2915   *-*-netware*)
2916     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2917     ;;
2918   *-*-rtems*)
2919     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2920     ;;
2921     # The tpf target doesn't support gdb yet.
2922   *-*-tpf*)
2923     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2924     ;;
2925   *-*-uclinux*)
2926     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2927     ;;
2928   *-*-vxworks*)
2929     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2930     ;;
2931   alpha*-dec-osf*)
2932     # ld works, but does not support shared libraries.
2933     # newlib is not 64 bit ready.  I'm not sure about fileutils.
2934     # gas doesn't generate exception information.
2935     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2936     ;;
2937   alpha*-*-*vms*)
2938     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2939     ;;
2940   alpha*-*-linux*)
2941     # newlib is not 64 bit ready
2942     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2943     ;;
2944   alpha*-*-*)
2945     # newlib is not 64 bit ready
2946     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2947     ;;
2948   am33_2.0-*-linux*)
2949     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2950     ;;
2951   sh-*-linux*)
2952     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2953     ;;
2954   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2955     noconfigdirs="$noconfigdirs ${libgcj}"
2956     noconfigdirs="$noconfigdirs target-examples"
2957     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2958     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2959     noconfigdirs="$noconfigdirs expect dejagnu"
2960     # the C++ libraries don't build on top of CE's C libraries
2961     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2962     noconfigdirs="$noconfigdirs target-newlib"
2963     case "${host}" in
2964       *-*-cygwin*) ;; # keep gdb and readline
2965       *) noconfigdirs="$noconfigdirs gdb readline"
2966          ;;
2967     esac
2968     libgloss_dir=wince
2969     ;;
2970   arc-*-*)
2971     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2972     ;;
2973   arm-semi-aof )
2974     ;;
2975   arm-*-coff | strongarm-*-coff | xscale-*-coff)
2976     noconfigdirs="$noconfigdirs ${libgcj}"
2977     libgloss_dir=arm
2978     ;;
2979   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2980     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2981     libgloss_dir=arm
2982     ;;
2983   arm*-*-linux-gnueabi)
2984     noconfigdirs="$noconfigdirs target-qthreads"
2985     case ${with_newlib} in
2986       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987     esac
2988     libgloss_dir=arm
2989     ;;
2990   arm*-*-symbianelf*)
2991     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2992     libgloss_dir=arm
2993     ;;
2994   arm-*-pe*)
2995     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2996     ;;
2997   thumb-*-coff)
2998     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2999     ;;
3000   thumb-*-elf)
3001     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3002     ;;
3003   thumb-*-pe)
3004     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3005     ;;
3006   arm-*-riscix*)
3007     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3008     ;;
3009   avr-*-*)
3010     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3011     ;;
3012   bfin-*-*)
3013     noconfigdirs="$noconfigdirs gdb"
3014     if test x${is_cross_compiler} != xno ; then
3015       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3016     fi
3017     ;;
3018   c4x-*-* | tic4x-*-*)
3019     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3020     ;;
3021   c54x*-*-* | tic54x-*-*)
3022     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3023     ;;
3024   cr16-*-*)
3025     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3026     ;;
3027   cris-*-* | crisv32-*-*)
3028     unsupported_languages="$unsupported_languages java"
3029     case "${target}" in
3030       *-*-aout)
3031         unsupported_languages="$unsupported_languages fortran"
3032         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3033       *-*-elf)
3034         noconfigdirs="$noconfigdirs target-boehm-gc";;
3035       *-*-linux*)
3036         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3037       *)
3038         unsupported_languages="$unsupported_languages fortran"
3039         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3040     esac
3041     libgloss_dir=cris
3042     ;;
3043   crx-*-*)
3044     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3045     ;;
3046   d10v-*-*)
3047     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3048     ;;
3049   d30v-*-*)
3050     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3051     ;;
3052   ep9312-*-elf | ep9312-*-coff)
3053     libgloss_dir=arm
3054     ;;
3055   fr30-*-elf*)
3056     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3057     ;;
3058   frv-*-*)
3059     noconfigdirs="$noconfigdirs ${libgcj}"
3060     ;;
3061   moxie-*-*)
3062     noconfigdirs="$noconfigdirs ${libgcj}"
3063     noconfigdirs="$noconfigdirs gprof"
3064     ;;
3065   h8300*-*-*)
3066     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3067     ;;
3068   h8500-*-*)
3069     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3070     ;;
3071   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3072     ;;
3073   hppa*64*-*-linux* | parisc*64*-*-linux*)
3074     # In this case, it's because the hppa64-linux target is for
3075     # the kernel only at this point and has no libc, and thus no
3076     # headers, crt*.o, etc., all of which are needed by these.
3077     noconfigdirs="$noconfigdirs target-zlib"
3078     ;;
3079   parisc*-*-linux* | hppa*-*-linux*)
3080     ;;
3081   hppa*-*-*elf* | \
3082   hppa*-*-lites* | \
3083   hppa*-*-openbsd* | \
3084   hppa*64*-*-*)
3085     noconfigdirs="$noconfigdirs ${libgcj}"
3086     ;;
3087   hppa*-hp-hpux11*)
3088     noconfigdirs="$noconfigdirs ld shellutils"
3089     ;;
3090   hppa*-*-pro*)
3091     libgloss_dir=pa
3092     ;;
3093   hppa*-*-*)
3094     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3095     # build on HP-UX 10.20.
3096     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3097     ;;
3098   i960-*-*)
3099     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3100     ;;
3101   ia64*-*-elf*)
3102     # No gdb support yet.
3103     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3104     ;;
3105   ia64*-**-hpux*)
3106     # No gdb or ld support yet.
3107     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3108     ;;
3109   ia64*-*-*vms*)
3110     # No gdb or ld support yet.
3111     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3112     ;;
3113   i370-*-opened*)
3114     ;;
3115   i[3456789]86-*-coff | i[3456789]86-*-elf)
3116     noconfigdirs="$noconfigdirs ${libgcj}"
3117     libgloss_dir=i386
3118     ;;
3119   i[3456789]86-*-linux*)
3120     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3121     # not build java stuff by default.
3122     case "${target}" in
3123       *-*-*libc1*)
3124         noconfigdirs="$noconfigdirs ${libgcj}";;
3125     esac
3126
3127     # This section makes it possible to build newlib natively on linux.
3128     # If we are using a cross compiler then don't configure newlib.
3129     if test x${is_cross_compiler} != xno ; then
3130       noconfigdirs="$noconfigdirs target-newlib"
3131     fi
3132     noconfigdirs="$noconfigdirs target-libgloss"
3133     # If we are not using a cross compiler, do configure newlib.
3134     # Note however, that newlib will only be configured in this situation
3135     # if the --with-newlib option has been given, because otherwise
3136     # 'target-newlib' will appear in skipdirs.
3137     ;;
3138   i[3456789]86-*-mingw32*)
3139     target_configdirs="$target_configdirs target-winsup"
3140     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3141     ;;
3142   x86_64-*-mingw*)
3143     target_configdirs="$target_configdirs target-winsup"
3144     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3145     ;;
3146   *-*-cygwin*)
3147     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3148     noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3149     # always build newlib if winsup directory is present.
3150     if test -d "$srcdir/winsup/cygwin"; then
3151       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3152     elif test -d "$srcdir/newlib"; then
3153       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3154     fi
3155     ;;
3156   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3157   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3158     ;;
3159   i[3456789]86-*-pe)
3160     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3161     ;;
3162   i[3456789]86-*-sco3.2v5*)
3163     # The linker does not yet know about weak symbols in COFF,
3164     # and is not configured to handle mixed ELF and COFF.
3165     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3166     ;;
3167   i[3456789]86-*-sco*)
3168     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3169     ;;
3170   i[3456789]86-*-solaris2*)
3171     noconfigdirs="$noconfigdirs target-libgloss"
3172     ;;
3173   i[3456789]86-*-sysv4*)
3174     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3175     ;;
3176   i[3456789]86-*-beos*)
3177     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3178     ;;
3179   i[3456789]86-*-rdos*)
3180     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3181     ;;
3182   m32r-*-*)
3183     noconfigdirs="$noconfigdirs ${libgcj}"
3184     ;;
3185   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3186     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3187     libgloss_dir=m68hc11
3188     ;;
3189   m68k-*-elf*)
3190     noconfigdirs="$noconfigdirs ${libgcj}"
3191     ;;
3192   m68k-*-coff*)
3193     noconfigdirs="$noconfigdirs ${libgcj}"
3194     ;;
3195   m68*-*-* | fido-*-*)
3196     libgloss_dir=m68k
3197     ;;
3198   mcore-*-pe*)
3199   # The EPOC C++ environment does not support exceptions or rtti,
3200   # and so building libstdc++-v3 tends not to always work.
3201     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3202     ;;
3203   mmix-*-*)
3204     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3205     unsupported_languages="$unsupported_languages fortran java"
3206     ;;
3207   mn10200-*-*)
3208     noconfigdirs="$noconfigdirs ${libgcj}"
3209     ;;
3210   mn10300-*-*)
3211     noconfigdirs="$noconfigdirs ${libgcj}"
3212     ;;
3213   mt-*-*)
3214     noconfigdirs="$noconfigdirs sim"
3215     ;;
3216   powerpc-*-aix*)
3217     # copied from rs6000-*-* entry
3218     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3219     ;;
3220   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3221     target_configdirs="$target_configdirs target-winsup"
3222     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3223     # always build newlib.
3224     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3225     ;;
3226     # This is temporary until we can link against shared libraries
3227   powerpcle-*-solaris*)
3228     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3229     libgloss_dir=rs6000
3230     ;;
3231   powerpc-*-beos*)
3232     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3233     ;;
3234   powerpc-*-eabi)
3235     noconfigdirs="$noconfigdirs ${libgcj}"
3236     libgloss_dir=rs6000
3237     ;;
3238   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3239     libgloss_dir=rs6000
3240     ;;
3241   rs6000-*-lynxos*)
3242     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3243     ;;
3244   rs6000-*-aix*)
3245     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3246     ;;
3247   rs6000-*-*)
3248     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3249     ;;
3250   m68k-apollo-*)
3251     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3252     ;;
3253   microblaze*)
3254     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3255     ;;
3256   mips*-sde-elf*)
3257     skipdirs="$skipdirs target-libiberty"
3258     noconfigdirs="$noconfigdirs ${libgcj}"
3259     if test x$with_newlib = xyes; then
3260       noconfigdirs="$noconfigdirs gprof"
3261     fi
3262     libgloss_dir=mips
3263     ;;
3264   mips*-*-irix5*)
3265     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3266     ;;
3267   mips*-*-irix6*)
3268     # Linking libjava exceeds command-line length limits on at least
3269     # IRIX 6.2, but not on IRIX 6.5.
3270     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3271     # <oldham@codesourcery.com>
3272     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3273     ;;
3274   mips*-*-bsd*)
3275     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3276     ;;
3277   mips*-*-linux*)
3278     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3279     ;;
3280   mips*-*-*)
3281     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3282     libgloss_dir=mips
3283     ;;
3284   romp-*-*)
3285     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3286     ;;
3287   sh-*-* | sh64-*-*)
3288     case "${host}" in
3289       i[3456789]86-*-vsta) ;; # don't add gprof back in
3290       i[3456789]86-*-go32*) ;; # don't add gprof back in
3291       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3292       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3293     esac
3294     case "${target}" in
3295       sh*-*-elf)
3296          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3297       *)
3298          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3299     esac
3300     ;;
3301   sparclet-*-aout* | sparc86x-*-*)
3302     libgloss_dir=sparc
3303     ;;
3304   sparc-*-elf*)
3305     noconfigdirs="$noconfigdirs ${libgcj}"
3306     ;;
3307   sparc64-*-elf*)
3308     noconfigdirs="$noconfigdirs ${libgcj}"
3309     libgloss_dir=sparc
3310     ;;
3311   sparclite-*-*)
3312     noconfigdirs="$noconfigdirs ${libgcj}"
3313     libgloss_dir=sparc
3314     ;;
3315   sparc-*-sunos4*)
3316     noconfigdirs="$noconfigdirs ${libgcj}"
3317     if test x${is_cross_compiler} != xno ; then
3318            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3319     else
3320            use_gnu_ld=no
3321     fi
3322     ;;
3323   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3324     noconfigdirs="$noconfigdirs ${libgcj}"
3325     ;;
3326   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3327     ;;
3328   v810-*-*)
3329     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3330     ;;
3331   v850-*-*)
3332     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3333     ;;
3334   v850e-*-*)
3335     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3336     ;;
3337   v850ea-*-*)
3338     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3339     ;;
3340   vax-*-vms)
3341     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3342     ;;
3343   vax-*-*)
3344     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3345     ;;
3346   xtensa*-*-*)
3347     noconfigdirs="$noconfigdirs ${libgcj}"
3348     ;;
3349   ip2k-*-*)
3350     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3351     ;;
3352   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3353     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354     ;;
3355   *-*-lynxos*)
3356     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3357     ;;
3358   *-*-*)
3359     noconfigdirs="$noconfigdirs ${libgcj}"
3360     ;;
3361 esac
3362
3363 # If we aren't building newlib, then don't build libgloss, since libgloss
3364 # depends upon some newlib header files.
3365 case "${noconfigdirs}" in
3366   *target-libgloss*) ;;
3367   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3368 esac
3369
3370 # Work in distributions that contain no compiler tools, like Autoconf.
3371 tentative_cc=""
3372 host_makefile_frag=/dev/null
3373 if test -d ${srcdir}/config ; then
3374 case "${host}" in
3375   m68k-hp-hpux*)
3376     # Avoid "too much defining" errors from HPUX compiler.
3377     tentative_cc="cc -Wp,-H256000"
3378     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3379     # If it's HP/UX ar, this should be harmless.
3380     RANLIB="ar ts"
3381     ;;
3382   m68k-apollo-sysv*)
3383     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3384     ;;
3385   m68k-apollo-bsd*)
3386     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3387     # chokes on bfd, the compiler won't let you assign integers to enums, and
3388     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3389     # the apollo compiler" (the preferred version of GCC could be called cc,
3390     # or whatever), but I'm not sure leaving CC as cc is any better...
3391     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3392     # Used to have BISON=yacc.
3393     tentative_cc=gcc
3394     ;;
3395   m88k-dg-dgux*)
3396     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3397     ;;
3398   m88k-harris-cxux*)
3399     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3400     tentative_cc="cc -Xa"
3401     host_makefile_frag="config/mh-cxux"
3402     ;;
3403   m88k-motorola-sysv*)
3404     ;;
3405   mips*-dec-ultrix*)
3406     tentative_cc="cc -Wf,-XNg1000"
3407     host_makefile_frag="config/mh-decstation"
3408     ;;
3409   mips*-nec-sysv4*)
3410     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3411     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3412     host_makefile_frag="config/mh-necv4"
3413     ;;
3414   mips*-sgi-irix4*)
3415     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3416     # environment.  Also bump switch table size so that cp-parse will
3417     # compile.  Bump string length limit so linker builds.
3418     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3419     ;;
3420   mips*-*-sysv4*)
3421     host_makefile_frag="config/mh-sysv4"
3422     ;;
3423   mips*-*-sysv*)
3424     # This is for a MIPS running RISC/os 4.52C.
3425
3426     # This is needed for GDB, but needs to be in the top-level make because
3427     # if a library is compiled with the bsd headers and gets linked with the
3428     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3429     # a different size).
3430     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3431     # known except to select the sysv environment.  Could we use /proc instead?
3432     # These "sysv environments" and "bsd environments" often end up being a pain.
3433     #
3434     # This is not part of CFLAGS because perhaps not all C compilers have this
3435     # option.
3436     tentative_cc="cc -systype sysv"
3437     ;;
3438   i370-ibm-opened*)
3439     tentative_cc="c89"
3440     ;;
3441   i[3456789]86-*-sysv5*)
3442     host_makefile_frag="config/mh-sysv5"
3443     ;;
3444   i[3456789]86-*-dgux*)
3445     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3446     host_makefile_frag="config/mh-dgux386"
3447     ;;
3448   i[3456789]86-ncr-sysv4.3*)
3449     # The MetaWare compiler will generate a copyright message unless you
3450     # turn it off by adding the -Hnocopyr flag.
3451     tentative_cc="cc -Hnocopyr"
3452     ;;
3453   i[3456789]86-ncr-sysv4*)
3454     # for an NCR 3000 (i486/SVR4) system.
3455     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3456     # This compiler not only emits obnoxious copyright messages every time
3457     # you run it, but it chokes and dies on a whole bunch of GNU source
3458     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3459     tentative_cc="/usr/ccs/ATT/cc"
3460     host_makefile_frag="config/mh-ncr3000"
3461     ;;
3462   i[3456789]86-*-sco3.2v5*)
3463     ;;
3464   i[3456789]86-*-sco*)
3465     # The native C compiler botches some simple uses of const.  Unfortunately,
3466     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3467     tentative_cc="cc -Dconst="
3468     host_makefile_frag="config/mh-sco"
3469     ;;
3470   i[3456789]86-*-udk*)
3471     host_makefile_frag="config/mh-sysv5"
3472     ;;
3473   i[3456789]86-*-solaris2*)
3474     host_makefile_frag="config/mh-sysv4"
3475     ;;
3476   i[3456789]86-*-msdosdjgpp*)
3477     host_makefile_frag="config/mh-djgpp"
3478     ;;
3479   *-cygwin*)
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3482 $as_echo_n "checking to see if cat works as expected... " >&6; }
3483 echo a >cygwin-cat-check
3484 if test `cat cygwin-cat-check` == a ; then
3485   rm cygwin-cat-check
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3488 else
3489   rm cygwin-cat-check
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492   as_fn_error "The cat command does not ignore carriage return characters.
3493   Please either mount the build directory in binary mode or run the following
3494   commands before running any configure script:
3495 set -o igncr
3496 export SHELLOPTS
3497   " "$LINENO" 5
3498 fi
3499
3500     host_makefile_frag="config/mh-cygwin"
3501     ;;
3502   *-mingw*)
3503     host_makefile_frag="config/mh-mingw"
3504     ;;
3505   *-interix*)
3506     host_makefile_frag="config/mh-interix"
3507     ;;
3508   vax-*-ultrix2*)
3509     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3510     tentative_cc=gcc
3511     ;;
3512   *-*-solaris2*)
3513     host_makefile_frag="config/mh-solaris"
3514     ;;
3515   m68k-sun-sunos*)
3516     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3517     # without overflowing the jump tables (-J says to use a 32 bit table)
3518     tentative_cc="cc -J"
3519     ;;
3520   hppa*-hp-hpux10*)
3521     tentative_cc="cc -Wp,-H256000"
3522     host_makefile_frag="config/mh-pa-hpux10"
3523     ;;
3524   hppa*-hp-hpux* | hppa*-*-hiux*)
3525     tentative_cc="cc -Wp,-H256000"
3526     host_makefile_frag="config/mh-pa"
3527     ;;
3528   hppa*-*)
3529     host_makefile_frag="config/mh-pa"
3530     ;;
3531   *-hp-hpux* | *-*-hiux*)
3532     tentative_cc="cc -Wp,-H256000"
3533     ;;
3534   rs6000-*-lynxos*)
3535     # /bin/cc is less than useful for our purposes.  Always use GCC
3536     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3537     host_makefile_frag="config/mh-lynxrs6k"
3538     ;;
3539   powerpc-*-darwin*)
3540     host_makefile_frag="config/mh-ppc-darwin"
3541     ;;
3542   powerpc-*-aix*)
3543     host_makefile_frag="config/mh-ppc-aix"
3544     ;;
3545   rs6000-*-aix*)
3546     host_makefile_frag="config/mh-ppc-aix"
3547     ;;
3548   *-*-lynxos*)
3549     # /bin/cc is less than useful for our purposes.  Always use GCC
3550     tentative_cc="/bin/gcc"
3551     ;;
3552   *-*-sysv4*)
3553     host_makefile_frag="config/mh-sysv4"
3554     ;;
3555   # This is placed last to prevent interfering with the cases above.
3556   i[3456789]86-*-*)
3557     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3558     host_makefile_frag="config/mh-x86omitfp"
3559     ;;
3560 esac
3561 fi
3562
3563 # If we aren't going to be using gcc, see if we can extract a definition
3564 # of CC from the fragment.
3565 # Actually, use the 'pre-extracted' version above.
3566 if test -z "${CC}" && test "${build}" = "${host}" ; then
3567   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3568   found=
3569   for dir in $PATH; do
3570     test -z "$dir" && dir=.
3571     if test -f $dir/gcc; then
3572       found=yes
3573       break
3574     fi
3575   done
3576   IFS="$save_ifs"
3577   if test -z "${found}" && test -n "${tentative_cc}" ; then
3578     CC=$tentative_cc
3579   fi
3580 fi
3581
3582 if test "${build}" != "${host}" ; then
3583   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3584   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3585   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3586   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3587   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3588   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3589   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3590   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3591   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3592   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3593   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3594   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3595 else
3596   AR_FOR_BUILD="\$(AR)"
3597   AS_FOR_BUILD="\$(AS)"
3598   CC_FOR_BUILD="\$(CC)"
3599   CXX_FOR_BUILD="\$(CXX)"
3600   GCJ_FOR_BUILD="\$(GCJ)"
3601   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3602   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3603   LD_FOR_BUILD="\$(LD)"
3604   NM_FOR_BUILD="\$(NM)"
3605   RANLIB_FOR_BUILD="\$(RANLIB)"
3606   WINDRES_FOR_BUILD="\$(WINDRES)"
3607   WINDMC_FOR_BUILD="\$(WINDMC)"
3608 fi
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 if test -n "$ac_tool_prefix"; then
3616   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   if test -n "$CC"; then
3624   ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631     for ac_exec_ext in '' $ac_executable_extensions; do
3632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638   done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3647 else
3648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3650 fi
3651
3652
3653 fi
3654 if test -z "$ac_cv_prog_CC"; then
3655   ac_ct_CC=$CC
3656   # Extract the first word of "gcc", so it can be a program name with args.
3657 set dummy gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   if test -n "$ac_ct_CC"; then
3664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671     for ac_exec_ext in '' $ac_executable_extensions; do
3672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673     ac_cv_prog_ac_ct_CC="gcc"
3674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678   done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3687 else
3688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692   if test "x$ac_ct_CC" = x; then
3693     CC=""
3694   else
3695     case $cross_compiling:$ac_tool_warned in
3696 yes:)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701     CC=$ac_ct_CC
3702   fi
3703 else
3704   CC="$ac_cv_prog_CC"
3705 fi
3706
3707 if test -z "$CC"; then
3708           if test -n "$ac_tool_prefix"; then
3709     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}cc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if test "${ac_cv_prog_CC+set}" = set; then :
3714   $as_echo_n "(cached) " >&6
3715 else
3716   if test -n "$CC"; then
3717   ac_cv_prog_CC="$CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     ac_cv_prog_CC="${ac_tool_prefix}cc"
3727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731   done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746   fi
3747 fi
3748 if test -z "$CC"; then
3749   # Extract the first word of "cc", so it can be a program name with args.
3750 set dummy cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_CC+set}" = set; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$CC"; then
3757   ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759   ac_prog_rejected=no
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765     for ac_exec_ext in '' $ac_executable_extensions; do
3766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768        ac_prog_rejected=yes
3769        continue
3770      fi
3771     ac_cv_prog_CC="cc"
3772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776   done
3777 IFS=$as_save_IFS
3778
3779 if test $ac_prog_rejected = yes; then
3780   # We found a bogon in the path, so make sure we never use it.
3781   set dummy $ac_cv_prog_CC
3782   shift
3783   if test $# != 0; then
3784     # We chose a different compiler from the bogus one.
3785     # However, it has the same basename, so the bogon will be chosen
3786     # first if we set CC to just the basename; use the full file name.
3787     shift
3788     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3789   fi
3790 fi
3791 fi
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 if test -z "$CC"; then
3805   if test -n "$ac_tool_prefix"; then
3806   for ac_prog in cl.exe
3807   do
3808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_CC+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   if test -n "$CC"; then
3816   ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   test -z "$as_dir" && as_dir=.
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3839 else
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845     test -n "$CC" && break
3846   done
3847 fi
3848 if test -z "$CC"; then
3849   ac_ct_CC=$CC
3850   for ac_prog in cl.exe
3851 do
3852   # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$ac_ct_CC"; then
3860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_ac_ct_CC="$ac_prog"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889   test -n "$ac_ct_CC" && break
3890 done
3891
3892   if test "x$ac_ct_CC" = x; then
3893     CC=""
3894   else
3895     case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901     CC=$ac_ct_CC
3902   fi
3903 fi
3904
3905 fi
3906
3907
3908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error "no acceptable C compiler found in \$PATH
3911 See \`config.log' for more details." "$LINENO" 5; }
3912
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 for ac_option in --version -v -V -qversion; do
3918   { { ac_try="$ac_compiler $ac_option >&5"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926   ac_status=$?
3927   if test -s conftest.err; then
3928     sed '10a\
3929 ... rest of stderr output deleted ...
3930          10q' conftest.err >conftest.er1
3931     cat conftest.er1 >&5
3932     rm -f conftest.er1 conftest.err
3933   fi
3934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935   test $ac_status = 0; }
3936 done
3937
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 ac_clean_files_save=$ac_clean_files
3950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3951 # Try to create an executable without -o first, disregard a.out.
3952 # It will help us diagnose broken compilers, and finding out an intuition
3953 # of exeext.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955 $as_echo_n "checking for C compiler default output file name... " >&6; }
3956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958 # The possible output files:
3959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961 ac_rmfiles=
3962 for ac_file in $ac_files
3963 do
3964   case $ac_file in
3965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967   esac
3968 done
3969 rm -f $ac_rmfiles
3970
3971 if { { ac_try="$ac_link_default"
3972 case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_link_default") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; }; then :
3982   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3985 # so that the user can short-circuit this test for compilers unknown to
3986 # Autoconf.
3987 for ac_file in $ac_files ''
3988 do
3989   test -f "$ac_file" || continue
3990   case $ac_file in
3991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3992         ;;
3993     [ab].out )
3994         # We found the default executable, but exeext='' is most
3995         # certainly right.
3996         break;;
3997     *.* )
3998         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3999         then :; else
4000            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001         fi
4002         # We set ac_cv_exeext here because the later test for it is not
4003         # safe: cross compilers may not add the suffix if given an `-o'
4004         # argument, so we may need to know it at that point already.
4005         # Even if this section looks crufty: it has the advantage of
4006         # actually working.
4007         break;;
4008     * )
4009         break;;
4010   esac
4011 done
4012 test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
4014 else
4015   ac_file=''
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4018 $as_echo "$ac_file" >&6; }
4019 if test -z "$ac_file"; then :
4020   $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 { as_fn_set_status 77
4026 as_fn_error "C compiler cannot create executables
4027 See \`config.log' for more details." "$LINENO" 5; }; }
4028 fi
4029 ac_exeext=$ac_cv_exeext
4030
4031 # Check that the compiler produces executables we can run.  If not, either
4032 # the compiler is broken, or we cross compile.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4034 $as_echo_n "checking whether the C compiler works... " >&6; }
4035 # If not cross compiling, check that we can run a simple program.
4036 if test "$cross_compiling" != yes; then
4037   if { ac_try='./$ac_file'
4038   { { case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044   (eval "$ac_try") 2>&5
4045   ac_status=$?
4046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047   test $ac_status = 0; }; }; then
4048     cross_compiling=no
4049   else
4050     if test "$cross_compiling" = maybe; then
4051         cross_compiling=yes
4052     else
4053         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error "cannot run C compiled programs.
4056 If you meant to cross compile, use \`--host'.
4057 See \`config.log' for more details." "$LINENO" 5; }
4058     fi
4059   fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062 $as_echo "yes" >&6; }
4063
4064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4065 ac_clean_files=$ac_clean_files_save
4066 # Check that the compiler produces executables we can run.  If not, either
4067 # the compiler is broken, or we cross compile.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4069 $as_echo_n "checking whether we are cross compiling... " >&6; }
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071 $as_echo "$cross_compiling" >&6; }
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4074 $as_echo_n "checking for suffix of executables... " >&6; }
4075 if { { ac_try="$ac_link"
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") 2>&5
4083   ac_status=$?
4084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085   test $ac_status = 0; }; then :
4086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4088 # work properly (i.e., refer to `conftest.exe'), while it won't with
4089 # `rm'.
4090 for ac_file in conftest.exe conftest conftest.*; do
4091   test -f "$ac_file" || continue
4092   case $ac_file in
4093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4095           break;;
4096     * ) break;;
4097   esac
4098 done
4099 else
4100   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error "cannot compute suffix of executables: cannot compile and link
4103 See \`config.log' for more details." "$LINENO" 5; }
4104 fi
4105 rm -f conftest$ac_cv_exeext
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4107 $as_echo "$ac_cv_exeext" >&6; }
4108
4109 rm -f conftest.$ac_ext
4110 EXEEXT=$ac_cv_exeext
4111 ac_exeext=$EXEEXT
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4113 $as_echo_n "checking for suffix of object files... " >&6; }
4114 if test "${ac_cv_objext+set}" = set; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h.  */
4119
4120 int
4121 main ()
4122 {
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.o conftest.obj
4129 if { { ac_try="$ac_compile"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136   (eval "$ac_compile") 2>&5
4137   ac_status=$?
4138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139   test $ac_status = 0; }; then :
4140   for ac_file in conftest.o conftest.obj conftest.*; do
4141   test -f "$ac_file" || continue;
4142   case $ac_file in
4143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4145        break;;
4146   esac
4147 done
4148 else
4149   $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error "cannot compute suffix of object files: cannot compile
4155 See \`config.log' for more details." "$LINENO" 5; }
4156 fi
4157 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4160 $as_echo "$ac_cv_objext" >&6; }
4161 OBJEXT=$ac_cv_objext
4162 ac_objext=$OBJEXT
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4164 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4165 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170
4171 int
4172 main ()
4173 {
4174 #ifndef __GNUC__
4175        choke me
4176 #endif
4177
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183   ac_compiler_gnu=yes
4184 else
4185   ac_compiler_gnu=no
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4193 if test $ac_compiler_gnu = yes; then
4194   GCC=yes
4195 else
4196   GCC=
4197 fi
4198 ac_test_CFLAGS=${CFLAGS+set}
4199 ac_save_CFLAGS=$CFLAGS
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4202 if test "${ac_cv_prog_cc_g+set}" = set; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   ac_save_c_werror_flag=$ac_c_werror_flag
4206    ac_c_werror_flag=yes
4207    ac_cv_prog_cc_g=no
4208    CFLAGS="-g"
4209    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_g=yes
4222 else
4223   CFLAGS=""
4224       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226
4227 int
4228 main ()
4229 {
4230
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236
4237 else
4238   ac_c_werror_flag=$ac_save_c_werror_flag
4239          CFLAGS="-g"
4240          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242
4243 int
4244 main ()
4245 {
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252   ac_cv_prog_cc_g=yes
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259    ac_c_werror_flag=$ac_save_c_werror_flag
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262 $as_echo "$ac_cv_prog_cc_g" >&6; }
4263 if test "$ac_test_CFLAGS" = set; then
4264   CFLAGS=$ac_save_CFLAGS
4265 elif test $ac_cv_prog_cc_g = yes; then
4266   if test "$GCC" = yes; then
4267     CFLAGS="-g -O2"
4268   else
4269     CFLAGS="-g"
4270   fi
4271 else
4272   if test "$GCC" = yes; then
4273     CFLAGS="-O2"
4274   else
4275     CFLAGS=
4276   fi
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4279 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4280 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   ac_cv_prog_cc_c89=no
4284 ac_save_CC=$CC
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 #include <stdarg.h>
4288 #include <stdio.h>
4289 #include <sys/types.h>
4290 #include <sys/stat.h>
4291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4292 struct buf { int x; };
4293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4294 static char *e (p, i)
4295      char **p;
4296      int i;
4297 {
4298   return p[i];
4299 }
4300 static char *f (char * (*g) (char **, int), char **p, ...)
4301 {
4302   char *s;
4303   va_list v;
4304   va_start (v,p);
4305   s = g (p, va_arg (v,int));
4306   va_end (v);
4307   return s;
4308 }
4309
4310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4311    function prototypes and stuff, but not '\xHH' hex character constants.
4312    These don't provoke an error unfortunately, instead are silently treated
4313    as 'x'.  The following induces an error, until -std is added to get
4314    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4315    array size at least.  It's necessary to write '\x00'==0 to get something
4316    that's true only with -std.  */
4317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4318
4319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4320    inside strings and character constants.  */
4321 #define FOO(x) 'x'
4322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4323
4324 int test (int i, double x);
4325 struct s1 {int (*f) (int a);};
4326 struct s2 {int (*f) (double a);};
4327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4328 int argc;
4329 char **argv;
4330 int
4331 main ()
4332 {
4333 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4340 do
4341   CC="$ac_save_CC $ac_arg"
4342   if ac_fn_c_try_compile "$LINENO"; then :
4343   ac_cv_prog_cc_c89=$ac_arg
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext
4346   test "x$ac_cv_prog_cc_c89" != "xno" && break
4347 done
4348 rm -f conftest.$ac_ext
4349 CC=$ac_save_CC
4350
4351 fi
4352 # AC_CACHE_VAL
4353 case "x$ac_cv_prog_cc_c89" in
4354   x)
4355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356 $as_echo "none needed" >&6; } ;;
4357   xno)
4358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359 $as_echo "unsupported" >&6; } ;;
4360   *)
4361     CC="$CC $ac_cv_prog_cc_c89"
4362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4364 esac
4365 if test "x$ac_cv_prog_cc_c89" != xno; then :
4366
4367 fi
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375 ac_ext=cpp
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381   if test -n "$CCC"; then
4382     CXX=$CCC
4383   else
4384     if test -n "$ac_tool_prefix"; then
4385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if test -n "$CXX"; then
4395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CXX=$ac_cv_prog_CXX
4415 if test -n "$CXX"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4417 $as_echo "$CXX" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424     test -n "$CXX" && break
4425   done
4426 fi
4427 if test -z "$CXX"; then
4428   ac_ct_CXX=$CXX
4429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -n "$ac_ct_CXX"; then
4439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_prog_ac_ct_CXX="$ac_prog"
4449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453   done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4461 $as_echo "$ac_ct_CXX" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CXX" && break
4469 done
4470
4471   if test "x$ac_ct_CXX" = x; then
4472     CXX="g++"
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480     CXX=$ac_ct_CXX
4481   fi
4482 fi
4483
4484   fi
4485 fi
4486 # Provide some information about the compiler.
4487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4488 set X $ac_compile
4489 ac_compiler=$2
4490 for ac_option in --version -v -V -qversion; do
4491   { { ac_try="$ac_compiler $ac_option >&5"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499   ac_status=$?
4500   if test -s conftest.err; then
4501     sed '10a\
4502 ... rest of stderr output deleted ...
4503          10q' conftest.err >conftest.er1
4504     cat conftest.er1 >&5
4505     rm -f conftest.er1 conftest.err
4506   fi
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; }
4509 done
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4512 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518
4519 int
4520 main ()
4521 {
4522 #ifndef __GNUC__
4523        choke me
4524 #endif
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531   ac_compiler_gnu=yes
4532 else
4533   ac_compiler_gnu=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4540 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4541 if test $ac_compiler_gnu = yes; then
4542   GXX=yes
4543 else
4544   GXX=
4545 fi
4546 ac_test_CXXFLAGS=${CXXFLAGS+set}
4547 ac_save_CXXFLAGS=$CXXFLAGS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4549 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4550 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4554    ac_cxx_werror_flag=yes
4555    ac_cv_prog_cxx_g=no
4556    CXXFLAGS="-g"
4557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559
4560 int
4561 main ()
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569   ac_cv_prog_cxx_g=yes
4570 else
4571   CXXFLAGS=""
4572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584
4585 else
4586   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587          CXXFLAGS="-g"
4588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600   ac_cv_prog_cxx_g=yes
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4610 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4611 if test "$ac_test_CXXFLAGS" = set; then
4612   CXXFLAGS=$ac_save_CXXFLAGS
4613 elif test $ac_cv_prog_cxx_g = yes; then
4614   if test "$GXX" = yes; then
4615     CXXFLAGS="-g -O2"
4616   else
4617     CXXFLAGS="-g"
4618   fi
4619 else
4620   if test "$GXX" = yes; then
4621     CXXFLAGS="-O2"
4622   else
4623     CXXFLAGS=
4624   fi
4625 fi
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633 # We must set the default linker to the linker used by gcc for the correct
4634 # operation of libtool.  If LD is not defined and we are using gcc, try to
4635 # set the LD default to the ld used by gcc.
4636 if test -z "$LD"; then
4637   if test "$GCC" = yes; then
4638     case $build in
4639     *-*-mingw*)
4640       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4641     *)
4642       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4643     esac
4644     case $gcc_prog_ld in
4645     # Accept absolute paths.
4646     [\\/]* | [A-Za-z]:[\\/]*)
4647       LD="$gcc_prog_ld" ;;
4648     esac
4649   fi
4650 fi
4651
4652
4653
4654
4655 if test -n "$ac_tool_prefix"; then
4656   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$GNATBIND"; then
4664   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 GNATBIND=$ac_cv_prog_GNATBIND
4684 if test -n "$GNATBIND"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4686 $as_echo "$GNATBIND" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693 fi
4694 if test -z "$ac_cv_prog_GNATBIND"; then
4695   ac_ct_GNATBIND=$GNATBIND
4696   # Extract the first word of "gnatbind", so it can be a program name with args.
4697 set dummy gnatbind; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   if test -n "$ac_ct_GNATBIND"; then
4704   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718   done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4724 if test -n "$ac_ct_GNATBIND"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4726 $as_echo "$ac_ct_GNATBIND" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732   if test "x$ac_ct_GNATBIND" = x; then
4733     GNATBIND="no"
4734   else
4735     case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741     GNATBIND=$ac_ct_GNATBIND
4742   fi
4743 else
4744   GNATBIND="$ac_cv_prog_GNATBIND"
4745 fi
4746
4747 if test -n "$ac_tool_prefix"; then
4748   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4749 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   if test -n "$GNATMAKE"; then
4756   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770   done
4771 IFS=$as_save_IFS
4772
4773 fi
4774 fi
4775 GNATMAKE=$ac_cv_prog_GNATMAKE
4776 if test -n "$GNATMAKE"; then
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4778 $as_echo "$GNATMAKE" >&6; }
4779 else
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784
4785 fi
4786 if test -z "$ac_cv_prog_GNATMAKE"; then
4787   ac_ct_GNATMAKE=$GNATMAKE
4788   # Extract the first word of "gnatmake", so it can be a program name with args.
4789 set dummy gnatmake; ac_word=$2
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 $as_echo_n "checking for $ac_word... " >&6; }
4792 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   if test -n "$ac_ct_GNATMAKE"; then
4796   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4816 if test -n "$ac_ct_GNATMAKE"; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4818 $as_echo "$ac_ct_GNATMAKE" >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824   if test "x$ac_ct_GNATMAKE" = x; then
4825     GNATMAKE="no"
4826   else
4827     case $cross_compiling:$ac_tool_warned in
4828 yes:)
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833     GNATMAKE=$ac_ct_GNATMAKE
4834   fi
4835 else
4836   GNATMAKE="$ac_cv_prog_GNATMAKE"
4837 fi
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4840 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4841 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   cat >conftest.adb <<EOF
4845 procedure conftest is begin null; end conftest;
4846 EOF
4847 acx_cv_cc_gcc_supports_ada=no
4848 # There is a bug in old released versions of GCC which causes the
4849 # driver to exit successfully when the appropriate language module
4850 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4851 # Therefore we must check for the error message as well as an
4852 # unsuccessful exit.
4853 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4854 # given a .adb file, but produce no object file.  So we must check
4855 # if an object file was really produced to guard against this.
4856 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4857 if test x"$errors" = x && test -f conftest.$ac_objext; then
4858   acx_cv_cc_gcc_supports_ada=yes
4859 fi
4860 rm -f conftest.*
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4863 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4864
4865 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4866   have_gnat=yes
4867 else
4868   have_gnat=no
4869 fi
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4872 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4873 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876    echo abfoo >t1
4877   echo cdfoo >t2
4878   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4879   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4881       :
4882     else
4883       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4884     fi
4885   fi
4886   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4887     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4888       :
4889     else
4890       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4891     fi
4892   fi
4893   rm t1 t2
4894
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4897 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
4898 do_compare="$gcc_cv_prog_cmp_skip"
4899
4900
4901
4902 # See if we are building gcc with C++.
4903 # Check whether --enable-build-with-cxx was given.
4904 if test "${enable_build_with_cxx+set}" = set; then :
4905   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4906 else
4907   ENABLE_BUILD_WITH_CXX=no
4908 fi
4909
4910
4911 # Check for GMP, MPFR and MPC
4912 gmplibs="-lmpfr -lgmp"
4913 gmpinc=
4914 have_gmp=no
4915 mpclibs=-lmpc
4916 mpcinc=
4917 have_mpc=no
4918
4919 # Specify a location for mpc
4920 # check for this first so it ends up on the link line before mpfr.
4921
4922 # Check whether --with-mpc was given.
4923 if test "${with_mpc+set}" = set; then :
4924   withval=$with_mpc;
4925 fi
4926
4927
4928 # Check whether --with-mpc_include was given.
4929 if test "${with_mpc_include+set}" = set; then :
4930   withval=$with_mpc_include;
4931 fi
4932
4933
4934 # Check whether --with-mpc_lib was given.
4935 if test "${with_mpc_lib+set}" = set; then :
4936   withval=$with_mpc_lib;
4937 fi
4938
4939
4940 if test "x$with_mpc" != x; then
4941   mpclibs="-L$with_mpc/lib -lmpc"
4942   mpcinc="-I$with_mpc/include $mpcinc"
4943 fi
4944 if test "x$with_mpc_include" != x; then
4945   mpcinc="-I$with_mpc_include $mpcinc"
4946 fi
4947 if test "x$with_mpc_lib" != x; then
4948   mpclibs="-L$with_mpc_lib -lmpc"
4949 fi
4950 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4951   mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4952   mpcinc='-I$$s/mpc/src '"$mpcinc"
4953   # Do not test the mpc version.  Assume that it is sufficient, since
4954   # it is in the source tree, and the library has not been built yet
4955   # but it would be included on the link line in the version check below
4956   # hence making the test fail.
4957   have_mpc=yes
4958 fi
4959
4960 # Specify a location for mpfr
4961 # check for this first so it ends up on the link line before gmp.
4962
4963 # Check whether --with-mpfr-dir was given.
4964 if test "${with_mpfr_dir+set}" = set; then :
4965   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
4966 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
4967 fi
4968
4969
4970
4971 # Check whether --with-mpfr was given.
4972 if test "${with_mpfr+set}" = set; then :
4973   withval=$with_mpfr;
4974 fi
4975
4976
4977 # Check whether --with-mpfr_include was given.
4978 if test "${with_mpfr_include+set}" = set; then :
4979   withval=$with_mpfr_include;
4980 fi
4981
4982
4983 # Check whether --with-mpfr_lib was given.
4984 if test "${with_mpfr_lib+set}" = set; then :
4985   withval=$with_mpfr_lib;
4986 fi
4987
4988
4989 if test "x$with_mpfr" != x; then
4990   gmplibs="-L$with_mpfr/lib $gmplibs"
4991   gmpinc="-I$with_mpfr/include"
4992 fi
4993 if test "x$with_mpfr_include" != x; then
4994   gmpinc="-I$with_mpfr_include"
4995 fi
4996 if test "x$with_mpfr_lib" != x; then
4997   gmplibs="-L$with_mpfr_lib $gmplibs"
4998 fi
4999 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5000   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5001   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5002   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
5003   # Do not test the mpfr version.  Assume that it is sufficient, since
5004   # it is in the source tree, and the library has not been built yet
5005   # but it would be included on the link line in the version check below
5006   # hence making the test fail.
5007   have_gmp=yes
5008 fi
5009
5010 # Specify a location for gmp
5011
5012 # Check whether --with-gmp-dir was given.
5013 if test "${with_gmp_dir+set}" = set; then :
5014   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5015 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5016 fi
5017
5018
5019
5020 # Check whether --with-gmp was given.
5021 if test "${with_gmp+set}" = set; then :
5022   withval=$with_gmp;
5023 fi
5024
5025
5026 # Check whether --with-gmp_include was given.
5027 if test "${with_gmp_include+set}" = set; then :
5028   withval=$with_gmp_include;
5029 fi
5030
5031
5032 # Check whether --with-gmp_lib was given.
5033 if test "${with_gmp_lib+set}" = set; then :
5034   withval=$with_gmp_lib;
5035 fi
5036
5037
5038
5039 if test "x$with_gmp" != x; then
5040   gmplibs="-L$with_gmp/lib $gmplibs"
5041   gmpinc="-I$with_gmp/include $gmpinc"
5042 fi
5043 if test "x$with_gmp_include" != x; then
5044   gmpinc="-I$with_gmp_include $gmpinc"
5045 fi
5046 if test "x$with_gmp_lib" != x; then
5047   gmplibs="-L$with_gmp_lib $gmplibs"
5048 fi
5049 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5050   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5051   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5052   extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5053   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
5054   # Do not test the gmp version.  Assume that it is sufficient, since
5055   # it is in the source tree, and the library has not been built yet
5056   # but it would be included on the link line in the version check below
5057   # hence making the test fail.
5058   have_gmp=yes
5059 fi
5060
5061 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5062   have_gmp=yes
5063   saved_CFLAGS="$CFLAGS"
5064   CFLAGS="$CFLAGS $gmpinc"
5065   # Check GMP actually works
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5067 $as_echo_n "checking for correct version of gmp.h... " >&6; }
5068
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h.  */
5071 #include "gmp.h"
5072 int
5073 main ()
5074 {
5075
5076   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
5077   choke me
5078   #endif
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_compile "$LINENO"; then :
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086 $as_echo "yes" >&6; }
5087 else
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }; have_gmp=no
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092
5093   # If we have GMP, check the MPFR version.
5094   if test x"$have_gmp" = xyes; then
5095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5096 $as_echo_n "checking for correct version of mpfr.h... " >&6; }
5097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h.  */
5099 #include <gmp.h>
5100     #include <mpfr.h>
5101 int
5102 main ()
5103 {
5104
5105     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5106     choke me
5107     #endif
5108
5109   ;
5110   return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116 #include <gmp.h>
5117     #include <mpfr.h>
5118 int
5119 main ()
5120 {
5121
5122     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
5123     choke me
5124     #endif
5125
5126   ;
5127   return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132 $as_echo "yes" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5135 $as_echo "buggy but acceptable" >&6; }
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }; have_gmp=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143   fi
5144
5145   # Check for the MPC header version.
5146   if test x"$have_mpc" != xyes ; then
5147     CFLAGS="$CFLAGS $mpcinc"
5148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5149 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152 #include <mpc.h>
5153 int
5154 main ()
5155 {
5156
5157     #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5158     choke me
5159     #endif
5160
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }; have_mpc=maybe
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173   fi
5174
5175   # Now check the MPFR library.
5176   if test x"$have_gmp" = xyes; then
5177     saved_LIBS="$LIBS"
5178     LIBS="$LIBS $gmplibs"
5179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5180 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h.  */
5183 #include <gmp.h>
5184     #include <mpfr.h>
5185 int
5186 main ()
5187 {
5188
5189     mpfr_t n;
5190     mpfr_t x;
5191     int t;
5192     mpfr_init (n);
5193     mpfr_init (x);
5194     mpfr_atan2 (n, n, x, GMP_RNDN);
5195     mpfr_erfc (n, x, GMP_RNDN);
5196     mpfr_subnormalize (x, t, GMP_RNDN);
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_link "$LINENO"; then :
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5204 $as_echo "yes" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }; have_gmp=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext \
5210     conftest$ac_exeext conftest.$ac_ext
5211     LIBS="$saved_LIBS"
5212   fi
5213
5214   if test x"$have_mpc" = xmaybe; then
5215     saved_LIBS="$LIBS"
5216     LIBS="$LIBS $mpclibs $gmplibs"
5217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5218 $as_echo_n "checking for the correct version of the mpc library... " >&6; }
5219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221 #include <mpc.h>
5222 int
5223 main ()
5224 {
5225
5226     mpc_t n;
5227     mpc_init2 (n, 53);
5228     mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5229     mpc_sin (n, n, MPC_RNDNN);
5230     mpc_cos (n, n, MPC_RNDNN);
5231     mpc_tan (n, n, MPC_RNDNN);
5232     mpc_sinh (n, n, MPC_RNDNN);
5233     mpc_cosh (n, n, MPC_RNDNN);
5234     mpc_tanh (n, n, MPC_RNDNN);
5235     mpc_exp (n, n, MPC_RNDNN);
5236     mpc_log (n, n, MPC_RNDNN);
5237     mpc_sqrt (n, n, MPC_RNDNN);
5238     mpc_proj (n, n, MPC_RNDNN);
5239     mpc_neg (n, n, MPC_RNDNN);
5240     mpc_sqr (n, n, MPC_RNDNN);
5241     mpc_clear (n);
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_link "$LINENO"; then :
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249 $as_echo "yes" >&6; }; have_mpc=yes
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext \
5255     conftest$ac_exeext conftest.$ac_ext
5256     LIBS="$saved_LIBS"
5257   fi
5258
5259   CFLAGS="$saved_CFLAGS"
5260
5261   if test x$have_gmp != xyes; then
5262     as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5263 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5264 Copies of these libraries' source code can be found at their respective
5265 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5266 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5267 If you obtained GMP and/or MPFR from a vendor distribution package, make
5268 sure that you have installed both the libraries and the header files.
5269 They may be located in separate packages." "$LINENO" 5
5270   fi
5271 fi
5272
5273 if test x$have_mpc != xyes ; then
5274   mpcinc=
5275   mpclibs=
5276 fi
5277
5278 gmpinc="$mpcinc $gmpinc"
5279 gmplibs="$mpclibs $gmplibs"
5280
5281 # Flags needed for both GMP, MPFR and/or MPC.
5282
5283
5284
5285
5286
5287
5288 # Allow host libstdc++ to be specified for static linking with PPL.
5289
5290 # Check whether --with-host-libstdcxx was given.
5291 if test "${with_host_libstdcxx+set}" = set; then :
5292   withval=$with_host_libstdcxx;
5293 fi
5294
5295
5296 case $with_host_libstdcxx in
5297   no|yes)
5298     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5299     ;;
5300 esac
5301
5302 # Linker flags to use for stage1 or when not boostrapping.
5303
5304 # Check whether --with-stage1-ldflags was given.
5305 if test "${with_stage1_ldflags+set}" = set; then :
5306   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5307    stage1_ldflags=
5308  else
5309    stage1_ldflags=$withval
5310  fi
5311 else
5312   stage1_ldflags=
5313 fi
5314
5315
5316
5317 # Libraries to use for stage1 or when not bootstrapping.
5318
5319 # Check whether --with-stage1-libs was given.
5320 if test "${with_stage1_libs+set}" = set; then :
5321   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5322    stage1_libs=
5323  else
5324    stage1_libs=$withval
5325  fi
5326 else
5327   stage1_libs=$with_host_libstdcxx
5328 fi
5329
5330
5331
5332 # Linker flags to use for stage2 and later builds.
5333
5334 # Check whether --with-boot-ldflags was given.
5335 if test "${with_boot_ldflags+set}" = set; then :
5336   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5337    poststage1_ldflags=
5338  else
5339    poststage1_ldflags=$withval
5340  fi
5341 else
5342   if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5343    poststage1_ldflags=-static-libstdc++
5344  else
5345    poststage1_ldflags=
5346  fi
5347 fi
5348
5349
5350
5351 # Libraries to use for stage2 and later builds.  This defaults to the
5352 # argument passed to --with-host-libstdcxx.
5353
5354 # Check whether --with-boot-libs was given.
5355 if test "${with_boot_libs+set}" = set; then :
5356   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5357    poststage1_libs=
5358  else
5359    poststage1_libs=$withval
5360  fi
5361 else
5362   poststage1_libs=$with_host_libstdcxx
5363 fi
5364
5365
5366
5367 # Check for PPL
5368 ppl_major_version=0
5369 ppl_minor_version=10
5370 ppllibs=" -lppl_c -lppl -lgmpxx"
5371 pplinc=
5372
5373
5374 # Check whether --with-ppl was given.
5375 if test "${with_ppl+set}" = set; then :
5376   withval=$with_ppl;
5377 else
5378   with_ppl=no
5379 fi
5380
5381
5382 # Check whether --with-ppl_include was given.
5383 if test "${with_ppl_include+set}" = set; then :
5384   withval=$with_ppl_include;
5385 fi
5386
5387
5388 # Check whether --with-ppl_lib was given.
5389 if test "${with_ppl_lib+set}" = set; then :
5390   withval=$with_ppl_lib;
5391 fi
5392
5393
5394 case $with_ppl in
5395   no)
5396     ppllibs=
5397     ;;
5398   *)
5399     ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5400     pplinc="-I$with_ppl/include $pplinc"
5401     LIBS="$ppllibs $LIBS"
5402     ;;
5403 esac
5404 if test "x$with_ppl_include" != x; then
5405   pplinc="-I$with_ppl_include $pplinc"
5406 fi
5407 if test "x$with_ppl_lib" != x; then
5408   ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5409   LIBS="$ppllibs $LIBS"
5410 fi
5411 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5412   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5413   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5414   LIBS="$ppllibs $LIBS"
5415 fi
5416
5417 # Check whether --enable-ppl-version-check was given.
5418 if test "${enable_ppl_version_check+set}" = set; then :
5419   enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5420 else
5421   ENABLE_PPL_CHECK=yes
5422 fi
5423
5424
5425 if test "${ENABLE_PPL_CHECK}" = "yes"; then
5426   saved_CFLAGS="$CFLAGS"
5427   CFLAGS="$CFLAGS $pplinc $gmpinc"
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5429 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h.  */
5432 #include "ppl_c.h"
5433 int
5434 main ()
5435 {
5436
5437   #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5438   choke me
5439   #endif
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447 $as_echo "yes" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }; ppllibs= ; pplinc=
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453   CFLAGS="$saved_CFLAGS"
5454 fi
5455
5456 # Flags needed for PPL
5457
5458
5459
5460
5461 # Check for CLOOG
5462 clooglibs=" -lcloog "
5463 clooginc=" -DCLOOG_PPL_BACKEND "
5464
5465
5466 # Check whether --with-cloog was given.
5467 if test "${with_cloog+set}" = set; then :
5468   withval=$with_cloog;
5469 else
5470   with_cloog=no
5471 fi
5472
5473
5474 # Check whether --with-cloog_include was given.
5475 if test "${with_cloog_include+set}" = set; then :
5476   withval=$with_cloog_include;
5477 fi
5478
5479
5480 # Check whether --with-cloog_lib was given.
5481 if test "${with_cloog_lib+set}" = set; then :
5482   withval=$with_cloog_lib;
5483 fi
5484
5485
5486 case $with_cloog in
5487   no)
5488     clooglibs=
5489     clooginc=
5490     ;;
5491   *)
5492     clooglibs="-L$with_cloog/lib -lcloog"
5493     clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5494     LIBS="$clooglibs $LIBS"
5495     ;;
5496 esac
5497 if test "x$with_cloog_include" != x; then
5498   clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5499 fi
5500 if test "x$with_cloog_lib" != x; then
5501   clooglibs="-L$with_cloog_lib -lcloog"
5502   LIBS="$clooglibs $LIBS"
5503 fi
5504 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5505   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5506   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5507   LIBS="$clooglibs $LIBS"
5508 fi
5509
5510 # Check whether --enable-cloog-version-check was given.
5511 if test "${enable_cloog_version_check+set}" = set; then :
5512   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5513 else
5514   ENABLE_CLOOG_CHECK=yes
5515 fi
5516
5517
5518 if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5519   saved_CFLAGS="$CFLAGS"
5520   CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5522 $as_echo_n "checking for correct version of CLooG... " >&6; }
5523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h.  */
5525 #include "cloog/cloog.h"
5526 int
5527 main ()
5528 {
5529
5530   #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5531   choke me
5532   #endif
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540 $as_echo "yes" >&6; }
5541 else
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546   CFLAGS="$saved_CFLAGS"
5547 fi
5548
5549 # Flags needed for CLOOG
5550
5551
5552
5553
5554 # By default, C is the only stage 1 language.
5555 stage1_languages=,c,
5556
5557 # Target libraries that we bootstrap.
5558 bootstrap_target_libs=,target-libgcc,
5559
5560 # Figure out what language subdirectories are present.
5561 # Look if the user specified --enable-languages="..."; if not, use
5562 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5563 # go away some day.
5564 # NB:  embedded tabs in this IF block -- do not untabify
5565 if test -d ${srcdir}/gcc; then
5566   if test x"${enable_languages+set}" != xset; then
5567     if test x"${LANGUAGES+set}" = xset; then
5568       enable_languages="${LANGUAGES}"
5569         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5570     else
5571       enable_languages=all
5572     fi
5573   else
5574     if test x"${enable_languages}" = x ||
5575        test x"${enable_languages}" = xyes;
5576        then
5577       echo configure.in: --enable-languages needs at least one language argument 1>&2
5578       exit 1
5579     fi
5580   fi
5581   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
5582
5583   # 'f95' is the old name for the 'fortran' language. We issue a warning
5584   # and make the substitution.
5585   case ,${enable_languages}, in
5586     *,f95,*)
5587       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5588       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5589       ;;
5590   esac
5591
5592   # First scan to see if an enabled language requires some other language.
5593   # We assume that a given config-lang.in will list all the language
5594   # front ends it requires, even if some are required indirectly.
5595   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5596     case ${lang_frag} in
5597       ..) ;;
5598       # The odd quoting in the next line works around
5599       # an apparent bug in bash 1.12 on linux.
5600       ${srcdir}/gcc/[*]/config-lang.in) ;;
5601       *)
5602         # From the config-lang.in, get $language, $lang_requires
5603         language=
5604         lang_requires=
5605         . ${lang_frag}
5606         for other in ${lang_requires} ; do
5607           case ,${enable_languages}, in
5608             *,$other,*) ;;
5609             *,all,*) ;;
5610             *,$language,*)
5611               echo " \`$other' language required by \`$language'; enabling" 1>&2
5612               enable_languages="${enable_languages},${other}"
5613               ;;
5614           esac
5615         done
5616         ;;
5617     esac
5618   done
5619
5620   new_enable_languages=,c,
5621   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5622   potential_languages=,c,
5623
5624   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5625     case ${lang_frag} in
5626       ..) ;;
5627       # The odd quoting in the next line works around
5628       # an apparent bug in bash 1.12 on linux.
5629       ${srcdir}/gcc/[*]/config-lang.in) ;;
5630       *)
5631         # From the config-lang.in, get $language, $target_libs,
5632         # $lang_dirs, $boot_language, and $build_by_default
5633         language=
5634         target_libs=
5635         lang_dirs=
5636         subdir_requires=
5637         boot_language=no
5638         build_by_default=yes
5639         . ${lang_frag}
5640         if test x${language} = x; then
5641           echo "${lang_frag} doesn't set \$language." 1>&2
5642           exit 1
5643         fi
5644
5645         if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5646           boot_language=yes
5647         fi
5648
5649         case ,${enable_languages}, in
5650           *,${language},*)
5651             # Language was explicitly selected; include it.
5652             add_this_lang=yes
5653             ;;
5654           *,all,*)
5655             # 'all' was selected, select it if it is a default language
5656             add_this_lang=${build_by_default}
5657             ;;
5658           *)
5659             add_this_lang=no
5660             ;;
5661         esac
5662
5663         # Disable languages that need other directories if these aren't available.
5664         for i in $subdir_requires; do
5665           test -f "$srcdir/gcc/$i/config-lang.in" && continue
5666           case ,${enable_languages}, in
5667             *,${language},*)
5668               # Specifically requested language; tell them.
5669               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5670               ;;
5671             *)
5672               # Silently disable.
5673               add_this_lang=unsupported
5674               ;;
5675           esac
5676         done
5677
5678         # Disable Ada if no preexisting GNAT is available.
5679         case ,${enable_languages},:${language}:${have_gnat} in
5680           *,${language},*:ada:no)
5681             # Specifically requested language; tell them.
5682             as_fn_error "GNAT is required to build $language" "$LINENO" 5
5683             ;;
5684           *:ada:no)
5685             # Silently disable.
5686             add_this_lang=unsupported
5687             ;;
5688         esac
5689
5690         # Disable a language that is unsupported by the target.
5691         case " $unsupported_languages " in
5692           *" $language "*)
5693             add_this_lang=unsupported
5694             ;;
5695         esac
5696
5697         case $add_this_lang in
5698           unsupported)
5699             # Remove language-dependent dirs.
5700             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5701             ;;
5702           no)
5703             # Remove language-dependent dirs; still show language as supported.
5704             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5705             potential_languages="${potential_languages}${language},"
5706             ;;
5707           yes)
5708             new_enable_languages="${new_enable_languages}${language},"
5709             potential_languages="${potential_languages}${language},"
5710             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5711             case ${boot_language} in
5712               yes)
5713                 # Add to (comma-separated) list of stage 1 languages.
5714                 stage1_languages="${stage1_languages}${language},"
5715                 # We need to bootstrap any supporting libraries.
5716                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5717                 ;;
5718             esac
5719             ;;
5720         esac
5721         ;;
5722     esac
5723   done
5724
5725   # Check whether --enable-stage1-languages was given.
5726 if test "${enable_stage1_languages+set}" = set; then :
5727   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5728     ,no,|,,)
5729       # Set it to something that will have no effect in the loop below
5730       enable_stage1_languages=c ;;
5731     ,yes,)
5732       enable_stage1_languages=`echo $new_enable_languages | \
5733         sed -e "s/^,//" -e "s/,$//" ` ;;
5734     *,all,*)
5735       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5736         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5737   esac
5738
5739   # Add "good" languages from enable_stage1_languages to stage1_languages,
5740   # while "bad" languages go in missing_languages.  Leave no duplicates.
5741   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5742     case $potential_languages in
5743       *,$i,*)
5744         case $stage1_languages in
5745           *,$i,*) ;;
5746           *) stage1_languages="$stage1_languages$i," ;;
5747         esac ;;
5748       *)
5749         case $missing_languages in
5750           *,$i,*) ;;
5751           *) missing_languages="$missing_languages$i," ;;
5752         esac ;;
5753      esac
5754   done
5755 fi
5756
5757
5758   # Remove leading/trailing commas that were added for simplicity
5759   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5760   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5761   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5762   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5763
5764   if test "x$missing_languages" != x; then
5765     as_fn_error "
5766 The following requested languages could not be built: ${missing_languages}
5767 Supported languages are: ${potential_languages}" "$LINENO" 5
5768   fi
5769   if test "x$new_enable_languages" != "x$enable_languages"; then
5770     echo The following languages will be built: ${new_enable_languages}
5771     enable_languages="$new_enable_languages"
5772   fi
5773
5774
5775   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5776 fi
5777
5778 # Handle --disable-<component> generically.
5779 for dir in $configdirs $build_configdirs $target_configdirs ; do
5780   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5781   varname=`echo $dirname | sed -e s/+/_/g`
5782   if eval test x\${enable_${varname}} "=" xno ; then
5783     noconfigdirs="$noconfigdirs $dir"
5784   fi
5785 done
5786
5787 # Check for Boehm's garbage collector
5788 # Check whether --enable-objc-gc was given.
5789 if test "${enable_objc_gc+set}" = set; then :
5790   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5791   *,objc,*:*:yes:*target-boehm-gc*)
5792     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
5793     ;;
5794 esac
5795 fi
5796
5797
5798 # Make sure we only build Boehm's garbage collector if required.
5799 case ,${enable_languages},:${enable_objc_gc} in
5800   *,objc,*:yes)
5801     # Keep target-boehm-gc if requested for Objective-C.
5802     ;;
5803   *)
5804     # Otherwise remove target-boehm-gc depending on target-libjava.
5805     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5806       noconfigdirs="$noconfigdirs target-boehm-gc"
5807     fi
5808     ;;
5809 esac
5810
5811 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5812 # $build_configdirs and $target_configdirs.
5813 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5814
5815 notsupp=""
5816 for dir in . $skipdirs $noconfigdirs ; do
5817   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5818   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5819     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5820     if test -r $srcdir/$dirname/configure ; then
5821       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5822         true
5823       else
5824         notsupp="$notsupp $dir"
5825       fi
5826     fi
5827   fi
5828   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5829     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5830     if test -r $srcdir/$dirname/configure ; then
5831       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5832         true
5833       else
5834         notsupp="$notsupp $dir"
5835       fi
5836     fi
5837   fi
5838   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5839     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5840     if test -r $srcdir/$dirname/configure ; then
5841       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5842         true
5843       else
5844         notsupp="$notsupp $dir"
5845       fi
5846     fi
5847   fi
5848 done
5849
5850 # Sometimes the tools are distributed with libiberty but with no other
5851 # libraries.  In that case, we don't want to build target-libiberty.
5852 # Don't let libgcc imply libiberty either.
5853 if test -n "${target_configdirs}" ; then
5854   libgcc=
5855   others=
5856   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5857     if test "$i" = "libgcc"; then
5858       libgcc=target-libgcc
5859     elif test "$i" != "libiberty" ; then
5860       if test -r $srcdir/$i/configure ; then
5861         others=yes;
5862         break;
5863       fi
5864     fi
5865   done
5866   if test -z "${others}" ; then
5867     target_configdirs=$libgcc
5868   fi
5869 fi
5870
5871 # Quietly strip out all directories which aren't configurable in this tree.
5872 # This relies on all configurable subdirectories being autoconfiscated, which
5873 # is now the case.
5874 build_configdirs_all="$build_configdirs"
5875 build_configdirs=
5876 for i in ${build_configdirs_all} ; do
5877   j=`echo $i | sed -e s/build-//g`
5878   if test -f ${srcdir}/$j/configure ; then
5879     build_configdirs="${build_configdirs} $i"
5880   fi
5881 done
5882
5883 configdirs_all="$configdirs"
5884 configdirs=
5885 for i in ${configdirs_all} ; do
5886   if test -f ${srcdir}/$i/configure ; then
5887     configdirs="${configdirs} $i"
5888   fi
5889 done
5890
5891 target_configdirs_all="$target_configdirs"
5892 target_configdirs=
5893 for i in ${target_configdirs_all} ; do
5894   j=`echo $i | sed -e s/target-//g`
5895   if test -f ${srcdir}/$j/configure ; then
5896     target_configdirs="${target_configdirs} $i"
5897   fi
5898 done
5899
5900 # Produce a warning message for the subdirs we can't configure.
5901 # This isn't especially interesting in the Cygnus tree, but in the individual
5902 # FSF releases, it's important to let people know when their machine isn't
5903 # supported by the one or two programs in a package.
5904
5905 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5906   # If $appdirs is non-empty, at least one of those directories must still
5907   # be configured, or we error out.  (E.g., if the gas release supports a
5908   # specified target in some subdirs but not the gas subdir, we shouldn't
5909   # pretend that all is well.)
5910   if test -n "$appdirs" ; then
5911     for dir in $appdirs ; do
5912       if test -r $dir/Makefile.in ; then
5913         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5914           appdirs=""
5915           break
5916         fi
5917         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5918           appdirs=""
5919           break
5920         fi
5921       fi
5922     done
5923     if test -n "$appdirs" ; then
5924       echo "*** This configuration is not supported by this package." 1>&2
5925       exit 1
5926     fi
5927   fi
5928   # Okay, some application will build, or we don't care to check.  Still
5929   # notify of subdirs not getting built.
5930   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5931   echo "    ${notsupp}" 1>&2
5932   echo "    (Any other directories should still work fine.)" 1>&2
5933 fi
5934
5935 case "$host" in
5936   *msdosdjgpp*)
5937     enable_gdbtk=no ;;
5938 esac
5939
5940 # To find our prefix, in gcc_cv_tool_prefix.
5941
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944   echo "#! /bin/sh" >conf$$.sh
5945   echo  "exit 0"   >>conf$$.sh
5946   chmod +x conf$$.sh
5947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948     PATH_SEPARATOR=';'
5949   else
5950     PATH_SEPARATOR=:
5951   fi
5952   rm -f conf$$.sh
5953 fi
5954
5955
5956
5957 if test "x$exec_prefix" = xNONE; then
5958         if test "x$prefix" = xNONE; then
5959                 gcc_cv_tool_prefix=$ac_default_prefix
5960         else
5961                 gcc_cv_tool_prefix=$prefix
5962         fi
5963 else
5964         gcc_cv_tool_prefix=$exec_prefix
5965 fi
5966
5967 # If there is no compiler in the tree, use the PATH only.  In any
5968 # case, if there is no compiler in the tree nobody should use
5969 # AS_FOR_TARGET and LD_FOR_TARGET.
5970 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5971     gcc_version=`cat $srcdir/gcc/BASE-VER`
5972     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5973     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5974     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5975     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5976     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5977     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5978 else
5979     gcc_cv_tool_dirs=
5980 fi
5981
5982 if test x$build = x$target && test -n "$md_exec_prefix"; then
5983         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5984 fi
5985
5986
5987
5988 copy_dirs=
5989
5990
5991 # Check whether --with-build-sysroot was given.
5992 if test "${with_build_sysroot+set}" = set; then :
5993   withval=$with_build_sysroot; if test x"$withval" != x ; then
5994      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5995    fi
5996 else
5997   SYSROOT_CFLAGS_FOR_TARGET=
5998 fi
5999
6000
6001
6002
6003 # Check whether --with-debug-prefix-map was given.
6004 if test "${with_debug_prefix_map+set}" = set; then :
6005   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6006      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6007      for debug_map in $withval; do
6008        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6009      done
6010    fi
6011 else
6012   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6013 fi
6014
6015
6016
6017 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6018 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6019 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6020 # We want to ensure that TARGET libraries (which we know are built with
6021 # gcc) are built with "-O2 -g", so include those options when setting
6022 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6023 if test "x$CFLAGS_FOR_TARGET" = x; then
6024   CFLAGS_FOR_TARGET=$CFLAGS
6025   case " $CFLAGS " in
6026     *" -O2 "*) ;;
6027     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6028   esac
6029   case " $CFLAGS " in
6030     *" -g "* | *" -g3 "*) ;;
6031     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6032   esac
6033 fi
6034
6035
6036 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6037   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6038   case " $CXXFLAGS " in
6039     *" -O2 "*) ;;
6040     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6041   esac
6042   case " $CXXFLAGS " in
6043     *" -g "* | *" -g3 "*) ;;
6044     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6045   esac
6046 fi
6047
6048
6049 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6050 # the named directory are copied to $(tooldir)/sys-include.
6051 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6052   if test x${is_cross_compiler} = xno ; then
6053     echo 1>&2 '***' --with-headers is only supported when cross compiling
6054     exit 1
6055   fi
6056   if test x"${with_headers}" != xyes ; then
6057     x=${gcc_cv_tool_prefix}
6058     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6059   fi
6060 fi
6061
6062 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6063 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6064 # are permitted.
6065 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6066   if test x${is_cross_compiler} = xno ; then
6067     echo 1>&2 '***' --with-libs is only supported when cross compiling
6068     exit 1
6069   fi
6070   if test x"${with_libs}" != xyes ; then
6071     # Copy the libraries in reverse order, so that files in the first named
6072     # library override files in subsequent libraries.
6073     x=${gcc_cv_tool_prefix}
6074     for l in ${with_libs}; do
6075       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6076     done
6077   fi
6078 fi
6079
6080 # Set with_gnu_as and with_gnu_ld as appropriate.
6081 #
6082 # This is done by determining whether or not the appropriate directory
6083 # is available, and by checking whether or not specific configurations
6084 # have requested that this magic not happen.
6085 #
6086 # The command line options always override the explicit settings in
6087 # configure.in, and the settings in configure.in override this magic.
6088 #
6089 # If the default for a toolchain is to use GNU as and ld, and you don't
6090 # want to do that, then you should use the --without-gnu-as and
6091 # --without-gnu-ld options for the configure script.
6092
6093 if test x${use_gnu_as} = x &&
6094    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6095   with_gnu_as=yes
6096   extra_host_args="$extra_host_args --with-gnu-as"
6097 fi
6098
6099 if test x${use_gnu_ld} = x &&
6100    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6101   with_gnu_ld=yes
6102   extra_host_args="$extra_host_args --with-gnu-ld"
6103 fi
6104
6105 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6106 # can detect this case.
6107
6108 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6109   with_newlib=yes
6110   extra_host_args="$extra_host_args --with-newlib"
6111 fi
6112
6113 # Handle ${copy_dirs}
6114 set fnord ${copy_dirs}
6115 shift
6116 while test $# != 0 ; do
6117   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6118     :
6119   else
6120     echo Copying $1 to $2
6121
6122     # Use the install script to create the directory and all required
6123     # parent directories.
6124     if test -d $2 ; then
6125       :
6126     else
6127       echo >config.temp
6128       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6129     fi
6130
6131     # Copy the directory, assuming we have tar.
6132     # FIXME: Should we use B in the second tar?  Not all systems support it.
6133     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6134
6135     # It is the responsibility of the user to correctly adjust all
6136     # symlinks.  If somebody can figure out how to handle them correctly
6137     # here, feel free to add the code.
6138
6139     echo $1 > $2/COPIED
6140   fi
6141   shift; shift
6142 done
6143
6144 # Determine a target-dependent exec_prefix that the installed
6145 # gcc will search in.  Keep this list sorted by triplet, with
6146 # the *-*-osname triplets last.
6147 md_exec_prefix=
6148 case "${target}" in
6149   alpha*-*-*vms*)
6150     md_exec_prefix=/gnu/lib/gcc-lib
6151     ;;
6152   i[34567]86-pc-msdosdjgpp*)
6153     md_exec_prefix=/dev/env/DJDIR/bin
6154     ;;
6155   i[34567]86-*-sco3.2v5*)
6156     if test $with_gnu_as = yes; then
6157       md_exec_prefix=/usr/gnu/bin
6158     else
6159       md_exec_prefix=/usr/ccs/bin/elf
6160     fi
6161     ;;
6162
6163   mn10300-*-* | \
6164   powerpc-*-chorusos* | \
6165   powerpc*-*-eabi* | \
6166   powerpc*-*-sysv* | \
6167   powerpc*-*-kaos* | \
6168   s390x-ibm-tpf*)
6169     md_exec_prefix=/usr/ccs/bin
6170     ;;
6171   sparc64-*-elf*)
6172     ;;
6173   v850*-*-*)
6174     md_exec_prefix=/usr/ccs/bin
6175     ;;
6176   xtensa*-*-elf*)
6177     ;;
6178
6179   *-*-beos* | \
6180   *-*-elf* | \
6181   *-*-hpux* | \
6182   *-*-netware* | \
6183   *-*-nto-qnx* | \
6184   *-*-rtems* | \
6185   *-*-solaris2* | \
6186   *-*-sysv[45]* | \
6187   *-*-vxworks* | \
6188   *-wrs-windiss)
6189     md_exec_prefix=/usr/ccs/bin
6190     ;;
6191 esac
6192
6193 extra_arflags_for_target=
6194 extra_nmflags_for_target=
6195 extra_ranlibflags_for_target=
6196 target_makefile_frag=/dev/null
6197 case "${target}" in
6198   mep*-*-*)
6199     target_makefile_frag="config/mt-mep"
6200     ;;
6201   spu-*-*)
6202     target_makefile_frag="config/mt-spu"
6203     ;;
6204   mips*-sde-elf*)
6205     target_makefile_frag="config/mt-sde"
6206     ;;
6207   mipsisa*-*-elfoabi*)
6208     target_makefile_frag="config/mt-mips-elfoabi"
6209     ;;
6210   mips*-*-*linux* | mips*-*-gnu*)
6211     target_makefile_frag="config/mt-mips-gnu"
6212     ;;
6213   *-*-netware*)
6214     target_makefile_frag="config/mt-netware"
6215     ;;
6216   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6217     target_makefile_frag="config/mt-gnu"
6218     ;;
6219   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6220     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6221     # commands to handle both 32-bit and 64-bit objects.  These flags are
6222     # harmless if we're using GNU nm or ar.
6223     extra_arflags_for_target=" -X32_64"
6224     extra_nmflags_for_target=" -B -X32_64"
6225     ;;
6226   *-*-darwin*)
6227     # ranlib from Darwin requires the -c flag to look at common symbols.
6228     extra_ranlibflags_for_target=" -c"
6229     ;;
6230   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6231     target_makefile_frag="config/mt-wince"
6232     ;;
6233 esac
6234
6235 alphaieee_frag=/dev/null
6236 case $target in
6237   alpha*-*-*)
6238     # This just makes sure to use the -mieee option to build target libs.
6239     # This should probably be set individually by each library.
6240     alphaieee_frag="config/mt-alphaieee"
6241     ;;
6242 esac
6243
6244 # If --enable-target-optspace always use -Os instead of -O2 to build
6245 # the target libraries, similarly if it is not specified, use -Os
6246 # on selected platforms.
6247 ospace_frag=/dev/null
6248 case "${enable_target_optspace}:${target}" in
6249   yes:*)
6250     ospace_frag="config/mt-ospace"
6251     ;;
6252   :d30v-*)
6253     ospace_frag="config/mt-d30v"
6254     ;;
6255   :m32r-* | :d10v-* | :fr30-*)
6256     ospace_frag="config/mt-ospace"
6257     ;;
6258   no:* | :*)
6259     ;;
6260   *)
6261     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6262     ;;
6263 esac
6264
6265 # Default to using --with-stabs for certain targets.
6266 if test x${with_stabs} = x ; then
6267   case "${target}" in
6268   mips*-*-irix[56]*)
6269     ;;
6270   mips*-*-* | alpha*-*-osf*)
6271     with_stabs=yes;
6272     extra_host_args="${extra_host_args} --with-stabs"
6273     ;;
6274   esac
6275 fi
6276
6277 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6278 # them automatically.
6279 case "${host}" in
6280   hppa*64*-*-hpux11*)
6281     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6282     ;;
6283 esac
6284
6285 # Some systems (e.g., one of the i386-aix systems the gas testers are
6286 # using) don't handle "\$" correctly, so don't use it here.
6287 tooldir='${exec_prefix}'/${target_noncanonical}
6288 build_tooldir=${tooldir}
6289
6290 # Create a .gdbinit file which runs the one in srcdir
6291 # and tells GDB to look there for source files.
6292
6293 if test -r ${srcdir}/.gdbinit ; then
6294   case ${srcdir} in
6295     .) ;;
6296     *) cat > ./.gdbinit <<EOF
6297 # ${NO_EDIT}
6298 dir ${srcdir}
6299 dir .
6300 source ${srcdir}/.gdbinit
6301 EOF
6302     ;;
6303   esac
6304 fi
6305
6306 # Make sure that the compiler is able to generate an executable.  If it
6307 # can't, we are probably in trouble.  We don't care whether we can run the
6308 # executable--we might be using a cross compiler--we only care whether it
6309 # can be created.  At this point the main configure script has set CC.
6310 we_are_ok=no
6311 echo "int main () { return 0; }" > conftest.c
6312 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6313 if test $? = 0 ; then
6314   if test -s conftest || test -s conftest.exe ; then
6315     we_are_ok=yes
6316   fi
6317 fi
6318 case $we_are_ok in
6319   no)
6320     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6321     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6322     rm -f conftest*
6323     exit 1
6324     ;;
6325 esac
6326 rm -f conftest*
6327
6328 # The Solaris /usr/ucb/cc compiler does not appear to work.
6329 case "${host}" in
6330   sparc-sun-solaris2*)
6331       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6332       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6333           could_use=
6334           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6335           if test -d /opt/cygnus/bin ; then
6336               if test "$could_use" = "" ; then
6337                   could_use="/opt/cygnus/bin"
6338               else
6339                   could_use="$could_use or /opt/cygnus/bin"
6340               fi
6341           fi
6342         if test "$could_use" = "" ; then
6343             echo "Warning: compilation may fail because you're using"
6344             echo "/usr/ucb/cc.  You should change your PATH or CC "
6345             echo "variable and rerun configure."
6346         else
6347             echo "Warning: compilation may fail because you're using"
6348             echo "/usr/ucb/cc, when you should use the C compiler from"
6349             echo "$could_use.  You should change your"
6350             echo "PATH or CC variable and rerun configure."
6351         fi
6352       fi
6353   ;;
6354 esac
6355
6356 # Decide which environment variable is used to find dynamic libraries.
6357 case "${host}" in
6358   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6359   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6360   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6361   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6362 esac
6363
6364 # On systems where the dynamic library environment variable is PATH,
6365 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6366 # built executables to PATH.
6367 if test "$RPATH_ENVVAR" = PATH; then
6368   GCC_SHLIB_SUBDIR=/shlib
6369 else
6370   GCC_SHLIB_SUBDIR=
6371 fi
6372
6373 # Record target_configdirs and the configure arguments for target and
6374 # build configuration in Makefile.
6375 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6376 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6377
6378 # Determine whether gdb needs tk/tcl or not.
6379 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6380 # and in that case we want gdb to be built without tk.  Ugh!
6381 # In fact I believe gdb is the *only* package directly dependent on tk,
6382 # so we should be able to put the 'maybe's in unconditionally and
6383 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6384 # 100% sure that that's safe though.
6385
6386 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6387 case "$enable_gdbtk" in
6388   no)
6389     GDB_TK="" ;;
6390   yes)
6391     GDB_TK="${gdb_tk}" ;;
6392   *)
6393     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6394     # distro.  Eventually someone will fix this and move Insight, nee
6395     # gdbtk to a separate directory.
6396     if test -d ${srcdir}/gdb/gdbtk ; then
6397       GDB_TK="${gdb_tk}"
6398     else
6399       GDB_TK=""
6400     fi
6401     ;;
6402 esac
6403 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6404 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6405
6406 # Strip out unwanted targets.
6407
6408 # While at that, we remove Makefiles if we were started for recursive
6409 # configuration, so that the top-level Makefile reconfigures them,
6410 # like we used to do when configure itself was recursive.
6411
6412 # Loop over modules.  $extrasub must be used with care, limiting as
6413 # much as possible the usage of range addresses.  That's because autoconf
6414 # splits the sed script to overcome limits in the number of commands,
6415 # and relying on carefully-timed sed passes may turn out to be very hard
6416 # to maintain later.  In this particular case, you just have to be careful
6417 # not to nest @if/@endif pairs, because configure will not warn you at all.
6418
6419 # Check whether --enable-bootstrap was given.
6420 if test "${enable_bootstrap+set}" = set; then :
6421   enableval=$enable_bootstrap;
6422 else
6423   enable_bootstrap=default
6424 fi
6425
6426
6427 # Issue errors and warnings for invalid/strange bootstrap combinations.
6428 case "$configdirs" in
6429   *gcc*) have_compiler=yes ;;
6430   *) have_compiler=no ;;
6431 esac
6432
6433 case "$have_compiler:$host:$target:$enable_bootstrap" in
6434   *:*:*:no) ;;
6435
6436   # Default behavior.  Enable bootstrap if we have a compiler
6437   # and we are in a native configuration.
6438   yes:$build:$build:default)
6439     enable_bootstrap=yes ;;
6440
6441   *:*:*:default)
6442     enable_bootstrap=no ;;
6443
6444   # We have a compiler and we are in a native configuration, bootstrap is ok
6445   yes:$build:$build:yes)
6446     ;;
6447
6448   # Other configurations, but we have a compiler.  Assume the user knows
6449   # what he's doing.
6450   yes:*:*:yes)
6451     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6452 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6453     ;;
6454
6455   # No compiler: if they passed --enable-bootstrap explicitly, fail
6456   no:*:*:yes)
6457     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6458
6459   # Fail if wrong command line
6460   *)
6461     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6462     ;;
6463 esac
6464
6465 # Adjust the toplevel makefile according to whether bootstrap was selected.
6466 case "$enable_bootstrap" in
6467   yes)
6468     bootstrap_suffix=bootstrap ;;
6469   no)
6470     bootstrap_suffix=no-bootstrap ;;
6471 esac
6472
6473 for module in ${build_configdirs} ; do
6474   if test -z "${no_recursion}" \
6475      && test -f ${build_subdir}/${module}/Makefile; then
6476     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6477     rm -f ${build_subdir}/${module}/Makefile
6478   fi
6479   extrasub="$extrasub
6480 /^@if build-$module\$/d
6481 /^@endif build-$module\$/d
6482 /^@if build-$module-$bootstrap_suffix\$/d
6483 /^@endif build-$module-$bootstrap_suffix\$/d"
6484 done
6485 for module in ${configdirs} ; do
6486   if test -z "${no_recursion}"; then
6487     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6488       if test -f ${file}; then
6489         echo 1>&2 "*** removing ${file} to force reconfigure"
6490         rm -f ${file}
6491       fi
6492     done
6493   fi
6494   extrasub="$extrasub
6495 /^@if $module\$/d
6496 /^@endif $module\$/d
6497 /^@if $module-$bootstrap_suffix\$/d
6498 /^@endif $module-$bootstrap_suffix\$/d"
6499 done
6500 for module in ${target_configdirs} ; do
6501   if test -z "${no_recursion}" \
6502      && test -f ${target_subdir}/${module}/Makefile; then
6503     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6504     rm -f ${target_subdir}/${module}/Makefile
6505   fi
6506
6507   # We only bootstrap target libraries listed in bootstrap_target_libs.
6508   case $bootstrap_target_libs in
6509     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6510     *) target_bootstrap_suffix=no-bootstrap ;;
6511   esac
6512
6513   extrasub="$extrasub
6514 /^@if target-$module\$/d
6515 /^@endif target-$module\$/d
6516 /^@if target-$module-$target_bootstrap_suffix\$/d
6517 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6518 done
6519
6520 extrasub="$extrasub
6521 /^@if /,/^@endif /d"
6522
6523 # Create the serialization dependencies.  This uses a temporary file.
6524
6525 # Check whether --enable-serial-configure was given.
6526 if test "${enable_serial_configure+set}" = set; then :
6527   enableval=$enable_serial_configure;
6528 fi
6529
6530
6531 case ${enable_serial_configure} in
6532   yes)
6533     enable_serial_build_configure=yes
6534     enable_serial_host_configure=yes
6535     enable_serial_target_configure=yes
6536     ;;
6537 esac
6538
6539 # These force 'configure's to be done one at a time, to avoid problems
6540 # with contention over a shared config.cache.
6541 rm -f serdep.tmp
6542 echo '# serdep.tmp' > serdep.tmp
6543 olditem=
6544 test "x${enable_serial_build_configure}" = xyes &&
6545 for item in ${build_configdirs} ; do
6546   case ${olditem} in
6547     "") ;;
6548     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6549   esac
6550   olditem=${item}
6551 done
6552 olditem=
6553 test "x${enable_serial_host_configure}" = xyes &&
6554 for item in ${configdirs} ; do
6555   case ${olditem} in
6556     "") ;;
6557     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6558   esac
6559   olditem=${item}
6560 done
6561 olditem=
6562 test "x${enable_serial_target_configure}" = xyes &&
6563 for item in ${target_configdirs} ; do
6564   case ${olditem} in
6565     "") ;;
6566     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6567   esac
6568   olditem=${item}
6569 done
6570 serialization_dependencies=serdep.tmp
6571
6572
6573 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
6574 # target, nonopt, and variable assignments.  These are the ones we
6575 # might not want to pass down to subconfigures.  Also strip
6576 # program-prefix, program-suffix, and program-transform-name, so that
6577 # we can pass down a consistent program-transform-name.
6578 baseargs=
6579 keep_next=no
6580 skip_next=no
6581 eval "set -- $ac_configure_args"
6582 for ac_arg
6583 do
6584   if test X"$skip_next" = X"yes"; then
6585     skip_next=no
6586     continue
6587   fi
6588   if test X"$keep_next" = X"yes"; then
6589     case $ac_arg in
6590       *\'*)
6591         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6592     esac
6593     baseargs="$baseargs '$ac_arg'"
6594     keep_next=no
6595     continue
6596   fi
6597
6598   # Handle separated arguments.  Based on the logic generated by
6599   # autoconf 2.59.
6600   case $ac_arg in
6601     *=* | --config-cache | -C | -disable-* | --disable-* \
6602       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6603       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6604       | -with-* | --with-* | -without-* | --without-* | --x)
6605       separate_arg=no
6606       ;;
6607     -*)
6608       separate_arg=yes
6609       ;;
6610     *)
6611       separate_arg=no
6612       ;;
6613   esac
6614
6615   case "$ac_arg" in
6616     --no*)
6617       continue
6618       ;;
6619     --c* | \
6620     --sr* | \
6621     --ho* | \
6622     --bu* | \
6623     --t* | \
6624     --program-* | \
6625     -cache_file* | \
6626     -srcdir* | \
6627     -host* | \
6628     -build* | \
6629     -target* | \
6630     -program-prefix* | \
6631     -program-suffix* | \
6632     -program-transform-name* )
6633       skip_next=$separate_arg
6634       continue
6635       ;;
6636     -*)
6637       # An option.  Add it.
6638       case $ac_arg in
6639         *\'*)
6640           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6641       esac
6642       baseargs="$baseargs '$ac_arg'"
6643       keep_next=$separate_arg
6644       ;;
6645     *)
6646       # Either a variable assignment, or a nonopt (triplet).  Don't
6647       # pass it down; let the Makefile handle this.
6648       continue
6649       ;;
6650   esac
6651 done
6652 # Remove the initial space we just introduced and, as these will be
6653 # expanded by make, quote '$'.
6654 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6655
6656 # Add in --program-transform-name, after --program-prefix and
6657 # --program-suffix have been applied to it.  Autoconf has already
6658 # doubled dollar signs and backslashes in program_transform_name; we want
6659 # the backslashes un-doubled, and then the entire thing wrapped in single
6660 # quotes, because this will be expanded first by make and then by the shell.
6661 # Also, because we want to override the logic in subdir configure scripts to
6662 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6663 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6664 ${program_transform_name}
6665 EOF_SED
6666 gcc_transform_name=`cat conftestsed.out`
6667 rm -f conftestsed.out
6668 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6669 if test "$silent" = yes; then
6670   baseargs="$baseargs --silent"
6671 fi
6672 baseargs="$baseargs --disable-option-checking"
6673
6674 # For the build-side libraries, we just need to pretend we're native,
6675 # and not use the same cache file.  Multilibs are neither needed nor
6676 # desired.
6677 build_configargs="--cache-file=../config.cache ${baseargs}"
6678
6679 # For host modules, accept cache file option, or specification as blank.
6680 case "${cache_file}" in
6681 "") # empty
6682   cache_file_option="" ;;
6683 /* | [A-Za-z]:[\\/]* ) # absolute path
6684   cache_file_option="--cache-file=${cache_file}" ;;
6685 *) # relative path
6686   cache_file_option="--cache-file=../${cache_file}" ;;
6687 esac
6688
6689 # Host dirs don't like to share a cache file either, horribly enough.
6690 # This seems to be due to autoconf 2.5x stupidity.
6691 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6692
6693 target_configargs=${baseargs}
6694
6695 # Passing a --with-cross-host argument lets the target libraries know
6696 # whether they are being built with a cross-compiler or being built
6697 # native.  However, it would be better to use other mechanisms to make the
6698 # sorts of decisions they want to make on this basis.  Please consider
6699 # this option to be deprecated.  FIXME.
6700 if test x${is_cross_compiler} = xyes ; then
6701   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6702 fi
6703
6704 # Default to --enable-multilib.
6705 if test x${enable_multilib} = x ; then
6706   target_configargs="--enable-multilib ${target_configargs}"
6707 fi
6708
6709 # Pass --with-newlib if appropriate.  Note that target_configdirs has
6710 # changed from the earlier setting of with_newlib.
6711 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6712   target_configargs="--with-newlib ${target_configargs}"
6713 fi
6714
6715 # Different target subdirs use different values of certain variables
6716 # (notably CXX).  Worse, multilibs use *lots* of different values.
6717 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6718 # it doesn't automatically accept command-line overrides of them.
6719 # This means it's not safe for target subdirs to share a cache file,
6720 # which is disgusting, but there you have it.  Hopefully this can be
6721 # fixed in future.  It's still worthwhile to use a cache file for each
6722 # directory.  I think.
6723
6724 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6725 # We need to pass --target, as newer autoconf's requires consistency
6726 # for target_alias and gcc doesn't manage it consistently.
6727 target_configargs="--cache-file=./config.cache ${target_configargs}"
6728
6729 FLAGS_FOR_TARGET=
6730 case " $target_configdirs " in
6731  *" newlib "*)
6732   case " $target_configargs " in
6733   *" --with-newlib "*)
6734    case "$target" in
6735    *-cygwin*)
6736      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' ;;
6737    esac
6738
6739    # If we're not building GCC, don't discard standard headers.
6740    if test -d ${srcdir}/gcc; then
6741      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6742
6743      if test "${build}" != "${host}"; then
6744        # On Canadian crosses, CC_FOR_TARGET will have already been set
6745        # by `configure', so we won't have an opportunity to add -Bgcc/
6746        # to it.  This is right: we don't want to search that directory
6747        # for binaries, but we want the header files in there, so add
6748        # them explicitly.
6749        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6750
6751        # Someone might think of using the pre-installed headers on
6752        # Canadian crosses, in case the installed compiler is not fully
6753        # compatible with the compiler being built.  In this case, it
6754        # would be better to flag an error than risking having
6755        # incompatible object files being constructed.  We can't
6756        # guarantee that an error will be flagged, but let's hope the
6757        # compiler will do it, when presented with incompatible header
6758        # files.
6759      fi
6760    fi
6761
6762    case "${target}-${is_cross_compiler}" in
6763    i[3456789]86-*-linux*-no)
6764       # Here host == target, so we don't need to build gcc,
6765       # so we don't want to discard standard headers.
6766       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6767       ;;
6768    *)
6769       # If we're building newlib, use its generic headers last, but search
6770       # for any libc-related directories first (so make it the last -B
6771       # switch).
6772       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6773
6774       # If we're building libgloss, find the startup file, simulator library
6775       # and linker script.
6776       case " $target_configdirs " in
6777         *" libgloss "*)
6778         # Look for startup file, simulator library and maybe linker script.
6779         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6780         # Look for libnosys.a in case the target needs it.
6781         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6782         # Most targets have the linker script in the source directory.
6783         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6784         ;;
6785       esac
6786       ;;
6787    esac
6788    ;;
6789   esac
6790   ;;
6791 esac
6792 case "$target" in
6793 *-mingw*)
6794   # Can't be handled as Cygwin above since Mingw does not use newlib.
6795   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' ;;
6796 esac
6797
6798 # Allow the user to override the flags for
6799 # our build compiler if desired.
6800 if test x"${build}" = x"${host}" ; then
6801   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6802   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6803   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6804 fi
6805
6806 # On Canadian crosses, we'll be searching the right directories for
6807 # the previously-installed cross compiler, so don't bother to add
6808 # flags for directories within the install tree of the compiler
6809 # being built; programs in there won't even run.
6810 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6811   # Search for pre-installed headers if nothing else fits.
6812   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6813 fi
6814
6815 if test "x${use_gnu_ld}" = x &&
6816    echo " ${configdirs} " | grep " ld " > /dev/null ; then
6817   # Arrange for us to find uninstalled linker scripts.
6818   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6819 fi
6820
6821 # Search for other target-specific linker scripts and such.
6822 case "${target}" in
6823   mep*)
6824     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6825     ;;
6826 esac
6827
6828 # Makefile fragments.
6829 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6830 do
6831   eval fragval=\$$frag
6832   if test $fragval != /dev/null; then
6833     eval $frag=${srcdir}/$fragval
6834   fi
6835 done
6836
6837
6838
6839
6840
6841 # Miscellanea: directories, flags, etc.
6842
6843
6844
6845
6846
6847
6848
6849
6850 # Build module lists & subconfigure args.
6851
6852
6853
6854 # Host module lists & subconfigure args.
6855
6856
6857
6858 # Target module lists & subconfigure args.
6859
6860
6861
6862 # Build tools.
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 # Generate default definitions for YACC, M4, LEX and other programs that run
6881 # on the build machine.  These are used if the Makefile can't locate these
6882 # programs in objdir.
6883 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6884
6885 for ac_prog in 'bison -y' byacc yacc
6886 do
6887   # Extract the first word of "$ac_prog", so it can be a program name with args.
6888 set dummy $ac_prog; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if test "${ac_cv_prog_YACC+set}" = set; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   if test -n "$YACC"; then
6895   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902     for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_prog_YACC="$ac_prog"
6905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909   done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 YACC=$ac_cv_prog_YACC
6915 if test -n "$YACC"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6917 $as_echo "$YACC" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924   test -n "$YACC" && break
6925 done
6926 test -n "$YACC" || YACC="$MISSING bison -y"
6927
6928 case " $build_configdirs " in
6929   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6930   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6931 esac
6932
6933 for ac_prog in bison
6934 do
6935   # Extract the first word of "$ac_prog", so it can be a program name with args.
6936 set dummy $ac_prog; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 $as_echo_n "checking for $ac_word... " >&6; }
6939 if test "${ac_cv_prog_BISON+set}" = set; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   if test -n "$BISON"; then
6943   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950     for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_prog_BISON="$ac_prog"
6953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957   done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 BISON=$ac_cv_prog_BISON
6963 if test -n "$BISON"; then
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6965 $as_echo "$BISON" >&6; }
6966 else
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972   test -n "$BISON" && break
6973 done
6974 test -n "$BISON" || BISON="$MISSING bison"
6975
6976 case " $build_configdirs " in
6977   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6978 esac
6979
6980 for ac_prog in gm4 gnum4 m4
6981 do
6982   # Extract the first word of "$ac_prog", so it can be a program name with args.
6983 set dummy $ac_prog; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if test "${ac_cv_prog_M4+set}" = set; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$M4"; then
6990   ac_cv_prog_M4="$M4" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_M4="$ac_prog"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 M4=$ac_cv_prog_M4
7010 if test -n "$M4"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7012 $as_echo "$M4" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019   test -n "$M4" && break
7020 done
7021 test -n "$M4" || M4="$MISSING m4"
7022
7023 case " $build_configdirs " in
7024   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7025 esac
7026
7027 for ac_prog in flex lex
7028 do
7029   # Extract the first word of "$ac_prog", so it can be a program name with args.
7030 set dummy $ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if test "${ac_cv_prog_LEX+set}" = set; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   if test -n "$LEX"; then
7037   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044     for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_LEX="$ac_prog"
7047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051   done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 LEX=$ac_cv_prog_LEX
7057 if test -n "$LEX"; then
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7059 $as_echo "$LEX" >&6; }
7060 else
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066   test -n "$LEX" && break
7067 done
7068 test -n "$LEX" || LEX="$MISSING flex"
7069
7070 case " $build_configdirs " in
7071   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7072   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7073 esac
7074
7075 for ac_prog in flex
7076 do
7077   # Extract the first word of "$ac_prog", so it can be a program name with args.
7078 set dummy $ac_prog; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_FLEX+set}" = set; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   if test -n "$FLEX"; then
7085   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_prog_FLEX="$ac_prog"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099   done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 FLEX=$ac_cv_prog_FLEX
7105 if test -n "$FLEX"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7107 $as_echo "$FLEX" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114   test -n "$FLEX" && break
7115 done
7116 test -n "$FLEX" || FLEX="$MISSING flex"
7117
7118 case " $build_configdirs " in
7119   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7120 esac
7121
7122 for ac_prog in makeinfo
7123 do
7124   # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -n "$MAKEINFO"; then
7132   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139     for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_MAKEINFO="$ac_prog"
7142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146   done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 MAKEINFO=$ac_cv_prog_MAKEINFO
7152 if test -n "$MAKEINFO"; then
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7154 $as_echo "$MAKEINFO" >&6; }
7155 else
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160
7161   test -n "$MAKEINFO" && break
7162 done
7163 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7164
7165 case " $build_configdirs " in
7166   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7167   *)
7168
7169     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7170     # higher, else we use the "missing" dummy.
7171     if ${MAKEINFO} --version \
7172        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7173       :
7174     else
7175       MAKEINFO="$MISSING makeinfo"
7176     fi
7177     ;;
7178
7179 esac
7180
7181 # FIXME: expect and dejagnu may become build tools?
7182
7183 for ac_prog in expect
7184 do
7185   # Extract the first word of "$ac_prog", so it can be a program name with args.
7186 set dummy $ac_prog; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   if test -n "$EXPECT"; then
7193   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_prog_EXPECT="$ac_prog"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207   done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 EXPECT=$ac_cv_prog_EXPECT
7213 if test -n "$EXPECT"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7215 $as_echo "$EXPECT" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222   test -n "$EXPECT" && break
7223 done
7224 test -n "$EXPECT" || EXPECT="expect"
7225
7226 case " $configdirs " in
7227   *" expect "*)
7228     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7229     ;;
7230 esac
7231
7232 for ac_prog in runtest
7233 do
7234   # Extract the first word of "$ac_prog", so it can be a program name with args.
7235 set dummy $ac_prog; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   if test -n "$RUNTEST"; then
7242   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249     for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_prog_RUNTEST="$ac_prog"
7252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256   done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 RUNTEST=$ac_cv_prog_RUNTEST
7262 if test -n "$RUNTEST"; then
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7264 $as_echo "$RUNTEST" >&6; }
7265 else
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270
7271   test -n "$RUNTEST" && break
7272 done
7273 test -n "$RUNTEST" || RUNTEST="runtest"
7274
7275 case " $configdirs " in
7276   *" dejagnu "*)
7277     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7278     ;;
7279 esac
7280
7281
7282 # Host tools.
7283 ncn_tool_prefix=
7284 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7285 ncn_target_tool_prefix=
7286 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7287
7288
7289
7290 if test -n "$AR"; then
7291   ac_cv_prog_AR=$AR
7292 elif test -n "$ac_cv_prog_AR"; then
7293   AR=$ac_cv_prog_AR
7294 fi
7295
7296 if test -n "$ac_cv_prog_AR"; then
7297   for ncn_progname in ar; do
7298     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299 set dummy ${ncn_progname}; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_AR+set}" = set; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$AR"; then
7306   ac_cv_prog_AR="$AR" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_prog_AR="${ncn_progname}"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 AR=$ac_cv_prog_AR
7326 if test -n "$AR"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7328 $as_echo "$AR" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335   done
7336 fi
7337
7338 for ncn_progname in ar; do
7339   if test -n "$ncn_tool_prefix"; then
7340     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_AR+set}" = set; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$AR"; then
7348   ac_cv_prog_AR="$AR" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 AR=$ac_cv_prog_AR
7368 if test -n "$AR"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7370 $as_echo "$AR" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377   fi
7378   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7379     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380 set dummy ${ncn_progname}; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if test "${ac_cv_prog_AR+set}" = set; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   if test -n "$AR"; then
7387   ac_cv_prog_AR="$AR" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394     for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_prog_AR="${ncn_progname}"
7397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401   done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 AR=$ac_cv_prog_AR
7407 if test -n "$AR"; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7409 $as_echo "$AR" >&6; }
7410 else
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416   fi
7417   test -n "$ac_cv_prog_AR" && break
7418 done
7419
7420 if test -z "$ac_cv_prog_AR" ; then
7421   set dummy ar
7422   if test $build = $host ; then
7423     AR="$2"
7424   else
7425     AR="${ncn_tool_prefix}$2"
7426   fi
7427 fi
7428
7429
7430
7431 if test -n "$AS"; then
7432   ac_cv_prog_AS=$AS
7433 elif test -n "$ac_cv_prog_AS"; then
7434   AS=$ac_cv_prog_AS
7435 fi
7436
7437 if test -n "$ac_cv_prog_AS"; then
7438   for ncn_progname in as; do
7439     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7440 set dummy ${ncn_progname}; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_AS+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$AS"; then
7447   ac_cv_prog_AS="$AS" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_AS="${ncn_progname}"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 AS=$ac_cv_prog_AS
7467 if test -n "$AS"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7469 $as_echo "$AS" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476   done
7477 fi
7478
7479 for ncn_progname in as; do
7480   if test -n "$ncn_tool_prefix"; then
7481     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7482 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_AS+set}" = set; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   if test -n "$AS"; then
7489   ac_cv_prog_AS="$AS" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 AS=$ac_cv_prog_AS
7509 if test -n "$AS"; then
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7511 $as_echo "$AS" >&6; }
7512 else
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518   fi
7519   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7520     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7521 set dummy ${ncn_progname}; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if test "${ac_cv_prog_AS+set}" = set; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   if test -n "$AS"; then
7528   ac_cv_prog_AS="$AS" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535     for ac_exec_ext in '' $ac_executable_extensions; do
7536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537     ac_cv_prog_AS="${ncn_progname}"
7538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542   done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 AS=$ac_cv_prog_AS
7548 if test -n "$AS"; then
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7550 $as_echo "$AS" >&6; }
7551 else
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556
7557   fi
7558   test -n "$ac_cv_prog_AS" && break
7559 done
7560
7561 if test -z "$ac_cv_prog_AS" ; then
7562   set dummy as
7563   if test $build = $host ; then
7564     AS="$2"
7565   else
7566     AS="${ncn_tool_prefix}$2"
7567   fi
7568 fi
7569
7570
7571
7572 if test -n "$DLLTOOL"; then
7573   ac_cv_prog_DLLTOOL=$DLLTOOL
7574 elif test -n "$ac_cv_prog_DLLTOOL"; then
7575   DLLTOOL=$ac_cv_prog_DLLTOOL
7576 fi
7577
7578 if test -n "$ac_cv_prog_DLLTOOL"; then
7579   for ncn_progname in dlltool; do
7580     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7581 set dummy ${ncn_progname}; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7585   $as_echo_n "(cached) " >&6
7586 else
7587   if test -n "$DLLTOOL"; then
7588   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595     for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_prog_DLLTOOL="${ncn_progname}"
7598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602   done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 DLLTOOL=$ac_cv_prog_DLLTOOL
7608 if test -n "$DLLTOOL"; then
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7610 $as_echo "$DLLTOOL" >&6; }
7611 else
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616
7617   done
7618 fi
7619
7620 for ncn_progname in dlltool; do
7621   if test -n "$ncn_tool_prefix"; then
7622     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629   if test -n "$DLLTOOL"; then
7630   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644   done
7645 IFS=$as_save_IFS
7646
7647 fi
7648 fi
7649 DLLTOOL=$ac_cv_prog_DLLTOOL
7650 if test -n "$DLLTOOL"; then
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7652 $as_echo "$DLLTOOL" >&6; }
7653 else
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658
7659   fi
7660   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7661     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7662 set dummy ${ncn_progname}; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$DLLTOOL"; then
7669   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_prog_DLLTOOL="${ncn_progname}"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 DLLTOOL=$ac_cv_prog_DLLTOOL
7689 if test -n "$DLLTOOL"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7691 $as_echo "$DLLTOOL" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698   fi
7699   test -n "$ac_cv_prog_DLLTOOL" && break
7700 done
7701
7702 if test -z "$ac_cv_prog_DLLTOOL" ; then
7703   set dummy dlltool
7704   if test $build = $host ; then
7705     DLLTOOL="$2"
7706   else
7707     DLLTOOL="${ncn_tool_prefix}$2"
7708   fi
7709 fi
7710
7711
7712
7713 if test -n "$LD"; then
7714   ac_cv_prog_LD=$LD
7715 elif test -n "$ac_cv_prog_LD"; then
7716   LD=$ac_cv_prog_LD
7717 fi
7718
7719 if test -n "$ac_cv_prog_LD"; then
7720   for ncn_progname in ld; do
7721     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7722 set dummy ${ncn_progname}; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_LD+set}" = set; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   if test -n "$LD"; then
7729   ac_cv_prog_LD="$LD" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736     for ac_exec_ext in '' $ac_executable_extensions; do
7737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738     ac_cv_prog_LD="${ncn_progname}"
7739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743   done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 LD=$ac_cv_prog_LD
7749 if test -n "$LD"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751 $as_echo "$LD" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758   done
7759 fi
7760
7761 for ncn_progname in ld; do
7762   if test -n "$ncn_tool_prefix"; then
7763     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7764 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_LD+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$LD"; then
7771   ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}${ncn_progname}"
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 LD=$ac_cv_prog_LD
7791 if test -n "$LD"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7793 $as_echo "$LD" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800   fi
7801   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7802     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803 set dummy ${ncn_progname}; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_LD+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   if test -n "$LD"; then
7810   ac_cv_prog_LD="$LD" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817     for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_LD="${ncn_progname}"
7820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824   done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 LD=$ac_cv_prog_LD
7830 if test -n "$LD"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7832 $as_echo "$LD" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838
7839   fi
7840   test -n "$ac_cv_prog_LD" && break
7841 done
7842
7843 if test -z "$ac_cv_prog_LD" ; then
7844   set dummy ld
7845   if test $build = $host ; then
7846     LD="$2"
7847   else
7848     LD="${ncn_tool_prefix}$2"
7849   fi
7850 fi
7851
7852
7853
7854 if test -n "$LIPO"; then
7855   ac_cv_prog_LIPO=$LIPO
7856 elif test -n "$ac_cv_prog_LIPO"; then
7857   LIPO=$ac_cv_prog_LIPO
7858 fi
7859
7860 if test -n "$ac_cv_prog_LIPO"; then
7861   for ncn_progname in lipo; do
7862     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7863 set dummy ${ncn_progname}; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_LIPO+set}" = set; then :
7867   $as_echo_n "(cached) " >&6
7868 else
7869   if test -n "$LIPO"; then
7870   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875   IFS=$as_save_IFS
7876   test -z "$as_dir" && as_dir=.
7877     for ac_exec_ext in '' $ac_executable_extensions; do
7878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879     ac_cv_prog_LIPO="${ncn_progname}"
7880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881     break 2
7882   fi
7883 done
7884   done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 LIPO=$ac_cv_prog_LIPO
7890 if test -n "$LIPO"; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7892 $as_echo "$LIPO" >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899   done
7900 fi
7901
7902 for ncn_progname in lipo; do
7903   if test -n "$ncn_tool_prefix"; then
7904     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7905 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_LIPO+set}" = set; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   if test -n "$LIPO"; then
7912   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919     for ac_exec_ext in '' $ac_executable_extensions; do
7920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926   done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 LIPO=$ac_cv_prog_LIPO
7932 if test -n "$LIPO"; then
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7934 $as_echo "$LIPO" >&6; }
7935 else
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941   fi
7942   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7943     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7944 set dummy ${ncn_progname}; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_LIPO+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$LIPO"; then
7951   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_LIPO="${ncn_progname}"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 LIPO=$ac_cv_prog_LIPO
7971 if test -n "$LIPO"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7973 $as_echo "$LIPO" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980   fi
7981   test -n "$ac_cv_prog_LIPO" && break
7982 done
7983
7984 if test -z "$ac_cv_prog_LIPO" ; then
7985   set dummy lipo
7986   if test $build = $host ; then
7987     LIPO="$2"
7988   else
7989     LIPO="${ncn_tool_prefix}$2"
7990   fi
7991 fi
7992
7993
7994
7995 if test -n "$NM"; then
7996   ac_cv_prog_NM=$NM
7997 elif test -n "$ac_cv_prog_NM"; then
7998   NM=$ac_cv_prog_NM
7999 fi
8000
8001 if test -n "$ac_cv_prog_NM"; then
8002   for ncn_progname in nm; do
8003     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8004 set dummy ${ncn_progname}; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_NM+set}" = set; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   if test -n "$NM"; then
8011   ac_cv_prog_NM="$NM" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016   IFS=$as_save_IFS
8017   test -z "$as_dir" && as_dir=.
8018     for ac_exec_ext in '' $ac_executable_extensions; do
8019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020     ac_cv_prog_NM="${ncn_progname}"
8021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022     break 2
8023   fi
8024 done
8025   done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 NM=$ac_cv_prog_NM
8031 if test -n "$NM"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8033 $as_echo "$NM" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040   done
8041 fi
8042
8043 for ncn_progname in nm; do
8044   if test -n "$ncn_tool_prefix"; then
8045     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8046 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if test "${ac_cv_prog_NM+set}" = set; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   if test -n "$NM"; then
8053   ac_cv_prog_NM="$NM" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058   IFS=$as_save_IFS
8059   test -z "$as_dir" && as_dir=.
8060     for ac_exec_ext in '' $ac_executable_extensions; do
8061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8062     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064     break 2
8065   fi
8066 done
8067   done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 NM=$ac_cv_prog_NM
8073 if test -n "$NM"; then
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8075 $as_echo "$NM" >&6; }
8076 else
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082   fi
8083   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8084     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8085 set dummy ${ncn_progname}; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if test "${ac_cv_prog_NM+set}" = set; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$NM"; then
8092   ac_cv_prog_NM="$NM" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_prog_NM="${ncn_progname}"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 NM=$ac_cv_prog_NM
8112 if test -n "$NM"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8114 $as_echo "$NM" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121   fi
8122   test -n "$ac_cv_prog_NM" && break
8123 done
8124
8125 if test -z "$ac_cv_prog_NM" ; then
8126   set dummy nm
8127   if test $build = $host ; then
8128     NM="$2"
8129   else
8130     NM="${ncn_tool_prefix}$2"
8131   fi
8132 fi
8133
8134
8135
8136 if test -n "$RANLIB"; then
8137   ac_cv_prog_RANLIB=$RANLIB
8138 elif test -n "$ac_cv_prog_RANLIB"; then
8139   RANLIB=$ac_cv_prog_RANLIB
8140 fi
8141
8142 if test -n "$ac_cv_prog_RANLIB"; then
8143   for ncn_progname in ranlib; do
8144     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145 set dummy ${ncn_progname}; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   if test -n "$RANLIB"; then
8152   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157   IFS=$as_save_IFS
8158   test -z "$as_dir" && as_dir=.
8159     for ac_exec_ext in '' $ac_executable_extensions; do
8160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161     ac_cv_prog_RANLIB="${ncn_progname}"
8162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163     break 2
8164   fi
8165 done
8166   done
8167 IFS=$as_save_IFS
8168
8169 fi
8170 fi
8171 RANLIB=$ac_cv_prog_RANLIB
8172 if test -n "$RANLIB"; then
8173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8174 $as_echo "$RANLIB" >&6; }
8175 else
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179
8180
8181   done
8182 fi
8183
8184 for ncn_progname in ranlib; do
8185   if test -n "$ncn_tool_prefix"; then
8186     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8187 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8191   $as_echo_n "(cached) " >&6
8192 else
8193   if test -n "$RANLIB"; then
8194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199   IFS=$as_save_IFS
8200   test -z "$as_dir" && as_dir=.
8201     for ac_exec_ext in '' $ac_executable_extensions; do
8202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205     break 2
8206   fi
8207 done
8208   done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 RANLIB=$ac_cv_prog_RANLIB
8214 if test -n "$RANLIB"; then
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8216 $as_echo "$RANLIB" >&6; }
8217 else
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222
8223   fi
8224   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8225     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8226 set dummy ${ncn_progname}; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   if test -n "$RANLIB"; then
8233   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240     for ac_exec_ext in '' $ac_executable_extensions; do
8241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242     ac_cv_prog_RANLIB="${ncn_progname}"
8243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247   done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 RANLIB=$ac_cv_prog_RANLIB
8253 if test -n "$RANLIB"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8255 $as_echo "$RANLIB" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261
8262   fi
8263   test -n "$ac_cv_prog_RANLIB" && break
8264 done
8265
8266 if test -z "$ac_cv_prog_RANLIB" ; then
8267   RANLIB=":"
8268 fi
8269
8270
8271
8272 if test -n "$STRIP"; then
8273   ac_cv_prog_STRIP=$STRIP
8274 elif test -n "$ac_cv_prog_STRIP"; then
8275   STRIP=$ac_cv_prog_STRIP
8276 fi
8277
8278 if test -n "$ac_cv_prog_STRIP"; then
8279   for ncn_progname in strip; do
8280     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8281 set dummy ${ncn_progname}; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_STRIP+set}" = set; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   if test -n "$STRIP"; then
8288   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295     for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_prog_STRIP="${ncn_progname}"
8298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302   done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 STRIP=$ac_cv_prog_STRIP
8308 if test -n "$STRIP"; then
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8310 $as_echo "$STRIP" >&6; }
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317   done
8318 fi
8319
8320 for ncn_progname in strip; do
8321   if test -n "$ncn_tool_prefix"; then
8322     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8323 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_STRIP+set}" = set; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$STRIP"; then
8330   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 STRIP=$ac_cv_prog_STRIP
8350 if test -n "$STRIP"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8352 $as_echo "$STRIP" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359   fi
8360   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8361     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8362 set dummy ${ncn_progname}; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if test "${ac_cv_prog_STRIP+set}" = set; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   if test -n "$STRIP"; then
8369   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376     for ac_exec_ext in '' $ac_executable_extensions; do
8377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378     ac_cv_prog_STRIP="${ncn_progname}"
8379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383   done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 STRIP=$ac_cv_prog_STRIP
8389 if test -n "$STRIP"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8391 $as_echo "$STRIP" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398   fi
8399   test -n "$ac_cv_prog_STRIP" && break
8400 done
8401
8402 if test -z "$ac_cv_prog_STRIP" ; then
8403   STRIP=":"
8404 fi
8405
8406
8407
8408 if test -n "$WINDRES"; then
8409   ac_cv_prog_WINDRES=$WINDRES
8410 elif test -n "$ac_cv_prog_WINDRES"; then
8411   WINDRES=$ac_cv_prog_WINDRES
8412 fi
8413
8414 if test -n "$ac_cv_prog_WINDRES"; then
8415   for ncn_progname in windres; do
8416     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417 set dummy ${ncn_progname}; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   if test -n "$WINDRES"; then
8424   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431     for ac_exec_ext in '' $ac_executable_extensions; do
8432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433     ac_cv_prog_WINDRES="${ncn_progname}"
8434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438   done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 WINDRES=$ac_cv_prog_WINDRES
8444 if test -n "$WINDRES"; then
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8446 $as_echo "$WINDRES" >&6; }
8447 else
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453   done
8454 fi
8455
8456 for ncn_progname in windres; do
8457   if test -n "$ncn_tool_prefix"; then
8458     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8463   $as_echo_n "(cached) " >&6
8464 else
8465   if test -n "$WINDRES"; then
8466   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471   IFS=$as_save_IFS
8472   test -z "$as_dir" && as_dir=.
8473     for ac_exec_ext in '' $ac_executable_extensions; do
8474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8475     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477     break 2
8478   fi
8479 done
8480   done
8481 IFS=$as_save_IFS
8482
8483 fi
8484 fi
8485 WINDRES=$ac_cv_prog_WINDRES
8486 if test -n "$WINDRES"; then
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8488 $as_echo "$WINDRES" >&6; }
8489 else
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494
8495   fi
8496   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8497     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   if test -n "$WINDRES"; then
8505   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510   IFS=$as_save_IFS
8511   test -z "$as_dir" && as_dir=.
8512     for ac_exec_ext in '' $ac_executable_extensions; do
8513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514     ac_cv_prog_WINDRES="${ncn_progname}"
8515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516     break 2
8517   fi
8518 done
8519   done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 WINDRES=$ac_cv_prog_WINDRES
8525 if test -n "$WINDRES"; then
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8527 $as_echo "$WINDRES" >&6; }
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534   fi
8535   test -n "$ac_cv_prog_WINDRES" && break
8536 done
8537
8538 if test -z "$ac_cv_prog_WINDRES" ; then
8539   set dummy windres
8540   if test $build = $host ; then
8541     WINDRES="$2"
8542   else
8543     WINDRES="${ncn_tool_prefix}$2"
8544   fi
8545 fi
8546
8547
8548
8549 if test -n "$WINDMC"; then
8550   ac_cv_prog_WINDMC=$WINDMC
8551 elif test -n "$ac_cv_prog_WINDMC"; then
8552   WINDMC=$ac_cv_prog_WINDMC
8553 fi
8554
8555 if test -n "$ac_cv_prog_WINDMC"; then
8556   for ncn_progname in windmc; do
8557     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_progname}; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8562   $as_echo_n "(cached) " >&6
8563 else
8564   if test -n "$WINDMC"; then
8565   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572     for ac_exec_ext in '' $ac_executable_extensions; do
8573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574     ac_cv_prog_WINDMC="${ncn_progname}"
8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579   done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 WINDMC=$ac_cv_prog_WINDMC
8585 if test -n "$WINDMC"; then
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8587 $as_echo "$WINDMC" >&6; }
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594   done
8595 fi
8596
8597 for ncn_progname in windmc; do
8598   if test -n "$ncn_tool_prefix"; then
8599     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8604   $as_echo_n "(cached) " >&6
8605 else
8606   if test -n "$WINDMC"; then
8607   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8608 else
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612   IFS=$as_save_IFS
8613   test -z "$as_dir" && as_dir=.
8614     for ac_exec_ext in '' $ac_executable_extensions; do
8615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618     break 2
8619   fi
8620 done
8621   done
8622 IFS=$as_save_IFS
8623
8624 fi
8625 fi
8626 WINDMC=$ac_cv_prog_WINDMC
8627 if test -n "$WINDMC"; then
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8629 $as_echo "$WINDMC" >&6; }
8630 else
8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 fi
8634
8635
8636   fi
8637   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8638     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$WINDMC"; then
8646   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655     ac_cv_prog_WINDMC="${ncn_progname}"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 WINDMC=$ac_cv_prog_WINDMC
8666 if test -n "$WINDMC"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8668 $as_echo "$WINDMC" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675   fi
8676   test -n "$ac_cv_prog_WINDMC" && break
8677 done
8678
8679 if test -z "$ac_cv_prog_WINDMC" ; then
8680   set dummy windmc
8681   if test $build = $host ; then
8682     WINDMC="$2"
8683   else
8684     WINDMC="${ncn_tool_prefix}$2"
8685   fi
8686 fi
8687
8688
8689
8690 if test -n "$OBJCOPY"; then
8691   ac_cv_prog_OBJCOPY=$OBJCOPY
8692 elif test -n "$ac_cv_prog_OBJCOPY"; then
8693   OBJCOPY=$ac_cv_prog_OBJCOPY
8694 fi
8695
8696 if test -n "$ac_cv_prog_OBJCOPY"; then
8697   for ncn_progname in objcopy; do
8698     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699 set dummy ${ncn_progname}; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   if test -n "$OBJCOPY"; then
8706   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8710 do
8711   IFS=$as_save_IFS
8712   test -z "$as_dir" && as_dir=.
8713     for ac_exec_ext in '' $ac_executable_extensions; do
8714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715     ac_cv_prog_OBJCOPY="${ncn_progname}"
8716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717     break 2
8718   fi
8719 done
8720   done
8721 IFS=$as_save_IFS
8722
8723 fi
8724 fi
8725 OBJCOPY=$ac_cv_prog_OBJCOPY
8726 if test -n "$OBJCOPY"; then
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8728 $as_echo "$OBJCOPY" >&6; }
8729 else
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735   done
8736 fi
8737
8738 for ncn_progname in objcopy; do
8739   if test -n "$ncn_tool_prefix"; then
8740     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   if test -n "$OBJCOPY"; then
8748   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753   IFS=$as_save_IFS
8754   test -z "$as_dir" && as_dir=.
8755     for ac_exec_ext in '' $ac_executable_extensions; do
8756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8757     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759     break 2
8760   fi
8761 done
8762   done
8763 IFS=$as_save_IFS
8764
8765 fi
8766 fi
8767 OBJCOPY=$ac_cv_prog_OBJCOPY
8768 if test -n "$OBJCOPY"; then
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8770 $as_echo "$OBJCOPY" >&6; }
8771 else
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777   fi
8778   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8779     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$OBJCOPY"; then
8787   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796     ac_cv_prog_OBJCOPY="${ncn_progname}"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 OBJCOPY=$ac_cv_prog_OBJCOPY
8807 if test -n "$OBJCOPY"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8809 $as_echo "$OBJCOPY" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816   fi
8817   test -n "$ac_cv_prog_OBJCOPY" && break
8818 done
8819
8820 if test -z "$ac_cv_prog_OBJCOPY" ; then
8821   set dummy objcopy
8822   if test $build = $host ; then
8823     OBJCOPY="$2"
8824   else
8825     OBJCOPY="${ncn_tool_prefix}$2"
8826   fi
8827 fi
8828
8829
8830
8831 if test -n "$OBJDUMP"; then
8832   ac_cv_prog_OBJDUMP=$OBJDUMP
8833 elif test -n "$ac_cv_prog_OBJDUMP"; then
8834   OBJDUMP=$ac_cv_prog_OBJDUMP
8835 fi
8836
8837 if test -n "$ac_cv_prog_OBJDUMP"; then
8838   for ncn_progname in objdump; do
8839     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840 set dummy ${ncn_progname}; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8844   $as_echo_n "(cached) " >&6
8845 else
8846   if test -n "$OBJDUMP"; then
8847   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852   IFS=$as_save_IFS
8853   test -z "$as_dir" && as_dir=.
8854     for ac_exec_ext in '' $ac_executable_extensions; do
8855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856     ac_cv_prog_OBJDUMP="${ncn_progname}"
8857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858     break 2
8859   fi
8860 done
8861   done
8862 IFS=$as_save_IFS
8863
8864 fi
8865 fi
8866 OBJDUMP=$ac_cv_prog_OBJDUMP
8867 if test -n "$OBJDUMP"; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8869 $as_echo "$OBJDUMP" >&6; }
8870 else
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874
8875
8876   done
8877 fi
8878
8879 for ncn_progname in objdump; do
8880   if test -n "$ncn_tool_prefix"; then
8881     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8882 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   if test -n "$OBJDUMP"; then
8889   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 OBJDUMP=$ac_cv_prog_OBJDUMP
8909 if test -n "$OBJDUMP"; then
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8911 $as_echo "$OBJDUMP" >&6; }
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918   fi
8919   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8920     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   if test -n "$OBJDUMP"; then
8928   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   test -z "$as_dir" && as_dir=.
8935     for ac_exec_ext in '' $ac_executable_extensions; do
8936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937     ac_cv_prog_OBJDUMP="${ncn_progname}"
8938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939     break 2
8940   fi
8941 done
8942   done
8943 IFS=$as_save_IFS
8944
8945 fi
8946 fi
8947 OBJDUMP=$ac_cv_prog_OBJDUMP
8948 if test -n "$OBJDUMP"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8950 $as_echo "$OBJDUMP" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957   fi
8958   test -n "$ac_cv_prog_OBJDUMP" && break
8959 done
8960
8961 if test -z "$ac_cv_prog_OBJDUMP" ; then
8962   set dummy objdump
8963   if test $build = $host ; then
8964     OBJDUMP="$2"
8965   else
8966     OBJDUMP="${ncn_tool_prefix}$2"
8967   fi
8968 fi
8969
8970
8971
8972
8973
8974
8975 # Target tools.
8976
8977 # Check whether --with-build-time-tools was given.
8978 if test "${with_build_time_tools+set}" = set; then :
8979   withval=$with_build_time_tools; case x"$withval" in
8980      x/*) ;;
8981      *)
8982        with_build_time_tools=
8983        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8984 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8985        ;;
8986    esac
8987 else
8988   with_build_time_tools=
8989 fi
8990
8991
8992
8993
8994 if test -n "$CC_FOR_TARGET"; then
8995   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8996 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8997   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8998 fi
8999
9000 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9001   for ncn_progname in cc gcc; do
9002     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9003 set dummy ${ncn_progname}; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9007   $as_echo_n "(cached) " >&6
9008 else
9009   if test -n "$CC_FOR_TARGET"; then
9010   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9011 else
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9014 do
9015   IFS=$as_save_IFS
9016   test -z "$as_dir" && as_dir=.
9017     for ac_exec_ext in '' $ac_executable_extensions; do
9018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021     break 2
9022   fi
9023 done
9024   done
9025 IFS=$as_save_IFS
9026
9027 fi
9028 fi
9029 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9030 if test -n "$CC_FOR_TARGET"; then
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9032 $as_echo "$CC_FOR_TARGET" >&6; }
9033 else
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9036 fi
9037
9038
9039   done
9040 fi
9041
9042 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9043   for ncn_progname in cc gcc; do
9044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9046     if test -x $with_build_time_tools/${ncn_progname}; then
9047       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049 $as_echo "yes" >&6; }
9050       break
9051     else
9052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054     fi
9055   done
9056 fi
9057
9058 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9059   for ncn_progname in cc gcc; do
9060     if test -n "$ncn_target_tool_prefix"; then
9061       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   if test -n "$CC_FOR_TARGET"; then
9069   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9070 else
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9073 do
9074   IFS=$as_save_IFS
9075   test -z "$as_dir" && as_dir=.
9076     for ac_exec_ext in '' $ac_executable_extensions; do
9077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080     break 2
9081   fi
9082 done
9083   done
9084 IFS=$as_save_IFS
9085
9086 fi
9087 fi
9088 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9089 if test -n "$CC_FOR_TARGET"; then
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9091 $as_echo "$CC_FOR_TARGET" >&6; }
9092 else
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096
9097
9098     fi
9099     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9100       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   if test -n "$CC_FOR_TARGET"; then
9108   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113   IFS=$as_save_IFS
9114   test -z "$as_dir" && as_dir=.
9115     for ac_exec_ext in '' $ac_executable_extensions; do
9116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119     break 2
9120   fi
9121 done
9122   done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9128 if test -n "$CC_FOR_TARGET"; then
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9130 $as_echo "$CC_FOR_TARGET" >&6; }
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136
9137     fi
9138     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9139   done
9140 fi
9141
9142 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9143   set dummy cc gcc
9144   if test $build = $target ; then
9145     CC_FOR_TARGET="$2"
9146   else
9147     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9148   fi
9149 else
9150   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9151 fi
9152
9153
9154
9155 if test -n "$CXX_FOR_TARGET"; then
9156   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9157 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9158   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9159 fi
9160
9161 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9162   for ncn_progname in c++ g++ cxx gxx; do
9163     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164 set dummy ${ncn_progname}; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$CXX_FOR_TARGET"; then
9171   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9191 if test -n "$CXX_FOR_TARGET"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9193 $as_echo "$CXX_FOR_TARGET" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199
9200   done
9201 fi
9202
9203 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9204   for ncn_progname in c++ g++ cxx gxx; do
9205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9206 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9207     if test -x $with_build_time_tools/${ncn_progname}; then
9208       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9210 $as_echo "yes" >&6; }
9211       break
9212     else
9213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215     fi
9216   done
9217 fi
9218
9219 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9220   for ncn_progname in c++ g++ cxx gxx; do
9221     if test -n "$ncn_target_tool_prefix"; then
9222       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9223 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   if test -n "$CXX_FOR_TARGET"; then
9230   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9231 else
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9234 do
9235   IFS=$as_save_IFS
9236   test -z "$as_dir" && as_dir=.
9237     for ac_exec_ext in '' $ac_executable_extensions; do
9238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241     break 2
9242   fi
9243 done
9244   done
9245 IFS=$as_save_IFS
9246
9247 fi
9248 fi
9249 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9250 if test -n "$CXX_FOR_TARGET"; then
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9252 $as_echo "$CXX_FOR_TARGET" >&6; }
9253 else
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9256 fi
9257
9258
9259     fi
9260     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9261       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9262 set dummy ${ncn_progname}; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   if test -n "$CXX_FOR_TARGET"; then
9269   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9270 else
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274   IFS=$as_save_IFS
9275   test -z "$as_dir" && as_dir=.
9276     for ac_exec_ext in '' $ac_executable_extensions; do
9277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280     break 2
9281   fi
9282 done
9283   done
9284 IFS=$as_save_IFS
9285
9286 fi
9287 fi
9288 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9289 if test -n "$CXX_FOR_TARGET"; then
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9291 $as_echo "$CXX_FOR_TARGET" >&6; }
9292 else
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294 $as_echo "no" >&6; }
9295 fi
9296
9297
9298     fi
9299     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9300   done
9301 fi
9302
9303 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9304   set dummy c++ g++ cxx gxx
9305   if test $build = $target ; then
9306     CXX_FOR_TARGET="$2"
9307   else
9308     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9309   fi
9310 else
9311   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9312 fi
9313
9314
9315
9316 if test -n "$GCC_FOR_TARGET"; then
9317   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9318 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9319   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9320 fi
9321
9322 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9323   for ncn_progname in gcc; do
9324     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9325 set dummy ${ncn_progname}; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   if test -n "$GCC_FOR_TARGET"; then
9332   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9336 do
9337   IFS=$as_save_IFS
9338   test -z "$as_dir" && as_dir=.
9339     for ac_exec_ext in '' $ac_executable_extensions; do
9340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343     break 2
9344   fi
9345 done
9346   done
9347 IFS=$as_save_IFS
9348
9349 fi
9350 fi
9351 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9352 if test -n "$GCC_FOR_TARGET"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9354 $as_echo "$GCC_FOR_TARGET" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359
9360
9361   done
9362 fi
9363
9364 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9365   for ncn_progname in gcc; do
9366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9367 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9368     if test -x $with_build_time_tools/${ncn_progname}; then
9369       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371 $as_echo "yes" >&6; }
9372       break
9373     else
9374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9376     fi
9377   done
9378 fi
9379
9380 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9381   for ncn_progname in gcc; do
9382     if test -n "$ncn_target_tool_prefix"; then
9383       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9384 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   if test -n "$GCC_FOR_TARGET"; then
9391   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396   IFS=$as_save_IFS
9397   test -z "$as_dir" && as_dir=.
9398     for ac_exec_ext in '' $ac_executable_extensions; do
9399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9400     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402     break 2
9403   fi
9404 done
9405   done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9411 if test -n "$GCC_FOR_TARGET"; then
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9413 $as_echo "$GCC_FOR_TARGET" >&6; }
9414 else
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420     fi
9421     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9422       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9423 set dummy ${ncn_progname}; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9427   $as_echo_n "(cached) " >&6
9428 else
9429   if test -n "$GCC_FOR_TARGET"; then
9430   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435   IFS=$as_save_IFS
9436   test -z "$as_dir" && as_dir=.
9437     for ac_exec_ext in '' $ac_executable_extensions; do
9438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441     break 2
9442   fi
9443 done
9444   done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9450 if test -n "$GCC_FOR_TARGET"; then
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9452 $as_echo "$GCC_FOR_TARGET" >&6; }
9453 else
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459     fi
9460     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9461   done
9462 fi
9463
9464 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9465   GCC_FOR_TARGET="${CC_FOR_TARGET}"
9466 else
9467   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9468 fi
9469
9470
9471
9472 if test -n "$GCJ_FOR_TARGET"; then
9473   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9474 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9475   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9476 fi
9477
9478 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9479   for ncn_progname in gcj; do
9480     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481 set dummy ${ncn_progname}; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   if test -n "$GCJ_FOR_TARGET"; then
9488   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9492 do
9493   IFS=$as_save_IFS
9494   test -z "$as_dir" && as_dir=.
9495     for ac_exec_ext in '' $ac_executable_extensions; do
9496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499     break 2
9500   fi
9501 done
9502   done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9508 if test -n "$GCJ_FOR_TARGET"; then
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9510 $as_echo "$GCJ_FOR_TARGET" >&6; }
9511 else
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9514 fi
9515
9516
9517   done
9518 fi
9519
9520 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9521   for ncn_progname in gcj; do
9522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9524     if test -x $with_build_time_tools/${ncn_progname}; then
9525       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9526       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9527 $as_echo "yes" >&6; }
9528       break
9529     else
9530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532     fi
9533   done
9534 fi
9535
9536 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9537   for ncn_progname in gcj; do
9538     if test -n "$ncn_target_tool_prefix"; then
9539       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546   if test -n "$GCJ_FOR_TARGET"; then
9547   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9548 else
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9551 do
9552   IFS=$as_save_IFS
9553   test -z "$as_dir" && as_dir=.
9554     for ac_exec_ext in '' $ac_executable_extensions; do
9555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558     break 2
9559   fi
9560 done
9561   done
9562 IFS=$as_save_IFS
9563
9564 fi
9565 fi
9566 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9567 if test -n "$GCJ_FOR_TARGET"; then
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9569 $as_echo "$GCJ_FOR_TARGET" >&6; }
9570 else
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9573 fi
9574
9575
9576     fi
9577     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9578       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 set dummy ${ncn_progname}; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9583   $as_echo_n "(cached) " >&6
9584 else
9585   if test -n "$GCJ_FOR_TARGET"; then
9586   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591   IFS=$as_save_IFS
9592   test -z "$as_dir" && as_dir=.
9593     for ac_exec_ext in '' $ac_executable_extensions; do
9594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597     break 2
9598   fi
9599 done
9600   done
9601 IFS=$as_save_IFS
9602
9603 fi
9604 fi
9605 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9606 if test -n "$GCJ_FOR_TARGET"; then
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9608 $as_echo "$GCJ_FOR_TARGET" >&6; }
9609 else
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613
9614
9615     fi
9616     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9617   done
9618 fi
9619
9620 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9621   set dummy gcj
9622   if test $build = $target ; then
9623     GCJ_FOR_TARGET="$2"
9624   else
9625     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9626   fi
9627 else
9628   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9629 fi
9630
9631
9632
9633 if test -n "$GFORTRAN_FOR_TARGET"; then
9634   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9635 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9636   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9637 fi
9638
9639 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9640   for ncn_progname in gfortran; 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_GFORTRAN_FOR_TARGET+set}" = set; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   if test -n "$GFORTRAN_FOR_TARGET"; then
9649   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9669 if test -n "$GFORTRAN_FOR_TARGET"; then
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9671 $as_echo "$GFORTRAN_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_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9682   for ncn_progname in gfortran; 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_GFORTRAN_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_GFORTRAN_FOR_TARGET"; then
9698   for ncn_progname in gfortran; 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_GFORTRAN_FOR_TARGET+set}" = set; then :
9705   $as_echo_n "(cached) " >&6
9706 else
9707   if test -n "$GFORTRAN_FOR_TARGET"; then
9708   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9728 if test -n "$GFORTRAN_FOR_TARGET"; then
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9730 $as_echo "$GFORTRAN_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_GFORTRAN_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_GFORTRAN_FOR_TARGET+set}" = set; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   if test -n "$GFORTRAN_FOR_TARGET"; then
9747   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9767 if test -n "$GFORTRAN_FOR_TARGET"; then
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9769 $as_echo "$GFORTRAN_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_GFORTRAN_FOR_TARGET" && break
9778   done
9779 fi
9780
9781 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9782   set dummy gfortran
9783   if test $build = $target ; then
9784     GFORTRAN_FOR_TARGET="$2"
9785   else
9786     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9787   fi
9788 else
9789   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9790 fi
9791
9792
9793
9794 cat > conftest.c << \EOF
9795 #ifdef __GNUC__
9796   gcc_yay;
9797 #endif
9798 EOF
9799 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9800   have_gcc_for_target=yes
9801 else
9802   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9803   have_gcc_for_target=no
9804 fi
9805 rm conftest.c
9806
9807
9808
9809
9810 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9811   if test -n "$with_build_time_tools"; then
9812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9813 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
9814     if test -x $with_build_time_tools/ar; then
9815       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9816       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9818 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
9819     else
9820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9822     fi
9823   elif test $build != $host && test $have_gcc_for_target = yes; then
9824     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9825     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9826     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9827   fi
9828 fi
9829 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9830   # Extract the first word of "ar", so it can be a program name with args.
9831 set dummy ar; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   case $AR_FOR_TARGET in
9838   [\\/]* | ?:[\\/]*)
9839   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9840   ;;
9841   *)
9842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $gcc_cv_tool_dirs
9844 do
9845   IFS=$as_save_IFS
9846   test -z "$as_dir" && as_dir=.
9847     for ac_exec_ext in '' $ac_executable_extensions; do
9848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9849     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851     break 2
9852   fi
9853 done
9854   done
9855 IFS=$as_save_IFS
9856
9857   ;;
9858 esac
9859 fi
9860 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9861 if test -n "$AR_FOR_TARGET"; then
9862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9863 $as_echo "$AR_FOR_TARGET" >&6; }
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9867 fi
9868
9869
9870 fi
9871 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9872
9873
9874 if test -n "$AR_FOR_TARGET"; then
9875   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9876 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9877   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9878 fi
9879
9880 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9881   for ncn_progname in ar; do
9882     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883 set dummy ${ncn_progname}; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   if test -n "$AR_FOR_TARGET"; then
9890   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895   IFS=$as_save_IFS
9896   test -z "$as_dir" && as_dir=.
9897     for ac_exec_ext in '' $ac_executable_extensions; do
9898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901     break 2
9902   fi
9903 done
9904   done
9905 IFS=$as_save_IFS
9906
9907 fi
9908 fi
9909 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9910 if test -n "$AR_FOR_TARGET"; then
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9912 $as_echo "$AR_FOR_TARGET" >&6; }
9913 else
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917
9918
9919   done
9920 fi
9921
9922 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9923   for ncn_progname in ar; do
9924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9926     if test -x $with_build_time_tools/${ncn_progname}; then
9927       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929 $as_echo "yes" >&6; }
9930       break
9931     else
9932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934     fi
9935   done
9936 fi
9937
9938 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9939   for ncn_progname in ar; do
9940     if test -n "$ncn_target_tool_prefix"; then
9941       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9942 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   if test -n "$AR_FOR_TARGET"; then
9949   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9950 else
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9953 do
9954   IFS=$as_save_IFS
9955   test -z "$as_dir" && as_dir=.
9956     for ac_exec_ext in '' $ac_executable_extensions; do
9957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960     break 2
9961   fi
9962 done
9963   done
9964 IFS=$as_save_IFS
9965
9966 fi
9967 fi
9968 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9969 if test -n "$AR_FOR_TARGET"; then
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9971 $as_echo "$AR_FOR_TARGET" >&6; }
9972 else
9973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976
9977
9978     fi
9979     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9980       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981 set dummy ${ncn_progname}; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   if test -n "$AR_FOR_TARGET"; then
9988   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9992 do
9993   IFS=$as_save_IFS
9994   test -z "$as_dir" && as_dir=.
9995     for ac_exec_ext in '' $ac_executable_extensions; do
9996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999     break 2
10000   fi
10001 done
10002   done
10003 IFS=$as_save_IFS
10004
10005 fi
10006 fi
10007 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10008 if test -n "$AR_FOR_TARGET"; then
10009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10010 $as_echo "$AR_FOR_TARGET" >&6; }
10011 else
10012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10014 fi
10015
10016
10017     fi
10018     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10019   done
10020 fi
10021
10022 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10023   set dummy ar
10024   if test $build = $target ; then
10025     AR_FOR_TARGET="$2"
10026   else
10027     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10028   fi
10029 else
10030   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10031 fi
10032
10033 else
10034   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10035 fi
10036
10037
10038
10039
10040 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10041   if test -n "$with_build_time_tools"; then
10042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10043 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10044     if test -x $with_build_time_tools/as; then
10045       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10046       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10048 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10049     else
10050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052     fi
10053   elif test $build != $host && test $have_gcc_for_target = yes; then
10054     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10055     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10056     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10057   fi
10058 fi
10059 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10060   # Extract the first word of "as", so it can be a program name with args.
10061 set dummy as; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   case $AS_FOR_TARGET in
10068   [\\/]* | ?:[\\/]*)
10069   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10070   ;;
10071   *)
10072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $gcc_cv_tool_dirs
10074 do
10075   IFS=$as_save_IFS
10076   test -z "$as_dir" && as_dir=.
10077     for ac_exec_ext in '' $ac_executable_extensions; do
10078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081     break 2
10082   fi
10083 done
10084   done
10085 IFS=$as_save_IFS
10086
10087   ;;
10088 esac
10089 fi
10090 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10091 if test -n "$AS_FOR_TARGET"; then
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10093 $as_echo "$AS_FOR_TARGET" >&6; }
10094 else
10095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10097 fi
10098
10099
10100 fi
10101 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10102
10103
10104 if test -n "$AS_FOR_TARGET"; then
10105   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10106 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10107   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10108 fi
10109
10110 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10111   for ncn_progname in as; do
10112     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113 set dummy ${ncn_progname}; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   if test -n "$AS_FOR_TARGET"; then
10120   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10121 else
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10124 do
10125   IFS=$as_save_IFS
10126   test -z "$as_dir" && as_dir=.
10127     for ac_exec_ext in '' $ac_executable_extensions; do
10128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131     break 2
10132   fi
10133 done
10134   done
10135 IFS=$as_save_IFS
10136
10137 fi
10138 fi
10139 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10140 if test -n "$AS_FOR_TARGET"; then
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10142 $as_echo "$AS_FOR_TARGET" >&6; }
10143 else
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 fi
10147
10148
10149   done
10150 fi
10151
10152 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10153   for ncn_progname in as; do
10154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10155 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10156     if test -x $with_build_time_tools/${ncn_progname}; then
10157       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; }
10160       break
10161     else
10162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164     fi
10165   done
10166 fi
10167
10168 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10169   for ncn_progname in as; do
10170     if test -n "$ncn_target_tool_prefix"; then
10171       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10172 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   if test -n "$AS_FOR_TARGET"; then
10179   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184   IFS=$as_save_IFS
10185   test -z "$as_dir" && as_dir=.
10186     for ac_exec_ext in '' $ac_executable_extensions; do
10187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190     break 2
10191   fi
10192 done
10193   done
10194 IFS=$as_save_IFS
10195
10196 fi
10197 fi
10198 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10199 if test -n "$AS_FOR_TARGET"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10201 $as_echo "$AS_FOR_TARGET" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206
10207
10208     fi
10209     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10210       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_progname}; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   if test -n "$AS_FOR_TARGET"; then
10218   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223   IFS=$as_save_IFS
10224   test -z "$as_dir" && as_dir=.
10225     for ac_exec_ext in '' $ac_executable_extensions; do
10226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229     break 2
10230   fi
10231 done
10232   done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10238 if test -n "$AS_FOR_TARGET"; then
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10240 $as_echo "$AS_FOR_TARGET" >&6; }
10241 else
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246
10247     fi
10248     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10249   done
10250 fi
10251
10252 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10253   set dummy as
10254   if test $build = $target ; then
10255     AS_FOR_TARGET="$2"
10256   else
10257     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10258   fi
10259 else
10260   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10261 fi
10262
10263 else
10264   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10265 fi
10266
10267
10268
10269
10270 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10271   if test -n "$with_build_time_tools"; then
10272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10273 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10274     if test -x $with_build_time_tools/dlltool; then
10275       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10276       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10278 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10279     else
10280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282     fi
10283   elif test $build != $host && test $have_gcc_for_target = yes; then
10284     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10285     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10286     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10287   fi
10288 fi
10289 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10290   # Extract the first word of "dlltool", so it can be a program name with args.
10291 set dummy dlltool; ac_word=$2
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293 $as_echo_n "checking for $ac_word... " >&6; }
10294 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   case $DLLTOOL_FOR_TARGET in
10298   [\\/]* | ?:[\\/]*)
10299   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10300   ;;
10301   *)
10302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $gcc_cv_tool_dirs
10304 do
10305   IFS=$as_save_IFS
10306   test -z "$as_dir" && as_dir=.
10307     for ac_exec_ext in '' $ac_executable_extensions; do
10308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311     break 2
10312   fi
10313 done
10314   done
10315 IFS=$as_save_IFS
10316
10317   ;;
10318 esac
10319 fi
10320 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10321 if test -n "$DLLTOOL_FOR_TARGET"; then
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10323 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10324 else
10325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10327 fi
10328
10329
10330 fi
10331 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10332
10333
10334 if test -n "$DLLTOOL_FOR_TARGET"; then
10335   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10336 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10337   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10338 fi
10339
10340 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10341   for ncn_progname in dlltool; do
10342     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343 set dummy ${ncn_progname}; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   if test -n "$DLLTOOL_FOR_TARGET"; then
10350   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355   IFS=$as_save_IFS
10356   test -z "$as_dir" && as_dir=.
10357     for ac_exec_ext in '' $ac_executable_extensions; do
10358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361     break 2
10362   fi
10363 done
10364   done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10370 if test -n "$DLLTOOL_FOR_TARGET"; then
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10372 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379   done
10380 fi
10381
10382 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10383   for ncn_progname in dlltool; do
10384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10385 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10386     if test -x $with_build_time_tools/${ncn_progname}; then
10387       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10389 $as_echo "yes" >&6; }
10390       break
10391     else
10392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394     fi
10395   done
10396 fi
10397
10398 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10399   for ncn_progname in dlltool; do
10400     if test -n "$ncn_target_tool_prefix"; then
10401       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10402 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   if test -n "$DLLTOOL_FOR_TARGET"; then
10409   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414   IFS=$as_save_IFS
10415   test -z "$as_dir" && as_dir=.
10416     for ac_exec_ext in '' $ac_executable_extensions; do
10417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10418     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420     break 2
10421   fi
10422 done
10423   done
10424 IFS=$as_save_IFS
10425
10426 fi
10427 fi
10428 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10429 if test -n "$DLLTOOL_FOR_TARGET"; then
10430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10431 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10432 else
10433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10435 fi
10436
10437
10438     fi
10439     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10440       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10441 set dummy ${ncn_progname}; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   if test -n "$DLLTOOL_FOR_TARGET"; then
10448   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10449 else
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464
10465 fi
10466 fi
10467 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10468 if test -n "$DLLTOOL_FOR_TARGET"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10470 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475
10476
10477     fi
10478     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10479   done
10480 fi
10481
10482 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10483   set dummy dlltool
10484   if test $build = $target ; then
10485     DLLTOOL_FOR_TARGET="$2"
10486   else
10487     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10488   fi
10489 else
10490   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10491 fi
10492
10493 else
10494   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10495 fi
10496
10497
10498
10499
10500 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10501   if test -n "$with_build_time_tools"; then
10502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10503 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10504     if test -x $with_build_time_tools/ld; then
10505       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10506       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10508 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10509     else
10510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10512     fi
10513   elif test $build != $host && test $have_gcc_for_target = yes; then
10514     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10515     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10516     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10517   fi
10518 fi
10519 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10520   # Extract the first word of "ld", so it can be a program name with args.
10521 set dummy ld; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10525   $as_echo_n "(cached) " >&6
10526 else
10527   case $LD_FOR_TARGET in
10528   [\\/]* | ?:[\\/]*)
10529   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10530   ;;
10531   *)
10532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $gcc_cv_tool_dirs
10534 do
10535   IFS=$as_save_IFS
10536   test -z "$as_dir" && as_dir=.
10537     for ac_exec_ext in '' $ac_executable_extensions; do
10538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10539     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541     break 2
10542   fi
10543 done
10544   done
10545 IFS=$as_save_IFS
10546
10547   ;;
10548 esac
10549 fi
10550 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10551 if test -n "$LD_FOR_TARGET"; then
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10553 $as_echo "$LD_FOR_TARGET" >&6; }
10554 else
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558
10559
10560 fi
10561 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10562
10563
10564 if test -n "$LD_FOR_TARGET"; then
10565   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10566 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10567   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10568 fi
10569
10570 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10571   for ncn_progname in ld; do
10572     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10573 set dummy ${ncn_progname}; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   if test -n "$LD_FOR_TARGET"; then
10580   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10584 do
10585   IFS=$as_save_IFS
10586   test -z "$as_dir" && as_dir=.
10587     for ac_exec_ext in '' $ac_executable_extensions; do
10588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10591     break 2
10592   fi
10593 done
10594   done
10595 IFS=$as_save_IFS
10596
10597 fi
10598 fi
10599 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10600 if test -n "$LD_FOR_TARGET"; then
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10602 $as_echo "$LD_FOR_TARGET" >&6; }
10603 else
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607
10608
10609   done
10610 fi
10611
10612 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10613   for ncn_progname in ld; do
10614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10615 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10616     if test -x $with_build_time_tools/${ncn_progname}; then
10617       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; }
10620       break
10621     else
10622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10624     fi
10625   done
10626 fi
10627
10628 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10629   for ncn_progname in ld; do
10630     if test -n "$ncn_target_tool_prefix"; then
10631       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10632 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   if test -n "$LD_FOR_TARGET"; then
10639   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644   IFS=$as_save_IFS
10645   test -z "$as_dir" && as_dir=.
10646     for ac_exec_ext in '' $ac_executable_extensions; do
10647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650     break 2
10651   fi
10652 done
10653   done
10654 IFS=$as_save_IFS
10655
10656 fi
10657 fi
10658 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10659 if test -n "$LD_FOR_TARGET"; then
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10661 $as_echo "$LD_FOR_TARGET" >&6; }
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 fi
10666
10667
10668     fi
10669     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10670       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10671 set dummy ${ncn_progname}; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   if test -n "$LD_FOR_TARGET"; then
10678   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683   IFS=$as_save_IFS
10684   test -z "$as_dir" && as_dir=.
10685     for ac_exec_ext in '' $ac_executable_extensions; do
10686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689     break 2
10690   fi
10691 done
10692   done
10693 IFS=$as_save_IFS
10694
10695 fi
10696 fi
10697 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10698 if test -n "$LD_FOR_TARGET"; then
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10700 $as_echo "$LD_FOR_TARGET" >&6; }
10701 else
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 fi
10705
10706
10707     fi
10708     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10709   done
10710 fi
10711
10712 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10713   set dummy ld
10714   if test $build = $target ; then
10715     LD_FOR_TARGET="$2"
10716   else
10717     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10718   fi
10719 else
10720   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10721 fi
10722
10723 else
10724   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10725 fi
10726
10727
10728
10729
10730 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10731   if test -n "$with_build_time_tools"; then
10732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10733 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
10734     if test -x $with_build_time_tools/lipo; then
10735       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10736       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10738 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10739     else
10740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742     fi
10743   elif test $build != $host && test $have_gcc_for_target = yes; then
10744     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10745     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10746     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10747   fi
10748 fi
10749 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10750   # Extract the first word of "lipo", so it can be a program name with args.
10751 set dummy lipo; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   case $LIPO_FOR_TARGET in
10758   [\\/]* | ?:[\\/]*)
10759   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10760   ;;
10761   *)
10762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $gcc_cv_tool_dirs
10764 do
10765   IFS=$as_save_IFS
10766   test -z "$as_dir" && as_dir=.
10767     for ac_exec_ext in '' $ac_executable_extensions; do
10768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771     break 2
10772   fi
10773 done
10774   done
10775 IFS=$as_save_IFS
10776
10777   ;;
10778 esac
10779 fi
10780 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10781 if test -n "$LIPO_FOR_TARGET"; then
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10783 $as_echo "$LIPO_FOR_TARGET" >&6; }
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790 fi
10791 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10792
10793
10794 if test -n "$LIPO_FOR_TARGET"; then
10795   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10796 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10797   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10798 fi
10799
10800 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10801   for ncn_progname in lipo; do
10802     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10803 set dummy ${ncn_progname}; ac_word=$2
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805 $as_echo_n "checking for $ac_word... " >&6; }
10806 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   if test -n "$LIPO_FOR_TARGET"; then
10810   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10811 else
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10814 do
10815   IFS=$as_save_IFS
10816   test -z "$as_dir" && as_dir=.
10817     for ac_exec_ext in '' $ac_executable_extensions; do
10818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10819     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821     break 2
10822   fi
10823 done
10824   done
10825 IFS=$as_save_IFS
10826
10827 fi
10828 fi
10829 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10830 if test -n "$LIPO_FOR_TARGET"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10832 $as_echo "$LIPO_FOR_TARGET" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837
10838
10839   done
10840 fi
10841
10842 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10843   for ncn_progname in lipo; do
10844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10845 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10846     if test -x $with_build_time_tools/${ncn_progname}; then
10847       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10849 $as_echo "yes" >&6; }
10850       break
10851     else
10852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854     fi
10855   done
10856 fi
10857
10858 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10859   for ncn_progname in lipo; do
10860     if test -n "$ncn_target_tool_prefix"; then
10861       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10862 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864 $as_echo_n "checking for $ac_word... " >&6; }
10865 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   if test -n "$LIPO_FOR_TARGET"; then
10869   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10870 else
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885
10886 fi
10887 fi
10888 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10889 if test -n "$LIPO_FOR_TARGET"; then
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10891 $as_echo "$LIPO_FOR_TARGET" >&6; }
10892 else
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 fi
10896
10897
10898     fi
10899     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10900       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10901 set dummy ${ncn_progname}; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   if test -n "$LIPO_FOR_TARGET"; then
10908   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10909 else
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913   IFS=$as_save_IFS
10914   test -z "$as_dir" && as_dir=.
10915     for ac_exec_ext in '' $ac_executable_extensions; do
10916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919     break 2
10920   fi
10921 done
10922   done
10923 IFS=$as_save_IFS
10924
10925 fi
10926 fi
10927 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10928 if test -n "$LIPO_FOR_TARGET"; then
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10930 $as_echo "$LIPO_FOR_TARGET" >&6; }
10931 else
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 fi
10935
10936
10937     fi
10938     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10939   done
10940 fi
10941
10942 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10943   set dummy lipo
10944   if test $build = $target ; then
10945     LIPO_FOR_TARGET="$2"
10946   else
10947     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10948   fi
10949 else
10950   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10951 fi
10952
10953 else
10954   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10955 fi
10956
10957
10958
10959
10960 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10961   if test -n "$with_build_time_tools"; then
10962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
10963 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
10964     if test -x $with_build_time_tools/nm; then
10965       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10966       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
10968 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
10969     else
10970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972     fi
10973   elif test $build != $host && test $have_gcc_for_target = yes; then
10974     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10975     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10976     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10977   fi
10978 fi
10979 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10980   # Extract the first word of "nm", so it can be a program name with args.
10981 set dummy nm; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   case $NM_FOR_TARGET in
10988   [\\/]* | ?:[\\/]*)
10989   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10990   ;;
10991   *)
10992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $gcc_cv_tool_dirs
10994 do
10995   IFS=$as_save_IFS
10996   test -z "$as_dir" && as_dir=.
10997     for ac_exec_ext in '' $ac_executable_extensions; do
10998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001     break 2
11002   fi
11003 done
11004   done
11005 IFS=$as_save_IFS
11006
11007   ;;
11008 esac
11009 fi
11010 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11011 if test -n "$NM_FOR_TARGET"; then
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11013 $as_echo "$NM_FOR_TARGET" >&6; }
11014 else
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018
11019
11020 fi
11021 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11022
11023
11024 if test -n "$NM_FOR_TARGET"; then
11025   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11026 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11027   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11028 fi
11029
11030 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11031   for ncn_progname in nm; do
11032     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035 $as_echo_n "checking for $ac_word... " >&6; }
11036 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11037   $as_echo_n "(cached) " >&6
11038 else
11039   if test -n "$NM_FOR_TARGET"; then
11040   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11041 else
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045   IFS=$as_save_IFS
11046   test -z "$as_dir" && as_dir=.
11047     for ac_exec_ext in '' $ac_executable_extensions; do
11048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051     break 2
11052   fi
11053 done
11054   done
11055 IFS=$as_save_IFS
11056
11057 fi
11058 fi
11059 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11060 if test -n "$NM_FOR_TARGET"; then
11061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11062 $as_echo "$NM_FOR_TARGET" >&6; }
11063 else
11064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067
11068
11069   done
11070 fi
11071
11072 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11073   for ncn_progname in nm; do
11074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11075 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11076     if test -x $with_build_time_tools/${ncn_progname}; then
11077       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 $as_echo "yes" >&6; }
11080       break
11081     else
11082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11084     fi
11085   done
11086 fi
11087
11088 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11089   for ncn_progname in nm; do
11090     if test -n "$ncn_target_tool_prefix"; then
11091       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11092 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098   if test -n "$NM_FOR_TARGET"; then
11099   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11100 else
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11103 do
11104   IFS=$as_save_IFS
11105   test -z "$as_dir" && as_dir=.
11106     for ac_exec_ext in '' $ac_executable_extensions; do
11107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110     break 2
11111   fi
11112 done
11113   done
11114 IFS=$as_save_IFS
11115
11116 fi
11117 fi
11118 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11119 if test -n "$NM_FOR_TARGET"; then
11120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11121 $as_echo "$NM_FOR_TARGET" >&6; }
11122 else
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125 fi
11126
11127
11128     fi
11129     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11130       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131 set dummy ${ncn_progname}; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   if test -n "$NM_FOR_TARGET"; then
11138   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11139 else
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143   IFS=$as_save_IFS
11144   test -z "$as_dir" && as_dir=.
11145     for ac_exec_ext in '' $ac_executable_extensions; do
11146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149     break 2
11150   fi
11151 done
11152   done
11153 IFS=$as_save_IFS
11154
11155 fi
11156 fi
11157 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11158 if test -n "$NM_FOR_TARGET"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11160 $as_echo "$NM_FOR_TARGET" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165
11166
11167     fi
11168     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11169   done
11170 fi
11171
11172 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11173   set dummy nm
11174   if test $build = $target ; then
11175     NM_FOR_TARGET="$2"
11176   else
11177     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11178   fi
11179 else
11180   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11181 fi
11182
11183 else
11184   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11185 fi
11186
11187
11188
11189
11190 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11191   if test -n "$with_build_time_tools"; then
11192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11193 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11194     if test -x $with_build_time_tools/objdump; then
11195       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11196       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11198 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11199     else
11200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202     fi
11203   elif test $build != $host && test $have_gcc_for_target = yes; then
11204     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11205     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11206     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11207   fi
11208 fi
11209 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11210   # Extract the first word of "objdump", so it can be a program name with args.
11211 set dummy objdump; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   case $OBJDUMP_FOR_TARGET in
11218   [\\/]* | ?:[\\/]*)
11219   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11220   ;;
11221   *)
11222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $gcc_cv_tool_dirs
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227     for ac_exec_ext in '' $ac_executable_extensions; do
11228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11229     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236
11237   ;;
11238 esac
11239 fi
11240 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11241 if test -n "$OBJDUMP_FOR_TARGET"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11243 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250 fi
11251 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11252
11253
11254 if test -n "$OBJDUMP_FOR_TARGET"; then
11255   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11256 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11257   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11258 fi
11259
11260 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11261   for ncn_progname in objdump; do
11262     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   if test -n "$OBJDUMP_FOR_TARGET"; then
11270   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11274 do
11275   IFS=$as_save_IFS
11276   test -z "$as_dir" && as_dir=.
11277     for ac_exec_ext in '' $ac_executable_extensions; do
11278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281     break 2
11282   fi
11283 done
11284   done
11285 IFS=$as_save_IFS
11286
11287 fi
11288 fi
11289 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11290 if test -n "$OBJDUMP_FOR_TARGET"; then
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11292 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297
11298
11299   done
11300 fi
11301
11302 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11303   for ncn_progname in objdump; do
11304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11305 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11306     if test -x $with_build_time_tools/${ncn_progname}; then
11307       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11309 $as_echo "yes" >&6; }
11310       break
11311     else
11312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314     fi
11315   done
11316 fi
11317
11318 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11319   for ncn_progname in objdump; do
11320     if test -n "$ncn_target_tool_prefix"; then
11321       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11322 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324 $as_echo_n "checking for $ac_word... " >&6; }
11325 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   if test -n "$OBJDUMP_FOR_TARGET"; then
11329   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11330 else
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11333 do
11334   IFS=$as_save_IFS
11335   test -z "$as_dir" && as_dir=.
11336     for ac_exec_ext in '' $ac_executable_extensions; do
11337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340     break 2
11341   fi
11342 done
11343   done
11344 IFS=$as_save_IFS
11345
11346 fi
11347 fi
11348 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11349 if test -n "$OBJDUMP_FOR_TARGET"; then
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11351 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11352 else
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11355 fi
11356
11357
11358     fi
11359     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11360       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11361 set dummy ${ncn_progname}; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367   if test -n "$OBJDUMP_FOR_TARGET"; then
11368   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373   IFS=$as_save_IFS
11374   test -z "$as_dir" && as_dir=.
11375     for ac_exec_ext in '' $ac_executable_extensions; do
11376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379     break 2
11380   fi
11381 done
11382   done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11388 if test -n "$OBJDUMP_FOR_TARGET"; then
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11390 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397     fi
11398     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11399   done
11400 fi
11401
11402 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11403   set dummy objdump
11404   if test $build = $target ; then
11405     OBJDUMP_FOR_TARGET="$2"
11406   else
11407     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11408   fi
11409 else
11410   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11411 fi
11412
11413 else
11414   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11415 fi
11416
11417
11418
11419
11420 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11421   if test -n "$with_build_time_tools"; then
11422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11423 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11424     if test -x $with_build_time_tools/ranlib; then
11425       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11426       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11428 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11429     else
11430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432     fi
11433   elif test $build != $host && test $have_gcc_for_target = yes; then
11434     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11435     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11436     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11437   fi
11438 fi
11439 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11440   # Extract the first word of "ranlib", so it can be a program name with args.
11441 set dummy ranlib; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   case $RANLIB_FOR_TARGET in
11448   [\\/]* | ?:[\\/]*)
11449   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11450   ;;
11451   *)
11452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $gcc_cv_tool_dirs
11454 do
11455   IFS=$as_save_IFS
11456   test -z "$as_dir" && as_dir=.
11457     for ac_exec_ext in '' $ac_executable_extensions; do
11458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461     break 2
11462   fi
11463 done
11464   done
11465 IFS=$as_save_IFS
11466
11467   ;;
11468 esac
11469 fi
11470 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11471 if test -n "$RANLIB_FOR_TARGET"; then
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11473 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11474 else
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11477 fi
11478
11479
11480 fi
11481 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11482
11483
11484 if test -n "$RANLIB_FOR_TARGET"; then
11485   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11486 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11487   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11488 fi
11489
11490 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11491   for ncn_progname in ranlib; do
11492     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493 set dummy ${ncn_progname}; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   if test -n "$RANLIB_FOR_TARGET"; then
11500   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507     for ac_exec_ext in '' $ac_executable_extensions; do
11508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11509     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511     break 2
11512   fi
11513 done
11514   done
11515 IFS=$as_save_IFS
11516
11517 fi
11518 fi
11519 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11520 if test -n "$RANLIB_FOR_TARGET"; then
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11522 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11523 else
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527
11528
11529   done
11530 fi
11531
11532 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11533   for ncn_progname in ranlib; do
11534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11535 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11536     if test -x $with_build_time_tools/${ncn_progname}; then
11537       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11538       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; }
11540       break
11541     else
11542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544     fi
11545   done
11546 fi
11547
11548 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11549   for ncn_progname in ranlib; do
11550     if test -n "$ncn_target_tool_prefix"; then
11551       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11552 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554 $as_echo_n "checking for $ac_word... " >&6; }
11555 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   if test -n "$RANLIB_FOR_TARGET"; then
11559   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11560 else
11561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in $PATH
11563 do
11564   IFS=$as_save_IFS
11565   test -z "$as_dir" && as_dir=.
11566     for ac_exec_ext in '' $ac_executable_extensions; do
11567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11568     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570     break 2
11571   fi
11572 done
11573   done
11574 IFS=$as_save_IFS
11575
11576 fi
11577 fi
11578 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11579 if test -n "$RANLIB_FOR_TARGET"; then
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11581 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11586
11587
11588     fi
11589     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11590       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11591 set dummy ${ncn_progname}; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   if test -n "$RANLIB_FOR_TARGET"; then
11598   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11599 else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11602 do
11603   IFS=$as_save_IFS
11604   test -z "$as_dir" && as_dir=.
11605     for ac_exec_ext in '' $ac_executable_extensions; do
11606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609     break 2
11610   fi
11611 done
11612   done
11613 IFS=$as_save_IFS
11614
11615 fi
11616 fi
11617 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11618 if test -n "$RANLIB_FOR_TARGET"; then
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11620 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11625
11626
11627     fi
11628     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11629   done
11630 fi
11631
11632 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11633   set dummy ranlib
11634   if test $build = $target ; then
11635     RANLIB_FOR_TARGET="$2"
11636   else
11637     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11638   fi
11639 else
11640   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11641 fi
11642
11643 else
11644   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11645 fi
11646
11647
11648
11649
11650 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11651   if test -n "$with_build_time_tools"; then
11652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11653 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
11654     if test -x $with_build_time_tools/strip; then
11655       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11656       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11658 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11659     else
11660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662     fi
11663   elif test $build != $host && test $have_gcc_for_target = yes; then
11664     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11665     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11666     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11667   fi
11668 fi
11669 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11670   # Extract the first word of "strip", so it can be a program name with args.
11671 set dummy strip; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   case $STRIP_FOR_TARGET in
11678   [\\/]* | ?:[\\/]*)
11679   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11680   ;;
11681   *)
11682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $gcc_cv_tool_dirs
11684 do
11685   IFS=$as_save_IFS
11686   test -z "$as_dir" && as_dir=.
11687     for ac_exec_ext in '' $ac_executable_extensions; do
11688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691     break 2
11692   fi
11693 done
11694   done
11695 IFS=$as_save_IFS
11696
11697   ;;
11698 esac
11699 fi
11700 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11701 if test -n "$STRIP_FOR_TARGET"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11703 $as_echo "$STRIP_FOR_TARGET" >&6; }
11704 else
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708
11709
11710 fi
11711 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11712
11713
11714 if test -n "$STRIP_FOR_TARGET"; then
11715   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11716 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11717   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11718 fi
11719
11720 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11721   for ncn_progname in strip; do
11722     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11723 set dummy ${ncn_progname}; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729   if test -n "$STRIP_FOR_TARGET"; then
11730   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735   IFS=$as_save_IFS
11736   test -z "$as_dir" && as_dir=.
11737     for ac_exec_ext in '' $ac_executable_extensions; do
11738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11739     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741     break 2
11742   fi
11743 done
11744   done
11745 IFS=$as_save_IFS
11746
11747 fi
11748 fi
11749 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11750 if test -n "$STRIP_FOR_TARGET"; then
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11752 $as_echo "$STRIP_FOR_TARGET" >&6; }
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759   done
11760 fi
11761
11762 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11763   for ncn_progname in strip; do
11764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11765 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11766     if test -x $with_build_time_tools/${ncn_progname}; then
11767       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769 $as_echo "yes" >&6; }
11770       break
11771     else
11772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774     fi
11775   done
11776 fi
11777
11778 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11779   for ncn_progname in strip; do
11780     if test -n "$ncn_target_tool_prefix"; then
11781       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11782 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11786   $as_echo_n "(cached) " >&6
11787 else
11788   if test -n "$STRIP_FOR_TARGET"; then
11789   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11790 else
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_exec_ext in '' $ac_executable_extensions; do
11797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11798     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803   done
11804 IFS=$as_save_IFS
11805
11806 fi
11807 fi
11808 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11809 if test -n "$STRIP_FOR_TARGET"; then
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11811 $as_echo "$STRIP_FOR_TARGET" >&6; }
11812 else
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818     fi
11819     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11820       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11821 set dummy ${ncn_progname}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   if test -n "$STRIP_FOR_TARGET"; then
11828   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_exec_ext in '' $ac_executable_extensions; do
11836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11837     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842   done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11848 if test -n "$STRIP_FOR_TARGET"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11850 $as_echo "$STRIP_FOR_TARGET" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857     fi
11858     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11859   done
11860 fi
11861
11862 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11863   set dummy strip
11864   if test $build = $target ; then
11865     STRIP_FOR_TARGET="$2"
11866   else
11867     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11868   fi
11869 else
11870   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11871 fi
11872
11873 else
11874   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11875 fi
11876
11877
11878
11879
11880 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11881   if test -n "$with_build_time_tools"; then
11882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11883 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
11884     if test -x $with_build_time_tools/windres; then
11885       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11886       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11888 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11889     else
11890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892     fi
11893   elif test $build != $host && test $have_gcc_for_target = yes; then
11894     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11895     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11896     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11897   fi
11898 fi
11899 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11900   # Extract the first word of "windres", so it can be a program name with args.
11901 set dummy windres; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   case $WINDRES_FOR_TARGET in
11908   [\\/]* | ?:[\\/]*)
11909   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11910   ;;
11911   *)
11912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $gcc_cv_tool_dirs
11914 do
11915   IFS=$as_save_IFS
11916   test -z "$as_dir" && as_dir=.
11917     for ac_exec_ext in '' $ac_executable_extensions; do
11918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921     break 2
11922   fi
11923 done
11924   done
11925 IFS=$as_save_IFS
11926
11927   ;;
11928 esac
11929 fi
11930 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11931 if test -n "$WINDRES_FOR_TARGET"; then
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11933 $as_echo "$WINDRES_FOR_TARGET" >&6; }
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938
11939
11940 fi
11941 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11942
11943
11944 if test -n "$WINDRES_FOR_TARGET"; then
11945   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11946 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11947   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11948 fi
11949
11950 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11951   for ncn_progname in windres; do
11952     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11953 set dummy ${ncn_progname}; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   if test -n "$WINDRES_FOR_TARGET"; then
11960   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967     for ac_exec_ext in '' $ac_executable_extensions; do
11968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974   done
11975 IFS=$as_save_IFS
11976
11977 fi
11978 fi
11979 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11980 if test -n "$WINDRES_FOR_TARGET"; then
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11982 $as_echo "$WINDRES_FOR_TARGET" >&6; }
11983 else
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988
11989   done
11990 fi
11991
11992 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11993   for ncn_progname in windres; do
11994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11995 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11996     if test -x $with_build_time_tools/${ncn_progname}; then
11997       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000       break
12001     else
12002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12004     fi
12005   done
12006 fi
12007
12008 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12009   for ncn_progname in windres; do
12010     if test -n "$ncn_target_tool_prefix"; then
12011       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12012 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   if test -n "$WINDRES_FOR_TARGET"; then
12019   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12020 else
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12023 do
12024   IFS=$as_save_IFS
12025   test -z "$as_dir" && as_dir=.
12026     for ac_exec_ext in '' $ac_executable_extensions; do
12027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12028     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030     break 2
12031   fi
12032 done
12033   done
12034 IFS=$as_save_IFS
12035
12036 fi
12037 fi
12038 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12039 if test -n "$WINDRES_FOR_TARGET"; then
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12041 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046
12047
12048     fi
12049     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12050       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12051 set dummy ${ncn_progname}; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12055   $as_echo_n "(cached) " >&6
12056 else
12057   if test -n "$WINDRES_FOR_TARGET"; then
12058   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12059 else
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_exec_ext in '' $ac_executable_extensions; do
12066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12067     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069     break 2
12070   fi
12071 done
12072   done
12073 IFS=$as_save_IFS
12074
12075 fi
12076 fi
12077 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12078 if test -n "$WINDRES_FOR_TARGET"; then
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12080 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12081 else
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085
12086
12087     fi
12088     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12089   done
12090 fi
12091
12092 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12093   set dummy windres
12094   if test $build = $target ; then
12095     WINDRES_FOR_TARGET="$2"
12096   else
12097     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12098   fi
12099 else
12100   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12101 fi
12102
12103 else
12104   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12105 fi
12106
12107
12108
12109
12110 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12111   if test -n "$with_build_time_tools"; then
12112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12113 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12114     if test -x $with_build_time_tools/windmc; then
12115       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12116       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12118 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12119     else
12120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122     fi
12123   elif test $build != $host && test $have_gcc_for_target = yes; then
12124     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12125     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12126     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12127   fi
12128 fi
12129 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12130   # Extract the first word of "windmc", so it can be a program name with args.
12131 set dummy windmc; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   case $WINDMC_FOR_TARGET in
12138   [\\/]* | ?:[\\/]*)
12139   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12140   ;;
12141   *)
12142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $gcc_cv_tool_dirs
12144 do
12145   IFS=$as_save_IFS
12146   test -z "$as_dir" && as_dir=.
12147     for ac_exec_ext in '' $ac_executable_extensions; do
12148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12149     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151     break 2
12152   fi
12153 done
12154   done
12155 IFS=$as_save_IFS
12156
12157   ;;
12158 esac
12159 fi
12160 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12161 if test -n "$WINDMC_FOR_TARGET"; then
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12163 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12164 else
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170 fi
12171 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12172
12173
12174 if test -n "$WINDMC_FOR_TARGET"; then
12175   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12176 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12177   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12178 fi
12179
12180 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12181   for ncn_progname in windmc; do
12182     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12183 set dummy ${ncn_progname}; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12187   $as_echo_n "(cached) " >&6
12188 else
12189   if test -n "$WINDMC_FOR_TARGET"; then
12190   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197     for ac_exec_ext in '' $ac_executable_extensions; do
12198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201     break 2
12202   fi
12203 done
12204   done
12205 IFS=$as_save_IFS
12206
12207 fi
12208 fi
12209 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12210 if test -n "$WINDMC_FOR_TARGET"; then
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12212 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217
12218
12219   done
12220 fi
12221
12222 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12223   for ncn_progname in windmc; do
12224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12225 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12226     if test -x $with_build_time_tools/${ncn_progname}; then
12227       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230       break
12231     else
12232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234     fi
12235   done
12236 fi
12237
12238 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12239   for ncn_progname in windmc; do
12240     if test -n "$ncn_target_tool_prefix"; then
12241       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   if test -n "$WINDMC_FOR_TARGET"; then
12249   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254   IFS=$as_save_IFS
12255   test -z "$as_dir" && as_dir=.
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260     break 2
12261   fi
12262 done
12263   done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12269 if test -n "$WINDMC_FOR_TARGET"; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12271 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278     fi
12279     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12280       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281 set dummy ${ncn_progname}; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   if test -n "$WINDMC_FOR_TARGET"; then
12288   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304
12305 fi
12306 fi
12307 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12308 if test -n "$WINDMC_FOR_TARGET"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12310 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315
12316
12317     fi
12318     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12319   done
12320 fi
12321
12322 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12323   set dummy windmc
12324   if test $build = $target ; then
12325     WINDMC_FOR_TARGET="$2"
12326   else
12327     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12328   fi
12329 else
12330   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12331 fi
12332
12333 else
12334   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12335 fi
12336
12337
12338 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12339
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12341 $as_echo_n "checking where to find the target ar... " >&6; }
12342 if test "x${build}" != "x${host}" ; then
12343   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12344     # We already found the complete path
12345     ac_dir=`dirname $AR_FOR_TARGET`
12346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12347 $as_echo "pre-installed in $ac_dir" >&6; }
12348   else
12349     # Canadian cross, just use what we found
12350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12351 $as_echo "pre-installed" >&6; }
12352   fi
12353 else
12354   ok=yes
12355   case " ${configdirs} " in
12356     *" binutils "*) ;;
12357     *) ok=no ;;
12358   esac
12359
12360   if test $ok = yes; then
12361     # An in-tree tool is available and we can use it
12362     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12364 $as_echo "just compiled" >&6; }
12365   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12366     # We already found the complete path
12367     ac_dir=`dirname $AR_FOR_TARGET`
12368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12369 $as_echo "pre-installed in $ac_dir" >&6; }
12370   elif test "x$target" = "x$host"; then
12371     # We can use an host tool
12372     AR_FOR_TARGET='$(AR)'
12373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12374 $as_echo "host tool" >&6; }
12375   else
12376     # We need a cross tool
12377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12378 $as_echo "pre-installed" >&6; }
12379   fi
12380 fi
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12383 $as_echo_n "checking where to find the target as... " >&6; }
12384 if test "x${build}" != "x${host}" ; then
12385   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12386     # We already found the complete path
12387     ac_dir=`dirname $AS_FOR_TARGET`
12388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12389 $as_echo "pre-installed in $ac_dir" >&6; }
12390   else
12391     # Canadian cross, just use what we found
12392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12393 $as_echo "pre-installed" >&6; }
12394   fi
12395 else
12396   ok=yes
12397   case " ${configdirs} " in
12398     *" gas "*) ;;
12399     *) ok=no ;;
12400   esac
12401
12402   if test $ok = yes; then
12403     # An in-tree tool is available and we can use it
12404     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12406 $as_echo "just compiled" >&6; }
12407   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12408     # We already found the complete path
12409     ac_dir=`dirname $AS_FOR_TARGET`
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12411 $as_echo "pre-installed in $ac_dir" >&6; }
12412   elif test "x$target" = "x$host"; then
12413     # We can use an host tool
12414     AS_FOR_TARGET='$(AS)'
12415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12416 $as_echo "host tool" >&6; }
12417   else
12418     # We need a cross tool
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12420 $as_echo "pre-installed" >&6; }
12421   fi
12422 fi
12423
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12425 $as_echo_n "checking where to find the target cc... " >&6; }
12426 if test "x${build}" != "x${host}" ; then
12427   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12428     # We already found the complete path
12429     ac_dir=`dirname $CC_FOR_TARGET`
12430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12431 $as_echo "pre-installed in $ac_dir" >&6; }
12432   else
12433     # Canadian cross, just use what we found
12434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12435 $as_echo "pre-installed" >&6; }
12436   fi
12437 else
12438   ok=yes
12439   case " ${configdirs} " in
12440     *" gcc "*) ;;
12441     *) ok=no ;;
12442   esac
12443
12444   if test $ok = yes; then
12445     # An in-tree tool is available and we can use it
12446     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12448 $as_echo "just compiled" >&6; }
12449   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12450     # We already found the complete path
12451     ac_dir=`dirname $CC_FOR_TARGET`
12452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453 $as_echo "pre-installed in $ac_dir" >&6; }
12454   elif test "x$target" = "x$host"; then
12455     # We can use an host tool
12456     CC_FOR_TARGET='$(CC)'
12457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12458 $as_echo "host tool" >&6; }
12459   else
12460     # We need a cross tool
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12462 $as_echo "pre-installed" >&6; }
12463   fi
12464 fi
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12467 $as_echo_n "checking where to find the target c++... " >&6; }
12468 if test "x${build}" != "x${host}" ; then
12469   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12470     # We already found the complete path
12471     ac_dir=`dirname $CXX_FOR_TARGET`
12472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12473 $as_echo "pre-installed in $ac_dir" >&6; }
12474   else
12475     # Canadian cross, just use what we found
12476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12477 $as_echo "pre-installed" >&6; }
12478   fi
12479 else
12480   ok=yes
12481   case " ${configdirs} " in
12482     *" gcc "*) ;;
12483     *) ok=no ;;
12484   esac
12485   case ,${enable_languages}, in
12486     *,c++,*) ;;
12487     *) ok=no ;;
12488   esac
12489   if test $ok = yes; then
12490     # An in-tree tool is available and we can use it
12491     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12493 $as_echo "just compiled" >&6; }
12494   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12495     # We already found the complete path
12496     ac_dir=`dirname $CXX_FOR_TARGET`
12497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12498 $as_echo "pre-installed in $ac_dir" >&6; }
12499   elif test "x$target" = "x$host"; then
12500     # We can use an host tool
12501     CXX_FOR_TARGET='$(CXX)'
12502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12503 $as_echo "host tool" >&6; }
12504   else
12505     # We need a cross tool
12506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12507 $as_echo "pre-installed" >&6; }
12508   fi
12509 fi
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12512 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12513 if test "x${build}" != "x${host}" ; then
12514   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12515     # We already found the complete path
12516     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12518 $as_echo "pre-installed in $ac_dir" >&6; }
12519   else
12520     # Canadian cross, just use what we found
12521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12522 $as_echo "pre-installed" >&6; }
12523   fi
12524 else
12525   ok=yes
12526   case " ${configdirs} " in
12527     *" gcc "*) ;;
12528     *) ok=no ;;
12529   esac
12530   case ,${enable_languages}, in
12531     *,c++,*) ;;
12532     *) ok=no ;;
12533   esac
12534   if test $ok = yes; then
12535     # An in-tree tool is available and we can use it
12536     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'
12537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12538 $as_echo "just compiled" >&6; }
12539   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12540     # We already found the complete path
12541     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12543 $as_echo "pre-installed in $ac_dir" >&6; }
12544   elif test "x$target" = "x$host"; then
12545     # We can use an host tool
12546     RAW_CXX_FOR_TARGET='$(CXX)'
12547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12548 $as_echo "host tool" >&6; }
12549   else
12550     # We need a cross tool
12551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12552 $as_echo "pre-installed" >&6; }
12553   fi
12554 fi
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12557 $as_echo_n "checking where to find the target dlltool... " >&6; }
12558 if test "x${build}" != "x${host}" ; then
12559   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12560     # We already found the complete path
12561     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12563 $as_echo "pre-installed in $ac_dir" >&6; }
12564   else
12565     # Canadian cross, just use what we found
12566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12567 $as_echo "pre-installed" >&6; }
12568   fi
12569 else
12570   ok=yes
12571   case " ${configdirs} " in
12572     *" binutils "*) ;;
12573     *) ok=no ;;
12574   esac
12575
12576   if test $ok = yes; then
12577     # An in-tree tool is available and we can use it
12578     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12580 $as_echo "just compiled" >&6; }
12581   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12582     # We already found the complete path
12583     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12585 $as_echo "pre-installed in $ac_dir" >&6; }
12586   elif test "x$target" = "x$host"; then
12587     # We can use an host tool
12588     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12590 $as_echo "host tool" >&6; }
12591   else
12592     # We need a cross tool
12593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12594 $as_echo "pre-installed" >&6; }
12595   fi
12596 fi
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12599 $as_echo_n "checking where to find the target gcc... " >&6; }
12600 if test "x${build}" != "x${host}" ; then
12601   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12602     # We already found the complete path
12603     ac_dir=`dirname $GCC_FOR_TARGET`
12604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12605 $as_echo "pre-installed in $ac_dir" >&6; }
12606   else
12607     # Canadian cross, just use what we found
12608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12609 $as_echo "pre-installed" >&6; }
12610   fi
12611 else
12612   ok=yes
12613   case " ${configdirs} " in
12614     *" gcc "*) ;;
12615     *) ok=no ;;
12616   esac
12617
12618   if test $ok = yes; then
12619     # An in-tree tool is available and we can use it
12620     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12622 $as_echo "just compiled" >&6; }
12623   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12624     # We already found the complete path
12625     ac_dir=`dirname $GCC_FOR_TARGET`
12626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12627 $as_echo "pre-installed in $ac_dir" >&6; }
12628   elif test "x$target" = "x$host"; then
12629     # We can use an host tool
12630     GCC_FOR_TARGET='$()'
12631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12632 $as_echo "host tool" >&6; }
12633   else
12634     # We need a cross tool
12635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12636 $as_echo "pre-installed" >&6; }
12637   fi
12638 fi
12639
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12641 $as_echo_n "checking where to find the target gcj... " >&6; }
12642 if test "x${build}" != "x${host}" ; then
12643   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12644     # We already found the complete path
12645     ac_dir=`dirname $GCJ_FOR_TARGET`
12646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12647 $as_echo "pre-installed in $ac_dir" >&6; }
12648   else
12649     # Canadian cross, just use what we found
12650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12651 $as_echo "pre-installed" >&6; }
12652   fi
12653 else
12654   ok=yes
12655   case " ${configdirs} " in
12656     *" gcc "*) ;;
12657     *) ok=no ;;
12658   esac
12659   case ,${enable_languages}, in
12660     *,java,*) ;;
12661     *) ok=no ;;
12662   esac
12663   if test $ok = yes; then
12664     # An in-tree tool is available and we can use it
12665     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12667 $as_echo "just compiled" >&6; }
12668   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12669     # We already found the complete path
12670     ac_dir=`dirname $GCJ_FOR_TARGET`
12671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12672 $as_echo "pre-installed in $ac_dir" >&6; }
12673   elif test "x$target" = "x$host"; then
12674     # We can use an host tool
12675     GCJ_FOR_TARGET='$(GCJ)'
12676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12677 $as_echo "host tool" >&6; }
12678   else
12679     # We need a cross tool
12680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12681 $as_echo "pre-installed" >&6; }
12682   fi
12683 fi
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12686 $as_echo_n "checking where to find the target gfortran... " >&6; }
12687 if test "x${build}" != "x${host}" ; then
12688   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12689     # We already found the complete path
12690     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12692 $as_echo "pre-installed in $ac_dir" >&6; }
12693   else
12694     # Canadian cross, just use what we found
12695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12696 $as_echo "pre-installed" >&6; }
12697   fi
12698 else
12699   ok=yes
12700   case " ${configdirs} " in
12701     *" gcc "*) ;;
12702     *) ok=no ;;
12703   esac
12704   case ,${enable_languages}, in
12705     *,fortran,*) ;;
12706     *) ok=no ;;
12707   esac
12708   if test $ok = yes; then
12709     # An in-tree tool is available and we can use it
12710     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12712 $as_echo "just compiled" >&6; }
12713   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12714     # We already found the complete path
12715     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12717 $as_echo "pre-installed in $ac_dir" >&6; }
12718   elif test "x$target" = "x$host"; then
12719     # We can use an host tool
12720     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12722 $as_echo "host tool" >&6; }
12723   else
12724     # We need a cross tool
12725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12726 $as_echo "pre-installed" >&6; }
12727   fi
12728 fi
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12731 $as_echo_n "checking where to find the target ld... " >&6; }
12732 if test "x${build}" != "x${host}" ; then
12733   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12734     # We already found the complete path
12735     ac_dir=`dirname $LD_FOR_TARGET`
12736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737 $as_echo "pre-installed in $ac_dir" >&6; }
12738   else
12739     # Canadian cross, just use what we found
12740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741 $as_echo "pre-installed" >&6; }
12742   fi
12743 else
12744   ok=yes
12745   case " ${configdirs} " in
12746     *" ld "*) ;;
12747     *) ok=no ;;
12748   esac
12749
12750   if test $ok = yes; then
12751     # An in-tree tool is available and we can use it
12752     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754 $as_echo "just compiled" >&6; }
12755   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12756     # We already found the complete path
12757     ac_dir=`dirname $LD_FOR_TARGET`
12758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759 $as_echo "pre-installed in $ac_dir" >&6; }
12760   elif test "x$target" = "x$host"; then
12761     # We can use an host tool
12762     LD_FOR_TARGET='$(LD)'
12763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764 $as_echo "host tool" >&6; }
12765   else
12766     # We need a cross tool
12767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768 $as_echo "pre-installed" >&6; }
12769   fi
12770 fi
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12773 $as_echo_n "checking where to find the target lipo... " >&6; }
12774 if test "x${build}" != "x${host}" ; then
12775   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12776     # We already found the complete path
12777     ac_dir=`dirname $LIPO_FOR_TARGET`
12778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779 $as_echo "pre-installed in $ac_dir" >&6; }
12780   else
12781     # Canadian cross, just use what we found
12782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783 $as_echo "pre-installed" >&6; }
12784   fi
12785 else
12786   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12787     # We already found the complete path
12788     ac_dir=`dirname $LIPO_FOR_TARGET`
12789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12790 $as_echo "pre-installed in $ac_dir" >&6; }
12791   elif test "x$target" = "x$host"; then
12792     # We can use an host tool
12793     LIPO_FOR_TARGET='$(LIPO)'
12794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12795 $as_echo "host tool" >&6; }
12796   else
12797     # We need a cross tool
12798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12799 $as_echo "pre-installed" >&6; }
12800   fi
12801 fi
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12804 $as_echo_n "checking where to find the target nm... " >&6; }
12805 if test "x${build}" != "x${host}" ; then
12806   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12807     # We already found the complete path
12808     ac_dir=`dirname $NM_FOR_TARGET`
12809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12810 $as_echo "pre-installed in $ac_dir" >&6; }
12811   else
12812     # Canadian cross, just use what we found
12813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12814 $as_echo "pre-installed" >&6; }
12815   fi
12816 else
12817   ok=yes
12818   case " ${configdirs} " in
12819     *" binutils "*) ;;
12820     *) ok=no ;;
12821   esac
12822
12823   if test $ok = yes; then
12824     # An in-tree tool is available and we can use it
12825     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12827 $as_echo "just compiled" >&6; }
12828   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12829     # We already found the complete path
12830     ac_dir=`dirname $NM_FOR_TARGET`
12831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12832 $as_echo "pre-installed in $ac_dir" >&6; }
12833   elif test "x$target" = "x$host"; then
12834     # We can use an host tool
12835     NM_FOR_TARGET='$(NM)'
12836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12837 $as_echo "host tool" >&6; }
12838   else
12839     # We need a cross tool
12840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12841 $as_echo "pre-installed" >&6; }
12842   fi
12843 fi
12844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12846 $as_echo_n "checking where to find the target objdump... " >&6; }
12847 if test "x${build}" != "x${host}" ; then
12848   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12849     # We already found the complete path
12850     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12852 $as_echo "pre-installed in $ac_dir" >&6; }
12853   else
12854     # Canadian cross, just use what we found
12855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12856 $as_echo "pre-installed" >&6; }
12857   fi
12858 else
12859   ok=yes
12860   case " ${configdirs} " in
12861     *" binutils "*) ;;
12862     *) ok=no ;;
12863   esac
12864
12865   if test $ok = yes; then
12866     # An in-tree tool is available and we can use it
12867     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12869 $as_echo "just compiled" >&6; }
12870   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12871     # We already found the complete path
12872     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12874 $as_echo "pre-installed in $ac_dir" >&6; }
12875   elif test "x$target" = "x$host"; then
12876     # We can use an host tool
12877     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12879 $as_echo "host tool" >&6; }
12880   else
12881     # We need a cross tool
12882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12883 $as_echo "pre-installed" >&6; }
12884   fi
12885 fi
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12888 $as_echo_n "checking where to find the target ranlib... " >&6; }
12889 if test "x${build}" != "x${host}" ; then
12890   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12891     # We already found the complete path
12892     ac_dir=`dirname $RANLIB_FOR_TARGET`
12893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12894 $as_echo "pre-installed in $ac_dir" >&6; }
12895   else
12896     # Canadian cross, just use what we found
12897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12898 $as_echo "pre-installed" >&6; }
12899   fi
12900 else
12901   ok=yes
12902   case " ${configdirs} " in
12903     *" binutils "*) ;;
12904     *) ok=no ;;
12905   esac
12906
12907   if test $ok = yes; then
12908     # An in-tree tool is available and we can use it
12909     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12911 $as_echo "just compiled" >&6; }
12912   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12913     # We already found the complete path
12914     ac_dir=`dirname $RANLIB_FOR_TARGET`
12915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916 $as_echo "pre-installed in $ac_dir" >&6; }
12917   elif test "x$target" = "x$host"; then
12918     # We can use an host tool
12919     RANLIB_FOR_TARGET='$(RANLIB)'
12920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12921 $as_echo "host tool" >&6; }
12922   else
12923     # We need a cross tool
12924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12925 $as_echo "pre-installed" >&6; }
12926   fi
12927 fi
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
12930 $as_echo_n "checking where to find the target strip... " >&6; }
12931 if test "x${build}" != "x${host}" ; then
12932   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12933     # We already found the complete path
12934     ac_dir=`dirname $STRIP_FOR_TARGET`
12935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12936 $as_echo "pre-installed in $ac_dir" >&6; }
12937   else
12938     # Canadian cross, just use what we found
12939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12940 $as_echo "pre-installed" >&6; }
12941   fi
12942 else
12943   ok=yes
12944   case " ${configdirs} " in
12945     *" binutils "*) ;;
12946     *) ok=no ;;
12947   esac
12948
12949   if test $ok = yes; then
12950     # An in-tree tool is available and we can use it
12951     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12953 $as_echo "just compiled" >&6; }
12954   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12955     # We already found the complete path
12956     ac_dir=`dirname $STRIP_FOR_TARGET`
12957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958 $as_echo "pre-installed in $ac_dir" >&6; }
12959   elif test "x$target" = "x$host"; then
12960     # We can use an host tool
12961     STRIP_FOR_TARGET='$(STRIP)'
12962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12963 $as_echo "host tool" >&6; }
12964   else
12965     # We need a cross tool
12966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12967 $as_echo "pre-installed" >&6; }
12968   fi
12969 fi
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
12972 $as_echo_n "checking where to find the target windres... " >&6; }
12973 if test "x${build}" != "x${host}" ; then
12974   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12975     # We already found the complete path
12976     ac_dir=`dirname $WINDRES_FOR_TARGET`
12977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12978 $as_echo "pre-installed in $ac_dir" >&6; }
12979   else
12980     # Canadian cross, just use what we found
12981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12982 $as_echo "pre-installed" >&6; }
12983   fi
12984 else
12985   ok=yes
12986   case " ${configdirs} " in
12987     *" binutils "*) ;;
12988     *) ok=no ;;
12989   esac
12990
12991   if test $ok = yes; then
12992     # An in-tree tool is available and we can use it
12993     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12995 $as_echo "just compiled" >&6; }
12996   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12997     # We already found the complete path
12998     ac_dir=`dirname $WINDRES_FOR_TARGET`
12999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000 $as_echo "pre-installed in $ac_dir" >&6; }
13001   elif test "x$target" = "x$host"; then
13002     # We can use an host tool
13003     WINDRES_FOR_TARGET='$(WINDRES)'
13004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13005 $as_echo "host tool" >&6; }
13006   else
13007     # We need a cross tool
13008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13009 $as_echo "pre-installed" >&6; }
13010   fi
13011 fi
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13014 $as_echo_n "checking where to find the target windmc... " >&6; }
13015 if test "x${build}" != "x${host}" ; then
13016   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13017     # We already found the complete path
13018     ac_dir=`dirname $WINDMC_FOR_TARGET`
13019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13020 $as_echo "pre-installed in $ac_dir" >&6; }
13021   else
13022     # Canadian cross, just use what we found
13023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13024 $as_echo "pre-installed" >&6; }
13025   fi
13026 else
13027   ok=yes
13028   case " ${configdirs} " in
13029     *" binutils "*) ;;
13030     *) ok=no ;;
13031   esac
13032
13033   if test $ok = yes; then
13034     # An in-tree tool is available and we can use it
13035     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13037 $as_echo "just compiled" >&6; }
13038   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13039     # We already found the complete path
13040     ac_dir=`dirname $WINDMC_FOR_TARGET`
13041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042 $as_echo "pre-installed in $ac_dir" >&6; }
13043   elif test "x$target" = "x$host"; then
13044     # We can use an host tool
13045     WINDMC_FOR_TARGET='$(WINDMC)'
13046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13047 $as_echo "host tool" >&6; }
13048   else
13049     # We need a cross tool
13050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13051 $as_echo "pre-installed" >&6; }
13052   fi
13053 fi
13054
13055
13056
13057
13058
13059 # Certain tools may need extra flags.
13060 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13061 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13062 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13063
13064 # When building target libraries, except in a Canadian cross, we use
13065 # the same toolchain as the compiler we just built.
13066 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13067 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13068 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13069 if test $host = $build; then
13070   case " $configdirs " in
13071     *" gcc "*)
13072       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13073       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13074       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13075       ;;
13076   esac
13077 fi
13078
13079
13080
13081
13082
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13084 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13085 # Check whether --enable-maintainer-mode was given.
13086 if test "${enable_maintainer_mode+set}" = set; then :
13087   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13088 else
13089   USE_MAINTAINER_MODE=no
13090 fi
13091
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13093 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13094
13095
13096 if test "$USE_MAINTAINER_MODE" = yes; then
13097   MAINTAINER_MODE_TRUE=
13098   MAINTAINER_MODE_FALSE='#'
13099 else
13100   MAINTAINER_MODE_TRUE='#'
13101   MAINTAINER_MODE_FALSE=
13102 fi
13103 MAINT=$MAINTAINER_MODE_TRUE
13104
13105 # ---------------------
13106 # GCC bootstrap support
13107 # ---------------------
13108
13109 # Stage specific cflags for build.
13110 stage1_cflags="-g"
13111 case $build in
13112   vax-*-*)
13113     case ${GCC} in
13114       yes) stage1_cflags="-g -Wa,-J" ;;
13115       *) stage1_cflags="-g -J" ;;
13116     esac ;;
13117 esac
13118
13119 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13120 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13121   saved_CFLAGS="$CFLAGS"
13122
13123   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13124   CFLAGS="$CFLAGS -fkeep-inline-functions"
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13126 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h.  */
13129
13130 #if (__GNUC__ < 3) \
13131     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13132                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13133 #error http://gcc.gnu.org/PR29382
13134 #endif
13135
13136 int
13137 main ()
13138 {
13139
13140   ;
13141   return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13147 else
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152
13153   CFLAGS="$saved_CFLAGS"
13154 fi
13155
13156
13157
13158 # Enable --enable-checking in stage1 of the compiler.
13159 # Check whether --enable-stage1-checking was given.
13160 if test "${enable_stage1_checking+set}" = set; then :
13161   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13162 else
13163   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13164   stage1_checking=--enable-checking=yes,types
13165 else
13166   stage1_checking=--enable-checking=$enable_checking,types
13167 fi
13168 fi
13169
13170
13171
13172 # Enable -Werror in bootstrap stage2 and later.
13173 # Check whether --enable-werror was given.
13174 if test "${enable_werror+set}" = set; then :
13175   enableval=$enable_werror;
13176 else
13177   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13178   enable_werror=yes
13179 else
13180   enable_werror=no
13181 fi
13182 fi
13183
13184 case ${enable_werror} in
13185   yes) stage2_werror_flag="--enable-werror-always" ;;
13186   *) stage2_werror_flag="" ;;
13187 esac
13188
13189
13190 # Flags needed to enable html installing and building
13191
13192 # Check whether --with-datarootdir was given.
13193 if test "${with_datarootdir+set}" = set; then :
13194   withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
13195 else
13196   datarootdir="\${prefix}/share"
13197 fi
13198
13199
13200
13201 # Check whether --with-docdir was given.
13202 if test "${with_docdir+set}" = set; then :
13203   withval=$with_docdir; docdir="\${prefix}/${withval}"
13204 else
13205   docdir="\${datarootdir}/doc"
13206 fi
13207
13208
13209
13210 # Check whether --with-pdfdir was given.
13211 if test "${with_pdfdir+set}" = set; then :
13212   withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
13213 else
13214   pdfdir="\${docdir}"
13215 fi
13216
13217
13218
13219 # Check whether --with-htmldir was given.
13220 if test "${with_htmldir+set}" = set; then :
13221   withval=$with_htmldir; htmldir="\${prefix}/${withval}"
13222 else
13223   htmldir="\${docdir}"
13224 fi
13225
13226
13227
13228
13229
13230
13231
13232 # Specify what files to not compare during bootstrap.
13233
13234 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13235 case "$target" in
13236   hppa*64*-*-hpux*) ;;
13237   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13238 esac
13239
13240
13241 ac_config_files="$ac_config_files Makefile"
13242
13243 cat >confcache <<\_ACEOF
13244 # This file is a shell script that caches the results of configure
13245 # tests run on this system so they can be shared between configure
13246 # scripts and configure runs, see configure's option --config-cache.
13247 # It is not useful on other systems.  If it contains results you don't
13248 # want to keep, you may remove or edit it.
13249 #
13250 # config.status only pays attention to the cache file if you give it
13251 # the --recheck option to rerun configure.
13252 #
13253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13255 # following values.
13256
13257 _ACEOF
13258
13259 # The following way of writing the cache mishandles newlines in values,
13260 # but we know of no workaround that is simple, portable, and efficient.
13261 # So, we kill variables containing newlines.
13262 # Ultrix sh set writes to stderr and can't be redirected directly,
13263 # and sets the high bit in the cache file unless we assign to the vars.
13264 (
13265   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13266     eval ac_val=\$$ac_var
13267     case $ac_val in #(
13268     *${as_nl}*)
13269       case $ac_var in #(
13270       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13271 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13272       esac
13273       case $ac_var in #(
13274       _ | IFS | as_nl) ;; #(
13275       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13276       *) { eval $ac_var=; unset $ac_var;} ;;
13277       esac ;;
13278     esac
13279   done
13280
13281   (set) 2>&1 |
13282     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13283     *${as_nl}ac_space=\ *)
13284       # `set' does not quote correctly, so add quotes: double-quote
13285       # substitution turns \\\\ into \\, and sed turns \\ into \.
13286       sed -n \
13287         "s/'/'\\\\''/g;
13288           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13289       ;; #(
13290     *)
13291       # `set' quotes correctly as required by POSIX, so do not add quotes.
13292       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13293       ;;
13294     esac |
13295     sort
13296 ) |
13297   sed '
13298      /^ac_cv_env_/b end
13299      t clear
13300      :clear
13301      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13302      t end
13303      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13304      :end' >>confcache
13305 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13306   if test -w "$cache_file"; then
13307     test "x$cache_file" != "x/dev/null" &&
13308       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13309 $as_echo "$as_me: updating cache $cache_file" >&6;}
13310     cat confcache >$cache_file
13311   else
13312     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13313 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13314   fi
13315 fi
13316 rm -f confcache
13317
13318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13319 # Let make expand exec_prefix.
13320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13321
13322 # Transform confdefs.h into DEFS.
13323 # Protect against shell expansion while executing Makefile rules.
13324 # Protect against Makefile macro expansion.
13325 #
13326 # If the first sed substitution is executed (which looks for macros that
13327 # take arguments), then branch to the quote section.  Otherwise,
13328 # look for a macro that doesn't take arguments.
13329 ac_script='
13330 :mline
13331 /\\$/{
13332  N
13333  s,\\\n,,
13334  b mline
13335 }
13336 t clear
13337 :clear
13338 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13339 t quote
13340 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13341 t quote
13342 b any
13343 :quote
13344 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13345 s/\[/\\&/g
13346 s/\]/\\&/g
13347 s/\$/$$/g
13348 H
13349 :any
13350 ${
13351         g
13352         s/^\n//
13353         s/\n/ /g
13354         p
13355 }
13356 '
13357 DEFS=`sed -n "$ac_script" confdefs.h`
13358
13359
13360 ac_libobjs=
13361 ac_ltlibobjs=
13362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13363   # 1. Remove the extension, and $U if already installed.
13364   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13365   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13366   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13367   #    will be set to the directory where LIBOBJS objects are built.
13368   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13369   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13370 done
13371 LIBOBJS=$ac_libobjs
13372
13373 LTLIBOBJS=$ac_ltlibobjs
13374
13375
13376
13377 : ${CONFIG_STATUS=./config.status}
13378 ac_write_fail=0
13379 ac_clean_files_save=$ac_clean_files
13380 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13382 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13383 as_write_fail=0
13384 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13385 #! $SHELL
13386 # Generated by $as_me.
13387 # Run this file to recreate the current configuration.
13388 # Compiler output produced by configure, useful for debugging
13389 # configure, is in config.log if it exists.
13390
13391 debug=false
13392 ac_cs_recheck=false
13393 ac_cs_silent=false
13394
13395 SHELL=\${CONFIG_SHELL-$SHELL}
13396 export SHELL
13397 _ASEOF
13398 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13399 ## -------------------- ##
13400 ## M4sh Initialization. ##
13401 ## -------------------- ##
13402
13403 # Be more Bourne compatible
13404 DUALCASE=1; export DUALCASE # for MKS sh
13405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13406   emulate sh
13407   NULLCMD=:
13408   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13409   # is contrary to our usage.  Disable this feature.
13410   alias -g '${1+"$@"}'='"$@"'
13411   setopt NO_GLOB_SUBST
13412 else
13413   case `(set -o) 2>/dev/null` in #(
13414   *posix*) :
13415     set -o posix ;; #(
13416   *) :
13417      ;;
13418 esac
13419 fi
13420
13421
13422 as_nl='
13423 '
13424 export as_nl
13425 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13426 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13429 # Prefer a ksh shell builtin over an external printf program on Solaris,
13430 # but without wasting forks for bash or zsh.
13431 if test -z "$BASH_VERSION$ZSH_VERSION" \
13432     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13433   as_echo='print -r --'
13434   as_echo_n='print -rn --'
13435 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13436   as_echo='printf %s\n'
13437   as_echo_n='printf %s'
13438 else
13439   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13440     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13441     as_echo_n='/usr/ucb/echo -n'
13442   else
13443     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13444     as_echo_n_body='eval
13445       arg=$1;
13446       case $arg in #(
13447       *"$as_nl"*)
13448         expr "X$arg" : "X\\(.*\\)$as_nl";
13449         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13450       esac;
13451       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13452     '
13453     export as_echo_n_body
13454     as_echo_n='sh -c $as_echo_n_body as_echo'
13455   fi
13456   export as_echo_body
13457   as_echo='sh -c $as_echo_body as_echo'
13458 fi
13459
13460 # The user is always right.
13461 if test "${PATH_SEPARATOR+set}" != set; then
13462   PATH_SEPARATOR=:
13463   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13464     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13465       PATH_SEPARATOR=';'
13466   }
13467 fi
13468
13469
13470 # IFS
13471 # We need space, tab and new line, in precisely that order.  Quoting is
13472 # there to prevent editors from complaining about space-tab.
13473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13474 # splitting by setting IFS to empty value.)
13475 IFS=" ""        $as_nl"
13476
13477 # Find who we are.  Look in the path if we contain no directory separator.
13478 case $0 in #((
13479   *[\\/]* ) as_myself=$0 ;;
13480   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483   IFS=$as_save_IFS
13484   test -z "$as_dir" && as_dir=.
13485     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13486   done
13487 IFS=$as_save_IFS
13488
13489      ;;
13490 esac
13491 # We did not find ourselves, most probably we were run as `sh COMMAND'
13492 # in which case we are not to be found in the path.
13493 if test "x$as_myself" = x; then
13494   as_myself=$0
13495 fi
13496 if test ! -f "$as_myself"; then
13497   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498   exit 1
13499 fi
13500
13501 # Unset variables that we do not need and which cause bugs (e.g. in
13502 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13503 # suppresses any "Segmentation fault" message there.  '((' could
13504 # trigger a bug in pdksh 5.2.14.
13505 for as_var in BASH_ENV ENV MAIL MAILPATH
13506 do eval test x\${$as_var+set} = xset \
13507   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13508 done
13509 PS1='$ '
13510 PS2='> '
13511 PS4='+ '
13512
13513 # NLS nuisances.
13514 LC_ALL=C
13515 export LC_ALL
13516 LANGUAGE=C
13517 export LANGUAGE
13518
13519 # CDPATH.
13520 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13521
13522
13523 # as_fn_error ERROR [LINENO LOG_FD]
13524 # ---------------------------------
13525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13527 # script with status $?, using 1 if that was 0.
13528 as_fn_error ()
13529 {
13530   as_status=$?; test $as_status -eq 0 && as_status=1
13531   if test "$3"; then
13532     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13533     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13534   fi
13535   $as_echo "$as_me: error: $1" >&2
13536   as_fn_exit $as_status
13537 } # as_fn_error
13538
13539
13540 # as_fn_set_status STATUS
13541 # -----------------------
13542 # Set $? to STATUS, without forking.
13543 as_fn_set_status ()
13544 {
13545   return $1
13546 } # as_fn_set_status
13547
13548 # as_fn_exit STATUS
13549 # -----------------
13550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551 as_fn_exit ()
13552 {
13553   set +e
13554   as_fn_set_status $1
13555   exit $1
13556 } # as_fn_exit
13557
13558 # as_fn_unset VAR
13559 # ---------------
13560 # Portably unset VAR.
13561 as_fn_unset ()
13562 {
13563   { eval $1=; unset $1;}
13564 }
13565 as_unset=as_fn_unset
13566 # as_fn_append VAR VALUE
13567 # ----------------------
13568 # Append the text in VALUE to the end of the definition contained in VAR. Take
13569 # advantage of any shell optimizations that allow amortized linear growth over
13570 # repeated appends, instead of the typical quadratic growth present in naive
13571 # implementations.
13572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13573   eval 'as_fn_append ()
13574   {
13575     eval $1+=\$2
13576   }'
13577 else
13578   as_fn_append ()
13579   {
13580     eval $1=\$$1\$2
13581   }
13582 fi # as_fn_append
13583
13584 # as_fn_arith ARG...
13585 # ------------------
13586 # Perform arithmetic evaluation on the ARGs, and store the result in the
13587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13588 # must be portable across $(()) and expr.
13589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13590   eval 'as_fn_arith ()
13591   {
13592     as_val=$(( $* ))
13593   }'
13594 else
13595   as_fn_arith ()
13596   {
13597     as_val=`expr "$@" || test $? -eq 1`
13598   }
13599 fi # as_fn_arith
13600
13601
13602 if expr a : '\(a\)' >/dev/null 2>&1 &&
13603    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13604   as_expr=expr
13605 else
13606   as_expr=false
13607 fi
13608
13609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13610   as_basename=basename
13611 else
13612   as_basename=false
13613 fi
13614
13615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13616   as_dirname=dirname
13617 else
13618   as_dirname=false
13619 fi
13620
13621 as_me=`$as_basename -- "$0" ||
13622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13623          X"$0" : 'X\(//\)$' \| \
13624          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13625 $as_echo X/"$0" |
13626     sed '/^.*\/\([^/][^/]*\)\/*$/{
13627             s//\1/
13628             q
13629           }
13630           /^X\/\(\/\/\)$/{
13631             s//\1/
13632             q
13633           }
13634           /^X\/\(\/\).*/{
13635             s//\1/
13636             q
13637           }
13638           s/.*/./; q'`
13639
13640 # Avoid depending upon Character Ranges.
13641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13644 as_cr_digits='0123456789'
13645 as_cr_alnum=$as_cr_Letters$as_cr_digits
13646
13647 ECHO_C= ECHO_N= ECHO_T=
13648 case `echo -n x` in #(((((
13649 -n*)
13650   case `echo 'xy\c'` in
13651   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13652   xy)  ECHO_C='\c';;
13653   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13654        ECHO_T=' ';;
13655   esac;;
13656 *)
13657   ECHO_N='-n';;
13658 esac
13659
13660 rm -f conf$$ conf$$.exe conf$$.file
13661 if test -d conf$$.dir; then
13662   rm -f conf$$.dir/conf$$.file
13663 else
13664   rm -f conf$$.dir
13665   mkdir conf$$.dir 2>/dev/null
13666 fi
13667 if (echo >conf$$.file) 2>/dev/null; then
13668   if ln -s conf$$.file conf$$ 2>/dev/null; then
13669     as_ln_s='ln -s'
13670     # ... but there are two gotchas:
13671     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673     # In both cases, we have to default to `cp -p'.
13674     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675       as_ln_s='cp -p'
13676   elif ln conf$$.file conf$$ 2>/dev/null; then
13677     as_ln_s=ln
13678   else
13679     as_ln_s='cp -p'
13680   fi
13681 else
13682   as_ln_s='cp -p'
13683 fi
13684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13685 rmdir conf$$.dir 2>/dev/null
13686
13687
13688 # as_fn_mkdir_p
13689 # -------------
13690 # Create "$as_dir" as a directory, including parents if necessary.
13691 as_fn_mkdir_p ()
13692 {
13693
13694   case $as_dir in #(
13695   -*) as_dir=./$as_dir;;
13696   esac
13697   test -d "$as_dir" || eval $as_mkdir_p || {
13698     as_dirs=
13699     while :; do
13700       case $as_dir in #(
13701       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13702       *) as_qdir=$as_dir;;
13703       esac
13704       as_dirs="'$as_qdir' $as_dirs"
13705       as_dir=`$as_dirname -- "$as_dir" ||
13706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707          X"$as_dir" : 'X\(//\)[^/]' \| \
13708          X"$as_dir" : 'X\(//\)$' \| \
13709          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13710 $as_echo X"$as_dir" |
13711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712             s//\1/
13713             q
13714           }
13715           /^X\(\/\/\)[^/].*/{
13716             s//\1/
13717             q
13718           }
13719           /^X\(\/\/\)$/{
13720             s//\1/
13721             q
13722           }
13723           /^X\(\/\).*/{
13724             s//\1/
13725             q
13726           }
13727           s/.*/./; q'`
13728       test -d "$as_dir" && break
13729     done
13730     test -z "$as_dirs" || eval "mkdir $as_dirs"
13731   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13732
13733
13734 } # as_fn_mkdir_p
13735 if mkdir -p . 2>/dev/null; then
13736   as_mkdir_p='mkdir -p "$as_dir"'
13737 else
13738   test -d ./-p && rmdir ./-p
13739   as_mkdir_p=false
13740 fi
13741
13742 if test -x / >/dev/null 2>&1; then
13743   as_test_x='test -x'
13744 else
13745   if ls -dL / >/dev/null 2>&1; then
13746     as_ls_L_option=L
13747   else
13748     as_ls_L_option=
13749   fi
13750   as_test_x='
13751     eval sh -c '\''
13752       if test -d "$1"; then
13753         test -d "$1/.";
13754       else
13755         case $1 in #(
13756         -*)set "./$1";;
13757         esac;
13758         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13759         ???[sx]*):;;*)false;;esac;fi
13760     '\'' sh
13761   '
13762 fi
13763 as_executable_p=$as_test_x
13764
13765 # Sed expression to map a string onto a valid CPP name.
13766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13767
13768 # Sed expression to map a string onto a valid variable name.
13769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13770
13771
13772 exec 6>&1
13773 ## ----------------------------------- ##
13774 ## Main body of $CONFIG_STATUS script. ##
13775 ## ----------------------------------- ##
13776 _ASEOF
13777 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13778
13779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13780 # Save the log message, to keep $0 and so on meaningful, and to
13781 # report actual input values of CONFIG_FILES etc. instead of their
13782 # values after options handling.
13783 ac_log="
13784 This file was extended by $as_me, which was
13785 generated by GNU Autoconf 2.64.  Invocation command line was
13786
13787   CONFIG_FILES    = $CONFIG_FILES
13788   CONFIG_HEADERS  = $CONFIG_HEADERS
13789   CONFIG_LINKS    = $CONFIG_LINKS
13790   CONFIG_COMMANDS = $CONFIG_COMMANDS
13791   $ $0 $@
13792
13793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13794 "
13795
13796 _ACEOF
13797
13798 case $ac_config_files in *"
13799 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13800 esac
13801
13802
13803
13804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13805 # Files that config.status was made for.
13806 config_files="$ac_config_files"
13807
13808 _ACEOF
13809
13810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13811 ac_cs_usage="\
13812 \`$as_me' instantiates files and other configuration actions
13813 from templates according to the current configuration.  Unless the files
13814 and actions are specified as TAGs, all are instantiated by default.
13815
13816 Usage: $0 [OPTION]... [TAG]...
13817
13818   -h, --help       print this help, then exit
13819   -V, --version    print version number and configuration settings, then exit
13820   -q, --quiet, --silent
13821                    do not print progress messages
13822   -d, --debug      don't remove temporary files
13823       --recheck    update $as_me by reconfiguring in the same conditions
13824       --file=FILE[:TEMPLATE]
13825                    instantiate the configuration file FILE
13826
13827 Configuration files:
13828 $config_files
13829
13830 Report bugs to the package provider."
13831
13832 _ACEOF
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 ac_cs_version="\\
13835 config.status
13836 configured by $0, generated by GNU Autoconf 2.64,
13837   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13838
13839 Copyright (C) 2009 Free Software Foundation, Inc.
13840 This config.status script is free software; the Free Software Foundation
13841 gives unlimited permission to copy, distribute and modify it."
13842
13843 ac_pwd='$ac_pwd'
13844 srcdir='$srcdir'
13845 INSTALL='$INSTALL'
13846 test -n "\$AWK" || AWK=awk
13847 _ACEOF
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 # The default lists apply if the user does not specify any file.
13851 ac_need_defaults=:
13852 while test $# != 0
13853 do
13854   case $1 in
13855   --*=*)
13856     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13857     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13858     ac_shift=:
13859     ;;
13860   *)
13861     ac_option=$1
13862     ac_optarg=$2
13863     ac_shift=shift
13864     ;;
13865   esac
13866
13867   case $ac_option in
13868   # Handling of the options.
13869   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13870     ac_cs_recheck=: ;;
13871   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13872     $as_echo "$ac_cs_version"; exit ;;
13873   --debug | --debu | --deb | --de | --d | -d )
13874     debug=: ;;
13875   --file | --fil | --fi | --f )
13876     $ac_shift
13877     case $ac_optarg in
13878     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13879     esac
13880     as_fn_append CONFIG_FILES " '$ac_optarg'"
13881     ac_need_defaults=false;;
13882   --he | --h |  --help | --hel | -h )
13883     $as_echo "$ac_cs_usage"; exit ;;
13884   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13885   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13886     ac_cs_silent=: ;;
13887
13888   # This is an error.
13889   -*) as_fn_error "unrecognized option: \`$1'
13890 Try \`$0 --help' for more information." ;;
13891
13892   *) as_fn_append ac_config_targets " $1"
13893      ac_need_defaults=false ;;
13894
13895   esac
13896   shift
13897 done
13898
13899 ac_configure_extra_args=
13900
13901 if $ac_cs_silent; then
13902   exec 6>/dev/null
13903   ac_configure_extra_args="$ac_configure_extra_args --silent"
13904 fi
13905
13906 _ACEOF
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 if \$ac_cs_recheck; then
13909   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13910   shift
13911   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13912   CONFIG_SHELL='$SHELL'
13913   export CONFIG_SHELL
13914   exec "\$@"
13915 fi
13916
13917 _ACEOF
13918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13919 exec 5>>config.log
13920 {
13921   echo
13922   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13923 ## Running $as_me. ##
13924 _ASBOX
13925   $as_echo "$ac_log"
13926 } >&5
13927
13928 _ACEOF
13929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930 _ACEOF
13931
13932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13933
13934 # Handling of arguments.
13935 for ac_config_target in $ac_config_targets
13936 do
13937   case $ac_config_target in
13938     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13939
13940   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13941   esac
13942 done
13943
13944
13945 # If the user did not use the arguments to specify the items to instantiate,
13946 # then the envvar interface is used.  Set only those that are not.
13947 # We use the long form for the default assignment because of an extremely
13948 # bizarre bug on SunOS 4.1.3.
13949 if $ac_need_defaults; then
13950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13951 fi
13952
13953 # Have a temporary directory for convenience.  Make it in the build tree
13954 # simply because there is no reason against having it here, and in addition,
13955 # creating and moving files from /tmp can sometimes cause problems.
13956 # Hook for its removal unless debugging.
13957 # Note that there is a small window in which the directory will not be cleaned:
13958 # after its creation but before its name has been assigned to `$tmp'.
13959 $debug ||
13960 {
13961   tmp=
13962   trap 'exit_status=$?
13963   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13964 ' 0
13965   trap 'as_fn_exit 1' 1 2 13 15
13966 }
13967 # Create a (secure) tmp directory for tmp files.
13968
13969 {
13970   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13971   test -n "$tmp" && test -d "$tmp"
13972 }  ||
13973 {
13974   tmp=./conf$$-$RANDOM
13975   (umask 077 && mkdir "$tmp")
13976 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13977
13978 # Set up the scripts for CONFIG_FILES section.
13979 # No need to generate them if there are no CONFIG_FILES.
13980 # This happens for instance with `./config.status config.h'.
13981 if test -n "$CONFIG_FILES"; then
13982
13983 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13984   ac_cs_awk_getline=:
13985   ac_cs_awk_pipe_init=
13986   ac_cs_awk_read_file='
13987       while ((getline aline < (F[key])) > 0)
13988         print(aline)
13989       close(F[key])'
13990   ac_cs_awk_pipe_fini=
13991 else
13992   ac_cs_awk_getline=false
13993   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13994   ac_cs_awk_read_file='
13995       print "|#_!!_#|"
13996       print "cat " F[key] " &&"
13997       '$ac_cs_awk_pipe_init
13998   # The final `:' finishes the AND list.
13999   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14000 fi
14001 ac_cr=`echo X | tr X '\015'`
14002 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14003 # But we know of no other shell where ac_cr would be empty at this
14004 # point, so we can use a bashism as a fallback.
14005 if test "x$ac_cr" = x; then
14006   eval ac_cr=\$\'\\r\'
14007 fi
14008 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14009 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14010   ac_cs_awk_cr='\r'
14011 else
14012   ac_cs_awk_cr=$ac_cr
14013 fi
14014
14015 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14016 _ACEOF
14017
14018 # Create commands to substitute file output variables.
14019 {
14020   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14021   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14022   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14023   echo "_ACAWK" &&
14024   echo "_ACEOF"
14025 } >conf$$files.sh &&
14026 . ./conf$$files.sh ||
14027   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14028 rm -f conf$$files.sh
14029
14030 {
14031   echo "cat >conf$$subs.awk <<_ACEOF" &&
14032   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14033   echo "_ACEOF"
14034 } >conf$$subs.sh ||
14035   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14037 ac_delim='%!_!# '
14038 for ac_last_try in false false false false false :; do
14039   . ./conf$$subs.sh ||
14040     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14041
14042   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14043   if test $ac_delim_n = $ac_delim_num; then
14044     break
14045   elif $ac_last_try; then
14046     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14047   else
14048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14049   fi
14050 done
14051 rm -f conf$$subs.sh
14052
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14055 _ACEOF
14056 sed -n '
14057 h
14058 s/^/S["/; s/!.*/"]=/
14059 p
14060 g
14061 s/^[^!]*!//
14062 :repl
14063 t repl
14064 s/'"$ac_delim"'$//
14065 t delim
14066 :nl
14067 h
14068 s/\(.\{148\}\).*/\1/
14069 t more1
14070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14071 p
14072 n
14073 b repl
14074 :more1
14075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14076 p
14077 g
14078 s/.\{148\}//
14079 t nl
14080 :delim
14081 h
14082 s/\(.\{148\}\).*/\1/
14083 t more2
14084 s/["\\]/\\&/g; s/^/"/; s/$/"/
14085 p
14086 b
14087 :more2
14088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14089 p
14090 g
14091 s/.\{148\}//
14092 t delim
14093 ' <conf$$subs.awk | sed '
14094 /^[^""]/{
14095   N
14096   s/\n//
14097 }
14098 ' >>$CONFIG_STATUS || ac_write_fail=1
14099 rm -f conf$$subs.awk
14100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101 _ACAWK
14102 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14103   for (key in S) S_is_set[key] = 1
14104   FS = "\a"
14105   \$ac_cs_awk_pipe_init
14106 }
14107 {
14108   line = $ 0
14109   nfields = split(line, field, "@")
14110   substed = 0
14111   len = length(field[1])
14112   for (i = 2; i < nfields; i++) {
14113     key = field[i]
14114     keylen = length(key)
14115     if (S_is_set[key]) {
14116       value = S[key]
14117       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14118       len += length(value) + length(field[++i])
14119       substed = 1
14120     } else
14121       len += 1 + keylen
14122   }
14123   if (nfields == 3 && !substed) {
14124     key = field[2]
14125     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14126       \$ac_cs_awk_read_file
14127       next
14128     }
14129   }
14130   print line
14131 }
14132 \$ac_cs_awk_pipe_fini
14133 _ACAWK
14134 _ACEOF
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14137   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14138 else
14139   cat
14140 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14141   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14142 _ACEOF
14143
14144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14146 # trailing colons and then remove the whole line if VPATH becomes empty
14147 # (actually we leave an empty line to preserve line numbers).
14148 if test "x$srcdir" = x.; then
14149   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14150 s/:*\$(srcdir):*/:/
14151 s/:*\${srcdir}:*/:/
14152 s/:*@srcdir@:*/:/
14153 s/^\([^=]*=[     ]*\):*/\1/
14154 s/:*$//
14155 s/^[^=]*=[       ]*$//
14156 }'
14157 fi
14158
14159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160 fi # test -n "$CONFIG_FILES"
14161
14162
14163 eval set X "  :F $CONFIG_FILES      "
14164 shift
14165 for ac_tag
14166 do
14167   case $ac_tag in
14168   :[FHLC]) ac_mode=$ac_tag; continue;;
14169   esac
14170   case $ac_mode$ac_tag in
14171   :[FHL]*:*);;
14172   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14173   :[FH]-) ac_tag=-:-;;
14174   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14175   esac
14176   ac_save_IFS=$IFS
14177   IFS=:
14178   set x $ac_tag
14179   IFS=$ac_save_IFS
14180   shift
14181   ac_file=$1
14182   shift
14183
14184   case $ac_mode in
14185   :L) ac_source=$1;;
14186   :[FH])
14187     ac_file_inputs=
14188     for ac_f
14189     do
14190       case $ac_f in
14191       -) ac_f="$tmp/stdin";;
14192       *) # Look for the file first in the build tree, then in the source tree
14193          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14194          # because $ac_f cannot contain `:'.
14195          test -f "$ac_f" ||
14196            case $ac_f in
14197            [\\/$]*) false;;
14198            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14199            esac ||
14200            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14201       esac
14202       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14203       as_fn_append ac_file_inputs " '$ac_f'"
14204     done
14205
14206     # Let's still pretend it is `configure' which instantiates (i.e., don't
14207     # use $as_me), people would be surprised to read:
14208     #    /* config.h.  Generated by config.status.  */
14209     configure_input='Generated from '`
14210           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14211         `' by configure.'
14212     if test x"$ac_file" != x-; then
14213       configure_input="$ac_file.  $configure_input"
14214       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14215 $as_echo "$as_me: creating $ac_file" >&6;}
14216     fi
14217     # Neutralize special characters interpreted by sed in replacement strings.
14218     case $configure_input in #(
14219     *\&* | *\|* | *\\* )
14220        ac_sed_conf_input=`$as_echo "$configure_input" |
14221        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14222     *) ac_sed_conf_input=$configure_input;;
14223     esac
14224
14225     case $ac_tag in
14226     *:-:* | *:-) cat >"$tmp/stdin" \
14227       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14228     esac
14229     ;;
14230   esac
14231
14232   ac_dir=`$as_dirname -- "$ac_file" ||
14233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14234          X"$ac_file" : 'X\(//\)[^/]' \| \
14235          X"$ac_file" : 'X\(//\)$' \| \
14236          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14237 $as_echo X"$ac_file" |
14238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14239             s//\1/
14240             q
14241           }
14242           /^X\(\/\/\)[^/].*/{
14243             s//\1/
14244             q
14245           }
14246           /^X\(\/\/\)$/{
14247             s//\1/
14248             q
14249           }
14250           /^X\(\/\).*/{
14251             s//\1/
14252             q
14253           }
14254           s/.*/./; q'`
14255   as_dir="$ac_dir"; as_fn_mkdir_p
14256   ac_builddir=.
14257
14258 case "$ac_dir" in
14259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14260 *)
14261   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14262   # A ".." for each directory in $ac_dir_suffix.
14263   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14264   case $ac_top_builddir_sub in
14265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14267   esac ;;
14268 esac
14269 ac_abs_top_builddir=$ac_pwd
14270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14271 # for backward compatibility:
14272 ac_top_builddir=$ac_top_build_prefix
14273
14274 case $srcdir in
14275   .)  # We are building in place.
14276     ac_srcdir=.
14277     ac_top_srcdir=$ac_top_builddir_sub
14278     ac_abs_top_srcdir=$ac_pwd ;;
14279   [\\/]* | ?:[\\/]* )  # Absolute name.
14280     ac_srcdir=$srcdir$ac_dir_suffix;
14281     ac_top_srcdir=$srcdir
14282     ac_abs_top_srcdir=$srcdir ;;
14283   *) # Relative name.
14284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14285     ac_top_srcdir=$ac_top_build_prefix$srcdir
14286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14287 esac
14288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14289
14290
14291   case $ac_mode in
14292   :F)
14293   #
14294   # CONFIG_FILE
14295   #
14296
14297   case $INSTALL in
14298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14299   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14300   esac
14301 _ACEOF
14302
14303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304 # If the template does not know about datarootdir, expand it.
14305 # FIXME: This hack should be removed a few years after 2.60.
14306 ac_datarootdir_hack=; ac_datarootdir_seen=
14307 ac_sed_dataroot='
14308 /datarootdir/ {
14309   p
14310   q
14311 }
14312 /@datadir@/p
14313 /@docdir@/p
14314 /@infodir@/p
14315 /@localedir@/p
14316 /@mandir@/p'
14317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14318 *datarootdir*) ac_datarootdir_seen=yes;;
14319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14320   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14322 _ACEOF
14323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14324   ac_datarootdir_hack='
14325   s&@datadir@&$datadir&g
14326   s&@docdir@&$docdir&g
14327   s&@infodir@&$infodir&g
14328   s&@localedir@&$localedir&g
14329   s&@mandir@&$mandir&g
14330   s&\\\${datarootdir}&$datarootdir&g' ;;
14331 esac
14332 _ACEOF
14333
14334 # Neutralize VPATH when `$srcdir' = `.'.
14335 # Shell code in configure.ac might set extrasub.
14336 # FIXME: do we really want to maintain this feature?
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 ac_sed_extra="$ac_vpsub
14339 $extrasub
14340 _ACEOF
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14342 :t
14343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14344 s|@configure_input@|$ac_sed_conf_input|;t t
14345 s&@top_builddir@&$ac_top_builddir_sub&;t t
14346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14347 s&@srcdir@&$ac_srcdir&;t t
14348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14349 s&@top_srcdir@&$ac_top_srcdir&;t t
14350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14351 s&@builddir@&$ac_builddir&;t t
14352 s&@abs_builddir@&$ac_abs_builddir&;t t
14353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14354 s&@INSTALL@&$ac_INSTALL&;t t
14355 $ac_datarootdir_hack
14356 "
14357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14358 if $ac_cs_awk_getline; then
14359   $AWK -f "$tmp/subs.awk"
14360 else
14361   $AWK -f "$tmp/subs.awk" | $SHELL
14362 fi >$tmp/out \
14363   || as_fn_error "could not create $ac_file" "$LINENO" 5
14364
14365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14366   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14367   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14369 which seems to be undefined.  Please make sure it is defined." >&5
14370 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14371 which seems to be undefined.  Please make sure it is defined." >&2;}
14372
14373   rm -f "$tmp/stdin"
14374   case $ac_file in
14375   -) cat "$tmp/out" && rm -f "$tmp/out";;
14376   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14377   esac \
14378   || as_fn_error "could not create $ac_file" "$LINENO" 5
14379  ;;
14380
14381
14382
14383   esac
14384
14385 done # for ac_tag
14386
14387
14388 as_fn_exit 0
14389 _ACEOF
14390 ac_clean_files=$ac_clean_files_save
14391
14392 test $ac_write_fail = 0 ||
14393   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14394
14395
14396 # configure is writing to config.log, and then calls config.status.
14397 # config.status does its own redirection, appending to config.log.
14398 # Unfortunately, on DOS this fails, as config.log is still kept open
14399 # by configure, so config.status won't be able to write to it; its
14400 # output is simply discarded.  So we exec the FD to /dev/null,
14401 # effectively closing config.log, so it can be properly (re)opened and
14402 # appended to by config.status.  When coming back to configure, we
14403 # need to make the FD available again.
14404 if test "$no_create" != yes; then
14405   ac_cs_success=:
14406   ac_config_status_args=
14407   test "$silent" = yes &&
14408     ac_config_status_args="$ac_config_status_args --quiet"
14409   exec 5>/dev/null
14410   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14411   exec 5>>config.log
14412   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14413   # would make configure fail if this is the last instruction.
14414   $ac_cs_success || as_fn_exit $?
14415 fi
14416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14419 fi
14420