OSDN Git Service

e681a7a74399b86488637b3324c0830a664e9d7f
[pf3gnuchains/gcc-fork.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GFORTRAN_FOR_TARGET
582 GCJ_FOR_TARGET
583 GCC_FOR_TARGET
584 CXX_FOR_TARGET
585 CC_FOR_TARGET
586 OBJDUMP
587 OBJCOPY
588 WINDMC
589 WINDRES
590 STRIP
591 RANLIB
592 NM
593 LIPO
594 LD
595 DLLTOOL
596 AS
597 AR
598 RUNTEST
599 EXPECT
600 MAKEINFO
601 FLEX
602 LEX
603 M4
604 BISON
605 YACC
606 config_shell
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GFORTRAN_FOR_BUILD
614 GCJ_FOR_BUILD
615 DLLTOOL_FOR_BUILD
616 CXX_FOR_BUILD
617 CXXFLAGS_FOR_BUILD
618 CFLAGS_FOR_BUILD
619 CC_FOR_BUILD
620 AS_FOR_BUILD
621 AR_FOR_BUILD
622 target_configdirs
623 configdirs
624 build_configdirs
625 INSTALL_GDB_TK
626 GDB_TK
627 CONFIGURE_GDB_TK
628 build_tooldir
629 tooldir
630 GCC_SHLIB_SUBDIR
631 RPATH_ENVVAR
632 target_configargs
633 host_configargs
634 build_configargs
635 BUILD_CONFIG
636 CXXFLAGS_FOR_TARGET
637 CFLAGS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
640 stage1_languages
641 extra_host_libiberty_configure_flags
642 clooginc
643 clooglibs
644 pplinc
645 ppllibs
646 poststage1_ldflags
647 poststage1_libs
648 stage1_libs
649 stage1_ldflags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
653 gmpinc
654 gmplibs
655 do_compare
656 GNATMAKE
657 GNATBIND
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 target_subdir
669 host_subdir
670 build_subdir
671 build_libsubdir
672 AWK
673 SED
674 LN_S
675 LN
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 target_noncanonical
688 host_noncanonical
689 build_noncanonical
690 build_os
691 build_vendor
692 build_cpu
693 build
694 TOPLEVEL_CONFIGURE_ARGUMENTS
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files='serialization_dependencies
734 host_makefile_frag
735 target_makefile_frag
736 alphaieee_frag
737 ospace_frag'
738 ac_user_opts='
739 enable_option_checking
740 with_build_libsubdir
741 enable_gold
742 enable_libada
743 enable_libssp
744 enable_build_with_cxx
745 with_mpc
746 with_mpc_include
747 with_mpc_lib
748 with_mpfr_dir
749 with_mpfr
750 with_mpfr_include
751 with_mpfr_lib
752 with_gmp_dir
753 with_gmp
754 with_gmp_include
755 with_gmp_lib
756 with_host_libstdcxx
757 with_stage1_ldflags
758 with_stage1_libs
759 with_boot_libs
760 with_boot_ldflags
761 with_ppl
762 with_ppl_include
763 with_ppl_lib
764 enable_ppl_version_check
765 with_cloog
766 with_cloog_include
767 with_cloog_lib
768 enable_cloog_version_check
769 enable_lto
770 enable_stage1_languages
771 enable_objc_gc
772 with_build_sysroot
773 with_debug_prefix_map
774 enable_bootstrap
775 with_build_config
776 enable_serial_configure
777 with_build_time_tools
778 enable_maintainer_mode
779 enable_stage1_checking
780 enable_werror
781 '
782       ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CXX
791 CXXFLAGS
792 CCC
793 build_configargs
794 host_configargs
795 target_configargs
796 AR
797 AS
798 DLLTOOL
799 LD
800 LIPO
801 NM
802 RANLIB
803 STRIP
804 WINDRES
805 WINDMC
806 OBJCOPY
807 OBJDUMP
808 CC_FOR_TARGET
809 CXX_FOR_TARGET
810 GCC_FOR_TARGET
811 GCJ_FOR_TARGET
812 GFORTRAN_FOR_TARGET
813 AR_FOR_TARGET
814 AS_FOR_TARGET
815 DLLTOOL_FOR_TARGET
816 LD_FOR_TARGET
817 LIPO_FOR_TARGET
818 NM_FOR_TARGET
819 OBJDUMP_FOR_TARGET
820 RANLIB_FOR_TARGET
821 STRIP_FOR_TARGET
822 WINDRES_FOR_TARGET
823 WINDMC_FOR_TARGET'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878   # If the previous option needs an argument, assign it.
879   if test -n "$ac_prev"; then
880     eval $ac_prev=\$ac_option
881     ac_prev=
882     continue
883   fi
884
885   case $ac_option in
886   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=\$ac_optarg ;;
1173
1174   -without-* | --without-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     case $ac_envvar in #(
1216       '' | [0-9]* | *[!_$as_cr_alnum]* )
1217       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218     esac
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   as_fn_error "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239   case $enable_option_checking in
1240     no) ;;
1241     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243   esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   # Remove trailing slashes.
1254   case $ac_val in
1255     */ )
1256       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257       eval $ac_var=\$ac_val;;
1258   esac
1259   # Be sure to have absolute directory names.
1260   case $ac_val in
1261     [\\/$]* | ?:[\\/]* )  continue;;
1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263   esac
1264   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276   if test "x$build_alias" = x; then
1277     cross_compiling=maybe
1278     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279     If a cross compiler is detected then cross compile mode will be used." >&2
1280   elif test "x$build_alias" != "x$host_alias"; then
1281     cross_compiling=yes
1282   fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294   as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296   as_fn_error "pwd does not report name of working directory"
1297
1298
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301   ac_srcdir_defaulted=yes
1302   # Try the directory containing this script, then the parent directory.
1303   ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305          X"$as_myself" : 'X\(//\)[^/]' \| \
1306          X"$as_myself" : 'X\(//\)$' \| \
1307          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)[^/].*/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\).*/{
1322             s//\1/
1323             q
1324           }
1325           s/.*/./; q'`
1326   srcdir=$ac_confdir
1327   if test ! -r "$srcdir/$ac_unique_file"; then
1328     srcdir=..
1329   fi
1330 else
1331   ac_srcdir_defaulted=no
1332 fi
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336 fi
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340         pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343   srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 case $srcdir in
1352   *" "*)
1353     as_fn_error "path to source, $srcdir, contains spaces"
1354     ;;
1355 esac
1356 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1357
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 Program names:
1430   --program-prefix=PREFIX            prepend PREFIX to installed program names
1431   --program-suffix=SUFFIX            append SUFFIX to installed program names
1432   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434 System types:
1435   --build=BUILD     configure for building on BUILD [guessed]
1436   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437   --target=TARGET   configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-gold[=ARG]     build gold [ARG={both}[/{gold,ld}]]
1450   --enable-libada         build libada directory
1451   --enable-libssp         build libssp directory
1452   --enable-build-with-cxx build with C++ compiler instead of C compiler
1453   --disable-ppl-version-check    disable check for PPL version
1454   --disable-cloog-version-check
1455                           disable check for CLooG version
1456   --enable-lto            enable link time optimization support
1457   --enable-stage1-languages[=all]   choose additional languages to build during
1458                           stage1.  Mostly useful for compiler development.
1459   --enable-objc-gc        enable use of Boehm's garbage collector with the
1460                           GNU Objective-C runtime
1461   --enable-bootstrap      enable bootstrapping [yes if native build]
1462   --enable-serial-[{host,target,build}-]configure
1463                           force sequential configuration of
1464                           sub-packages for the host, target or build
1465                           machine, or all sub-packages
1466   --enable-maintainer-mode enable make rules and dependencies not useful
1467                           (and sometimes confusing) to the casual installer
1468   --enable-stage1-checking[=all]   choose additional checking for stage1
1469                           of the compiler
1470   --enable-werror         enable -Werror in bootstrap stage2 and later
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1476   --with-mpc=PATH        specify prefix directory for installed MPC package.
1477                           Equivalent to --with-mpc-include=PATH/include
1478                           plus --with-mpc-lib=PATH/lib
1479   --with-mpc-include=PATH
1480                           specify directory for installed MPC include files
1481   --with-mpc-lib=PATH    specify directory for the installed MPC library
1482   --with-mpfr-dir=PATH    this option has been REMOVED
1483   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1484                           Equivalent to --with-mpfr-include=PATH/include
1485                           plus --with-mpfr-lib=PATH/lib
1486   --with-mpfr-include=PATH
1487                           specify directory for installed MPFR include files
1488   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1489   --with-gmp-dir=PATH     this option has been REMOVED
1490   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1491                           Equivalent to --with-gmp-include=PATH/include
1492                           plus --with-gmp-lib=PATH/lib
1493   --with-gmp-include=PATH specify directory for installed GMP include files
1494   --with-gmp-lib=PATH     specify directory for the installed GMP library
1495   --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1496                           when linking with PPL
1497   --with-stage1-ldflags=FLAGS Linker flags for stage1
1498   -with-stage1-libs=LIBS      Libraries for stage1
1499   --with-boot-libs=LIBS     Libraries for stage2 and later
1500   --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1501   --with-ppl=PATH         Specify prefix directory for the installed PPL package
1502                           Equivalent to --with-ppl-include=PATH/include
1503                           plus --with-ppl-lib=PATH/lib
1504   --with-ppl-include=PATH Specify directory for installed PPL include files
1505   --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1506   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1507                           package. Equivalent to
1508                           --with-cloog-include=PATH/include plus
1509                           --with-cloog-lib=PATH/lib
1510   --with-cloog-include=PATH
1511                           Specify directory for installed CLooG include files
1512   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1513                           library
1514   --with-build-sysroot=SYSROOT
1515                           use sysroot as the system root during the build
1516   --with-debug-prefix-map='A=B C=D ...'
1517                              map A to B, C to D ... in debug information
1518 --with-build-config='NAME NAME2...'
1519                           Use config/NAME.mk build configuration
1520   --with-build-time-tools=PATH
1521                           use given path to find target tools during the build
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CXX         C++ compiler command
1532   CXXFLAGS    C++ compiler flags
1533   build_configargs
1534               additional configure arguments for build directories
1535   host_configargs
1536               additional configure arguments for host directories
1537   target_configargs
1538               additional configure arguments for target directories
1539   AR          AR for the host
1540   AS          AS for the host
1541   DLLTOOL     DLLTOOL for the host
1542   LD          LD for the host
1543   LIPO        LIPO for the host
1544   NM          NM for the host
1545   RANLIB      RANLIB for the host
1546   STRIP       STRIP for the host
1547   WINDRES     WINDRES for the host
1548   WINDMC      WINDMC for the host
1549   OBJCOPY     OBJCOPY for the host
1550   OBJDUMP     OBJDUMP for the host
1551   CC_FOR_TARGET
1552               CC for the target
1553   CXX_FOR_TARGET
1554               CXX for the target
1555   GCC_FOR_TARGET
1556               GCC for the target
1557   GCJ_FOR_TARGET
1558               GCJ for the target
1559   GFORTRAN_FOR_TARGET
1560               GFORTRAN for the target
1561   AR_FOR_TARGET
1562               AR for the target
1563   AS_FOR_TARGET
1564               AS for the target
1565   DLLTOOL_FOR_TARGET
1566               DLLTOOL for the target
1567   LD_FOR_TARGET
1568               LD for the target
1569   LIPO_FOR_TARGET
1570               LIPO for the target
1571   NM_FOR_TARGET
1572               NM for the target
1573   OBJDUMP_FOR_TARGET
1574               OBJDUMP for the target
1575   RANLIB_FOR_TARGET
1576               RANLIB for the target
1577   STRIP_FOR_TARGET
1578               STRIP for the target
1579   WINDRES_FOR_TARGET
1580               WINDRES for the target
1581   WINDMC_FOR_TARGET
1582               WINDMC for the target
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to the package provider.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593   # If there are subdirs, report their specific --help.
1594   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595     test -d "$ac_dir" ||
1596       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597       continue
1598     ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604   # A ".." for each directory in $ac_dir_suffix.
1605   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606   case $ac_top_builddir_sub in
1607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609   esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617   .)  # We are building in place.
1618     ac_srcdir=.
1619     ac_top_srcdir=$ac_top_builddir_sub
1620     ac_abs_top_srcdir=$ac_pwd ;;
1621   [\\/]* | ?:[\\/]* )  # Absolute name.
1622     ac_srcdir=$srcdir$ac_dir_suffix;
1623     ac_top_srcdir=$srcdir
1624     ac_abs_top_srcdir=$srcdir ;;
1625   *) # Relative name.
1626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627     ac_top_srcdir=$ac_top_build_prefix$srcdir
1628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632     cd "$ac_dir" || { ac_status=$?; continue; }
1633     # Check for guested configure.
1634     if test -f "$ac_srcdir/configure.gnu"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637     elif test -f "$ac_srcdir/configure"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure" --help=recursive
1640     else
1641       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642     fi || ac_status=$?
1643     cd "$ac_pwd" || { ac_status=$?; break; }
1644   done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649   cat <<\_ACEOF
1650 configure
1651 generated by GNU Autoconf 2.64
1652
1653 Copyright (C) 2009 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657   exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   rm -f conftest.$ac_objext
1671   if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_compile") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } && {
1687          test -z "$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        } && test -s conftest.$ac_objext; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698   return $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_cxx_try_compile LINENO
1703 # ----------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_cxx_try_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   rm -f conftest.$ac_objext
1709   if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712   *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716   (eval "$ac_compile") 2>conftest.err
1717   ac_status=$?
1718   if test -s conftest.err; then
1719     grep -v '^ *+' conftest.err >conftest.er1
1720     cat conftest.er1 >&5
1721     mv -f conftest.er1 conftest.err
1722   fi
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } && {
1725          test -z "$ac_cxx_werror_flag" ||
1726          test ! -s conftest.err
1727        } && test -s conftest.$ac_objext; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733         ac_retval=1
1734 fi
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736   return $ac_retval
1737
1738 } # ac_fn_cxx_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   rm -f conftest.$ac_objext conftest$ac_exeext
1747   if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750   *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754   (eval "$ac_link") 2>conftest.err
1755   ac_status=$?
1756   if test -s conftest.err; then
1757     grep -v '^ *+' conftest.err >conftest.er1
1758     cat conftest.er1 >&5
1759     mv -f conftest.er1 conftest.err
1760   fi
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; } && {
1763          test -z "$ac_c_werror_flag" ||
1764          test ! -s conftest.err
1765        } && test -s conftest$ac_exeext && {
1766          test "$cross_compiling" = yes ||
1767          $as_test_x conftest$ac_exeext
1768        }; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774         ac_retval=1
1775 fi
1776   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778   # interfere with the next link command; also delete a directory that is
1779   # left behind by Apple's compiler.  We do this before executing the actions.
1780   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782   return $ac_retval
1783
1784 } # ac_fn_c_try_link
1785 cat >config.log <<_ACEOF
1786 This file contains any messages produced by compilers while
1787 running configure, to aid debugging if configure makes a mistake.
1788
1789 It was created by $as_me, which was
1790 generated by GNU Autoconf 2.64.  Invocation command line was
1791
1792   $ $0 $@
1793
1794 _ACEOF
1795 exec 5>>config.log
1796 {
1797 cat <<_ASUNAME
1798 ## --------- ##
1799 ## Platform. ##
1800 ## --------- ##
1801
1802 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
1808 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1810
1811 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1812 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1813 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1815 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1816 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1817 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1818
1819 _ASUNAME
1820
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
1825   test -z "$as_dir" && as_dir=.
1826     $as_echo "PATH: $as_dir"
1827   done
1828 IFS=$as_save_IFS
1829
1830 } >&5
1831
1832 cat >&5 <<_ACEOF
1833
1834
1835 ## ----------- ##
1836 ## Core tests. ##
1837 ## ----------- ##
1838
1839 _ACEOF
1840
1841
1842 # Keep a trace of the command line.
1843 # Strip out --no-create and --no-recursion so they do not pile up.
1844 # Strip out --silent because we don't want to record it for future runs.
1845 # Also quote any args containing shell meta-characters.
1846 # Make two passes to allow for proper duplicate-argument suppression.
1847 ac_configure_args=
1848 ac_configure_args0=
1849 ac_configure_args1=
1850 ac_must_keep_next=false
1851 for ac_pass in 1 2
1852 do
1853   for ac_arg
1854   do
1855     case $ac_arg in
1856     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858     | -silent | --silent | --silen | --sile | --sil)
1859       continue ;;
1860     *\'*)
1861       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862     esac
1863     case $ac_pass in
1864     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1865     2)
1866       as_fn_append ac_configure_args1 " '$ac_arg'"
1867       if test $ac_must_keep_next = true; then
1868         ac_must_keep_next=false # Got value, back to normal.
1869       else
1870         case $ac_arg in
1871           *=* | --config-cache | -C | -disable-* | --disable-* \
1872           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874           | -with-* | --with-* | -without-* | --without-* | --x)
1875             case "$ac_configure_args0 " in
1876               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877             esac
1878             ;;
1879           -* ) ac_must_keep_next=true ;;
1880         esac
1881       fi
1882       as_fn_append ac_configure_args " '$ac_arg'"
1883       ;;
1884     esac
1885   done
1886 done
1887 { ac_configure_args0=; unset ac_configure_args0;}
1888 { ac_configure_args1=; unset ac_configure_args1;}
1889
1890 # When interrupted or exit'd, cleanup temporary files, and complete
1891 # config.log.  We remove comments because anyway the quotes in there
1892 # would cause problems or look ugly.
1893 # WARNING: Use '\'' to represent an apostrophe within the trap.
1894 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895 trap 'exit_status=$?
1896   # Save into config.log some information that might help in debugging.
1897   {
1898     echo
1899
1900     cat <<\_ASBOX
1901 ## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##
1904 _ASBOX
1905     echo
1906     # The following way of writing the cache mishandles newlines in values,
1907 (
1908   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909     eval ac_val=\$$ac_var
1910     case $ac_val in #(
1911     *${as_nl}*)
1912       case $ac_var in #(
1913       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915       esac
1916       case $ac_var in #(
1917       _ | IFS | as_nl) ;; #(
1918       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919       *) { eval $ac_var=; unset $ac_var;} ;;
1920       esac ;;
1921     esac
1922   done
1923   (set) 2>&1 |
1924     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925     *${as_nl}ac_space=\ *)
1926       sed -n \
1927         "s/'\''/'\''\\\\'\'''\''/g;
1928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929       ;; #(
1930     *)
1931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932       ;;
1933     esac |
1934     sort
1935 )
1936     echo
1937
1938     cat <<\_ASBOX
1939 ## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##
1942 _ASBOX
1943     echo
1944     for ac_var in $ac_subst_vars
1945     do
1946       eval ac_val=\$$ac_var
1947       case $ac_val in
1948       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949       esac
1950       $as_echo "$ac_var='\''$ac_val'\''"
1951     done | sort
1952     echo
1953
1954     if test -n "$ac_subst_files"; then
1955       cat <<\_ASBOX
1956 ## ------------------- ##
1957 ## File substitutions. ##
1958 ## ------------------- ##
1959 _ASBOX
1960       echo
1961       for ac_var in $ac_subst_files
1962       do
1963         eval ac_val=\$$ac_var
1964         case $ac_val in
1965         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966         esac
1967         $as_echo "$ac_var='\''$ac_val'\''"
1968       done | sort
1969       echo
1970     fi
1971
1972     if test -s confdefs.h; then
1973       cat <<\_ASBOX
1974 ## ----------- ##
1975 ## confdefs.h. ##
1976 ## ----------- ##
1977 _ASBOX
1978       echo
1979       cat confdefs.h
1980       echo
1981     fi
1982     test "$ac_signal" != 0 &&
1983       $as_echo "$as_me: caught signal $ac_signal"
1984     $as_echo "$as_me: exit $exit_status"
1985   } >&5
1986   rm -f core *.core core.conftest.* &&
1987     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988     exit $exit_status
1989 ' 0
1990 for ac_signal in 1 2 13 15; do
1991   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992 done
1993 ac_signal=0
1994
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1997
1998 $as_echo "/* confdefs.h */" > confdefs.h
1999
2000 # Predefined preprocessor variables.
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_NAME "$PACKAGE_NAME"
2004 _ACEOF
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 _ACEOF
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_STRING "$PACKAGE_STRING"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_URL "$PACKAGE_URL"
2024 _ACEOF
2025
2026
2027 # Let the site file select an alternate cache file if it wants to.
2028 # Prefer an explicitly selected file to automatically selected ones.
2029 ac_site_file1=NONE
2030 ac_site_file2=NONE
2031 if test -n "$CONFIG_SITE"; then
2032   ac_site_file1=$CONFIG_SITE
2033 elif test "x$prefix" != xNONE; then
2034   ac_site_file1=$prefix/share/config.site
2035   ac_site_file2=$prefix/etc/config.site
2036 else
2037   ac_site_file1=$ac_default_prefix/share/config.site
2038   ac_site_file2=$ac_default_prefix/etc/config.site
2039 fi
2040 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041 do
2042   test "x$ac_site_file" = xNONE && continue
2043   if test -r "$ac_site_file"; then
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046     sed 's/^/| /' "$ac_site_file" >&5
2047     . "$ac_site_file"
2048   fi
2049 done
2050
2051 if test -r "$cache_file"; then
2052   # Some versions of bash will fail to source /dev/null (special
2053   # files actually), so we avoid doing that.
2054   if test -f "$cache_file"; then
2055     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 $as_echo "$as_me: loading cache $cache_file" >&6;}
2057     case $cache_file in
2058       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059       *)                      . "./$cache_file";;
2060     esac
2061   fi
2062 else
2063   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 $as_echo "$as_me: creating cache $cache_file" >&6;}
2065   >$cache_file
2066 fi
2067
2068 # Check that the precious variables saved in the cache have kept the same
2069 # value.
2070 ac_cache_corrupted=false
2071 for ac_var in $ac_precious_vars; do
2072   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073   eval ac_new_set=\$ac_env_${ac_var}_set
2074   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075   eval ac_new_val=\$ac_env_${ac_var}_value
2076   case $ac_old_set,$ac_new_set in
2077     set,)
2078       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080       ac_cache_corrupted=: ;;
2081     ,set)
2082       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084       ac_cache_corrupted=: ;;
2085     ,);;
2086     *)
2087       if test "x$ac_old_val" != "x$ac_new_val"; then
2088         # differences in whitespace do not lead to failure.
2089         ac_old_val_w=`echo x $ac_old_val`
2090         ac_new_val_w=`echo x $ac_new_val`
2091         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094           ac_cache_corrupted=:
2095         else
2096           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098           eval $ac_var=\$ac_old_val
2099         fi
2100         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2101 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2102         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2103 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2104       fi;;
2105   esac
2106   # Pass precious variables to config.status.
2107   if test "$ac_new_set" = set; then
2108     case $ac_new_val in
2109     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110     *) ac_arg=$ac_var=$ac_new_val ;;
2111     esac
2112     case " $ac_configure_args " in
2113       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2114       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115     esac
2116   fi
2117 done
2118 if $ac_cache_corrupted; then
2119   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124 fi
2125 ## -------------------- ##
2126 ## Main body of script. ##
2127 ## -------------------- ##
2128
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143 progname=$0
2144 # if PWD already has a value, it is probably wrong.
2145 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2146
2147 # Export original configure arguments for use by sub-configures.
2148 # Quote arguments with shell meta charatcers.
2149 TOPLEVEL_CONFIGURE_ARGUMENTS=
2150 set -- "$progname" "$@"
2151 for ac_arg
2152 do
2153   case "$ac_arg" in
2154   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2155     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2156     # if the argument is of the form -foo=baz, quote the baz part only
2157     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2158   *) ;;
2159   esac
2160   # Add the quoted argument to the list.
2161   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2162 done
2163 if test "$silent" = yes; then
2164   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2165 fi
2166 # Remove the initial space we just introduced and, as these will be
2167 # expanded by make, quote '$'.
2168 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2169
2170
2171 # Find the build, host, and target systems.
2172 ac_aux_dir=
2173 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2174   for ac_t in install-sh install.sh shtool; do
2175     if test -f "$ac_dir/$ac_t"; then
2176       ac_aux_dir=$ac_dir
2177       ac_install_sh="$ac_aux_dir/$ac_t -c"
2178       break 2
2179     fi
2180   done
2181 done
2182 if test -z "$ac_aux_dir"; then
2183   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2184 fi
2185
2186 # These three variables are undocumented and unsupported,
2187 # and are intended to be withdrawn in a future Autoconf release.
2188 # They can cause serious problems if a builder's source tree is in a directory
2189 # whose full name contains unusual characters.
2190 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2191 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2192 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2193
2194
2195 # Make sure we can run config.sub.
2196 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2197   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2198
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2200 $as_echo_n "checking build system type... " >&6; }
2201 if test "${ac_cv_build+set}" = set; then :
2202   $as_echo_n "(cached) " >&6
2203 else
2204   ac_build_alias=$build_alias
2205 test "x$ac_build_alias" = x &&
2206   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2207 test "x$ac_build_alias" = x &&
2208   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2210   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2211
2212 fi
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2214 $as_echo "$ac_cv_build" >&6; }
2215 case $ac_cv_build in
2216 *-*-*) ;;
2217 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2218 esac
2219 build=$ac_cv_build
2220 ac_save_IFS=$IFS; IFS='-'
2221 set x $ac_cv_build
2222 shift
2223 build_cpu=$1
2224 build_vendor=$2
2225 shift; shift
2226 # Remember, the first character of IFS is used to create $*,
2227 # except with old shells:
2228 build_os=$*
2229 IFS=$ac_save_IFS
2230 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2231
2232
2233  case ${build_alias} in
2234   "") build_noncanonical=${build} ;;
2235   *) build_noncanonical=${build_alias} ;;
2236 esac
2237
2238
2239
2240  case ${host_alias} in
2241   "") host_noncanonical=${build_noncanonical} ;;
2242   *) host_noncanonical=${host_alias} ;;
2243 esac
2244
2245
2246
2247  case ${target_alias} in
2248   "") target_noncanonical=${host_noncanonical} ;;
2249   *) target_noncanonical=${target_alias} ;;
2250 esac
2251
2252
2253
2254
2255 test "$host_noncanonical" = "$target_noncanonical" &&
2256   test "$program_prefix$program_suffix$program_transform_name" = \
2257     NONENONEs,x,x, &&
2258   program_transform_name=s,y,y,
2259
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2261 $as_echo_n "checking host system type... " >&6; }
2262 if test "${ac_cv_host+set}" = set; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   if test "x$host_alias" = x; then
2266   ac_cv_host=$ac_cv_build
2267 else
2268   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2269     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2270 fi
2271
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2274 $as_echo "$ac_cv_host" >&6; }
2275 case $ac_cv_host in
2276 *-*-*) ;;
2277 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2278 esac
2279 host=$ac_cv_host
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_host
2282 shift
2283 host_cpu=$1
2284 host_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 host_os=$*
2289 IFS=$ac_save_IFS
2290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2291
2292
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2294 $as_echo_n "checking target system type... " >&6; }
2295 if test "${ac_cv_target+set}" = set; then :
2296   $as_echo_n "(cached) " >&6
2297 else
2298   if test "x$target_alias" = x; then
2299   ac_cv_target=$ac_cv_host
2300 else
2301   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2302     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2303 fi
2304
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2307 $as_echo "$ac_cv_target" >&6; }
2308 case $ac_cv_target in
2309 *-*-*) ;;
2310 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2311 esac
2312 target=$ac_cv_target
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_target
2315 shift
2316 target_cpu=$1
2317 target_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 target_os=$*
2322 IFS=$ac_save_IFS
2323 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 # The aliases save the names the user supplied, while $host etc.
2327 # will get canonicalized.
2328 test -n "$target_alias" &&
2329   test "$program_prefix$program_suffix$program_transform_name" = \
2330     NONENONEs,x,x, &&
2331   program_prefix=${target_alias}-
2332
2333 test "$program_prefix" != NONE &&
2334   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2335 # Use a double $ so make ignores it.
2336 test "$program_suffix" != NONE &&
2337   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2338 # Double any \ or $.
2339 # By default was `s,x,x', remove it if useless.
2340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2342
2343
2344
2345 # Get 'install' or 'install-sh' and its variants.
2346 # Find a good install program.  We prefer a C program (faster),
2347 # so one script is as good as another.  But avoid the broken or
2348 # incompatible versions:
2349 # SysV /etc/install, /usr/sbin/install
2350 # SunOS /usr/etc/install
2351 # IRIX /sbin/install
2352 # AIX /bin/install
2353 # AmigaOS /C/install, which installs bootblocks on floppy discs
2354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2357 # OS/2's system install, which has a completely different semantic
2358 # ./install, which can be erroneously created by make from ./install.sh.
2359 # Reject install programs that cannot install multiple files.
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2362 if test -z "$INSTALL"; then
2363 if test "${ac_cv_path_install+set}" = set; then :
2364   $as_echo_n "(cached) " >&6
2365 else
2366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371     # Account for people who put trailing slashes in PATH elements.
2372 case $as_dir/ in #((
2373   ./ | .// | /[cC]/* | \
2374   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2375   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2376   /usr/ucb/* ) ;;
2377   *)
2378     # OSF1 and SCO ODT 3.0 have their own names for install.
2379     # Don't use installbsd from OSF since it installs stuff as root
2380     # by default.
2381     for ac_prog in ginstall scoinst install; do
2382       for ac_exec_ext in '' $ac_executable_extensions; do
2383         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2384           if test $ac_prog = install &&
2385             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386             # AIX install.  It has an incompatible calling convention.
2387             :
2388           elif test $ac_prog = install &&
2389             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390             # program-specific install script used by HP pwplus--don't use.
2391             :
2392           else
2393             rm -rf conftest.one conftest.two conftest.dir
2394             echo one > conftest.one
2395             echo two > conftest.two
2396             mkdir conftest.dir
2397             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2398               test -s conftest.one && test -s conftest.two &&
2399               test -s conftest.dir/conftest.one &&
2400               test -s conftest.dir/conftest.two
2401             then
2402               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2403               break 3
2404             fi
2405           fi
2406         fi
2407       done
2408     done
2409     ;;
2410 esac
2411
2412   done
2413 IFS=$as_save_IFS
2414
2415 rm -rf conftest.one conftest.two conftest.dir
2416
2417 fi
2418   if test "${ac_cv_path_install+set}" = set; then
2419     INSTALL=$ac_cv_path_install
2420   else
2421     # As a last resort, use the slow shell script.  Don't cache a
2422     # value for INSTALL within a source directory, because that will
2423     # break other packages using the cache if that directory is
2424     # removed, or if the value is a relative name.
2425     INSTALL=$ac_install_sh
2426   fi
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2429 $as_echo "$INSTALL" >&6; }
2430
2431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2432 # It thinks the first close brace ends the variable substitution.
2433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2434
2435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2436
2437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2440 $as_echo_n "checking whether ln works... " >&6; }
2441 if test "${acx_cv_prog_LN+set}" = set; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   rm -f conftestdata_t
2445 echo >conftestdata_f
2446 if ln conftestdata_f conftestdata_t 2>/dev/null
2447 then
2448   acx_cv_prog_LN=ln
2449 else
2450   acx_cv_prog_LN=no
2451 fi
2452 rm -f conftestdata_f conftestdata_t
2453
2454 fi
2455 if test $acx_cv_prog_LN = no; then
2456   LN="cp"
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2458 $as_echo "no, using $LN" >&6; }
2459 else
2460   LN="$acx_cv_prog_LN"
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462 $as_echo "yes" >&6; }
2463 fi
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2466 $as_echo_n "checking whether ln -s works... " >&6; }
2467 LN_S=$as_ln_s
2468 if test "$LN_S" = "ln -s"; then
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2471 else
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2473 $as_echo "no, using $LN_S" >&6; }
2474 fi
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2478 if test "${ac_cv_path_SED+set}" = set; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2482      for ac_i in 1 2 3 4 5 6 7; do
2483        ac_script="$ac_script$as_nl$ac_script"
2484      done
2485      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2486      { ac_script=; unset ac_script;}
2487      if test -z "$SED"; then
2488   ac_path_SED_found=false
2489   # Loop through the user's path and test for each of PROGNAME-LIST
2490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     for ac_prog in sed gsed; do
2496     for ac_exec_ext in '' $ac_executable_extensions; do
2497       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2498       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2499 # Check for GNU ac_path_SED and select it if it is found.
2500   # Check for GNU $ac_path_SED
2501 case `"$ac_path_SED" --version 2>&1` in
2502 *GNU*)
2503   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2504 *)
2505   ac_count=0
2506   $as_echo_n 0123456789 >"conftest.in"
2507   while :
2508   do
2509     cat "conftest.in" "conftest.in" >"conftest.tmp"
2510     mv "conftest.tmp" "conftest.in"
2511     cp "conftest.in" "conftest.nl"
2512     $as_echo '' >> "conftest.nl"
2513     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2514     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2515     as_fn_arith $ac_count + 1 && ac_count=$as_val
2516     if test $ac_count -gt ${ac_path_SED_max-0}; then
2517       # Best one so far, save it but keep looking for a better one
2518       ac_cv_path_SED="$ac_path_SED"
2519       ac_path_SED_max=$ac_count
2520     fi
2521     # 10*(2^10) chars as input seems more than enough
2522     test $ac_count -gt 10 && break
2523   done
2524   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2525 esac
2526
2527       $ac_path_SED_found && break 3
2528     done
2529   done
2530   done
2531 IFS=$as_save_IFS
2532   if test -z "$ac_cv_path_SED"; then
2533     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2534   fi
2535 else
2536   ac_cv_path_SED=$SED
2537 fi
2538
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2541 $as_echo "$ac_cv_path_SED" >&6; }
2542  SED="$ac_cv_path_SED"
2543   rm -f conftest.sed
2544
2545 for ac_prog in gawk mawk nawk awk
2546 do
2547   # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_AWK+set}" = set; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   if test -n "$AWK"; then
2555   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562     for ac_exec_ext in '' $ac_executable_extensions; do
2563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564     ac_cv_prog_AWK="$ac_prog"
2565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566     break 2
2567   fi
2568 done
2569   done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 AWK=$ac_cv_prog_AWK
2575 if test -n "$AWK"; then
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2577 $as_echo "$AWK" >&6; }
2578 else
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584   test -n "$AWK" && break
2585 done
2586
2587
2588 ### we might need to use some other shell than /bin/sh for running subshells
2589 ### If we are on Windows, search for the shell.  This will permit people
2590 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2591 ### without also having to set CONFIG_SHELL.  This code will work when
2592 ### using bash, which sets OSTYPE.
2593 case "${OSTYPE}" in
2594 *win32*)
2595   if test x${CONFIG_SHELL} = x ; then
2596     if test ! -f /bin/sh ; then
2597       if test x${SHELL} != x && test -f ${SHELL} ; then
2598         CONFIG_SHELL=${SHELL}
2599         export CONFIG_SHELL
2600       else
2601         for prog in sh sh.exe bash bash.exe; do
2602           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2603           for dir in $PATH; do
2604             test -z "$dir" && dir=.
2605             if test -f $dir/$prog; then
2606               CONFIG_SHELL=$dir/$prog
2607               export CONFIG_SHELL
2608               break
2609             fi
2610           done
2611           IFS="$save_ifs"
2612           test -n "${CONFIG_SHELL}" && break
2613         done
2614       fi
2615     fi
2616   fi
2617   ;;
2618 esac
2619
2620 config_shell=${CONFIG_SHELL-/bin/sh}
2621
2622 moveifchange=${srcdir}/move-if-change
2623
2624 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2625
2626 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2627 # a relative path.
2628 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2629   INSTALL="${srcpwd}/install-sh -c"
2630 fi
2631
2632 # Set srcdir to "." if that's what it is.
2633 # This is important for multilib support.
2634 pwd=`${PWDCMD-pwd}`
2635 if test "${pwd}" = "${srcpwd}" ; then
2636   srcdir=.
2637 fi
2638
2639 topsrcdir=$srcpwd
2640
2641 extra_host_args=
2642
2643 ### To add a new directory to the tree, first choose whether it is a target
2644 ### or a host dependent tool.  Then put it into the appropriate list
2645 ### (library or tools, host or target), doing a dependency sort.
2646
2647 # Subdirs will be configured in the order listed in build_configdirs,
2648 # configdirs, or target_configdirs; see the serialization section below.
2649
2650 # Dependency sorting is only needed when *configuration* must be done in
2651 # a particular order.  In all cases a dependency should be specified in
2652 # the Makefile, whether or not it's implicitly specified here.
2653
2654 # Double entries in build_configdirs, configdirs, or target_configdirs may
2655 # cause circular dependencies and break everything horribly.
2656
2657 # these library is used by various programs built for the build
2658 # environment
2659 #
2660 build_libs="build-libiberty"
2661
2662 # these tools are built for the build environment
2663 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2664
2665 # these libraries are used by various programs built for the host environment
2666 #
2667 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2668
2669 # these tools are built for the host environment
2670 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2671 # know that we are building the simulator.
2672 # binutils, gas and ld appear in that order because it makes sense to run
2673 # "make check" in that particular order.
2674 # If --enable-gold is used, "gold" may replace "ld".
2675 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"
2676
2677 # libgcj represents the runtime libraries only used by gcj.
2678 libgcj="target-libffi \
2679         target-zlib \
2680         target-qthreads \
2681         target-libjava"
2682
2683 # these libraries are built for the target environment, and are built after
2684 # the host libraries and the host tools (which may be a cross compiler)
2685 #
2686 target_libraries="target-libgcc \
2687                 target-libiberty \
2688                 target-libgloss \
2689                 target-newlib \
2690                 target-libgomp \
2691                 target-libstdc++-v3 \
2692                 target-libmudflap \
2693                 target-libssp \
2694                 target-libgfortran \
2695                 target-boehm-gc \
2696                 ${libgcj} \
2697                 target-libobjc \
2698                 target-libada"
2699
2700 # these tools are built using the target libraries, and are intended to
2701 # run only in the target environment
2702 #
2703 # note: any program that *uses* libraries that are in the "target_libraries"
2704 # list belongs in this list.  those programs are also very likely
2705 # candidates for the "native_only" list which follows
2706 #
2707 target_tools="target-examples target-groff target-gperf target-rda"
2708
2709 ################################################################################
2710
2711 ## All tools belong in one of the four categories, and are assigned above
2712 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2713 ## is important because configure will choke if they ever get through.
2714 ## ${configdirs} is directories we build using the host tools.
2715 ## ${target_configdirs} is directories we build using the target tools.
2716 configdirs=`echo ${host_libs} ${host_tools}`
2717 target_configdirs=`echo ${target_libraries} ${target_tools}`
2718 build_configdirs=`echo ${build_libs} ${build_tools}`
2719
2720
2721
2722 ################################################################################
2723
2724 srcname="gnu development package"
2725
2726 # This gets set non-empty for some net releases of packages.
2727 appdirs=""
2728
2729 # Define is_cross_compiler to save on calls to 'test'.
2730 is_cross_compiler=
2731 if test x"${host}" = x"${target}" ; then
2732   is_cross_compiler=no
2733 else
2734   is_cross_compiler=yes
2735 fi
2736
2737 # Find the build and target subdir names.
2738
2739 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2740 # have matching libraries, they should use host libraries: Makefile.tpl
2741 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2742 # However, they still use the build modules, because the corresponding
2743 # host modules (e.g. bison) are only built for the host when bootstrap
2744 # finishes. So:
2745 # - build_subdir is where we find build modules, and never changes.
2746 # - build_libsubdir is where we find build libraries, and can be overridden.
2747
2748 # Prefix 'build-' so this never conflicts with target_subdir.
2749 build_subdir="build-${build_noncanonical}"
2750
2751 # Check whether --with-build-libsubdir was given.
2752 if test "${with_build_libsubdir+set}" = set; then :
2753   withval=$with_build_libsubdir; build_libsubdir="$withval"
2754 else
2755   build_libsubdir="$build_subdir"
2756 fi
2757
2758 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2759 if ( test $srcdir = . && test -d gcc ) \
2760    || test -d $srcdir/../host-${host_noncanonical}; then
2761   host_subdir="host-${host_noncanonical}"
2762 else
2763   host_subdir=.
2764 fi
2765 # No prefix.
2766 target_subdir=${target_noncanonical}
2767
2768 # Be sure to cover against remnants of an in-tree build.
2769 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2770   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2771 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2772 fi
2773
2774 # Skipdirs are removed silently.
2775 skipdirs=
2776 # Noconfigdirs are removed loudly.
2777 noconfigdirs=""
2778
2779 use_gnu_ld=
2780 # Make sure we don't let GNU ld be added if we didn't want it.
2781 if test x$with_gnu_ld = xno ; then
2782   use_gnu_ld=no
2783   noconfigdirs="$noconfigdirs ld gold"
2784 fi
2785
2786 use_gnu_as=
2787 # Make sure we don't let GNU as be added if we didn't want it.
2788 if test x$with_gnu_as = xno ; then
2789   use_gnu_as=no
2790   noconfigdirs="$noconfigdirs gas"
2791 fi
2792
2793 use_included_zlib=
2794 # Make sure we don't let ZLIB be added if we didn't want it.
2795 if test x$with_system_zlib = xyes ; then
2796   use_included_zlib=no
2797   noconfigdirs="$noconfigdirs zlib"
2798 fi
2799
2800 # some tools are so dependent upon X11 that if we're not building with X,
2801 # it's not even worth trying to configure, much less build, that tool.
2802
2803 case ${with_x} in
2804   yes | "") ;; # the default value for this tree is that X11 is available
2805   no)
2806     skipdirs="${skipdirs} tk itcl libgui"
2807     # We won't be able to build gdbtk without X.
2808     enable_gdbtk=no
2809     ;;
2810   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2811 esac
2812
2813 # Some tools are only suitable for building in a "native" situation.
2814 # Remove these if host!=target.
2815 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"
2816
2817 # Similarly, some are only suitable for cross toolchains.
2818 # Remove these if host=target.
2819 cross_only="target-libgloss target-newlib target-opcodes"
2820
2821 case $is_cross_compiler in
2822   no) skipdirs="${skipdirs} ${cross_only}" ;;
2823   yes) skipdirs="${skipdirs} ${native_only}" ;;
2824 esac
2825
2826 # If both --with-headers and --with-libs are specified, default to
2827 # --without-newlib.
2828 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2829    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2830   if test x"${with_newlib}" = x ; then
2831     with_newlib=no
2832   fi
2833 fi
2834
2835 # Recognize --with-newlib/--without-newlib.
2836 case ${with_newlib} in
2837   no) skipdirs="${skipdirs} target-newlib" ;;
2838   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2839 esac
2840
2841 # Handle --enable-gold.
2842 #   --enable-gold               Build only gold
2843 #   --disable-gold [default]    Build only ld
2844 #   --enable-gold=both          Build both gold and ld, ld is default
2845 #   --enable-gold=both/ld       Same
2846 #   --enable-gold=both/gold     Build both gold and ld, gold is default, ld is renamed ld.bfd
2847
2848 # Check whether --enable-gold was given.
2849 if test "${enable_gold+set}" = set; then :
2850   enableval=$enable_gold; ENABLE_GOLD=$enableval
2851 else
2852   ENABLE_GOLD=no
2853 fi
2854
2855   case "${ENABLE_GOLD}" in
2856   yes|both|both/gold|both/ld)
2857     # Check for ELF target.
2858     is_elf=no
2859     case "${target}" in
2860       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2861       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2862       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2863         case "${target}" in
2864           *-*-linux*aout* | *-*-linux*oldld*)
2865             ;;
2866           *)
2867             is_elf=yes
2868             ;;
2869         esac
2870     esac
2871
2872     if test "$is_elf" = "yes"; then
2873       # Check for target supported by gold.
2874       case "${target}" in
2875         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2876           case "${ENABLE_GOLD}" in
2877           both*)
2878             configdirs="$configdirs gold"
2879             ;;
2880           *)
2881             configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2882             ;;
2883           esac
2884           ENABLE_GOLD=yes
2885           ;;
2886       esac
2887     fi
2888     ;;
2889   no)
2890     ;;
2891   *)
2892     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2893     ;;
2894   esac
2895
2896 # Configure extra directories which are host specific
2897
2898 case "${host}" in
2899   *-cygwin*)
2900     configdirs="$configdirs libtermcap" ;;
2901 esac
2902
2903 # A target can indicate whether a language isn't supported for some reason.
2904 # Only spaces may be used in this macro; not newlines or tabs.
2905 unsupported_languages=
2906
2907 # Remove more programs from consideration, based on the host or
2908 # target this usually means that a port of the program doesn't
2909 # exist yet.
2910
2911 case "${host}" in
2912   hppa*64*-*-*)
2913     noconfigdirs="$noconfigdirs byacc"
2914     ;;
2915   i[3456789]86-*-vsta)
2916     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2917     ;;
2918   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2919     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2920     ;;
2921   x86_64-*-mingw*)
2922     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2923     ;;
2924   i[3456789]86-*-mingw32*)
2925     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2926     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2927     ;;
2928   i[3456789]86-*-beos*)
2929     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2930     ;;
2931   *-*-cygwin*)
2932     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2933     ;;
2934   *-*-netbsd*)
2935     noconfigdirs="$noconfigdirs rcs"
2936     ;;
2937   ppc*-*-pe)
2938     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2939     ;;
2940   powerpc-*-beos*)
2941     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2942     ;;
2943 esac
2944
2945
2946 # Check whether --enable-libada was given.
2947 if test "${enable_libada+set}" = set; then :
2948   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2949 else
2950   ENABLE_LIBADA=yes
2951 fi
2952
2953 if test "${ENABLE_LIBADA}" != "yes" ; then
2954   noconfigdirs="$noconfigdirs gnattools"
2955 fi
2956
2957 # Check whether --enable-libssp was given.
2958 if test "${enable_libssp+set}" = set; then :
2959   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2960 else
2961   ENABLE_LIBSSP=yes
2962 fi
2963
2964
2965 # Save it here so that, even in case of --enable-libgcj, if the Java
2966 # front-end isn't enabled, we still get libgcj disabled.
2967 libgcj_saved=$libgcj
2968 case $enable_libgcj in
2969 yes)
2970   # If we reset it here, it won't get added to noconfigdirs in the
2971   # target-specific build rules, so it will be forcibly enabled
2972   # (unless the Java language itself isn't enabled).
2973   libgcj=
2974   ;;
2975 no)
2976   # Make sure we get it printed in the list of not supported target libs.
2977   noconfigdirs="$noconfigdirs ${libgcj}"
2978   ;;
2979 esac
2980
2981
2982 # Disable libmudflap on some systems.
2983 if test x$enable_libmudflap = x ; then
2984     case "${target}" in
2985     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2986         # Enable libmudflap by default in GNU and friends.
2987         ;;
2988     *-*-freebsd*)
2989         # Enable libmudflap by default in FreeBSD.
2990         ;;
2991     *)
2992         # Disable it by default everywhere else.
2993         noconfigdirs="$noconfigdirs target-libmudflap"
2994         ;;
2995     esac
2996 fi
2997
2998 # Disable libgomp on non POSIX hosted systems.
2999 if test x$enable_libgomp = x ; then
3000     # Enable libgomp by default on hosted POSIX systems.
3001     case "${target}" in
3002     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3003         ;;
3004     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3005         ;;
3006     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3007         ;;
3008     *-*-darwin* | *-*-aix*)
3009         ;;
3010     *)
3011         noconfigdirs="$noconfigdirs target-libgomp"
3012         ;;
3013     esac
3014 fi
3015
3016 # Default libgloss CPU subdirectory.
3017 libgloss_dir="$target_cpu"
3018
3019 case "${target}" in
3020   *-*-chorusos)
3021     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3022     ;;
3023   powerpc-*-darwin*)
3024     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3025     noconfigdirs="$noconfigdirs sim target-rda"
3026     ;;
3027   i[3456789]86-*-darwin*)
3028     noconfigdirs="$noconfigdirs ld gprof"
3029     noconfigdirs="$noconfigdirs sim target-rda"
3030     ;;
3031   x86_64-*-darwin[912]*)
3032     noconfigdirs="$noconfigdirs ld gas gprof"
3033     noconfigdirs="$noconfigdirs sim target-rda"
3034     ;;
3035   *-*-darwin*)
3036     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3037     noconfigdirs="$noconfigdirs sim target-rda"
3038     noconfigdirs="$noconfigdirs ${libgcj}"
3039     ;;
3040   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3041     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3042     ;;
3043   *-*-freebsd*)
3044     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3045     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3046         && test -f /usr/local/include/gmp.h; then
3047       with_gmp=/usr/local
3048     fi
3049
3050     # Skip some stuff that's unsupported on some FreeBSD configurations.
3051     case "${target}" in
3052       i*86-*-*) ;;
3053       alpha*-*-*) ;;
3054       x86_64-*-*) ;;
3055       *)
3056         noconfigdirs="$noconfigdirs ${libgcj}"
3057         ;;
3058     esac
3059     ;;
3060   *-*-kaos*)
3061     # Remove unsupported stuff on all kaOS configurations.
3062     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3063     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3064     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3065     noconfigdirs="$noconfigdirs target-libgloss"
3066     ;;
3067   *-*-netbsd*)
3068     # Skip some stuff on all NetBSD configurations.
3069     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3070
3071     # Skip some stuff that's unsupported on some NetBSD configurations.
3072     case "${target}" in
3073       i*86-*-netbsdelf*) ;;
3074       arm*-*-netbsdelf*) ;;
3075       *)
3076         noconfigdirs="$noconfigdirs ${libgcj}"
3077         ;;
3078     esac
3079     ;;
3080   *-*-netware*)
3081     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3082     ;;
3083   *-*-rtems*)
3084     skipdirs="${skipdirs} target-libiberty"
3085     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3086     ;;
3087     # The tpf target doesn't support gdb yet.
3088   *-*-tpf*)
3089     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3090     ;;
3091   *-*-uclinux*)
3092     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3093     ;;
3094   *-*-vxworks*)
3095     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3096     ;;
3097   alpha*-dec-osf*)
3098     # ld works, but does not support shared libraries.
3099     # newlib is not 64 bit ready.  I'm not sure about fileutils.
3100     # gas doesn't generate exception information.
3101     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3102     ;;
3103   alpha*-*-*vms*)
3104     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3105     ;;
3106   alpha*-*-linux*)
3107     # newlib is not 64 bit ready
3108     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3109     ;;
3110   alpha*-*-*)
3111     # newlib is not 64 bit ready
3112     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3113     ;;
3114   am33_2.0-*-linux*)
3115     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3116     ;;
3117   sh-*-linux*)
3118     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3119     ;;
3120   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3121     noconfigdirs="$noconfigdirs ${libgcj}"
3122     noconfigdirs="$noconfigdirs target-examples"
3123     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3124     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3125     noconfigdirs="$noconfigdirs expect dejagnu"
3126     # the C++ libraries don't build on top of CE's C libraries
3127     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3128     noconfigdirs="$noconfigdirs target-newlib"
3129     case "${host}" in
3130       *-*-cygwin*) ;; # keep gdb and readline
3131       *) noconfigdirs="$noconfigdirs gdb readline"
3132          ;;
3133     esac
3134     libgloss_dir=wince
3135     ;;
3136   arc-*-*)
3137     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3138     ;;
3139   arm-semi-aof )
3140     ;;
3141   arm-*-coff | strongarm-*-coff | xscale-*-coff)
3142     noconfigdirs="$noconfigdirs ${libgcj}"
3143     libgloss_dir=arm
3144     ;;
3145   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3146     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3147     libgloss_dir=arm
3148     ;;
3149   arm*-*-linux-gnueabi)
3150     noconfigdirs="$noconfigdirs target-qthreads"
3151     case ${with_newlib} in
3152       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3153     esac
3154     libgloss_dir=arm
3155     ;;
3156   arm*-*-symbianelf*)
3157     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3158     libgloss_dir=arm
3159     ;;
3160   arm-*-pe*)
3161     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3162     ;;
3163   thumb-*-coff)
3164     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3165     ;;
3166   thumb-*-elf)
3167     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3168     ;;
3169   thumb-*-pe)
3170     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3171     ;;
3172   arm-*-riscix*)
3173     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3174     ;;
3175   avr-*-*)
3176     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3177     ;;
3178   bfin-*-*)
3179     unsupported_languages="$unsupported_languages java"
3180     noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3181     if test x${is_cross_compiler} != xno ; then
3182       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3183     fi
3184     ;;
3185   c4x-*-* | tic4x-*-*)
3186     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3187     ;;
3188   c54x*-*-* | tic54x-*-*)
3189     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3190     ;;
3191   cr16-*-*)
3192     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3193     ;;
3194   cris-*-* | crisv32-*-*)
3195     unsupported_languages="$unsupported_languages java"
3196     case "${target}" in
3197       *-*-aout)
3198         unsupported_languages="$unsupported_languages fortran"
3199         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3200       *-*-elf)
3201         noconfigdirs="$noconfigdirs target-boehm-gc";;
3202       *-*-linux*)
3203         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3204       *)
3205         unsupported_languages="$unsupported_languages fortran"
3206         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3207     esac
3208     libgloss_dir=cris
3209     ;;
3210   crx-*-*)
3211     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3212     ;;
3213   d10v-*-*)
3214     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3215     ;;
3216   d30v-*-*)
3217     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3218     ;;
3219   ep9312-*-elf | ep9312-*-coff)
3220     libgloss_dir=arm
3221     ;;
3222   fr30-*-elf*)
3223     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3224     ;;
3225   frv-*-*)
3226     noconfigdirs="$noconfigdirs ${libgcj}"
3227     ;;
3228   moxie-*-*)
3229     noconfigdirs="$noconfigdirs ${libgcj}"
3230     noconfigdirs="$noconfigdirs gprof"
3231     ;;
3232   h8300*-*-*)
3233     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3234     ;;
3235   h8500-*-*)
3236     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3237     ;;
3238   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3239     ;;
3240   hppa*64*-*-linux* | parisc*64*-*-linux*)
3241     # In this case, it's because the hppa64-linux target is for
3242     # the kernel only at this point and has no libc, and thus no
3243     # headers, crt*.o, etc., all of which are needed by these.
3244     noconfigdirs="$noconfigdirs target-zlib"
3245     ;;
3246   parisc*-*-linux* | hppa*-*-linux*)
3247     ;;
3248   hppa*-*-*elf* | \
3249   hppa*-*-lites* | \
3250   hppa*-*-openbsd* | \
3251   hppa*64*-*-*)
3252     noconfigdirs="$noconfigdirs ${libgcj}"
3253     ;;
3254   hppa*-hp-hpux11*)
3255     noconfigdirs="$noconfigdirs ld shellutils"
3256     ;;
3257   hppa*-*-pro*)
3258     libgloss_dir=pa
3259     ;;
3260   hppa*-*-*)
3261     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3262     # build on HP-UX 10.20.
3263     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3264     ;;
3265   i960-*-*)
3266     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3267     ;;
3268   ia64*-*-elf*)
3269     # No gdb support yet.
3270     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3271     ;;
3272   ia64*-**-hpux*)
3273     # No gdb or ld support yet.
3274     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3275     ;;
3276   ia64*-*-*vms*)
3277     # No gdb or ld support yet.
3278     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3279     ;;
3280   i370-*-opened*)
3281     ;;
3282   i[3456789]86-*-coff | i[3456789]86-*-elf)
3283     noconfigdirs="$noconfigdirs ${libgcj}"
3284     libgloss_dir=i386
3285     ;;
3286   i[3456789]86-*-linux*)
3287     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3288     # not build java stuff by default.
3289     case "${target}" in
3290       *-*-*libc1*)
3291         noconfigdirs="$noconfigdirs ${libgcj}";;
3292     esac
3293
3294     # This section makes it possible to build newlib natively on linux.
3295     # If we are using a cross compiler then don't configure newlib.
3296     if test x${is_cross_compiler} != xno ; then
3297       noconfigdirs="$noconfigdirs target-newlib"
3298     fi
3299     noconfigdirs="$noconfigdirs target-libgloss"
3300     # If we are not using a cross compiler, do configure newlib.
3301     # Note however, that newlib will only be configured in this situation
3302     # if the --with-newlib option has been given, because otherwise
3303     # 'target-newlib' will appear in skipdirs.
3304     ;;
3305   i[3456789]86-w64-mingw*)
3306     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3307     ;;
3308   i[3456789]86-*-mingw*)
3309     target_configdirs="$target_configdirs target-winsup"
3310     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3311     ;;
3312   x86_64-*-mingw*)
3313     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3314     ;;
3315   *-*-cygwin*)
3316     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3317     noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3318     # always build newlib if winsup directory is present.
3319     if test -d "$srcdir/winsup/cygwin"; then
3320       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3321     elif test -d "$srcdir/newlib"; then
3322       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3323     fi
3324     ;;
3325   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3326   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3327     ;;
3328   i[3456789]86-*-pe)
3329     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3330     ;;
3331   i[3456789]86-*-sco3.2v5*)
3332     # The linker does not yet know about weak symbols in COFF,
3333     # and is not configured to handle mixed ELF and COFF.
3334     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3335     ;;
3336   i[3456789]86-*-sco*)
3337     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3338     ;;
3339   i[3456789]86-*-solaris2*)
3340     noconfigdirs="$noconfigdirs target-libgloss"
3341     ;;
3342   i[3456789]86-*-sysv4*)
3343     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3344     ;;
3345   i[3456789]86-*-beos*)
3346     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3347     ;;
3348   i[3456789]86-*-rdos*)
3349     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3350     ;;
3351   m32r-*-*)
3352     noconfigdirs="$noconfigdirs ${libgcj}"
3353     ;;
3354   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3355     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3356     libgloss_dir=m68hc11
3357     ;;
3358   m68k-*-elf*)
3359     noconfigdirs="$noconfigdirs ${libgcj}"
3360     ;;
3361   m68k-*-coff*)
3362     noconfigdirs="$noconfigdirs ${libgcj}"
3363     ;;
3364   m68*-*-* | fido-*-*)
3365     libgloss_dir=m68k
3366     ;;
3367   mcore-*-pe*)
3368   # The EPOC C++ environment does not support exceptions or rtti,
3369   # and so building libstdc++-v3 tends not to always work.
3370     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371     ;;
3372   mmix-*-*)
3373     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3374     unsupported_languages="$unsupported_languages fortran java"
3375     ;;
3376   mn10200-*-*)
3377     noconfigdirs="$noconfigdirs ${libgcj}"
3378     ;;
3379   mn10300-*-*)
3380     noconfigdirs="$noconfigdirs ${libgcj}"
3381     ;;
3382   mt-*-*)
3383     noconfigdirs="$noconfigdirs sim"
3384     ;;
3385   powerpc-*-aix*)
3386     # copied from rs6000-*-* entry
3387     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3388     ;;
3389   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3390     target_configdirs="$target_configdirs target-winsup"
3391     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3392     # always build newlib.
3393     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3394     ;;
3395     # This is temporary until we can link against shared libraries
3396   powerpcle-*-solaris*)
3397     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3398     libgloss_dir=rs6000
3399     ;;
3400   powerpc-*-beos*)
3401     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3402     ;;
3403   powerpc-*-eabi)
3404     noconfigdirs="$noconfigdirs ${libgcj}"
3405     libgloss_dir=rs6000
3406     ;;
3407   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3408     libgloss_dir=rs6000
3409     ;;
3410   rs6000-*-lynxos*)
3411     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3412     ;;
3413   rs6000-*-aix*)
3414     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3415     ;;
3416   rs6000-*-*)
3417     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3418     ;;
3419   m68k-apollo-*)
3420     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3421     ;;
3422   microblaze*)
3423     noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3424     ;;
3425   mips*-sde-elf*)
3426     skipdirs="$skipdirs target-libiberty"
3427     noconfigdirs="$noconfigdirs ${libgcj}"
3428     if test x$with_newlib = xyes; then
3429       noconfigdirs="$noconfigdirs gprof"
3430     fi
3431     libgloss_dir=mips
3432     ;;
3433   mips*-*-irix5*)
3434     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3435     ;;
3436   mips*-*-irix6*)
3437     # Linking libjava exceeds command-line length limits on at least
3438     # IRIX 6.2, but not on IRIX 6.5.
3439     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3440     # <oldham@codesourcery.com>
3441     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3442     ;;
3443   mips*-*-bsd*)
3444     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3445     ;;
3446   mips*-*-linux*)
3447     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3448     ;;
3449   mips*-*-*)
3450     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3451     libgloss_dir=mips
3452     ;;
3453   romp-*-*)
3454     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3455     ;;
3456   sh-*-* | sh64-*-*)
3457     case "${host}" in
3458       i[3456789]86-*-vsta) ;; # don't add gprof back in
3459       i[3456789]86-*-go32*) ;; # don't add gprof back in
3460       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3461       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3462     esac
3463     case "${target}" in
3464       sh*-*-elf)
3465          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3466       *)
3467          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3468     esac
3469     ;;
3470   sparclet-*-aout* | sparc86x-*-*)
3471     libgloss_dir=sparc
3472     ;;
3473   sparc-*-elf*)
3474     noconfigdirs="$noconfigdirs ${libgcj}"
3475     ;;
3476   sparc64-*-elf*)
3477     noconfigdirs="$noconfigdirs ${libgcj}"
3478     libgloss_dir=sparc
3479     ;;
3480   sparclite-*-*)
3481     noconfigdirs="$noconfigdirs ${libgcj}"
3482     libgloss_dir=sparc
3483     ;;
3484   sparc-*-sunos4*)
3485     noconfigdirs="$noconfigdirs ${libgcj}"
3486     if test x${is_cross_compiler} != xno ; then
3487            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3488     else
3489            use_gnu_ld=no
3490     fi
3491     ;;
3492   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3493     noconfigdirs="$noconfigdirs ${libgcj}"
3494     ;;
3495   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3496     ;;
3497   tic6x-*-*)
3498     noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3499     ;;
3500   v810-*-*)
3501     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3502     ;;
3503   v850*-*-*)
3504     noconfigdirs="$noconfigdirs ${libgcj}"
3505     ;;
3506   vax-*-vms)
3507     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3508     ;;
3509   vax-*-*)
3510     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3511     ;;
3512   xtensa*-*-*)
3513     noconfigdirs="$noconfigdirs ${libgcj}"
3514     ;;
3515   ip2k-*-*)
3516     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3517     ;;
3518   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3519     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520     ;;
3521   *-*-lynxos*)
3522     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3523     ;;
3524   *-*-*)
3525     noconfigdirs="$noconfigdirs ${libgcj}"
3526     ;;
3527 esac
3528
3529 # If we aren't building newlib, then don't build libgloss, since libgloss
3530 # depends upon some newlib header files.
3531 case "${noconfigdirs}" in
3532   *target-libgloss*) ;;
3533   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3534 esac
3535
3536 # Work in distributions that contain no compiler tools, like Autoconf.
3537 tentative_cc=""
3538 host_makefile_frag=/dev/null
3539 if test -d ${srcdir}/config ; then
3540 case "${host}" in
3541   m68k-hp-hpux*)
3542     # Avoid "too much defining" errors from HPUX compiler.
3543     tentative_cc="cc -Wp,-H256000"
3544     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3545     # If it's HP/UX ar, this should be harmless.
3546     RANLIB="ar ts"
3547     ;;
3548   m68k-apollo-sysv*)
3549     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3550     ;;
3551   m68k-apollo-bsd*)
3552     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3553     # chokes on bfd, the compiler won't let you assign integers to enums, and
3554     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3555     # the apollo compiler" (the preferred version of GCC could be called cc,
3556     # or whatever), but I'm not sure leaving CC as cc is any better...
3557     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3558     # Used to have BISON=yacc.
3559     tentative_cc=gcc
3560     ;;
3561   m88k-dg-dgux*)
3562     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3563     ;;
3564   m88k-harris-cxux*)
3565     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3566     tentative_cc="cc -Xa"
3567     host_makefile_frag="config/mh-cxux"
3568     ;;
3569   m88k-motorola-sysv*)
3570     ;;
3571   mips*-dec-ultrix*)
3572     tentative_cc="cc -Wf,-XNg1000"
3573     host_makefile_frag="config/mh-decstation"
3574     ;;
3575   mips*-nec-sysv4*)
3576     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3577     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3578     host_makefile_frag="config/mh-necv4"
3579     ;;
3580   mips*-sgi-irix4*)
3581     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3582     # environment.  Also bump switch table size so that cp-parse will
3583     # compile.  Bump string length limit so linker builds.
3584     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3585     ;;
3586   mips*-*-sysv4*)
3587     host_makefile_frag="config/mh-sysv4"
3588     ;;
3589   mips*-*-sysv*)
3590     # This is for a MIPS running RISC/os 4.52C.
3591
3592     # This is needed for GDB, but needs to be in the top-level make because
3593     # if a library is compiled with the bsd headers and gets linked with the
3594     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3595     # a different size).
3596     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3597     # known except to select the sysv environment.  Could we use /proc instead?
3598     # These "sysv environments" and "bsd environments" often end up being a pain.
3599     #
3600     # This is not part of CFLAGS because perhaps not all C compilers have this
3601     # option.
3602     tentative_cc="cc -systype sysv"
3603     ;;
3604   i370-ibm-opened*)
3605     tentative_cc="c89"
3606     ;;
3607   i[3456789]86-*-sysv5*)
3608     host_makefile_frag="config/mh-sysv5"
3609     ;;
3610   i[3456789]86-*-dgux*)
3611     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3612     host_makefile_frag="config/mh-dgux386"
3613     ;;
3614   i[3456789]86-ncr-sysv4.3*)
3615     # The MetaWare compiler will generate a copyright message unless you
3616     # turn it off by adding the -Hnocopyr flag.
3617     tentative_cc="cc -Hnocopyr"
3618     ;;
3619   i[3456789]86-ncr-sysv4*)
3620     # for an NCR 3000 (i486/SVR4) system.
3621     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3622     # This compiler not only emits obnoxious copyright messages every time
3623     # you run it, but it chokes and dies on a whole bunch of GNU source
3624     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3625     tentative_cc="/usr/ccs/ATT/cc"
3626     host_makefile_frag="config/mh-ncr3000"
3627     ;;
3628   i[3456789]86-*-sco3.2v5*)
3629     ;;
3630   i[3456789]86-*-sco*)
3631     # The native C compiler botches some simple uses of const.  Unfortunately,
3632     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3633     tentative_cc="cc -Dconst="
3634     host_makefile_frag="config/mh-sco"
3635     ;;
3636   i[3456789]86-*-udk*)
3637     host_makefile_frag="config/mh-sysv5"
3638     ;;
3639   i[3456789]86-*-solaris2*)
3640     host_makefile_frag="config/mh-sysv4"
3641     ;;
3642   i[3456789]86-*-msdosdjgpp*)
3643     host_makefile_frag="config/mh-djgpp"
3644     ;;
3645   *-cygwin*)
3646
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3648 $as_echo_n "checking to see if cat works as expected... " >&6; }
3649 echo a >cygwin-cat-check
3650 if test `cat cygwin-cat-check` = a ; then
3651   rm cygwin-cat-check
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654 else
3655   rm cygwin-cat-check
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658   as_fn_error "The cat command does not ignore carriage return characters.
3659   Please either mount the build directory in binary mode or run the following
3660   commands before running any configure script:
3661 set -o igncr
3662 export SHELLOPTS
3663   " "$LINENO" 5
3664 fi
3665
3666     host_makefile_frag="config/mh-cygwin"
3667     ;;
3668   *-mingw*)
3669     host_makefile_frag="config/mh-mingw"
3670     ;;
3671   *-interix*)
3672     host_makefile_frag="config/mh-interix"
3673     ;;
3674   vax-*-ultrix2*)
3675     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3676     tentative_cc=gcc
3677     ;;
3678   *-*-solaris2*)
3679     host_makefile_frag="config/mh-solaris"
3680     ;;
3681   m68k-sun-sunos*)
3682     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3683     # without overflowing the jump tables (-J says to use a 32 bit table)
3684     tentative_cc="cc -J"
3685     ;;
3686   hppa*-hp-hpux10*)
3687     tentative_cc="cc -Wp,-H256000"
3688     host_makefile_frag="config/mh-pa-hpux10"
3689     ;;
3690   hppa*-hp-hpux* | hppa*-*-hiux*)
3691     tentative_cc="cc -Wp,-H256000"
3692     host_makefile_frag="config/mh-pa"
3693     ;;
3694   hppa*-*)
3695     host_makefile_frag="config/mh-pa"
3696     ;;
3697   *-hp-hpux* | *-*-hiux*)
3698     tentative_cc="cc -Wp,-H256000"
3699     ;;
3700   rs6000-*-lynxos*)
3701     # /bin/cc is less than useful for our purposes.  Always use GCC
3702     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3703     host_makefile_frag="config/mh-lynxrs6k"
3704     ;;
3705   *-*-darwin*)
3706     host_makefile_frag="config/mh-darwin"
3707     ;;
3708   powerpc-*-aix*)
3709     host_makefile_frag="config/mh-ppc-aix"
3710     ;;
3711   rs6000-*-aix*)
3712     host_makefile_frag="config/mh-ppc-aix"
3713     ;;
3714   *-*-lynxos*)
3715     # /bin/cc is less than useful for our purposes.  Always use GCC
3716     tentative_cc="/bin/gcc"
3717     ;;
3718   *-*-sysv4*)
3719     host_makefile_frag="config/mh-sysv4"
3720     ;;
3721   # This is placed last to prevent interfering with the cases above.
3722   i[3456789]86-*-*)
3723     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3724     host_makefile_frag="config/mh-x86omitfp"
3725     ;;
3726 esac
3727 fi
3728
3729 # If we aren't going to be using gcc, see if we can extract a definition
3730 # of CC from the fragment.
3731 # Actually, use the 'pre-extracted' version above.
3732 if test -z "${CC}" && test "${build}" = "${host}" ; then
3733   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3734   found=
3735   for dir in $PATH; do
3736     test -z "$dir" && dir=.
3737     if test -f $dir/gcc; then
3738       found=yes
3739       break
3740     fi
3741   done
3742   IFS="$save_ifs"
3743   if test -z "${found}" && test -n "${tentative_cc}" ; then
3744     CC=$tentative_cc
3745   fi
3746 fi
3747
3748 if test "${build}" != "${host}" ; then
3749   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3750   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3751   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3752   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3753   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3754   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3755   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3756   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3757   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3758   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3759   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3760   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3761 else
3762   AR_FOR_BUILD="\$(AR)"
3763   AS_FOR_BUILD="\$(AS)"
3764   CC_FOR_BUILD="\$(CC)"
3765   CXX_FOR_BUILD="\$(CXX)"
3766   GCJ_FOR_BUILD="\$(GCJ)"
3767   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3768   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3769   LD_FOR_BUILD="\$(LD)"
3770   NM_FOR_BUILD="\$(NM)"
3771   RANLIB_FOR_BUILD="\$(RANLIB)"
3772   WINDRES_FOR_BUILD="\$(WINDRES)"
3773   WINDMC_FOR_BUILD="\$(WINDMC)"
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_CC+set}" = set; then :
3787   $as_echo_n "(cached) " >&6
3788 else
3789   if test -n "$CC"; then
3790   ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797     for ac_exec_ext in '' $ac_executable_extensions; do
3798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804   done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 CC=$ac_cv_prog_CC
3810 if test -n "$CC"; then
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3813 else
3814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818
3819 fi
3820 if test -z "$ac_cv_prog_CC"; then
3821   ac_ct_CC=$CC
3822   # Extract the first word of "gcc", so it can be a program name with args.
3823 set dummy gcc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   if test -n "$ac_ct_CC"; then
3830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837     for ac_exec_ext in '' $ac_executable_extensions; do
3838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839     ac_cv_prog_ac_ct_CC="gcc"
3840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844   done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3853 else
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3857
3858   if test "x$ac_ct_CC" = x; then
3859     CC=""
3860   else
3861     case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3866 esac
3867     CC=$ac_ct_CC
3868   fi
3869 else
3870   CC="$ac_cv_prog_CC"
3871 fi
3872
3873 if test -z "$CC"; then
3874           if test -n "$ac_tool_prefix"; then
3875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   if test -n "$CC"; then
3883   ac_cv_prog_CC="$CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890     for ac_exec_ext in '' $ac_executable_extensions; do
3891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892     ac_cv_prog_CC="${ac_tool_prefix}cc"
3893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897   done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 CC=$ac_cv_prog_CC
3903 if test -n "$CC"; then
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905 $as_echo "$CC" >&6; }
3906 else
3907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 fi
3910
3911
3912   fi
3913 fi
3914 if test -z "$CC"; then
3915   # Extract the first word of "cc", so it can be a program name with args.
3916 set dummy cc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   if test -n "$CC"; then
3923   ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925   ac_prog_rejected=no
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931     for ac_exec_ext in '' $ac_executable_extensions; do
3932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934        ac_prog_rejected=yes
3935        continue
3936      fi
3937     ac_cv_prog_CC="cc"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 if test $ac_prog_rejected = yes; then
3946   # We found a bogon in the path, so make sure we never use it.
3947   set dummy $ac_cv_prog_CC
3948   shift
3949   if test $# != 0; then
3950     # We chose a different compiler from the bogus one.
3951     # However, it has the same basename, so the bogon will be chosen
3952     # first if we set CC to just the basename; use the full file name.
3953     shift
3954     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3955   fi
3956 fi
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969 fi
3970 if test -z "$CC"; then
3971   if test -n "$ac_tool_prefix"; then
3972   for ac_prog in cl.exe
3973   do
3974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_CC+set}" = set; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   if test -n "$CC"; then
3982   ac_cv_prog_CC="$CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     for ac_exec_ext in '' $ac_executable_extensions; do
3990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996   done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 CC=$ac_cv_prog_CC
4002 if test -n "$CC"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011     test -n "$CC" && break
4012   done
4013 fi
4014 if test -z "$CC"; then
4015   ac_ct_CC=$CC
4016   for ac_prog in cl.exe
4017 do
4018   # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   if test -n "$ac_ct_CC"; then
4026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033     for ac_exec_ext in '' $ac_executable_extensions; do
4034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035     ac_cv_prog_ac_ct_CC="$ac_prog"
4036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040   done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048 $as_echo "$ac_ct_CC" >&6; }
4049 else
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054
4055   test -n "$ac_ct_CC" && break
4056 done
4057
4058   if test "x$ac_ct_CC" = x; then
4059     CC=""
4060   else
4061     case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067     CC=$ac_ct_CC
4068   fi
4069 fi
4070
4071 fi
4072
4073
4074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error "no acceptable C compiler found in \$PATH
4077 See \`config.log' for more details." "$LINENO" 5; }
4078
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4081 set X $ac_compile
4082 ac_compiler=$2
4083 for ac_option in --version -v -V -qversion; do
4084   { { ac_try="$ac_compiler $ac_option >&5"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092   ac_status=$?
4093   if test -s conftest.err; then
4094     sed '10a\
4095 ... rest of stderr output deleted ...
4096          10q' conftest.err >conftest.er1
4097     cat conftest.er1 >&5
4098     rm -f conftest.er1 conftest.err
4099   fi
4100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101   test $ac_status = 0; }
4102 done
4103
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106
4107 int
4108 main ()
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 ac_clean_files_save=$ac_clean_files
4116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4117 # Try to create an executable without -o first, disregard a.out.
4118 # It will help us diagnose broken compilers, and finding out an intuition
4119 # of exeext.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121 $as_echo_n "checking for C compiler default output file name... " >&6; }
4122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4123
4124 # The possible output files:
4125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4126
4127 ac_rmfiles=
4128 for ac_file in $ac_files
4129 do
4130   case $ac_file in
4131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4133   esac
4134 done
4135 rm -f $ac_rmfiles
4136
4137 if { { ac_try="$ac_link_default"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144   (eval "$ac_link_default") 2>&5
4145   ac_status=$?
4146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147   test $ac_status = 0; }; then :
4148   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4150 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4151 # so that the user can short-circuit this test for compilers unknown to
4152 # Autoconf.
4153 for ac_file in $ac_files ''
4154 do
4155   test -f "$ac_file" || continue
4156   case $ac_file in
4157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4158         ;;
4159     [ab].out )
4160         # We found the default executable, but exeext='' is most
4161         # certainly right.
4162         break;;
4163     *.* )
4164         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4165         then :; else
4166            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167         fi
4168         # We set ac_cv_exeext here because the later test for it is not
4169         # safe: cross compilers may not add the suffix if given an `-o'
4170         # argument, so we may need to know it at that point already.
4171         # Even if this section looks crufty: it has the advantage of
4172         # actually working.
4173         break;;
4174     * )
4175         break;;
4176   esac
4177 done
4178 test "$ac_cv_exeext" = no && ac_cv_exeext=
4179
4180 else
4181   ac_file=''
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4184 $as_echo "$ac_file" >&6; }
4185 if test -z "$ac_file"; then :
4186   $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 { as_fn_set_status 77
4192 as_fn_error "C compiler cannot create executables
4193 See \`config.log' for more details." "$LINENO" 5; }; }
4194 fi
4195 ac_exeext=$ac_cv_exeext
4196
4197 # Check that the compiler produces executables we can run.  If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200 $as_echo_n "checking whether the C compiler works... " >&6; }
4201 # If not cross compiling, check that we can run a simple program.
4202 if test "$cross_compiling" != yes; then
4203   if { ac_try='./$ac_file'
4204   { { case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210   (eval "$ac_try") 2>&5
4211   ac_status=$?
4212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213   test $ac_status = 0; }; }; then
4214     cross_compiling=no
4215   else
4216     if test "$cross_compiling" = maybe; then
4217         cross_compiling=yes
4218     else
4219         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error "cannot run C compiled programs.
4222 If you meant to cross compile, use \`--host'.
4223 See \`config.log' for more details." "$LINENO" 5; }
4224     fi
4225   fi
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229
4230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4231 ac_clean_files=$ac_clean_files_save
4232 # Check that the compiler produces executables we can run.  If not, either
4233 # the compiler is broken, or we cross compile.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235 $as_echo_n "checking whether we are cross compiling... " >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4237 $as_echo "$cross_compiling" >&6; }
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240 $as_echo_n "checking for suffix of executables... " >&6; }
4241 if { { ac_try="$ac_link"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248   (eval "$ac_link") 2>&5
4249   ac_status=$?
4250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251   test $ac_status = 0; }; then :
4252   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4254 # work properly (i.e., refer to `conftest.exe'), while it won't with
4255 # `rm'.
4256 for ac_file in conftest.exe conftest conftest.*; do
4257   test -f "$ac_file" || continue
4258   case $ac_file in
4259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4260     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4261           break;;
4262     * ) break;;
4263   esac
4264 done
4265 else
4266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot compute suffix of executables: cannot compile and link
4269 See \`config.log' for more details." "$LINENO" 5; }
4270 fi
4271 rm -f conftest$ac_cv_exeext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273 $as_echo "$ac_cv_exeext" >&6; }
4274
4275 rm -f conftest.$ac_ext
4276 EXEEXT=$ac_cv_exeext
4277 ac_exeext=$EXEEXT
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279 $as_echo_n "checking for suffix of object files... " >&6; }
4280 if test "${ac_cv_objext+set}" = set; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285
4286 int
4287 main ()
4288 {
4289
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.o conftest.obj
4295 if { { ac_try="$ac_compile"
4296 case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302   (eval "$ac_compile") 2>&5
4303   ac_status=$?
4304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305   test $ac_status = 0; }; then :
4306   for ac_file in conftest.o conftest.obj conftest.*; do
4307   test -f "$ac_file" || continue;
4308   case $ac_file in
4309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4310     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311        break;;
4312   esac
4313 done
4314 else
4315   $as_echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "cannot compute suffix of object files: cannot compile
4321 See \`config.log' for more details." "$LINENO" 5; }
4322 fi
4323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326 $as_echo "$ac_cv_objext" >&6; }
4327 OBJEXT=$ac_cv_objext
4328 ac_objext=$OBJEXT
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336
4337 int
4338 main ()
4339 {
4340 #ifndef __GNUC__
4341        choke me
4342 #endif
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_c_try_compile "$LINENO"; then :
4349   ac_compiler_gnu=yes
4350 else
4351   ac_compiler_gnu=no
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4360   GCC=yes
4361 else
4362   GCC=
4363 fi
4364 ac_test_CFLAGS=${CFLAGS+set}
4365 ac_save_CFLAGS=$CFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cc_g+set}" = set; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   ac_save_c_werror_flag=$ac_c_werror_flag
4372    ac_c_werror_flag=yes
4373    ac_cv_prog_cc_g=no
4374    CFLAGS="-g"
4375    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387   ac_cv_prog_cc_g=yes
4388 else
4389   CFLAGS=""
4390       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"; then :
4402
4403 else
4404   ac_c_werror_flag=$ac_save_c_werror_flag
4405          CFLAGS="-g"
4406          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_compile "$LINENO"; then :
4418   ac_cv_prog_cc_g=yes
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425    ac_c_werror_flag=$ac_save_c_werror_flag
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428 $as_echo "$ac_cv_prog_cc_g" >&6; }
4429 if test "$ac_test_CFLAGS" = set; then
4430   CFLAGS=$ac_save_CFLAGS
4431 elif test $ac_cv_prog_cc_g = yes; then
4432   if test "$GCC" = yes; then
4433     CFLAGS="-g -O2"
4434   else
4435     CFLAGS="-g"
4436   fi
4437 else
4438   if test "$GCC" = yes; then
4439     CFLAGS="-O2"
4440   else
4441     CFLAGS=
4442   fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   ac_cv_prog_cc_c89=no
4450 ac_save_CC=$CC
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #include <stdarg.h>
4454 #include <stdio.h>
4455 #include <sys/types.h>
4456 #include <sys/stat.h>
4457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4458 struct buf { int x; };
4459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460 static char *e (p, i)
4461      char **p;
4462      int i;
4463 {
4464   return p[i];
4465 }
4466 static char *f (char * (*g) (char **, int), char **p, ...)
4467 {
4468   char *s;
4469   va_list v;
4470   va_start (v,p);
4471   s = g (p, va_arg (v,int));
4472   va_end (v);
4473   return s;
4474 }
4475
4476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4477    function prototypes and stuff, but not '\xHH' hex character constants.
4478    These don't provoke an error unfortunately, instead are silently treated
4479    as 'x'.  The following induces an error, until -std is added to get
4480    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4481    array size at least.  It's necessary to write '\x00'==0 to get something
4482    that's true only with -std.  */
4483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4484
4485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486    inside strings and character constants.  */
4487 #define FOO(x) 'x'
4488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4489
4490 int test (int i, double x);
4491 struct s1 {int (*f) (int a);};
4492 struct s2 {int (*f) (double a);};
4493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4494 int argc;
4495 char **argv;
4496 int
4497 main ()
4498 {
4499 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4506 do
4507   CC="$ac_save_CC $ac_arg"
4508   if ac_fn_c_try_compile "$LINENO"; then :
4509   ac_cv_prog_cc_c89=$ac_arg
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext
4512   test "x$ac_cv_prog_cc_c89" != "xno" && break
4513 done
4514 rm -f conftest.$ac_ext
4515 CC=$ac_save_CC
4516
4517 fi
4518 # AC_CACHE_VAL
4519 case "x$ac_cv_prog_cc_c89" in
4520   x)
4521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522 $as_echo "none needed" >&6; } ;;
4523   xno)
4524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525 $as_echo "unsupported" >&6; } ;;
4526   *)
4527     CC="$CC $ac_cv_prog_cc_c89"
4528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4530 esac
4531 if test "x$ac_cv_prog_cc_c89" != xno; then :
4532
4533 fi
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541 ac_ext=cpp
4542 ac_cpp='$CXXCPP $CPPFLAGS'
4543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4546 if test -z "$CXX"; then
4547   if test -n "$CCC"; then
4548     CXX=$CCC
4549   else
4550     if test -n "$ac_tool_prefix"; then
4551   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4552   do
4553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_CXX+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -n "$CXX"; then
4561   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575   done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 CXX=$ac_cv_prog_CXX
4581 if test -n "$CXX"; then
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4583 $as_echo "$CXX" >&6; }
4584 else
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590     test -n "$CXX" && break
4591   done
4592 fi
4593 if test -z "$CXX"; then
4594   ac_ct_CXX=$CXX
4595   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 do
4597   # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if test -n "$ac_ct_CXX"; then
4605   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612     for ac_exec_ext in '' $ac_executable_extensions; do
4613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614     ac_cv_prog_ac_ct_CXX="$ac_prog"
4615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619   done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4625 if test -n "$ac_ct_CXX"; then
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4627 $as_echo "$ac_ct_CXX" >&6; }
4628 else
4629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634   test -n "$ac_ct_CXX" && break
4635 done
4636
4637   if test "x$ac_ct_CXX" = x; then
4638     CXX="g++"
4639   else
4640     case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646     CXX=$ac_ct_CXX
4647   fi
4648 fi
4649
4650   fi
4651 fi
4652 # Provide some information about the compiler.
4653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4654 set X $ac_compile
4655 ac_compiler=$2
4656 for ac_option in --version -v -V -qversion; do
4657   { { ac_try="$ac_compiler $ac_option >&5"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4665   ac_status=$?
4666   if test -s conftest.err; then
4667     sed '10a\
4668 ... rest of stderr output deleted ...
4669          10q' conftest.err >conftest.er1
4670     cat conftest.er1 >&5
4671     rm -f conftest.er1 conftest.err
4672   fi
4673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674   test $ac_status = 0; }
4675 done
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h.  */
4684
4685 int
4686 main ()
4687 {
4688 #ifndef __GNUC__
4689        choke me
4690 #endif
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_cxx_try_compile "$LINENO"; then :
4697   ac_compiler_gnu=yes
4698 else
4699   ac_compiler_gnu=no
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4707 if test $ac_compiler_gnu = yes; then
4708   GXX=yes
4709 else
4710   GXX=
4711 fi
4712 ac_test_CXXFLAGS=${CXXFLAGS+set}
4713 ac_save_CXXFLAGS=$CXXFLAGS
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4720    ac_cxx_werror_flag=yes
4721    ac_cv_prog_cxx_g=no
4722    CXXFLAGS="-g"
4723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h.  */
4725
4726 int
4727 main ()
4728 {
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4735   ac_cv_prog_cxx_g=yes
4736 else
4737   CXXFLAGS=""
4738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740
4741 int
4742 main ()
4743 {
4744
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_cxx_try_compile "$LINENO"; then :
4750
4751 else
4752   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4753          CXXFLAGS="-g"
4754          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 int
4758 main ()
4759 {
4760
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4766   ac_cv_prog_cxx_g=yes
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4777 if test "$ac_test_CXXFLAGS" = set; then
4778   CXXFLAGS=$ac_save_CXXFLAGS
4779 elif test $ac_cv_prog_cxx_g = yes; then
4780   if test "$GXX" = yes; then
4781     CXXFLAGS="-g -O2"
4782   else
4783     CXXFLAGS="-g"
4784   fi
4785 else
4786   if test "$GXX" = yes; then
4787     CXXFLAGS="-O2"
4788   else
4789     CXXFLAGS=
4790   fi
4791 fi
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799 # We must set the default linker to the linker used by gcc for the correct
4800 # operation of libtool.  If LD is not defined and we are using gcc, try to
4801 # set the LD default to the ld used by gcc.
4802 if test -z "$LD"; then
4803   if test "$GCC" = yes; then
4804     case $build in
4805     *-*-mingw*)
4806       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4807     *)
4808       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4809     esac
4810     case $gcc_prog_ld in
4811     # Accept absolute paths.
4812     [\\/]* | [A-Za-z]:[\\/]*)
4813       LD="$gcc_prog_ld" ;;
4814     esac
4815   fi
4816 fi
4817
4818
4819
4820
4821 if test -n "$ac_tool_prefix"; then
4822   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   if test -n "$GNATBIND"; then
4830   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837     for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844   done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 GNATBIND=$ac_cv_prog_GNATBIND
4850 if test -n "$GNATBIND"; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4852 $as_echo "$GNATBIND" >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858
4859 fi
4860 if test -z "$ac_cv_prog_GNATBIND"; then
4861   ac_ct_GNATBIND=$GNATBIND
4862   # Extract the first word of "gnatbind", so it can be a program name with args.
4863 set dummy gnatbind; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$ac_ct_GNATBIND"; then
4870   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4890 if test -n "$ac_ct_GNATBIND"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4892 $as_echo "$ac_ct_GNATBIND" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898   if test "x$ac_ct_GNATBIND" = x; then
4899     GNATBIND="no"
4900   else
4901     case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907     GNATBIND=$ac_ct_GNATBIND
4908   fi
4909 else
4910   GNATBIND="$ac_cv_prog_GNATBIND"
4911 fi
4912
4913 if test -n "$ac_tool_prefix"; then
4914   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   if test -n "$GNATMAKE"; then
4922   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927   IFS=$as_save_IFS
4928   test -z "$as_dir" && as_dir=.
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936   done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 GNATMAKE=$ac_cv_prog_GNATMAKE
4942 if test -n "$GNATMAKE"; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4944 $as_echo "$GNATMAKE" >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$ac_cv_prog_GNATMAKE"; then
4953   ac_ct_GNATMAKE=$GNATMAKE
4954   # Extract the first word of "gnatmake", so it can be a program name with args.
4955 set dummy gnatmake; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   if test -n "$ac_ct_GNATMAKE"; then
4962   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976   done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4982 if test -n "$ac_ct_GNATMAKE"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4984 $as_echo "$ac_ct_GNATMAKE" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990   if test "x$ac_ct_GNATMAKE" = x; then
4991     GNATMAKE="no"
4992   else
4993     case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4998 esac
4999     GNATMAKE=$ac_ct_GNATMAKE
5000   fi
5001 else
5002   GNATMAKE="$ac_cv_prog_GNATMAKE"
5003 fi
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5006 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5007 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5008   $as_echo_n "(cached) " >&6
5009 else
5010   cat >conftest.adb <<EOF
5011 procedure conftest is begin null; end conftest;
5012 EOF
5013 acx_cv_cc_gcc_supports_ada=no
5014 # There is a bug in old released versions of GCC which causes the
5015 # driver to exit successfully when the appropriate language module
5016 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5017 # Therefore we must check for the error message as well as an
5018 # unsuccessful exit.
5019 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5020 # given a .adb file, but produce no object file.  So we must check
5021 # if an object file was really produced to guard against this.
5022 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5023 if test x"$errors" = x && test -f conftest.$ac_objext; then
5024   acx_cv_cc_gcc_supports_ada=yes
5025 fi
5026 rm -f conftest.*
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5029 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5030
5031 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5032   have_gnat=yes
5033 else
5034   have_gnat=no
5035 fi
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5038 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5039 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042    echo abfoo >t1
5043   echo cdfoo >t2
5044   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5045   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5046     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5047       :
5048     else
5049       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5050     fi
5051   fi
5052   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5053     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5054       :
5055     else
5056       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5057     fi
5058   fi
5059   rm t1 t2
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5063 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5064 do_compare="$gcc_cv_prog_cmp_skip"
5065
5066
5067
5068 # See if we are building gcc with C++.
5069 # Check whether --enable-build-with-cxx was given.
5070 if test "${enable_build_with_cxx+set}" = set; then :
5071   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5072 else
5073   ENABLE_BUILD_WITH_CXX=no
5074 fi
5075
5076
5077 # Used for setting $lt_cv_objdir
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5079 $as_echo_n "checking for objdir... " >&6; }
5080 if test "${lt_cv_objdir+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   rm -f .libs 2>/dev/null
5084 mkdir .libs 2>/dev/null
5085 if test -d .libs; then
5086   lt_cv_objdir=.libs
5087 else
5088   # MS-DOS does not allow filenames that begin with a dot.
5089   lt_cv_objdir=_libs
5090 fi
5091 rmdir .libs 2>/dev/null
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5094 $as_echo "$lt_cv_objdir" >&6; }
5095 objdir=$lt_cv_objdir
5096
5097
5098
5099
5100
5101 cat >>confdefs.h <<_ACEOF
5102 #define LT_OBJDIR "$lt_cv_objdir/"
5103 _ACEOF
5104
5105
5106
5107 # Check for GMP, MPFR and MPC
5108 gmplibs="-lmpc -lmpfr -lgmp"
5109 gmpinc=
5110 have_gmp=no
5111
5112 # Specify a location for mpc
5113 # check for this first so it ends up on the link line before mpfr.
5114
5115 # Check whether --with-mpc was given.
5116 if test "${with_mpc+set}" = set; then :
5117   withval=$with_mpc;
5118 fi
5119
5120
5121 # Check whether --with-mpc_include was given.
5122 if test "${with_mpc_include+set}" = set; then :
5123   withval=$with_mpc_include;
5124 fi
5125
5126
5127 # Check whether --with-mpc_lib was given.
5128 if test "${with_mpc_lib+set}" = set; then :
5129   withval=$with_mpc_lib;
5130 fi
5131
5132
5133 if test "x$with_mpc" != x; then
5134   gmplibs="-L$with_mpc/lib $gmplibs"
5135   gmpinc="-I$with_mpc/include $gmpinc"
5136 fi
5137 if test "x$with_mpc_include" != x; then
5138   gmpinc="-I$with_mpc_include $gmpinc"
5139 fi
5140 if test "x$with_mpc_lib" != x; then
5141   gmplibs="-L$with_mpc_lib $gmplibs"
5142 fi
5143 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5144   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5145   gmpinc='-I$$s/mpc/src '"$gmpinc"
5146   # Do not test the mpc version.  Assume that it is sufficient, since
5147   # it is in the source tree, and the library has not been built yet
5148   # but it would be included on the link line in the version check below
5149   # hence making the test fail.
5150   have_gmp=yes
5151 fi
5152
5153 # Specify a location for mpfr
5154 # check for this first so it ends up on the link line before gmp.
5155
5156 # Check whether --with-mpfr-dir was given.
5157 if test "${with_mpfr_dir+set}" = set; then :
5158   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5159 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5160 fi
5161
5162
5163
5164 # Check whether --with-mpfr was given.
5165 if test "${with_mpfr+set}" = set; then :
5166   withval=$with_mpfr;
5167 fi
5168
5169
5170 # Check whether --with-mpfr_include was given.
5171 if test "${with_mpfr_include+set}" = set; then :
5172   withval=$with_mpfr_include;
5173 fi
5174
5175
5176 # Check whether --with-mpfr_lib was given.
5177 if test "${with_mpfr_lib+set}" = set; then :
5178   withval=$with_mpfr_lib;
5179 fi
5180
5181
5182 if test "x$with_mpfr" != x; then
5183   gmplibs="-L$with_mpfr/lib $gmplibs"
5184   gmpinc="-I$with_mpfr/include $gmpinc"
5185 fi
5186 if test "x$with_mpfr_include" != x; then
5187   gmpinc="-I$with_mpfr_include $gmpinc"
5188 fi
5189 if test "x$with_mpfr_lib" != x; then
5190   gmplibs="-L$with_mpfr_lib $gmplibs"
5191 fi
5192 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5193   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5194   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5195   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5196   # Do not test the mpfr version.  Assume that it is sufficient, since
5197   # it is in the source tree, and the library has not been built yet
5198   # but it would be included on the link line in the version check below
5199   # hence making the test fail.
5200   have_gmp=yes
5201 fi
5202
5203 # Specify a location for gmp
5204
5205 # Check whether --with-gmp-dir was given.
5206 if test "${with_gmp_dir+set}" = set; then :
5207   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5208 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5209 fi
5210
5211
5212
5213 # Check whether --with-gmp was given.
5214 if test "${with_gmp+set}" = set; then :
5215   withval=$with_gmp;
5216 fi
5217
5218
5219 # Check whether --with-gmp_include was given.
5220 if test "${with_gmp_include+set}" = set; then :
5221   withval=$with_gmp_include;
5222 fi
5223
5224
5225 # Check whether --with-gmp_lib was given.
5226 if test "${with_gmp_lib+set}" = set; then :
5227   withval=$with_gmp_lib;
5228 fi
5229
5230
5231
5232 if test "x$with_gmp" != x; then
5233   gmplibs="-L$with_gmp/lib $gmplibs"
5234   gmpinc="-I$with_gmp/include $gmpinc"
5235 fi
5236 if test "x$with_gmp_include" != x; then
5237   gmpinc="-I$with_gmp_include $gmpinc"
5238 fi
5239 if test "x$with_gmp_lib" != x; then
5240   gmplibs="-L$with_gmp_lib $gmplibs"
5241 fi
5242 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5243   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5244   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5245   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5246   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5247   # Do not test the gmp version.  Assume that it is sufficient, since
5248   # it is in the source tree, and the library has not been built yet
5249   # but it would be included on the link line in the version check below
5250   # hence making the test fail.
5251   have_gmp=yes
5252 fi
5253
5254 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5255   have_gmp=yes
5256   saved_CFLAGS="$CFLAGS"
5257   CFLAGS="$CFLAGS $gmpinc"
5258   # Check for the recommended and required versions of GMP.
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5260 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5261
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264 #include "gmp.h"
5265 int
5266 main ()
5267 {
5268
5269   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5270   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5271   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5272   choke me
5273   #endif
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h.  */
5282 #include <gmp.h>
5283 int
5284 main ()
5285 {
5286
5287   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5288   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5289   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5290   choke me
5291   #endif
5292
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5302 $as_echo "buggy but acceptable" >&6; }
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 else
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }; have_gmp=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
5311   # If we have GMP, check the MPFR version.
5312   if test x"$have_gmp" = xyes; then
5313     # Check for the recommended and required versions of MPFR.
5314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5315 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318 #include <gmp.h>
5319     #include <mpfr.h>
5320 int
5321 main ()
5322 {
5323
5324     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5325     choke me
5326     #endif
5327
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h.  */
5335 #include <gmp.h>
5336     #include <mpfr.h>
5337 int
5338 main ()
5339 {
5340
5341     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5342     choke me
5343     #endif
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354 $as_echo "buggy but acceptable" >&6; }
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }; have_gmp=no
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362   fi
5363
5364   # Check for the MPC header version.
5365   if test x"$have_gmp" = xyes ; then
5366     # Check for the recommended and required versions of MPC.
5367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5368 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371 #include <mpc.h>
5372 int
5373 main ()
5374 {
5375
5376     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5377     choke me
5378     #endif
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h.  */
5387 #include <mpc.h>
5388 int
5389 main ()
5390 {
5391
5392     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5393     choke me
5394     #endif
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5405 $as_echo "buggy but acceptable" >&6; }
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }; have_gmp=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413   fi
5414
5415   # Now check the MPFR library.
5416   if test x"$have_gmp" = xyes; then
5417     saved_LIBS="$LIBS"
5418     LIBS="$LIBS $gmplibs"
5419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5420 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h.  */
5423 #include <mpc.h>
5424 int
5425 main ()
5426 {
5427
5428     mpfr_t n;
5429     mpfr_t x;
5430     mpc_t c;
5431     int t;
5432     mpfr_init (n);
5433     mpfr_init (x);
5434     mpfr_atan2 (n, n, x, GMP_RNDN);
5435     mpfr_erfc (n, x, GMP_RNDN);
5436     mpfr_subnormalize (x, t, GMP_RNDN);
5437     mpfr_clear(n);
5438     mpfr_clear(x);
5439     mpc_init2 (c, 53);
5440     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5441     mpc_cosh (c, c, MPC_RNDNN);
5442     mpc_pow (c, c, c, MPC_RNDNN);
5443     mpc_acosh (c, c, MPC_RNDNN);
5444     mpc_clear (c);
5445
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_link "$LINENO"; then :
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }; have_gmp=no
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext \
5458     conftest$ac_exeext conftest.$ac_ext
5459     LIBS="$saved_LIBS"
5460   fi
5461
5462   CFLAGS="$saved_CFLAGS"
5463
5464 # The library versions listed in the error message below should match
5465 # the HARD-minimums enforced above.
5466   if test x$have_gmp != xyes; then
5467     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5468 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5469 their locations.  Source code for these libraries can be found at
5470 their respective hosting sites as well as at
5471 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5472 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5473 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5474 make sure that you have installed both the libraries and the header
5475 files.  They may be located in separate packages." "$LINENO" 5
5476   fi
5477 fi
5478
5479 # Flags needed for both GMP, MPFR and/or MPC.
5480
5481
5482
5483
5484
5485
5486 # Allow host libstdc++ to be specified for static linking with PPL.
5487
5488 # Check whether --with-host-libstdcxx was given.
5489 if test "${with_host_libstdcxx+set}" = set; then :
5490   withval=$with_host_libstdcxx;
5491 fi
5492
5493
5494 case $with_host_libstdcxx in
5495   no|yes)
5496     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5497     ;;
5498 esac
5499
5500 # Linker flags to use for stage1 or when not boostrapping.
5501
5502 # Check whether --with-stage1-ldflags was given.
5503 if test "${with_stage1_ldflags+set}" = set; then :
5504   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5505    stage1_ldflags=
5506  else
5507    stage1_ldflags=$withval
5508  fi
5509 else
5510   stage1_ldflags=
5511 fi
5512
5513
5514
5515 # Libraries to use for stage1 or when not bootstrapping.
5516
5517 # Check whether --with-stage1-libs was given.
5518 if test "${with_stage1_libs+set}" = set; then :
5519   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5520    stage1_libs=
5521  else
5522    stage1_libs=$withval
5523  fi
5524 else
5525   stage1_libs=$with_host_libstdcxx
5526 fi
5527
5528
5529
5530 # Libraries to use for stage2 and later builds.  This defaults to the
5531 # argument passed to --with-host-libstdcxx.
5532
5533 # Check whether --with-boot-libs was given.
5534 if test "${with_boot_libs+set}" = set; then :
5535   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5536    poststage1_libs=
5537  else
5538    poststage1_libs=$withval
5539  fi
5540 else
5541   poststage1_libs=$with_host_libstdcxx
5542 fi
5543
5544
5545
5546 # Linker flags to use for stage2 and later builds.
5547
5548 # Check whether --with-boot-ldflags was given.
5549 if test "${with_boot_ldflags+set}" = set; then :
5550   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5551    poststage1_ldflags=
5552  else
5553    poststage1_ldflags=$withval
5554  fi
5555 else
5556   poststage1_ldflags=
5557  # With --enable-build-with-cxx, default to linking libstdc++ and
5558  # libgcc statically.  But if the user explicitly specified the
5559  # libraries to use, trust that they are doing what they want.
5560  if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5561    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5562  fi
5563 fi
5564
5565
5566
5567 # Check for PPL
5568 ppllibs=" -lppl_c -lppl -lgmpxx"
5569 pplinc=
5570
5571
5572 # Check whether --with-ppl was given.
5573 if test "${with_ppl+set}" = set; then :
5574   withval=$with_ppl;
5575 fi
5576
5577
5578 # Check whether --with-ppl_include was given.
5579 if test "${with_ppl_include+set}" = set; then :
5580   withval=$with_ppl_include;
5581 fi
5582
5583
5584 # Check whether --with-ppl_lib was given.
5585 if test "${with_ppl_lib+set}" = set; then :
5586   withval=$with_ppl_lib;
5587 fi
5588
5589
5590 case $with_ppl in
5591   no)
5592     ppllibs=
5593     ;;
5594   "" | yes)
5595     ;;
5596   *)
5597     ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5598     pplinc="-I$with_ppl/include $pplinc"
5599     ;;
5600 esac
5601 if test "x$with_ppl_include" != x; then
5602   pplinc="-I$with_ppl_include $pplinc"
5603 fi
5604 if test "x$with_ppl_lib" != x; then
5605   ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5606 fi
5607 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5608   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5609   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5610   enable_ppl_version_check=no
5611 fi
5612
5613 # Check whether --enable-ppl-version-check was given.
5614 if test "${enable_ppl_version_check+set}" = set; then :
5615   enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5616 else
5617   ENABLE_PPL_CHECK=yes
5618 fi
5619
5620
5621 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5622   saved_CFLAGS="$CFLAGS"
5623   CFLAGS="$CFLAGS $pplinc $gmpinc"
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5625 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h.  */
5628 #include "ppl_c.h"
5629 int
5630 main ()
5631 {
5632
5633   #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5634   choke me
5635   #endif
5636
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649   CFLAGS="$saved_CFLAGS"
5650 fi
5651
5652 # Flags needed for PPL
5653
5654
5655
5656
5657 # Check for CLOOG
5658
5659
5660
5661 # Check whether --with-cloog was given.
5662 if test "${with_cloog+set}" = set; then :
5663   withval=$with_cloog;
5664 fi
5665
5666
5667 # Check whether --with-cloog_include was given.
5668 if test "${with_cloog_include+set}" = set; then :
5669   withval=$with_cloog_include;
5670 fi
5671
5672
5673 # Check whether --with-cloog_lib was given.
5674 if test "${with_cloog_lib+set}" = set; then :
5675   withval=$with_cloog_lib;
5676 fi
5677
5678
5679   # Check whether --enable-cloog-version-check was given.
5680 if test "${enable_cloog_version_check+set}" = set; then :
5681   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5682 else
5683   ENABLE_CLOOG_CHECK=yes
5684 fi
5685
5686
5687   # Initialize clooglibs and clooginc.
5688   case $with_cloog in
5689     no)
5690       clooglibs=
5691       clooginc=
5692       ;;
5693     "" | yes)
5694       ;;
5695     *)
5696       clooglibs="-L$with_cloog/lib"
5697       clooginc="-I$with_cloog/include"
5698       ;;
5699   esac
5700   if test "x${with_cloog_include}" != x ; then
5701     clooginc="-I$with_cloog_include"
5702   fi
5703   if test "x${with_cloog_lib}" != x; then
5704     clooglibs="-L$with_cloog_lib"
5705   fi
5706
5707
5708
5709
5710
5711 if test "x$with_ppl" = "xno"; then
5712   with_cloog=no
5713 fi
5714 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5715   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5716   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5717   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5718 fi
5719 if test "x$with_cloog" != "xno"; then
5720
5721
5722
5723   _cloog_saved_CFLAGS=$CFLAGS
5724   _cloog_saved_CPPFLAGS=$CPPFLAGS
5725   _cloog_saved_LDFLAGS=$LDFLAGS
5726   _cloog_saved_LIBS=$LIBS
5727
5728   _clooglegacyinc="-DCLOOG_PPL_BACKEND"
5729   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5730
5731     CFLAGS="${CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5732   CPPFLAGS="${CPPFLAGS} ${_clooglegacyinc} ${_cloogorginc}"
5733   LDFLAGS="${LDFLAGS} ${clooglibs} ${ppllibs}"
5734
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG" >&5
5736 $as_echo_n "checking for installed CLooG... " >&6; }
5737 if test "${gcc_cv_cloog_type+set}" = set; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   LIBS="-lcloog ${_cloog_saved_LIBS}"
5741      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h.  */
5743 #include <cloog/cloog.h>
5744 int
5745 main ()
5746 {
5747 ppl_version_major ()
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_link "$LINENO"; then :
5753   gcc_cv_cloog_type="PPL Legacy"
5754 else
5755   LIBS="-lcloog-isl -lisl ${_cloog_saved_LIBS}"
5756        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 #include <cloog/cloog.h>
5759 int
5760 main ()
5761 {
5762 cloog_version ()
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_link "$LINENO"; then :
5768   gcc_cv_cloog_type=ISL
5769 else
5770   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773 #include <cloog/cloog.h>
5774 int
5775 main ()
5776 {
5777 cloog_version ()
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"; then :
5783   gcc_cv_cloog_type=PPL
5784 else
5785   gcc_cv_cloog_type=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext \
5788     conftest$ac_exeext conftest.$ac_ext
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext \
5791     conftest$ac_exeext conftest.$ac_ext
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext \
5794     conftest$ac_exeext conftest.$ac_ext
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5797 $as_echo "$gcc_cv_cloog_type" >&6; }
5798
5799   case $gcc_cv_cloog_type in
5800     "PPL Legacy")
5801       clooginc="${clooginc} ${_clooglegacyinc}"
5802       clooglibs="${clooglibs} -lcloog"
5803       cloog_org=no
5804       ;;
5805     "ISL")
5806       clooginc="${clooginc} ${_cloogorginc}"
5807       clooglibs="${clooglibs} -lcloog-isl"
5808       cloog_org=yes
5809       ;;
5810     "PPL")
5811       clooginc="${clooginc} ${_cloogorginc}"
5812       clooglibs="${clooglibs} -lcloog-ppl"
5813       cloog_org=yes
5814       ;;
5815     *)
5816       clooglibs=
5817       clooginc=
5818       cloog_org=
5819       ;;
5820   esac
5821
5822   LIBS=$_cloog_saved_LIBS
5823   CFLAGS=$_cloog_saved_CFLAGS
5824   CPPFLAGS=$_cloog_saved_CPPFLAGS
5825   LDFLAGS=$_cloog_saved_LDFLAGS
5826
5827
5828
5829
5830
5831   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5832     _cloog_saved_CFLAGS=$CFLAGS
5833     _cloog_saved_LDFLAGS=$LDFLAGS
5834
5835     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5836     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5837
5838     if test "${cloog_org}" = yes ; then
5839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for verison 0.14.0 of CLooG" >&5
5840 $as_echo_n "checking for verison 0.14.0 of CLooG... " >&6; }
5841 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846 #include "cloog/cloog.h"
5847 int
5848 main ()
5849 {
5850 #if CLOOG_VERSION_MAJOR != 0 \
5851     || CLOOG_VERSION_MINOR != 14 \
5852     || CLOOG_VERSION_REVISION < 0
5853     choke me
5854    #endif
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860   gcc_cv_cloog_ct_0_14_0=yes
5861 else
5862   gcc_cv_cloog_ct_0_14_0=no
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5867 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5868     elif test "${cloog_org}" = no ; then
5869       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5870 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5871 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876 #include "cloog/cloog.h"
5877 int
5878 main ()
5879 {
5880 #if CLOOG_VERSION_MAJOR != 0 \
5881     || CLOOG_VERSION_MINOR != 15 \
5882     || CLOOG_VERSION_REVISION < 5
5883     choke me
5884    #endif
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h.  */
5892 #include "cloog/cloog.h"
5893 int
5894 main ()
5895 {
5896 #if CLOOG_VERSION_MAJOR != 0 \
5897     || CLOOG_VERSION_MINOR != 15 \
5898     || CLOOG_VERSION_REVISION < 9
5899     choke me
5900    #endif
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 if ac_fn_c_try_compile "$LINENO"; then :
5906   gcc_cv_cloog_ct_0_15_5=yes
5907 else
5908   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 else
5912   gcc_cv_cloog_ct_0_15_5=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5917 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5918     fi
5919
5920     CFLAGS=$_cloog_saved_CFLAGS
5921     LDFLAGS=$_cloog_saved_LDFLAGS
5922   fi
5923
5924
5925
5926
5927
5928
5929
5930   if test "x${with_cloog}" != x \
5931     || test "x${with_cloog_include}" != x \
5932     || test "x${with_cloog_lib}" != x ; then
5933     graphite_requested=yes
5934   else
5935     graphite_requested=no
5936   fi
5937
5938
5939
5940   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5941     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5942     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5943     clooglibs=
5944     clooginc=
5945   fi
5946
5947   if test "${graphite_requested}" = yes \
5948     && test "x${clooglibs}" = x \
5949     && test "x${clooginc}" = x ; then
5950
5951     as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5952   fi
5953
5954
5955 fi
5956
5957 # Check for LTO support.
5958 # Check whether --enable-lto was given.
5959 if test "${enable_lto+set}" = set; then :
5960   enableval=$enable_lto; enable_lto=$enableval
5961 else
5962   enable_lto=yes; default_enable_lto=yes
5963 fi
5964
5965
5966
5967
5968
5969 target_elf=no
5970 case $target in
5971   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5972   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5973   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5974     target_elf=no
5975     ;;
5976   *)
5977     target_elf=yes
5978     ;;
5979 esac
5980
5981 if test $target_elf = yes; then :
5982   # ELF platforms build the lto-plugin always.
5983   build_lto_plugin=yes
5984
5985 else
5986   if test x"$default_enable_lto" = x"yes" ; then
5987     case $target in
5988       *-apple-darwin* | *-cygwin* | *-mingw*) ;;
5989       # On other non-ELF platforms, LTO has yet to be validated.
5990       *) enable_lto=no ;;
5991     esac
5992   else
5993   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5994   # It would also be nice to check the binutils support, but we don't
5995   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5996   # warn during gcc/ subconfigure; unless you're bootstrapping with
5997   # -flto it won't be needed until after installation anyway.
5998     case $target in
5999       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6000       *) if test x"$enable_lto" = x"yes"; then
6001         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6002         fi
6003       ;;
6004     esac
6005   fi
6006   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6007   # Build it unless LTO was explicitly disabled.
6008   case $target in
6009     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6010     *) ;;
6011   esac
6012
6013 fi
6014
6015
6016
6017 # By default, C is the only stage 1 language.
6018 stage1_languages=,c,
6019
6020 # Target libraries that we bootstrap.
6021 bootstrap_target_libs=,target-libgcc,
6022
6023 # Figure out what language subdirectories are present.
6024 # Look if the user specified --enable-languages="..."; if not, use
6025 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6026 # go away some day.
6027 # NB:  embedded tabs in this IF block -- do not untabify
6028 if test -d ${srcdir}/gcc; then
6029   if test x"${enable_languages+set}" != xset; then
6030     if test x"${LANGUAGES+set}" = xset; then
6031       enable_languages="${LANGUAGES}"
6032         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6033     else
6034       enable_languages=all
6035     fi
6036   else
6037     if test x"${enable_languages}" = x ||
6038        test x"${enable_languages}" = xyes;
6039        then
6040       echo configure.in: --enable-languages needs at least one language argument 1>&2
6041       exit 1
6042     fi
6043   fi
6044   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6045
6046   # 'f95' is the old name for the 'fortran' language. We issue a warning
6047   # and make the substitution.
6048   case ,${enable_languages}, in
6049     *,f95,*)
6050       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6051       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6052       ;;
6053   esac
6054
6055   # First scan to see if an enabled language requires some other language.
6056   # We assume that a given config-lang.in will list all the language
6057   # front ends it requires, even if some are required indirectly.
6058   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6059     case ${lang_frag} in
6060       ..) ;;
6061       # The odd quoting in the next line works around
6062       # an apparent bug in bash 1.12 on linux.
6063       ${srcdir}/gcc/[*]/config-lang.in) ;;
6064       *)
6065         # From the config-lang.in, get $language, $lang_requires
6066         language=
6067         lang_requires=
6068         . ${lang_frag}
6069         for other in ${lang_requires} ; do
6070           case ,${enable_languages}, in
6071             *,$other,*) ;;
6072             *,all,*) ;;
6073             *,$language,*)
6074               echo " \`$other' language required by \`$language'; enabling" 1>&2
6075               enable_languages="${enable_languages},${other}"
6076               ;;
6077           esac
6078         done
6079         ;;
6080     esac
6081   done
6082
6083   new_enable_languages=,c,
6084
6085   # If LTO is enabled, add the LTO front end.
6086   extra_host_libiberty_configure_flags=
6087   if test "$enable_lto" = "yes" ; then
6088     case ,${enable_languages}, in
6089       *,lto,*) ;;
6090       *) enable_languages="${enable_languages},lto" ;;
6091     esac
6092     if test "${build_lto_plugin}" = "yes" ; then
6093       configdirs="$configdirs lto-plugin"
6094       extra_host_libiberty_configure_flags=--enable-shared
6095     fi
6096   fi
6097
6098
6099   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6100   potential_languages=,c,
6101
6102   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6103     case ${lang_frag} in
6104       ..) ;;
6105       # The odd quoting in the next line works around
6106       # an apparent bug in bash 1.12 on linux.
6107       ${srcdir}/gcc/[*]/config-lang.in) ;;
6108       *)
6109         # From the config-lang.in, get $language, $target_libs,
6110         # $lang_dirs, $boot_language, and $build_by_default
6111         language=
6112         target_libs=
6113         lang_dirs=
6114         subdir_requires=
6115         boot_language=no
6116         build_by_default=yes
6117         . ${lang_frag}
6118         if test x${language} = x; then
6119           echo "${lang_frag} doesn't set \$language." 1>&2
6120           exit 1
6121         fi
6122
6123         if test "$language" = "c++" \
6124            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6125           boot_language=yes
6126         fi
6127
6128         case ,${enable_languages}, in
6129           *,${language},*)
6130             # Language was explicitly selected; include it.
6131             add_this_lang=yes
6132             ;;
6133           *,all,*)
6134             # 'all' was selected, select it if it is a default language
6135             add_this_lang=${build_by_default}
6136             ;;
6137           *)
6138             add_this_lang=no
6139             ;;
6140         esac
6141
6142         # Disable languages that need other directories if these aren't available.
6143         for i in $subdir_requires; do
6144           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6145           case ,${enable_languages}, in
6146             *,${language},*)
6147               # Specifically requested language; tell them.
6148               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6149               ;;
6150             *)
6151               # Silently disable.
6152               add_this_lang=unsupported
6153               ;;
6154           esac
6155         done
6156
6157         # Disable Ada if no preexisting GNAT is available.
6158         case ,${enable_languages},:${language}:${have_gnat} in
6159           *,${language},*:ada:no)
6160             # Specifically requested language; tell them.
6161             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6162             ;;
6163           *:ada:no)
6164             # Silently disable.
6165             add_this_lang=unsupported
6166             ;;
6167         esac
6168
6169         # Disable a language that is unsupported by the target.
6170         case " $unsupported_languages " in
6171           *" $language "*)
6172             add_this_lang=unsupported
6173             ;;
6174         esac
6175
6176         case $add_this_lang in
6177           unsupported)
6178             # Remove language-dependent dirs.
6179             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6180             ;;
6181           no)
6182             # Remove language-dependent dirs; still show language as supported.
6183             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6184             potential_languages="${potential_languages}${language},"
6185             ;;
6186           yes)
6187             new_enable_languages="${new_enable_languages}${language},"
6188             potential_languages="${potential_languages}${language},"
6189             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6190             case "${boot_language}:,$enable_stage1_languages," in
6191               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6192                 # Add to (comma-separated) list of stage 1 languages.
6193                 case ",$stage1_languages," in
6194                   *,$language,* | ,yes, | ,all,) ;;
6195                   *) stage1_languages="${stage1_languages}${language}," ;;
6196                 esac
6197                 # We need to bootstrap any supporting libraries.
6198                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6199                 ;;
6200             esac
6201             ;;
6202         esac
6203         ;;
6204     esac
6205   done
6206
6207   # Check whether --enable-stage1-languages was given.
6208 if test "${enable_stage1_languages+set}" = set; then :
6209   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6210     ,no,|,,)
6211       # Set it to something that will have no effect in the loop below
6212       enable_stage1_languages=c ;;
6213     ,yes,)
6214       enable_stage1_languages=`echo $new_enable_languages | \
6215         sed -e "s/^,//" -e "s/,$//" ` ;;
6216     *,all,*)
6217       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6218         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6219   esac
6220
6221   # Add "good" languages from enable_stage1_languages to stage1_languages,
6222   # while "bad" languages go in missing_languages.  Leave no duplicates.
6223   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6224     case $potential_languages in
6225       *,$i,*)
6226         case $stage1_languages in
6227           *,$i,*) ;;
6228           *) stage1_languages="$stage1_languages$i," ;;
6229         esac ;;
6230       *)
6231         case $missing_languages in
6232           *,$i,*) ;;
6233           *) missing_languages="$missing_languages$i," ;;
6234         esac ;;
6235      esac
6236   done
6237 fi
6238
6239
6240   # Remove leading/trailing commas that were added for simplicity
6241   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6242   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6243   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6244   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6245
6246   if test "x$missing_languages" != x; then
6247     as_fn_error "
6248 The following requested languages could not be built: ${missing_languages}
6249 Supported languages are: ${potential_languages}" "$LINENO" 5
6250   fi
6251   if test "x$new_enable_languages" != "x$enable_languages"; then
6252     echo The following languages will be built: ${new_enable_languages}
6253     enable_languages="$new_enable_languages"
6254   fi
6255
6256
6257   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6258 fi
6259
6260 # Handle --disable-<component> generically.
6261 for dir in $configdirs $build_configdirs $target_configdirs ; do
6262   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6263   varname=`echo $dirname | sed -e s/+/_/g`
6264   if eval test x\${enable_${varname}} "=" xno ; then
6265     noconfigdirs="$noconfigdirs $dir"
6266   fi
6267 done
6268
6269 # Check for Boehm's garbage collector
6270 # Check whether --enable-objc-gc was given.
6271 if test "${enable_objc_gc+set}" = set; then :
6272   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6273   *,objc,*:*:yes:*target-boehm-gc*)
6274     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6275     ;;
6276 esac
6277 fi
6278
6279
6280 # Make sure we only build Boehm's garbage collector if required.
6281 case ,${enable_languages},:${enable_objc_gc} in
6282   *,objc,*:yes)
6283     # Keep target-boehm-gc if requested for Objective-C.
6284     ;;
6285   *)
6286     # Otherwise remove target-boehm-gc depending on target-libjava.
6287     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6288       noconfigdirs="$noconfigdirs target-boehm-gc"
6289     fi
6290     ;;
6291 esac
6292
6293 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6294 # $build_configdirs and $target_configdirs.
6295 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6296
6297 notsupp=""
6298 for dir in . $skipdirs $noconfigdirs ; do
6299   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6300   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6301     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6302     if test -r $srcdir/$dirname/configure ; then
6303       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6304         true
6305       else
6306         notsupp="$notsupp $dir"
6307       fi
6308     fi
6309   fi
6310   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6311     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6312     if test -r $srcdir/$dirname/configure ; then
6313       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6314         true
6315       else
6316         notsupp="$notsupp $dir"
6317       fi
6318     fi
6319   fi
6320   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6321     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6322     if test -r $srcdir/$dirname/configure ; then
6323       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6324         true
6325       else
6326         notsupp="$notsupp $dir"
6327       fi
6328     fi
6329   fi
6330 done
6331
6332 # Sometimes the tools are distributed with libiberty but with no other
6333 # libraries.  In that case, we don't want to build target-libiberty.
6334 # Don't let libgcc imply libiberty either.
6335 if test -n "${target_configdirs}" ; then
6336   libgcc=
6337   others=
6338   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6339     if test "$i" = "libgcc"; then
6340       libgcc=target-libgcc
6341     elif test "$i" != "libiberty" ; then
6342       if test -r $srcdir/$i/configure ; then
6343         others=yes;
6344         break;
6345       fi
6346     fi
6347   done
6348   if test -z "${others}" ; then
6349     target_configdirs=$libgcc
6350   fi
6351 fi
6352
6353 # Quietly strip out all directories which aren't configurable in this tree.
6354 # This relies on all configurable subdirectories being autoconfiscated, which
6355 # is now the case.
6356 build_configdirs_all="$build_configdirs"
6357 build_configdirs=
6358 for i in ${build_configdirs_all} ; do
6359   j=`echo $i | sed -e s/build-//g`
6360   if test -f ${srcdir}/$j/configure ; then
6361     build_configdirs="${build_configdirs} $i"
6362   fi
6363 done
6364
6365 configdirs_all="$configdirs"
6366 configdirs=
6367 for i in ${configdirs_all} ; do
6368   if test -f ${srcdir}/$i/configure ; then
6369     configdirs="${configdirs} $i"
6370   fi
6371 done
6372
6373 target_configdirs_all="$target_configdirs"
6374 target_configdirs=
6375 for i in ${target_configdirs_all} ; do
6376   j=`echo $i | sed -e s/target-//g`
6377   if test -f ${srcdir}/$j/configure ; then
6378     target_configdirs="${target_configdirs} $i"
6379   fi
6380 done
6381
6382 # Produce a warning message for the subdirs we can't configure.
6383 # This isn't especially interesting in the Cygnus tree, but in the individual
6384 # FSF releases, it's important to let people know when their machine isn't
6385 # supported by the one or two programs in a package.
6386
6387 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6388   # If $appdirs is non-empty, at least one of those directories must still
6389   # be configured, or we error out.  (E.g., if the gas release supports a
6390   # specified target in some subdirs but not the gas subdir, we shouldn't
6391   # pretend that all is well.)
6392   if test -n "$appdirs" ; then
6393     for dir in $appdirs ; do
6394       if test -r $dir/Makefile.in ; then
6395         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6396           appdirs=""
6397           break
6398         fi
6399         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6400           appdirs=""
6401           break
6402         fi
6403       fi
6404     done
6405     if test -n "$appdirs" ; then
6406       echo "*** This configuration is not supported by this package." 1>&2
6407       exit 1
6408     fi
6409   fi
6410   # Okay, some application will build, or we don't care to check.  Still
6411   # notify of subdirs not getting built.
6412   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6413   echo "    ${notsupp}" 1>&2
6414   echo "    (Any other directories should still work fine.)" 1>&2
6415 fi
6416
6417 case "$host" in
6418   *msdosdjgpp*)
6419     enable_gdbtk=no ;;
6420 esac
6421
6422 # To find our prefix, in gcc_cv_tool_prefix.
6423
6424 # The user is always right.
6425 if test "${PATH_SEPARATOR+set}" != set; then
6426   echo "#! /bin/sh" >conf$$.sh
6427   echo  "exit 0"   >>conf$$.sh
6428   chmod +x conf$$.sh
6429   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6430     PATH_SEPARATOR=';'
6431   else
6432     PATH_SEPARATOR=:
6433   fi
6434   rm -f conf$$.sh
6435 fi
6436
6437
6438
6439 if test "x$exec_prefix" = xNONE; then
6440         if test "x$prefix" = xNONE; then
6441                 gcc_cv_tool_prefix=$ac_default_prefix
6442         else
6443                 gcc_cv_tool_prefix=$prefix
6444         fi
6445 else
6446         gcc_cv_tool_prefix=$exec_prefix
6447 fi
6448
6449 # If there is no compiler in the tree, use the PATH only.  In any
6450 # case, if there is no compiler in the tree nobody should use
6451 # AS_FOR_TARGET and LD_FOR_TARGET.
6452 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6453     gcc_version=`cat $srcdir/gcc/BASE-VER`
6454     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6455     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6456     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6457     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6458     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6459     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6460 else
6461     gcc_cv_tool_dirs=
6462 fi
6463
6464 if test x$build = x$target && test -n "$md_exec_prefix"; then
6465         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6466 fi
6467
6468
6469
6470 copy_dirs=
6471
6472
6473 # Check whether --with-build-sysroot was given.
6474 if test "${with_build_sysroot+set}" = set; then :
6475   withval=$with_build_sysroot; if test x"$withval" != x ; then
6476      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6477    fi
6478 else
6479   SYSROOT_CFLAGS_FOR_TARGET=
6480 fi
6481
6482
6483
6484
6485 # Check whether --with-debug-prefix-map was given.
6486 if test "${with_debug_prefix_map+set}" = set; then :
6487   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6488      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6489      for debug_map in $withval; do
6490        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6491      done
6492    fi
6493 else
6494   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6495 fi
6496
6497
6498
6499 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6500 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6501 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6502 # We want to ensure that TARGET libraries (which we know are built with
6503 # gcc) are built with "-O2 -g", so include those options when setting
6504 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6505 if test "x$CFLAGS_FOR_TARGET" = x; then
6506   CFLAGS_FOR_TARGET=$CFLAGS
6507   case " $CFLAGS " in
6508     *" -O2 "*) ;;
6509     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6510   esac
6511   case " $CFLAGS " in
6512     *" -g "* | *" -g3 "*) ;;
6513     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6514   esac
6515 fi
6516
6517
6518 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6519   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6520   case " $CXXFLAGS " in
6521     *" -O2 "*) ;;
6522     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6523   esac
6524   case " $CXXFLAGS " in
6525     *" -g "* | *" -g3 "*) ;;
6526     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6527   esac
6528 fi
6529
6530
6531 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6532 # the named directory are copied to $(tooldir)/sys-include.
6533 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6534   if test x${is_cross_compiler} = xno ; then
6535     echo 1>&2 '***' --with-headers is only supported when cross compiling
6536     exit 1
6537   fi
6538   if test x"${with_headers}" != xyes ; then
6539     x=${gcc_cv_tool_prefix}
6540     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6541   fi
6542 fi
6543
6544 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6545 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6546 # are permitted.
6547 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6548   if test x${is_cross_compiler} = xno ; then
6549     echo 1>&2 '***' --with-libs is only supported when cross compiling
6550     exit 1
6551   fi
6552   if test x"${with_libs}" != xyes ; then
6553     # Copy the libraries in reverse order, so that files in the first named
6554     # library override files in subsequent libraries.
6555     x=${gcc_cv_tool_prefix}
6556     for l in ${with_libs}; do
6557       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6558     done
6559   fi
6560 fi
6561
6562 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6563 #
6564 # This is done by determining whether or not the appropriate directory
6565 # is available, and by checking whether or not specific configurations
6566 # have requested that this magic not happen.
6567 #
6568 # The command line options always override the explicit settings in
6569 # configure.in, and the settings in configure.in override this magic.
6570 #
6571 # If the default for a toolchain is to use GNU as and ld, and you don't
6572 # want to do that, then you should use the --without-gnu-as and
6573 # --without-gnu-ld options for the configure script.  Similarly, if
6574 # the default is to use the included zlib and you don't want to do that,
6575 # you should use the --with-system-zlib option for the configure script.
6576
6577 if test x${use_gnu_as} = x &&
6578    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6579   with_gnu_as=yes
6580   extra_host_args="$extra_host_args --with-gnu-as"
6581 fi
6582
6583 if test x${use_gnu_ld} = x &&
6584    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6585   with_gnu_ld=yes
6586   extra_host_args="$extra_host_args --with-gnu-ld"
6587 fi
6588
6589 if test x${use_included_zlib} = x &&
6590    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6591   :
6592 else
6593   with_system_zlib=yes
6594   extra_host_args="$extra_host_args --with-system-zlib"
6595 fi
6596
6597 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6598 # can detect this case.
6599
6600 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6601   with_newlib=yes
6602   extra_host_args="$extra_host_args --with-newlib"
6603 fi
6604
6605 # Handle ${copy_dirs}
6606 set fnord ${copy_dirs}
6607 shift
6608 while test $# != 0 ; do
6609   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6610     :
6611   else
6612     echo Copying $1 to $2
6613
6614     # Use the install script to create the directory and all required
6615     # parent directories.
6616     if test -d $2 ; then
6617       :
6618     else
6619       echo >config.temp
6620       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6621     fi
6622
6623     # Copy the directory, assuming we have tar.
6624     # FIXME: Should we use B in the second tar?  Not all systems support it.
6625     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6626
6627     # It is the responsibility of the user to correctly adjust all
6628     # symlinks.  If somebody can figure out how to handle them correctly
6629     # here, feel free to add the code.
6630
6631     echo $1 > $2/COPIED
6632   fi
6633   shift; shift
6634 done
6635
6636 # Determine a target-dependent exec_prefix that the installed
6637 # gcc will search in.  Keep this list sorted by triplet, with
6638 # the *-*-osname triplets last.
6639 md_exec_prefix=
6640 case "${target}" in
6641   alpha*-*-*vms*)
6642     md_exec_prefix=/gnu/lib/gcc-lib
6643     ;;
6644   i[34567]86-pc-msdosdjgpp*)
6645     md_exec_prefix=/dev/env/DJDIR/bin
6646     ;;
6647   i[34567]86-*-sco3.2v5*)
6648     if test $with_gnu_as = yes; then
6649       md_exec_prefix=/usr/gnu/bin
6650     else
6651       md_exec_prefix=/usr/ccs/bin/elf
6652     fi
6653     ;;
6654
6655   mn10300-*-* | \
6656   powerpc-*-chorusos* | \
6657   powerpc*-*-eabi* | \
6658   powerpc*-*-sysv* | \
6659   powerpc*-*-kaos* | \
6660   s390x-ibm-tpf*)
6661     md_exec_prefix=/usr/ccs/bin
6662     ;;
6663   sparc64-*-elf*)
6664     ;;
6665   v850*-*-*)
6666     md_exec_prefix=/usr/ccs/bin
6667     ;;
6668   xtensa*-*-elf*)
6669     ;;
6670
6671   *-*-beos* | \
6672   *-*-elf* | \
6673   *-*-hpux* | \
6674   *-*-netware* | \
6675   *-*-nto-qnx* | \
6676   *-*-rtems* | \
6677   *-*-solaris2* | \
6678   *-*-sysv[45]* | \
6679   *-*-vxworks* | \
6680   *-wrs-windiss)
6681     md_exec_prefix=/usr/ccs/bin
6682     ;;
6683 esac
6684
6685 extra_arflags_for_target=
6686 extra_nmflags_for_target=
6687 extra_ranlibflags_for_target=
6688 target_makefile_frag=/dev/null
6689 case "${target}" in
6690   mep*-*-*)
6691     target_makefile_frag="config/mt-mep"
6692     ;;
6693   spu-*-*)
6694     target_makefile_frag="config/mt-spu"
6695     ;;
6696   mips*-sde-elf*)
6697     target_makefile_frag="config/mt-sde"
6698     ;;
6699   mipsisa*-*-elfoabi*)
6700     target_makefile_frag="config/mt-mips-elfoabi"
6701     ;;
6702   mips*-*-*linux* | mips*-*-gnu*)
6703     target_makefile_frag="config/mt-mips-gnu"
6704     ;;
6705   *-*-netware*)
6706     target_makefile_frag="config/mt-netware"
6707     ;;
6708   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6709     target_makefile_frag="config/mt-gnu"
6710     ;;
6711   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6712     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6713     # commands to handle both 32-bit and 64-bit objects.  These flags are
6714     # harmless if we're using GNU nm or ar.
6715     extra_arflags_for_target=" -X32_64"
6716     extra_nmflags_for_target=" -B -X32_64"
6717     ;;
6718   *-*-darwin[3-9]*)
6719     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6720     extra_ranlibflags_for_target=" -c"
6721     ;;
6722   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6723     target_makefile_frag="config/mt-wince"
6724     ;;
6725 esac
6726
6727 alphaieee_frag=/dev/null
6728 case $target in
6729   alpha*-*-*)
6730     # This just makes sure to use the -mieee option to build target libs.
6731     # This should probably be set individually by each library.
6732     alphaieee_frag="config/mt-alphaieee"
6733     ;;
6734 esac
6735
6736 # If --enable-target-optspace always use -Os instead of -O2 to build
6737 # the target libraries, similarly if it is not specified, use -Os
6738 # on selected platforms.
6739 ospace_frag=/dev/null
6740 case "${enable_target_optspace}:${target}" in
6741   yes:*)
6742     ospace_frag="config/mt-ospace"
6743     ;;
6744   :d30v-*)
6745     ospace_frag="config/mt-d30v"
6746     ;;
6747   :m32r-* | :d10v-* | :fr30-*)
6748     ospace_frag="config/mt-ospace"
6749     ;;
6750   no:* | :*)
6751     ;;
6752   *)
6753     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6754     ;;
6755 esac
6756
6757 # Default to using --with-stabs for certain targets.
6758 if test x${with_stabs} = x ; then
6759   case "${target}" in
6760   mips*-*-irix[56]*)
6761     ;;
6762   mips*-*-* | alpha*-*-osf*)
6763     with_stabs=yes;
6764     extra_host_args="${extra_host_args} --with-stabs"
6765     ;;
6766   esac
6767 fi
6768
6769 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6770 # them automatically.
6771 case "${host}" in
6772   hppa*64*-*-hpux11*)
6773     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6774     ;;
6775 esac
6776
6777 # Some systems (e.g., one of the i386-aix systems the gas testers are
6778 # using) don't handle "\$" correctly, so don't use it here.
6779 tooldir='${exec_prefix}'/${target_noncanonical}
6780 build_tooldir=${tooldir}
6781
6782 # Create a .gdbinit file which runs the one in srcdir
6783 # and tells GDB to look there for source files.
6784
6785 if test -r ${srcdir}/.gdbinit ; then
6786   case ${srcdir} in
6787     .) ;;
6788     *) cat > ./.gdbinit <<EOF
6789 # ${NO_EDIT}
6790 dir ${srcdir}
6791 dir .
6792 source ${srcdir}/.gdbinit
6793 EOF
6794     ;;
6795   esac
6796 fi
6797
6798 # Make sure that the compiler is able to generate an executable.  If it
6799 # can't, we are probably in trouble.  We don't care whether we can run the
6800 # executable--we might be using a cross compiler--we only care whether it
6801 # can be created.  At this point the main configure script has set CC.
6802 we_are_ok=no
6803 echo "int main () { return 0; }" > conftest.c
6804 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6805 if test $? = 0 ; then
6806   if test -s conftest || test -s conftest.exe ; then
6807     we_are_ok=yes
6808   fi
6809 fi
6810 case $we_are_ok in
6811   no)
6812     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6813     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6814     rm -f conftest*
6815     exit 1
6816     ;;
6817 esac
6818 rm -f conftest*
6819
6820 # The Solaris /usr/ucb/cc compiler does not appear to work.
6821 case "${host}" in
6822   sparc-sun-solaris2*)
6823       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6824       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6825           could_use=
6826           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6827           if test -d /opt/cygnus/bin ; then
6828               if test "$could_use" = "" ; then
6829                   could_use="/opt/cygnus/bin"
6830               else
6831                   could_use="$could_use or /opt/cygnus/bin"
6832               fi
6833           fi
6834         if test "$could_use" = "" ; then
6835             echo "Warning: compilation may fail because you're using"
6836             echo "/usr/ucb/cc.  You should change your PATH or CC "
6837             echo "variable and rerun configure."
6838         else
6839             echo "Warning: compilation may fail because you're using"
6840             echo "/usr/ucb/cc, when you should use the C compiler from"
6841             echo "$could_use.  You should change your"
6842             echo "PATH or CC variable and rerun configure."
6843         fi
6844       fi
6845   ;;
6846 esac
6847
6848 # Decide which environment variable is used to find dynamic libraries.
6849 case "${host}" in
6850   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6851   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6852   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6853   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6854 esac
6855
6856 # On systems where the dynamic library environment variable is PATH,
6857 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6858 # built executables to PATH.
6859 if test "$RPATH_ENVVAR" = PATH; then
6860   GCC_SHLIB_SUBDIR=/shlib
6861 else
6862   GCC_SHLIB_SUBDIR=
6863 fi
6864
6865 # Record target_configdirs and the configure arguments for target and
6866 # build configuration in Makefile.
6867 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6868 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6869
6870 # If we are building libgomp, bootstrap it.
6871 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6872   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6873 fi
6874
6875 # Determine whether gdb needs tk/tcl or not.
6876 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6877 # and in that case we want gdb to be built without tk.  Ugh!
6878 # In fact I believe gdb is the *only* package directly dependent on tk,
6879 # so we should be able to put the 'maybe's in unconditionally and
6880 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6881 # 100% sure that that's safe though.
6882
6883 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6884 case "$enable_gdbtk" in
6885   no)
6886     GDB_TK="" ;;
6887   yes)
6888     GDB_TK="${gdb_tk}" ;;
6889   *)
6890     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6891     # distro.  Eventually someone will fix this and move Insight, nee
6892     # gdbtk to a separate directory.
6893     if test -d ${srcdir}/gdb/gdbtk ; then
6894       GDB_TK="${gdb_tk}"
6895     else
6896       GDB_TK=""
6897     fi
6898     ;;
6899 esac
6900 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6901 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6902
6903 # Strip out unwanted targets.
6904
6905 # While at that, we remove Makefiles if we were started for recursive
6906 # configuration, so that the top-level Makefile reconfigures them,
6907 # like we used to do when configure itself was recursive.
6908
6909 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6910 # but now we're fixing up the Makefile ourselves with the additional
6911 # commands passed to AC_CONFIG_FILES.  Use separate variables
6912 # extrasub-{build,host,target} not because there is any reason to split
6913 # the substitutions up that way, but only to remain below the limit of
6914 # 99 commands in a script, for HP-UX sed.
6915 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6916
6917 # Check whether --enable-bootstrap was given.
6918 if test "${enable_bootstrap+set}" = set; then :
6919   enableval=$enable_bootstrap;
6920 else
6921   enable_bootstrap=default
6922 fi
6923
6924
6925 # Issue errors and warnings for invalid/strange bootstrap combinations.
6926 case "$configdirs" in
6927   *gcc*) have_compiler=yes ;;
6928   *) have_compiler=no ;;
6929 esac
6930
6931 case "$have_compiler:$host:$target:$enable_bootstrap" in
6932   *:*:*:no) ;;
6933
6934   # Default behavior.  Enable bootstrap if we have a compiler
6935   # and we are in a native configuration.
6936   yes:$build:$build:default)
6937     enable_bootstrap=yes ;;
6938
6939   *:*:*:default)
6940     enable_bootstrap=no ;;
6941
6942   # We have a compiler and we are in a native configuration, bootstrap is ok
6943   yes:$build:$build:yes)
6944     ;;
6945
6946   # Other configurations, but we have a compiler.  Assume the user knows
6947   # what he's doing.
6948   yes:*:*:yes)
6949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6950 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6951     ;;
6952
6953   # No compiler: if they passed --enable-bootstrap explicitly, fail
6954   no:*:*:yes)
6955     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6956
6957   # Fail if wrong command line
6958   *)
6959     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6960     ;;
6961 esac
6962
6963 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6964   *,c++,*:yes:yes) ;;
6965   *:yes:yes)
6966     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6967     ;;
6968 esac
6969
6970 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6971   yes:yes:*\ gold\ *:*,c++,*) ;;
6972   yes:yes:*\ gold\ *:*)
6973     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6974     ;;
6975 esac
6976
6977 # Adjust the toplevel makefile according to whether bootstrap was selected.
6978 case $enable_bootstrap in
6979   yes)
6980     bootstrap_suffix=bootstrap
6981     BUILD_CONFIG=bootstrap-debug
6982     ;;
6983   no)
6984     bootstrap_suffix=no-bootstrap
6985     BUILD_CONFIG=
6986     ;;
6987 esac
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6990 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6991
6992
6993 # Check whether --with-build-config was given.
6994 if test "${with_build_config+set}" = set; then :
6995   withval=$with_build_config; case $with_build_config in
6996    yes) with_build_config= ;;
6997    no) with_build_config= BUILD_CONFIG= ;;
6998    esac
6999 fi
7000
7001
7002 if test "x${with_build_config}" != x; then
7003   BUILD_CONFIG=$with_build_config
7004 else
7005   case $BUILD_CONFIG in
7006   bootstrap-debug)
7007     if echo "int f (void) { return 0; }" > conftest.c &&
7008        ${CC} -c conftest.c &&
7009        mv conftest.o conftest.o.g0 &&
7010        ${CC} -c -g conftest.c &&
7011        mv conftest.o conftest.o.g &&
7012        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7013       :
7014     else
7015       BUILD_CONFIG=
7016     fi
7017     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7018     ;;
7019   esac
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7022 $as_echo "$BUILD_CONFIG" >&6; }
7023
7024
7025 extrasub_build=
7026 for module in ${build_configdirs} ; do
7027   if test -z "${no_recursion}" \
7028      && test -f ${build_subdir}/${module}/Makefile; then
7029     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7030     rm -f ${build_subdir}/${module}/Makefile
7031   fi
7032   extrasub_build="$extrasub_build
7033 /^@if build-$module\$/d
7034 /^@endif build-$module\$/d
7035 /^@if build-$module-$bootstrap_suffix\$/d
7036 /^@endif build-$module-$bootstrap_suffix\$/d"
7037 done
7038 extrasub_host=
7039 for module in ${configdirs} ; do
7040   if test -z "${no_recursion}"; then
7041     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7042       if test -f ${file}; then
7043         echo 1>&2 "*** removing ${file} to force reconfigure"
7044         rm -f ${file}
7045       fi
7046     done
7047   fi
7048   extrasub_host="$extrasub_host
7049 /^@if $module\$/d
7050 /^@endif $module\$/d
7051 /^@if $module-$bootstrap_suffix\$/d
7052 /^@endif $module-$bootstrap_suffix\$/d"
7053 done
7054 extrasub_target=
7055 for module in ${target_configdirs} ; do
7056   if test -z "${no_recursion}" \
7057      && test -f ${target_subdir}/${module}/Makefile; then
7058     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7059     rm -f ${target_subdir}/${module}/Makefile
7060   fi
7061
7062   # We only bootstrap target libraries listed in bootstrap_target_libs.
7063   case $bootstrap_target_libs in
7064     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7065     *) target_bootstrap_suffix=no-bootstrap ;;
7066   esac
7067
7068   extrasub_target="$extrasub_target
7069 /^@if target-$module\$/d
7070 /^@endif target-$module\$/d
7071 /^@if target-$module-$target_bootstrap_suffix\$/d
7072 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7073 done
7074
7075 # Do the final fixup along with target modules.
7076 extrasub_target="$extrasub_target
7077 /^@if /,/^@endif /d"
7078
7079 # Create the serialization dependencies.  This uses a temporary file.
7080
7081 # Check whether --enable-serial-configure was given.
7082 if test "${enable_serial_configure+set}" = set; then :
7083   enableval=$enable_serial_configure;
7084 fi
7085
7086
7087 case ${enable_serial_configure} in
7088   yes)
7089     enable_serial_build_configure=yes
7090     enable_serial_host_configure=yes
7091     enable_serial_target_configure=yes
7092     ;;
7093 esac
7094
7095 # These force 'configure's to be done one at a time, to avoid problems
7096 # with contention over a shared config.cache.
7097 rm -f serdep.tmp
7098 echo '# serdep.tmp' > serdep.tmp
7099 olditem=
7100 test "x${enable_serial_build_configure}" = xyes &&
7101 for item in ${build_configdirs} ; do
7102   case ${olditem} in
7103     "") ;;
7104     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7105   esac
7106   olditem=${item}
7107 done
7108 olditem=
7109 test "x${enable_serial_host_configure}" = xyes &&
7110 for item in ${configdirs} ; do
7111   case ${olditem} in
7112     "") ;;
7113     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7114   esac
7115   olditem=${item}
7116 done
7117 olditem=
7118 test "x${enable_serial_target_configure}" = xyes &&
7119 for item in ${target_configdirs} ; do
7120   case ${olditem} in
7121     "") ;;
7122     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7123   esac
7124   olditem=${item}
7125 done
7126 serialization_dependencies=serdep.tmp
7127
7128
7129 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7130 # target, nonopt, and variable assignments.  These are the ones we
7131 # might not want to pass down to subconfigures.  The exception being
7132 # --cache-file=/dev/null, which is used to turn off the use of cache
7133 # files altogether, and which should be passed on to subconfigures.
7134 # Also strip program-prefix, program-suffix, and program-transform-name,
7135 # so that we can pass down a consistent program-transform-name.
7136 baseargs=
7137 keep_next=no
7138 skip_next=no
7139 eval "set -- $ac_configure_args"
7140 for ac_arg
7141 do
7142   if test X"$skip_next" = X"yes"; then
7143     skip_next=no
7144     continue
7145   fi
7146   if test X"$keep_next" = X"yes"; then
7147     case $ac_arg in
7148       *\'*)
7149         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7150     esac
7151     baseargs="$baseargs '$ac_arg'"
7152     keep_next=no
7153     continue
7154   fi
7155
7156   # Handle separated arguments.  Based on the logic generated by
7157   # autoconf 2.59.
7158   case $ac_arg in
7159     *=* | --config-cache | -C | -disable-* | --disable-* \
7160       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7161       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7162       | -with-* | --with-* | -without-* | --without-* | --x)
7163       separate_arg=no
7164       ;;
7165     -*)
7166       separate_arg=yes
7167       ;;
7168     *)
7169       separate_arg=no
7170       ;;
7171   esac
7172
7173   case "$ac_arg" in
7174     --cache-file=/dev/null | \
7175     -cache-file=/dev/null )
7176       # Handled here to avoid the test to skip args below.
7177       baseargs="$baseargs '$ac_arg'"
7178       # Assert: $separate_arg should always be no.
7179       keep_next=$separate_arg
7180       ;;
7181     --no*)
7182       continue
7183       ;;
7184     --c* | \
7185     --sr* | \
7186     --ho* | \
7187     --bu* | \
7188     --t* | \
7189     --program-* | \
7190     -cache_file* | \
7191     -srcdir* | \
7192     -host* | \
7193     -build* | \
7194     -target* | \
7195     -program-prefix* | \
7196     -program-suffix* | \
7197     -program-transform-name* )
7198       skip_next=$separate_arg
7199       continue
7200       ;;
7201     -*)
7202       # An option.  Add it.
7203       case $ac_arg in
7204         *\'*)
7205           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7206       esac
7207       baseargs="$baseargs '$ac_arg'"
7208       keep_next=$separate_arg
7209       ;;
7210     *)
7211       # Either a variable assignment, or a nonopt (triplet).  Don't
7212       # pass it down; let the Makefile handle this.
7213       continue
7214       ;;
7215   esac
7216 done
7217 # Remove the initial space we just introduced and, as these will be
7218 # expanded by make, quote '$'.
7219 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7220
7221 # Add in --program-transform-name, after --program-prefix and
7222 # --program-suffix have been applied to it.  Autoconf has already
7223 # doubled dollar signs and backslashes in program_transform_name; we want
7224 # the backslashes un-doubled, and then the entire thing wrapped in single
7225 # quotes, because this will be expanded first by make and then by the shell.
7226 # Also, because we want to override the logic in subdir configure scripts to
7227 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7228 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7229 ${program_transform_name}
7230 EOF_SED
7231 gcc_transform_name=`cat conftestsed.out`
7232 rm -f conftestsed.out
7233 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7234 if test "$silent" = yes; then
7235   baseargs="$baseargs --silent"
7236 fi
7237 baseargs="$baseargs --disable-option-checking"
7238
7239 # Record and document user additions to sub configure arguments.
7240
7241
7242
7243
7244 # For the build-side libraries, we just need to pretend we're native,
7245 # and not use the same cache file.  Multilibs are neither needed nor
7246 # desired.
7247 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7248
7249 # For host modules, accept cache file option, or specification as blank.
7250 case "${cache_file}" in
7251 "") # empty
7252   cache_file_option="" ;;
7253 /* | [A-Za-z]:[\\/]* ) # absolute path
7254   cache_file_option="--cache-file=${cache_file}" ;;
7255 *) # relative path
7256   cache_file_option="--cache-file=../${cache_file}" ;;
7257 esac
7258
7259 # Host dirs don't like to share a cache file either, horribly enough.
7260 # This seems to be due to autoconf 2.5x stupidity.
7261 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7262
7263 target_configargs="$target_configargs ${baseargs}"
7264
7265 # Passing a --with-cross-host argument lets the target libraries know
7266 # whether they are being built with a cross-compiler or being built
7267 # native.  However, it would be better to use other mechanisms to make the
7268 # sorts of decisions they want to make on this basis.  Please consider
7269 # this option to be deprecated.  FIXME.
7270 if test x${is_cross_compiler} = xyes ; then
7271   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7272 fi
7273
7274 # Default to --enable-multilib.
7275 if test x${enable_multilib} = x ; then
7276   target_configargs="--enable-multilib ${target_configargs}"
7277 fi
7278
7279 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7280 # changed from the earlier setting of with_newlib.
7281 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7282   target_configargs="--with-newlib ${target_configargs}"
7283 fi
7284
7285 # Different target subdirs use different values of certain variables
7286 # (notably CXX).  Worse, multilibs use *lots* of different values.
7287 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7288 # it doesn't automatically accept command-line overrides of them.
7289 # This means it's not safe for target subdirs to share a cache file,
7290 # which is disgusting, but there you have it.  Hopefully this can be
7291 # fixed in future.  It's still worthwhile to use a cache file for each
7292 # directory.  I think.
7293
7294 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7295 # We need to pass --target, as newer autoconf's requires consistency
7296 # for target_alias and gcc doesn't manage it consistently.
7297 target_configargs="--cache-file=./config.cache ${target_configargs}"
7298
7299 FLAGS_FOR_TARGET=
7300 case " $target_configdirs " in
7301  *" newlib "*)
7302   case " $target_configargs " in
7303   *" --with-newlib "*)
7304    case "$target" in
7305     *-cygwin*)
7306       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'
7307       ;;
7308    esac
7309
7310    # If we're not building GCC, don't discard standard headers.
7311    if test -d ${srcdir}/gcc; then
7312      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7313
7314      if test "${build}" != "${host}"; then
7315        # On Canadian crosses, CC_FOR_TARGET will have already been set
7316        # by `configure', so we won't have an opportunity to add -Bgcc/
7317        # to it.  This is right: we don't want to search that directory
7318        # for binaries, but we want the header files in there, so add
7319        # them explicitly.
7320        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7321
7322        # Someone might think of using the pre-installed headers on
7323        # Canadian crosses, in case the installed compiler is not fully
7324        # compatible with the compiler being built.  In this case, it
7325        # would be better to flag an error than risking having
7326        # incompatible object files being constructed.  We can't
7327        # guarantee that an error will be flagged, but let's hope the
7328        # compiler will do it, when presented with incompatible header
7329        # files.
7330      fi
7331    fi
7332
7333    case "${target}-${is_cross_compiler}" in
7334    i[3456789]86-*-linux*-no)
7335       # Here host == target, so we don't need to build gcc,
7336       # so we don't want to discard standard headers.
7337       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7338       ;;
7339    *)
7340       # If we're building newlib, use its generic headers last, but search
7341       # for any libc-related directories first (so make it the last -B
7342       # switch).
7343       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7344
7345       # If we're building libgloss, find the startup file, simulator library
7346       # and linker script.
7347       case " $target_configdirs " in
7348         *" libgloss "*)
7349         # Look for startup file, simulator library and maybe linker script.
7350         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7351         # Look for libnosys.a in case the target needs it.
7352         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7353         # Most targets have the linker script in the source directory.
7354         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7355         ;;
7356       esac
7357       ;;
7358    esac
7359    ;;
7360   esac
7361   ;;
7362 esac
7363
7364 case "$target" in
7365   x86_64-*mingw* | *-w64-mingw*)
7366   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7367   # however, use a symlink named 'mingw' in ${prefix} .
7368     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7369     ;;
7370   *-mingw*)
7371   # MinGW can't be handled as Cygwin above since it does not use newlib.
7372     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'
7373     ;;
7374 esac
7375
7376 # Allow the user to override the flags for
7377 # our build compiler if desired.
7378 if test x"${build}" = x"${host}" ; then
7379   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7380   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7381   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7382 fi
7383
7384 # On Canadian crosses, we'll be searching the right directories for
7385 # the previously-installed cross compiler, so don't bother to add
7386 # flags for directories within the install tree of the compiler
7387 # being built; programs in there won't even run.
7388 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7389   # Search for pre-installed headers if nothing else fits.
7390   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7391 fi
7392
7393 if test "x${use_gnu_ld}" = x &&
7394    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7395   # Arrange for us to find uninstalled linker scripts.
7396   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7397 fi
7398
7399 # Search for other target-specific linker scripts and such.
7400 case "${target}" in
7401   mep*)
7402     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7403     ;;
7404 esac
7405
7406 # Makefile fragments.
7407 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7408 do
7409   eval fragval=\$$frag
7410   if test $fragval != /dev/null; then
7411     eval $frag=${srcdir}/$fragval
7412   fi
7413 done
7414
7415
7416
7417
7418
7419 # Miscellanea: directories, flags, etc.
7420
7421
7422
7423
7424
7425
7426
7427
7428 # Build module lists & subconfigure args.
7429
7430
7431
7432 # Host module lists & subconfigure args.
7433
7434
7435
7436
7437 # Target module lists & subconfigure args.
7438
7439
7440
7441 # Build tools.
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459 # Generate default definitions for YACC, M4, LEX and other programs that run
7460 # on the build machine.  These are used if the Makefile can't locate these
7461 # programs in objdir.
7462 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7463
7464 for ac_prog in 'bison -y' byacc yacc
7465 do
7466   # Extract the first word of "$ac_prog", so it can be a program name with args.
7467 set dummy $ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_YACC+set}" = set; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   if test -n "$YACC"; then
7474   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   test -z "$as_dir" && as_dir=.
7481     for ac_exec_ext in '' $ac_executable_extensions; do
7482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483     ac_cv_prog_YACC="$ac_prog"
7484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485     break 2
7486   fi
7487 done
7488   done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 YACC=$ac_cv_prog_YACC
7494 if test -n "$YACC"; then
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7496 $as_echo "$YACC" >&6; }
7497 else
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503   test -n "$YACC" && break
7504 done
7505 test -n "$YACC" || YACC="$MISSING bison -y"
7506
7507 case " $build_configdirs " in
7508   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7509   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7510 esac
7511
7512 for ac_prog in bison
7513 do
7514   # Extract the first word of "$ac_prog", so it can be a program name with args.
7515 set dummy $ac_prog; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_BISON+set}" = set; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$BISON"; then
7522   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_BISON="$ac_prog"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 BISON=$ac_cv_prog_BISON
7542 if test -n "$BISON"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7544 $as_echo "$BISON" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551   test -n "$BISON" && break
7552 done
7553 test -n "$BISON" || BISON="$MISSING bison"
7554
7555 case " $build_configdirs " in
7556   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7557 esac
7558
7559 for ac_prog in gm4 gnum4 m4
7560 do
7561   # Extract the first word of "$ac_prog", so it can be a program name with args.
7562 set dummy $ac_prog; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_M4+set}" = set; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   if test -n "$M4"; then
7569   ac_cv_prog_M4="$M4" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574   IFS=$as_save_IFS
7575   test -z "$as_dir" && as_dir=.
7576     for ac_exec_ext in '' $ac_executable_extensions; do
7577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578     ac_cv_prog_M4="$ac_prog"
7579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580     break 2
7581   fi
7582 done
7583   done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 M4=$ac_cv_prog_M4
7589 if test -n "$M4"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7591 $as_echo "$M4" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597
7598   test -n "$M4" && break
7599 done
7600 test -n "$M4" || M4="$MISSING m4"
7601
7602 case " $build_configdirs " in
7603   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7604 esac
7605
7606 for ac_prog in flex lex
7607 do
7608   # Extract the first word of "$ac_prog", so it can be a program name with args.
7609 set dummy $ac_prog; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_LEX+set}" = set; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$LEX"; then
7616   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_LEX="$ac_prog"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 LEX=$ac_cv_prog_LEX
7636 if test -n "$LEX"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7638 $as_echo "$LEX" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645   test -n "$LEX" && break
7646 done
7647 test -n "$LEX" || LEX="$MISSING flex"
7648
7649 case " $build_configdirs " in
7650   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7651   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7652 esac
7653
7654 for ac_prog in flex
7655 do
7656   # Extract the first word of "$ac_prog", so it can be a program name with args.
7657 set dummy $ac_prog; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_FLEX+set}" = set; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$FLEX"; then
7664   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671     for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_prog_FLEX="$ac_prog"
7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678   done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 FLEX=$ac_cv_prog_FLEX
7684 if test -n "$FLEX"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7686 $as_echo "$FLEX" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693   test -n "$FLEX" && break
7694 done
7695 test -n "$FLEX" || FLEX="$MISSING flex"
7696
7697 case " $build_configdirs " in
7698   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7699 esac
7700
7701 for ac_prog in makeinfo
7702 do
7703   # Extract the first word of "$ac_prog", so it can be a program name with args.
7704 set dummy $ac_prog; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   if test -n "$MAKEINFO"; then
7711   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718     for ac_exec_ext in '' $ac_executable_extensions; do
7719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720     ac_cv_prog_MAKEINFO="$ac_prog"
7721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725   done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 MAKEINFO=$ac_cv_prog_MAKEINFO
7731 if test -n "$MAKEINFO"; then
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7733 $as_echo "$MAKEINFO" >&6; }
7734 else
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740   test -n "$MAKEINFO" && break
7741 done
7742 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7743
7744 case " $build_configdirs " in
7745   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7746   *)
7747
7748     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7749     # higher, else we use the "missing" dummy.
7750     if ${MAKEINFO} --version \
7751        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7752       :
7753     else
7754       MAKEINFO="$MISSING makeinfo"
7755     fi
7756     ;;
7757
7758 esac
7759
7760 # FIXME: expect and dejagnu may become build tools?
7761
7762 for ac_prog in expect
7763 do
7764   # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   if test -n "$EXPECT"; then
7772   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779     for ac_exec_ext in '' $ac_executable_extensions; do
7780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781     ac_cv_prog_EXPECT="$ac_prog"
7782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786   done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 EXPECT=$ac_cv_prog_EXPECT
7792 if test -n "$EXPECT"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7794 $as_echo "$EXPECT" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801   test -n "$EXPECT" && break
7802 done
7803 test -n "$EXPECT" || EXPECT="expect"
7804
7805 case " $configdirs " in
7806   *" expect "*)
7807     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7808     ;;
7809 esac
7810
7811 for ac_prog in runtest
7812 do
7813   # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   if test -n "$RUNTEST"; then
7821   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826   IFS=$as_save_IFS
7827   test -z "$as_dir" && as_dir=.
7828     for ac_exec_ext in '' $ac_executable_extensions; do
7829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830     ac_cv_prog_RUNTEST="$ac_prog"
7831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832     break 2
7833   fi
7834 done
7835   done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 RUNTEST=$ac_cv_prog_RUNTEST
7841 if test -n "$RUNTEST"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7843 $as_echo "$RUNTEST" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850   test -n "$RUNTEST" && break
7851 done
7852 test -n "$RUNTEST" || RUNTEST="runtest"
7853
7854 case " $configdirs " in
7855   *" dejagnu "*)
7856     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7857     ;;
7858 esac
7859
7860
7861 # Host tools.
7862 ncn_tool_prefix=
7863 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7864 ncn_target_tool_prefix=
7865 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7866
7867
7868
7869 if test -n "$AR"; then
7870   ac_cv_prog_AR=$AR
7871 elif test -n "$ac_cv_prog_AR"; then
7872   AR=$ac_cv_prog_AR
7873 fi
7874
7875 if test -n "$ac_cv_prog_AR"; then
7876   for ncn_progname in ar; do
7877     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7878 set dummy ${ncn_progname}; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_prog_AR+set}" = set; then :
7882   $as_echo_n "(cached) " >&6
7883 else
7884   if test -n "$AR"; then
7885   ac_cv_prog_AR="$AR" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890   IFS=$as_save_IFS
7891   test -z "$as_dir" && as_dir=.
7892     for ac_exec_ext in '' $ac_executable_extensions; do
7893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894     ac_cv_prog_AR="${ncn_progname}"
7895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896     break 2
7897   fi
7898 done
7899   done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 AR=$ac_cv_prog_AR
7905 if test -n "$AR"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7907 $as_echo "$AR" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914   done
7915 fi
7916
7917 for ncn_progname in ar; do
7918   if test -n "$ncn_tool_prefix"; then
7919     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_AR+set}" = set; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   if test -n "$AR"; then
7927   ac_cv_prog_AR="$AR" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 AR=$ac_cv_prog_AR
7947 if test -n "$AR"; then
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7949 $as_echo "$AR" >&6; }
7950 else
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955
7956   fi
7957   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7958     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7959 set dummy ${ncn_progname}; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_AR+set}" = set; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   if test -n "$AR"; then
7966   ac_cv_prog_AR="$AR" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973     for ac_exec_ext in '' $ac_executable_extensions; do
7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975     ac_cv_prog_AR="${ncn_progname}"
7976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980   done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 AR=$ac_cv_prog_AR
7986 if test -n "$AR"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7988 $as_echo "$AR" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995   fi
7996   test -n "$ac_cv_prog_AR" && break
7997 done
7998
7999 if test -z "$ac_cv_prog_AR" ; then
8000   set dummy ar
8001   if test $build = $host ; then
8002     AR="$2"
8003   else
8004     AR="${ncn_tool_prefix}$2"
8005   fi
8006 fi
8007
8008
8009
8010 if test -n "$AS"; then
8011   ac_cv_prog_AS=$AS
8012 elif test -n "$ac_cv_prog_AS"; then
8013   AS=$ac_cv_prog_AS
8014 fi
8015
8016 if test -n "$ac_cv_prog_AS"; then
8017   for ncn_progname in as; do
8018     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8019 set dummy ${ncn_progname}; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_AS+set}" = set; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   if test -n "$AS"; then
8026   ac_cv_prog_AS="$AS" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033     for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_prog_AS="${ncn_progname}"
8036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040   done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 AS=$ac_cv_prog_AS
8046 if test -n "$AS"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8048 $as_echo "$AS" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055   done
8056 fi
8057
8058 for ncn_progname in as; do
8059   if test -n "$ncn_tool_prefix"; then
8060     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if test "${ac_cv_prog_AS+set}" = set; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   if test -n "$AS"; then
8068   ac_cv_prog_AS="$AS" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 AS=$ac_cv_prog_AS
8088 if test -n "$AS"; then
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8090 $as_echo "$AS" >&6; }
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097   fi
8098   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8099     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8100 set dummy ${ncn_progname}; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if test "${ac_cv_prog_AS+set}" = set; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   if test -n "$AS"; then
8107   ac_cv_prog_AS="$AS" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116     ac_cv_prog_AS="${ncn_progname}"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 AS=$ac_cv_prog_AS
8127 if test -n "$AS"; then
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8129 $as_echo "$AS" >&6; }
8130 else
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135
8136   fi
8137   test -n "$ac_cv_prog_AS" && break
8138 done
8139
8140 if test -z "$ac_cv_prog_AS" ; then
8141   set dummy as
8142   if test $build = $host ; then
8143     AS="$2"
8144   else
8145     AS="${ncn_tool_prefix}$2"
8146   fi
8147 fi
8148
8149
8150
8151 if test -n "$DLLTOOL"; then
8152   ac_cv_prog_DLLTOOL=$DLLTOOL
8153 elif test -n "$ac_cv_prog_DLLTOOL"; then
8154   DLLTOOL=$ac_cv_prog_DLLTOOL
8155 fi
8156
8157 if test -n "$ac_cv_prog_DLLTOOL"; then
8158   for ncn_progname in dlltool; do
8159     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8160 set dummy ${ncn_progname}; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   if test -n "$DLLTOOL"; then
8167   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172   IFS=$as_save_IFS
8173   test -z "$as_dir" && as_dir=.
8174     for ac_exec_ext in '' $ac_executable_extensions; do
8175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176     ac_cv_prog_DLLTOOL="${ncn_progname}"
8177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178     break 2
8179   fi
8180 done
8181   done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 DLLTOOL=$ac_cv_prog_DLLTOOL
8187 if test -n "$DLLTOOL"; then
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8189 $as_echo "$DLLTOOL" >&6; }
8190 else
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196   done
8197 fi
8198
8199 for ncn_progname in dlltool; do
8200   if test -n "$ncn_tool_prefix"; then
8201     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   if test -n "$DLLTOOL"; then
8209   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8218     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 DLLTOOL=$ac_cv_prog_DLLTOOL
8229 if test -n "$DLLTOOL"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8231 $as_echo "$DLLTOOL" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238   fi
8239   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8240     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8241 set dummy ${ncn_progname}; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   if test -n "$DLLTOOL"; then
8248   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_prog_DLLTOOL="${ncn_progname}"
8258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 DLLTOOL=$ac_cv_prog_DLLTOOL
8268 if test -n "$DLLTOOL"; then
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8270 $as_echo "$DLLTOOL" >&6; }
8271 else
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277   fi
8278   test -n "$ac_cv_prog_DLLTOOL" && break
8279 done
8280
8281 if test -z "$ac_cv_prog_DLLTOOL" ; then
8282   set dummy dlltool
8283   if test $build = $host ; then
8284     DLLTOOL="$2"
8285   else
8286     DLLTOOL="${ncn_tool_prefix}$2"
8287   fi
8288 fi
8289
8290
8291
8292 if test -n "$LD"; then
8293   ac_cv_prog_LD=$LD
8294 elif test -n "$ac_cv_prog_LD"; then
8295   LD=$ac_cv_prog_LD
8296 fi
8297
8298 if test -n "$ac_cv_prog_LD"; then
8299   for ncn_progname in ld; do
8300     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301 set dummy ${ncn_progname}; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if test "${ac_cv_prog_LD+set}" = set; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   if test -n "$LD"; then
8308   ac_cv_prog_LD="$LD" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315     for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_LD="${ncn_progname}"
8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322   done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 LD=$ac_cv_prog_LD
8328 if test -n "$LD"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8330 $as_echo "$LD" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336
8337   done
8338 fi
8339
8340 for ncn_progname in ld; do
8341   if test -n "$ncn_tool_prefix"; then
8342     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8343 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_LD+set}" = set; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349   if test -n "$LD"; then
8350   ac_cv_prog_LD="$LD" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357     for ac_exec_ext in '' $ac_executable_extensions; do
8358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361     break 2
8362   fi
8363 done
8364   done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 LD=$ac_cv_prog_LD
8370 if test -n "$LD"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8372 $as_echo "$LD" >&6; }
8373 else
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379   fi
8380   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8381     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8382 set dummy ${ncn_progname}; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_prog_LD+set}" = set; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   if test -n "$LD"; then
8389   ac_cv_prog_LD="$LD" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394   IFS=$as_save_IFS
8395   test -z "$as_dir" && as_dir=.
8396     for ac_exec_ext in '' $ac_executable_extensions; do
8397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398     ac_cv_prog_LD="${ncn_progname}"
8399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400     break 2
8401   fi
8402 done
8403   done
8404 IFS=$as_save_IFS
8405
8406 fi
8407 fi
8408 LD=$ac_cv_prog_LD
8409 if test -n "$LD"; then
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8411 $as_echo "$LD" >&6; }
8412 else
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 fi
8416
8417
8418   fi
8419   test -n "$ac_cv_prog_LD" && break
8420 done
8421
8422 if test -z "$ac_cv_prog_LD" ; then
8423   set dummy ld
8424   if test $build = $host ; then
8425     LD="$2"
8426   else
8427     LD="${ncn_tool_prefix}$2"
8428   fi
8429 fi
8430
8431
8432
8433 if test -n "$LIPO"; then
8434   ac_cv_prog_LIPO=$LIPO
8435 elif test -n "$ac_cv_prog_LIPO"; then
8436   LIPO=$ac_cv_prog_LIPO
8437 fi
8438
8439 if test -n "$ac_cv_prog_LIPO"; then
8440   for ncn_progname in lipo; do
8441     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8442 set dummy ${ncn_progname}; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if test "${ac_cv_prog_LIPO+set}" = set; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   if test -n "$LIPO"; then
8449   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456     for ac_exec_ext in '' $ac_executable_extensions; do
8457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458     ac_cv_prog_LIPO="${ncn_progname}"
8459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463   done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 LIPO=$ac_cv_prog_LIPO
8469 if test -n "$LIPO"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8471 $as_echo "$LIPO" >&6; }
8472 else
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8475 fi
8476
8477
8478   done
8479 fi
8480
8481 for ncn_progname in lipo; do
8482   if test -n "$ncn_tool_prefix"; then
8483     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8484 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_LIPO+set}" = set; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$LIPO"; then
8491   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 LIPO=$ac_cv_prog_LIPO
8511 if test -n "$LIPO"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8513 $as_echo "$LIPO" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520   fi
8521   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8522     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523 set dummy ${ncn_progname}; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if test "${ac_cv_prog_LIPO+set}" = set; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   if test -n "$LIPO"; then
8530   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539     ac_cv_prog_LIPO="${ncn_progname}"
8540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544   done
8545 IFS=$as_save_IFS
8546
8547 fi
8548 fi
8549 LIPO=$ac_cv_prog_LIPO
8550 if test -n "$LIPO"; then
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8552 $as_echo "$LIPO" >&6; }
8553 else
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8556 fi
8557
8558
8559   fi
8560   test -n "$ac_cv_prog_LIPO" && break
8561 done
8562
8563 if test -z "$ac_cv_prog_LIPO" ; then
8564   set dummy lipo
8565   if test $build = $host ; then
8566     LIPO="$2"
8567   else
8568     LIPO="${ncn_tool_prefix}$2"
8569   fi
8570 fi
8571
8572
8573
8574 if test -n "$NM"; then
8575   ac_cv_prog_NM=$NM
8576 elif test -n "$ac_cv_prog_NM"; then
8577   NM=$ac_cv_prog_NM
8578 fi
8579
8580 if test -n "$ac_cv_prog_NM"; then
8581   for ncn_progname in nm; do
8582     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8583 set dummy ${ncn_progname}; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if test "${ac_cv_prog_NM+set}" = set; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   if test -n "$NM"; then
8590   ac_cv_prog_NM="$NM" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597     for ac_exec_ext in '' $ac_executable_extensions; do
8598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599     ac_cv_prog_NM="${ncn_progname}"
8600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604   done
8605 IFS=$as_save_IFS
8606
8607 fi
8608 fi
8609 NM=$ac_cv_prog_NM
8610 if test -n "$NM"; then
8611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8612 $as_echo "$NM" >&6; }
8613 else
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618
8619   done
8620 fi
8621
8622 for ncn_progname in nm; do
8623   if test -n "$ncn_tool_prefix"; then
8624     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8625 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_NM+set}" = set; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   if test -n "$NM"; then
8632   ac_cv_prog_NM="$NM" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637   IFS=$as_save_IFS
8638   test -z "$as_dir" && as_dir=.
8639     for ac_exec_ext in '' $ac_executable_extensions; do
8640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643     break 2
8644   fi
8645 done
8646   done
8647 IFS=$as_save_IFS
8648
8649 fi
8650 fi
8651 NM=$ac_cv_prog_NM
8652 if test -n "$NM"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8654 $as_echo "$NM" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660
8661   fi
8662   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8663     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664 set dummy ${ncn_progname}; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_prog_NM+set}" = set; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   if test -n "$NM"; then
8671   ac_cv_prog_NM="$NM" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676   IFS=$as_save_IFS
8677   test -z "$as_dir" && as_dir=.
8678     for ac_exec_ext in '' $ac_executable_extensions; do
8679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680     ac_cv_prog_NM="${ncn_progname}"
8681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682     break 2
8683   fi
8684 done
8685   done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 NM=$ac_cv_prog_NM
8691 if test -n "$NM"; then
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8693 $as_echo "$NM" >&6; }
8694 else
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 fi
8698
8699
8700   fi
8701   test -n "$ac_cv_prog_NM" && break
8702 done
8703
8704 if test -z "$ac_cv_prog_NM" ; then
8705   set dummy nm
8706   if test $build = $host ; then
8707     NM="$2"
8708   else
8709     NM="${ncn_tool_prefix}$2"
8710   fi
8711 fi
8712
8713
8714
8715 if test -n "$RANLIB"; then
8716   ac_cv_prog_RANLIB=$RANLIB
8717 elif test -n "$ac_cv_prog_RANLIB"; then
8718   RANLIB=$ac_cv_prog_RANLIB
8719 fi
8720
8721 if test -n "$ac_cv_prog_RANLIB"; then
8722   for ncn_progname in ranlib; do
8723     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8724 set dummy ${ncn_progname}; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   if test -n "$RANLIB"; then
8731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736   IFS=$as_save_IFS
8737   test -z "$as_dir" && as_dir=.
8738     for ac_exec_ext in '' $ac_executable_extensions; do
8739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8740     ac_cv_prog_RANLIB="${ncn_progname}"
8741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742     break 2
8743   fi
8744 done
8745   done
8746 IFS=$as_save_IFS
8747
8748 fi
8749 fi
8750 RANLIB=$ac_cv_prog_RANLIB
8751 if test -n "$RANLIB"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8753 $as_echo "$RANLIB" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758
8759
8760   done
8761 fi
8762
8763 for ncn_progname in ranlib; do
8764   if test -n "$ncn_tool_prefix"; then
8765     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test -n "$RANLIB"; then
8773   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780     for ac_exec_ext in '' $ac_executable_extensions; do
8781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787   done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 RANLIB=$ac_cv_prog_RANLIB
8793 if test -n "$RANLIB"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8795 $as_echo "$RANLIB" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801
8802   fi
8803   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8804     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805 set dummy ${ncn_progname}; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   if test -n "$RANLIB"; then
8812   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   test -z "$as_dir" && as_dir=.
8819     for ac_exec_ext in '' $ac_executable_extensions; do
8820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821     ac_cv_prog_RANLIB="${ncn_progname}"
8822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823     break 2
8824   fi
8825 done
8826   done
8827 IFS=$as_save_IFS
8828
8829 fi
8830 fi
8831 RANLIB=$ac_cv_prog_RANLIB
8832 if test -n "$RANLIB"; then
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8834 $as_echo "$RANLIB" >&6; }
8835 else
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 fi
8839
8840
8841   fi
8842   test -n "$ac_cv_prog_RANLIB" && break
8843 done
8844
8845 if test -z "$ac_cv_prog_RANLIB" ; then
8846   RANLIB="true"
8847 fi
8848
8849
8850
8851 if test -n "$STRIP"; then
8852   ac_cv_prog_STRIP=$STRIP
8853 elif test -n "$ac_cv_prog_STRIP"; then
8854   STRIP=$ac_cv_prog_STRIP
8855 fi
8856
8857 if test -n "$ac_cv_prog_STRIP"; then
8858   for ncn_progname in strip; do
8859     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_STRIP+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   if test -n "$STRIP"; then
8867   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874     for ac_exec_ext in '' $ac_executable_extensions; do
8875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876     ac_cv_prog_STRIP="${ncn_progname}"
8877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881   done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 STRIP=$ac_cv_prog_STRIP
8887 if test -n "$STRIP"; then
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8889 $as_echo "$STRIP" >&6; }
8890 else
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895
8896   done
8897 fi
8898
8899 for ncn_progname in strip; do
8900   if test -n "$ncn_tool_prefix"; then
8901     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8902 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if test "${ac_cv_prog_STRIP+set}" = set; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   if test -n "$STRIP"; then
8909   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916     for ac_exec_ext in '' $ac_executable_extensions; do
8917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923   done
8924 IFS=$as_save_IFS
8925
8926 fi
8927 fi
8928 STRIP=$ac_cv_prog_STRIP
8929 if test -n "$STRIP"; then
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8931 $as_echo "$STRIP" >&6; }
8932 else
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8935 fi
8936
8937
8938   fi
8939   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8940     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8941 set dummy ${ncn_progname}; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if test "${ac_cv_prog_STRIP+set}" = set; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   if test -n "$STRIP"; then
8948   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8952 do
8953   IFS=$as_save_IFS
8954   test -z "$as_dir" && as_dir=.
8955     for ac_exec_ext in '' $ac_executable_extensions; do
8956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957     ac_cv_prog_STRIP="${ncn_progname}"
8958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959     break 2
8960   fi
8961 done
8962   done
8963 IFS=$as_save_IFS
8964
8965 fi
8966 fi
8967 STRIP=$ac_cv_prog_STRIP
8968 if test -n "$STRIP"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8970 $as_echo "$STRIP" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976
8977   fi
8978   test -n "$ac_cv_prog_STRIP" && break
8979 done
8980
8981 if test -z "$ac_cv_prog_STRIP" ; then
8982   STRIP="true"
8983 fi
8984
8985
8986
8987 if test -n "$WINDRES"; then
8988   ac_cv_prog_WINDRES=$WINDRES
8989 elif test -n "$ac_cv_prog_WINDRES"; then
8990   WINDRES=$ac_cv_prog_WINDRES
8991 fi
8992
8993 if test -n "$ac_cv_prog_WINDRES"; then
8994   for ncn_progname in windres; do
8995     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8996 set dummy ${ncn_progname}; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   if test -n "$WINDRES"; then
9003   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008   IFS=$as_save_IFS
9009   test -z "$as_dir" && as_dir=.
9010     for ac_exec_ext in '' $ac_executable_extensions; do
9011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012     ac_cv_prog_WINDRES="${ncn_progname}"
9013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014     break 2
9015   fi
9016 done
9017   done
9018 IFS=$as_save_IFS
9019
9020 fi
9021 fi
9022 WINDRES=$ac_cv_prog_WINDRES
9023 if test -n "$WINDRES"; then
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9025 $as_echo "$WINDRES" >&6; }
9026 else
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 fi
9030
9031
9032   done
9033 fi
9034
9035 for ncn_progname in windres; do
9036   if test -n "$ncn_tool_prefix"; then
9037     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9042   $as_echo_n "(cached) " >&6
9043 else
9044   if test -n "$WINDRES"; then
9045   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9049 do
9050   IFS=$as_save_IFS
9051   test -z "$as_dir" && as_dir=.
9052     for ac_exec_ext in '' $ac_executable_extensions; do
9053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056     break 2
9057   fi
9058 done
9059   done
9060 IFS=$as_save_IFS
9061
9062 fi
9063 fi
9064 WINDRES=$ac_cv_prog_WINDRES
9065 if test -n "$WINDRES"; then
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9067 $as_echo "$WINDRES" >&6; }
9068 else
9069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 fi
9072
9073
9074   fi
9075   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9076     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9077 set dummy ${ncn_progname}; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   if test -n "$WINDRES"; then
9084   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089   IFS=$as_save_IFS
9090   test -z "$as_dir" && as_dir=.
9091     for ac_exec_ext in '' $ac_executable_extensions; do
9092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093     ac_cv_prog_WINDRES="${ncn_progname}"
9094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095     break 2
9096   fi
9097 done
9098   done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 WINDRES=$ac_cv_prog_WINDRES
9104 if test -n "$WINDRES"; then
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9106 $as_echo "$WINDRES" >&6; }
9107 else
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112
9113   fi
9114   test -n "$ac_cv_prog_WINDRES" && break
9115 done
9116
9117 if test -z "$ac_cv_prog_WINDRES" ; then
9118   set dummy windres
9119   if test $build = $host ; then
9120     WINDRES="$2"
9121   else
9122     WINDRES="${ncn_tool_prefix}$2"
9123   fi
9124 fi
9125
9126
9127
9128 if test -n "$WINDMC"; then
9129   ac_cv_prog_WINDMC=$WINDMC
9130 elif test -n "$ac_cv_prog_WINDMC"; then
9131   WINDMC=$ac_cv_prog_WINDMC
9132 fi
9133
9134 if test -n "$ac_cv_prog_WINDMC"; then
9135   for ncn_progname in windmc; do
9136     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137 set dummy ${ncn_progname}; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$WINDMC"; then
9144   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153     ac_cv_prog_WINDMC="${ncn_progname}"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 WINDMC=$ac_cv_prog_WINDMC
9164 if test -n "$WINDMC"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9166 $as_echo "$WINDMC" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173   done
9174 fi
9175
9176 for ncn_progname in windmc; do
9177   if test -n "$ncn_tool_prefix"; then
9178     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9179 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   if test -n "$WINDMC"; then
9186   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193     for ac_exec_ext in '' $ac_executable_extensions; do
9194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200   done
9201 IFS=$as_save_IFS
9202
9203 fi
9204 fi
9205 WINDMC=$ac_cv_prog_WINDMC
9206 if test -n "$WINDMC"; then
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9208 $as_echo "$WINDMC" >&6; }
9209 else
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215   fi
9216   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9217     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9218 set dummy ${ncn_progname}; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   if test -n "$WINDMC"; then
9225   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230   IFS=$as_save_IFS
9231   test -z "$as_dir" && as_dir=.
9232     for ac_exec_ext in '' $ac_executable_extensions; do
9233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9234     ac_cv_prog_WINDMC="${ncn_progname}"
9235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236     break 2
9237   fi
9238 done
9239   done
9240 IFS=$as_save_IFS
9241
9242 fi
9243 fi
9244 WINDMC=$ac_cv_prog_WINDMC
9245 if test -n "$WINDMC"; then
9246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9247 $as_echo "$WINDMC" >&6; }
9248 else
9249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9251 fi
9252
9253
9254   fi
9255   test -n "$ac_cv_prog_WINDMC" && break
9256 done
9257
9258 if test -z "$ac_cv_prog_WINDMC" ; then
9259   set dummy windmc
9260   if test $build = $host ; then
9261     WINDMC="$2"
9262   else
9263     WINDMC="${ncn_tool_prefix}$2"
9264   fi
9265 fi
9266
9267
9268
9269 if test -n "$OBJCOPY"; then
9270   ac_cv_prog_OBJCOPY=$OBJCOPY
9271 elif test -n "$ac_cv_prog_OBJCOPY"; then
9272   OBJCOPY=$ac_cv_prog_OBJCOPY
9273 fi
9274
9275 if test -n "$ac_cv_prog_OBJCOPY"; then
9276   for ncn_progname in objcopy; do
9277     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9278 set dummy ${ncn_progname}; ac_word=$2
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 $as_echo_n "checking for $ac_word... " >&6; }
9281 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9282   $as_echo_n "(cached) " >&6
9283 else
9284   if test -n "$OBJCOPY"; then
9285   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290   IFS=$as_save_IFS
9291   test -z "$as_dir" && as_dir=.
9292     for ac_exec_ext in '' $ac_executable_extensions; do
9293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294     ac_cv_prog_OBJCOPY="${ncn_progname}"
9295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9296     break 2
9297   fi
9298 done
9299   done
9300 IFS=$as_save_IFS
9301
9302 fi
9303 fi
9304 OBJCOPY=$ac_cv_prog_OBJCOPY
9305 if test -n "$OBJCOPY"; then
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9307 $as_echo "$OBJCOPY" >&6; }
9308 else
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312
9313
9314   done
9315 fi
9316
9317 for ncn_progname in objcopy; do
9318   if test -n "$ncn_tool_prefix"; then
9319     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9320 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   if test -n "$OBJCOPY"; then
9327   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332   IFS=$as_save_IFS
9333   test -z "$as_dir" && as_dir=.
9334     for ac_exec_ext in '' $ac_executable_extensions; do
9335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338     break 2
9339   fi
9340 done
9341   done
9342 IFS=$as_save_IFS
9343
9344 fi
9345 fi
9346 OBJCOPY=$ac_cv_prog_OBJCOPY
9347 if test -n "$OBJCOPY"; then
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9349 $as_echo "$OBJCOPY" >&6; }
9350 else
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9353 fi
9354
9355
9356   fi
9357   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9358     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9359 set dummy ${ncn_progname}; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   if test -n "$OBJCOPY"; then
9366   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375     ac_cv_prog_OBJCOPY="${ncn_progname}"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382
9383 fi
9384 fi
9385 OBJCOPY=$ac_cv_prog_OBJCOPY
9386 if test -n "$OBJCOPY"; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9388 $as_echo "$OBJCOPY" >&6; }
9389 else
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394
9395   fi
9396   test -n "$ac_cv_prog_OBJCOPY" && break
9397 done
9398
9399 if test -z "$ac_cv_prog_OBJCOPY" ; then
9400   set dummy objcopy
9401   if test $build = $host ; then
9402     OBJCOPY="$2"
9403   else
9404     OBJCOPY="${ncn_tool_prefix}$2"
9405   fi
9406 fi
9407
9408
9409
9410 if test -n "$OBJDUMP"; then
9411   ac_cv_prog_OBJDUMP=$OBJDUMP
9412 elif test -n "$ac_cv_prog_OBJDUMP"; then
9413   OBJDUMP=$ac_cv_prog_OBJDUMP
9414 fi
9415
9416 if test -n "$ac_cv_prog_OBJDUMP"; then
9417   for ncn_progname in objdump; do
9418     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9419 set dummy ${ncn_progname}; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   if test -n "$OBJDUMP"; then
9426   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431   IFS=$as_save_IFS
9432   test -z "$as_dir" && as_dir=.
9433     for ac_exec_ext in '' $ac_executable_extensions; do
9434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435     ac_cv_prog_OBJDUMP="${ncn_progname}"
9436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437     break 2
9438   fi
9439 done
9440   done
9441 IFS=$as_save_IFS
9442
9443 fi
9444 fi
9445 OBJDUMP=$ac_cv_prog_OBJDUMP
9446 if test -n "$OBJDUMP"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9448 $as_echo "$OBJDUMP" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453
9454
9455   done
9456 fi
9457
9458 for ncn_progname in objdump; do
9459   if test -n "$ncn_tool_prefix"; then
9460     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9461 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   if test -n "$OBJDUMP"; then
9468   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473   IFS=$as_save_IFS
9474   test -z "$as_dir" && as_dir=.
9475     for ac_exec_ext in '' $ac_executable_extensions; do
9476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479     break 2
9480   fi
9481 done
9482   done
9483 IFS=$as_save_IFS
9484
9485 fi
9486 fi
9487 OBJDUMP=$ac_cv_prog_OBJDUMP
9488 if test -n "$OBJDUMP"; then
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9490 $as_echo "$OBJDUMP" >&6; }
9491 else
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495
9496
9497   fi
9498   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9499     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9500 set dummy ${ncn_progname}; ac_word=$2
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502 $as_echo_n "checking for $ac_word... " >&6; }
9503 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9504   $as_echo_n "(cached) " >&6
9505 else
9506   if test -n "$OBJDUMP"; then
9507   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9508 else
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9511 do
9512   IFS=$as_save_IFS
9513   test -z "$as_dir" && as_dir=.
9514     for ac_exec_ext in '' $ac_executable_extensions; do
9515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9516     ac_cv_prog_OBJDUMP="${ncn_progname}"
9517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518     break 2
9519   fi
9520 done
9521   done
9522 IFS=$as_save_IFS
9523
9524 fi
9525 fi
9526 OBJDUMP=$ac_cv_prog_OBJDUMP
9527 if test -n "$OBJDUMP"; then
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9529 $as_echo "$OBJDUMP" >&6; }
9530 else
9531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 fi
9534
9535
9536   fi
9537   test -n "$ac_cv_prog_OBJDUMP" && break
9538 done
9539
9540 if test -z "$ac_cv_prog_OBJDUMP" ; then
9541   set dummy objdump
9542   if test $build = $host ; then
9543     OBJDUMP="$2"
9544   else
9545     OBJDUMP="${ncn_tool_prefix}$2"
9546   fi
9547 fi
9548
9549
9550
9551
9552
9553
9554 # Target tools.
9555
9556 # Check whether --with-build-time-tools was given.
9557 if test "${with_build_time_tools+set}" = set; then :
9558   withval=$with_build_time_tools; case x"$withval" in
9559      x/*) ;;
9560      *)
9561        with_build_time_tools=
9562        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9563 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9564        ;;
9565    esac
9566 else
9567   with_build_time_tools=
9568 fi
9569
9570
9571
9572
9573 if test -n "$CC_FOR_TARGET"; then
9574   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9575 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9576   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9577 fi
9578
9579 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9580   for ncn_progname in cc gcc; do
9581     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9582 set dummy ${ncn_progname}; ac_word=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9586   $as_echo_n "(cached) " >&6
9587 else
9588   if test -n "$CC_FOR_TARGET"; then
9589   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9590 else
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in $PATH
9593 do
9594   IFS=$as_save_IFS
9595   test -z "$as_dir" && as_dir=.
9596     for ac_exec_ext in '' $ac_executable_extensions; do
9597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600     break 2
9601   fi
9602 done
9603   done
9604 IFS=$as_save_IFS
9605
9606 fi
9607 fi
9608 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9609 if test -n "$CC_FOR_TARGET"; then
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9611 $as_echo "$CC_FOR_TARGET" >&6; }
9612 else
9613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 $as_echo "no" >&6; }
9615 fi
9616
9617
9618   done
9619 fi
9620
9621 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9622   for ncn_progname in cc gcc; do
9623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9625     if test -x $with_build_time_tools/${ncn_progname}; then
9626       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629       break
9630     else
9631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633     fi
9634   done
9635 fi
9636
9637 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9638   for ncn_progname in cc gcc; do
9639     if test -n "$ncn_target_tool_prefix"; then
9640       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9645   $as_echo_n "(cached) " >&6
9646 else
9647   if test -n "$CC_FOR_TARGET"; then
9648   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9649 else
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653   IFS=$as_save_IFS
9654   test -z "$as_dir" && as_dir=.
9655     for ac_exec_ext in '' $ac_executable_extensions; do
9656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659     break 2
9660   fi
9661 done
9662   done
9663 IFS=$as_save_IFS
9664
9665 fi
9666 fi
9667 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9668 if test -n "$CC_FOR_TARGET"; then
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9670 $as_echo "$CC_FOR_TARGET" >&6; }
9671 else
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9674 fi
9675
9676
9677     fi
9678     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9679       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9680 set dummy ${ncn_progname}; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   if test -n "$CC_FOR_TARGET"; then
9687   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692   IFS=$as_save_IFS
9693   test -z "$as_dir" && as_dir=.
9694     for ac_exec_ext in '' $ac_executable_extensions; do
9695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698     break 2
9699   fi
9700 done
9701   done
9702 IFS=$as_save_IFS
9703
9704 fi
9705 fi
9706 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9707 if test -n "$CC_FOR_TARGET"; then
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9709 $as_echo "$CC_FOR_TARGET" >&6; }
9710 else
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714
9715
9716     fi
9717     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9718   done
9719 fi
9720
9721 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9722   set dummy cc gcc
9723   if test $build = $target ; then
9724     CC_FOR_TARGET="$2"
9725   else
9726     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9727   fi
9728 else
9729   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9730 fi
9731
9732
9733
9734 if test -n "$CXX_FOR_TARGET"; then
9735   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9736 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9737   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9738 fi
9739
9740 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9741   for ncn_progname in c++ g++ cxx gxx; do
9742     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9743 set dummy ${ncn_progname}; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749   if test -n "$CXX_FOR_TARGET"; then
9750   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9751 else
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9754 do
9755   IFS=$as_save_IFS
9756   test -z "$as_dir" && as_dir=.
9757     for ac_exec_ext in '' $ac_executable_extensions; do
9758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761     break 2
9762   fi
9763 done
9764   done
9765 IFS=$as_save_IFS
9766
9767 fi
9768 fi
9769 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9770 if test -n "$CXX_FOR_TARGET"; then
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9772 $as_echo "$CXX_FOR_TARGET" >&6; }
9773 else
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777
9778
9779   done
9780 fi
9781
9782 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9783   for ncn_progname in c++ g++ cxx gxx; do
9784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9785 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9786     if test -x $with_build_time_tools/${ncn_progname}; then
9787       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9789 $as_echo "yes" >&6; }
9790       break
9791     else
9792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9794     fi
9795   done
9796 fi
9797
9798 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9799   for ncn_progname in c++ g++ cxx gxx; do
9800     if test -n "$ncn_target_tool_prefix"; then
9801       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9802 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   if test -n "$CXX_FOR_TARGET"; then
9809   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814   IFS=$as_save_IFS
9815   test -z "$as_dir" && as_dir=.
9816     for ac_exec_ext in '' $ac_executable_extensions; do
9817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820     break 2
9821   fi
9822 done
9823   done
9824 IFS=$as_save_IFS
9825
9826 fi
9827 fi
9828 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9829 if test -n "$CXX_FOR_TARGET"; then
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9831 $as_echo "$CXX_FOR_TARGET" >&6; }
9832 else
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9835 fi
9836
9837
9838     fi
9839     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9840       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841 set dummy ${ncn_progname}; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   if test -n "$CXX_FOR_TARGET"; then
9848   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9849 else
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9852 do
9853   IFS=$as_save_IFS
9854   test -z "$as_dir" && as_dir=.
9855     for ac_exec_ext in '' $ac_executable_extensions; do
9856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859     break 2
9860   fi
9861 done
9862   done
9863 IFS=$as_save_IFS
9864
9865 fi
9866 fi
9867 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9868 if test -n "$CXX_FOR_TARGET"; then
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9870 $as_echo "$CXX_FOR_TARGET" >&6; }
9871 else
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875
9876
9877     fi
9878     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9879   done
9880 fi
9881
9882 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9883   set dummy c++ g++ cxx gxx
9884   if test $build = $target ; then
9885     CXX_FOR_TARGET="$2"
9886   else
9887     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9888   fi
9889 else
9890   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9891 fi
9892
9893
9894
9895 if test -n "$GCC_FOR_TARGET"; then
9896   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9897 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9898   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9899 fi
9900
9901 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9902   for ncn_progname in gcc; do
9903     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9904 set dummy ${ncn_progname}; ac_word=$2
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9906 $as_echo_n "checking for $ac_word... " >&6; }
9907 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   if test -n "$GCC_FOR_TARGET"; then
9911   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9912 else
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914 for as_dir in $PATH
9915 do
9916   IFS=$as_save_IFS
9917   test -z "$as_dir" && as_dir=.
9918     for ac_exec_ext in '' $ac_executable_extensions; do
9919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9920     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922     break 2
9923   fi
9924 done
9925   done
9926 IFS=$as_save_IFS
9927
9928 fi
9929 fi
9930 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9931 if test -n "$GCC_FOR_TARGET"; then
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9933 $as_echo "$GCC_FOR_TARGET" >&6; }
9934 else
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9937 fi
9938
9939
9940   done
9941 fi
9942
9943 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9944   for ncn_progname in gcc; do
9945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9946 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9947     if test -x $with_build_time_tools/${ncn_progname}; then
9948       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9950 $as_echo "yes" >&6; }
9951       break
9952     else
9953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955     fi
9956   done
9957 fi
9958
9959 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9960   for ncn_progname in gcc; do
9961     if test -n "$ncn_target_tool_prefix"; then
9962       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   if test -n "$GCC_FOR_TARGET"; then
9970   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986
9987 fi
9988 fi
9989 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9990 if test -n "$GCC_FOR_TARGET"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9992 $as_echo "$GCC_FOR_TARGET" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997
9998
9999     fi
10000     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10001       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10002 set dummy ${ncn_progname}; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   if test -n "$GCC_FOR_TARGET"; then
10009   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10010 else
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10013 do
10014   IFS=$as_save_IFS
10015   test -z "$as_dir" && as_dir=.
10016     for ac_exec_ext in '' $ac_executable_extensions; do
10017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10018     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020     break 2
10021   fi
10022 done
10023   done
10024 IFS=$as_save_IFS
10025
10026 fi
10027 fi
10028 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10029 if test -n "$GCC_FOR_TARGET"; then
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10031 $as_echo "$GCC_FOR_TARGET" >&6; }
10032 else
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035 fi
10036
10037
10038     fi
10039     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10040   done
10041 fi
10042
10043 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10044   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10045 else
10046   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10047 fi
10048
10049
10050
10051 if test -n "$GCJ_FOR_TARGET"; then
10052   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10053 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10054   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10055 fi
10056
10057 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10058   for ncn_progname in gcj; do
10059     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10060 set dummy ${ncn_progname}; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10064   $as_echo_n "(cached) " >&6
10065 else
10066   if test -n "$GCJ_FOR_TARGET"; then
10067   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10068 else
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072   IFS=$as_save_IFS
10073   test -z "$as_dir" && as_dir=.
10074     for ac_exec_ext in '' $ac_executable_extensions; do
10075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078     break 2
10079   fi
10080 done
10081   done
10082 IFS=$as_save_IFS
10083
10084 fi
10085 fi
10086 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10087 if test -n "$GCJ_FOR_TARGET"; then
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10089 $as_echo "$GCJ_FOR_TARGET" >&6; }
10090 else
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10093 fi
10094
10095
10096   done
10097 fi
10098
10099 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10100   for ncn_progname in gcj; do
10101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10102 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10103     if test -x $with_build_time_tools/${ncn_progname}; then
10104       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10106 $as_echo "yes" >&6; }
10107       break
10108     else
10109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10111     fi
10112   done
10113 fi
10114
10115 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10116   for ncn_progname in gcj; do
10117     if test -n "$ncn_target_tool_prefix"; then
10118       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10119 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   if test -n "$GCJ_FOR_TARGET"; then
10126   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10130 do
10131   IFS=$as_save_IFS
10132   test -z "$as_dir" && as_dir=.
10133     for ac_exec_ext in '' $ac_executable_extensions; do
10134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10135     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137     break 2
10138   fi
10139 done
10140   done
10141 IFS=$as_save_IFS
10142
10143 fi
10144 fi
10145 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10146 if test -n "$GCJ_FOR_TARGET"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10148 $as_echo "$GCJ_FOR_TARGET" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154
10155     fi
10156     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10157       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10158 set dummy ${ncn_progname}; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10162   $as_echo_n "(cached) " >&6
10163 else
10164   if test -n "$GCJ_FOR_TARGET"; then
10165   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170   IFS=$as_save_IFS
10171   test -z "$as_dir" && as_dir=.
10172     for ac_exec_ext in '' $ac_executable_extensions; do
10173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176     break 2
10177   fi
10178 done
10179   done
10180 IFS=$as_save_IFS
10181
10182 fi
10183 fi
10184 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10185 if test -n "$GCJ_FOR_TARGET"; then
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10187 $as_echo "$GCJ_FOR_TARGET" >&6; }
10188 else
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192
10193
10194     fi
10195     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10196   done
10197 fi
10198
10199 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10200   set dummy gcj
10201   if test $build = $target ; then
10202     GCJ_FOR_TARGET="$2"
10203   else
10204     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10205   fi
10206 else
10207   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10208 fi
10209
10210
10211
10212 if test -n "$GFORTRAN_FOR_TARGET"; then
10213   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10214 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10215   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10216 fi
10217
10218 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10219   for ncn_progname in gfortran; do
10220     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10221 set dummy ${ncn_progname}; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   if test -n "$GFORTRAN_FOR_TARGET"; then
10228   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233   IFS=$as_save_IFS
10234   test -z "$as_dir" && as_dir=.
10235     for ac_exec_ext in '' $ac_executable_extensions; do
10236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239     break 2
10240   fi
10241 done
10242   done
10243 IFS=$as_save_IFS
10244
10245 fi
10246 fi
10247 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10248 if test -n "$GFORTRAN_FOR_TARGET"; then
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10250 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10251 else
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10254 fi
10255
10256
10257   done
10258 fi
10259
10260 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10261   for ncn_progname in gfortran; do
10262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10263 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10264     if test -x $with_build_time_tools/${ncn_progname}; then
10265       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10267 $as_echo "yes" >&6; }
10268       break
10269     else
10270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10272     fi
10273   done
10274 fi
10275
10276 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10277   for ncn_progname in gfortran; do
10278     if test -n "$ncn_target_tool_prefix"; then
10279       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   if test -n "$GFORTRAN_FOR_TARGET"; then
10287   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10288 else
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292   IFS=$as_save_IFS
10293   test -z "$as_dir" && as_dir=.
10294     for ac_exec_ext in '' $ac_executable_extensions; do
10295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10296     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298     break 2
10299   fi
10300 done
10301   done
10302 IFS=$as_save_IFS
10303
10304 fi
10305 fi
10306 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10307 if test -n "$GFORTRAN_FOR_TARGET"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10309 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314
10315
10316     fi
10317     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10318       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10319 set dummy ${ncn_progname}; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   if test -n "$GFORTRAN_FOR_TARGET"; then
10326   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331   IFS=$as_save_IFS
10332   test -z "$as_dir" && as_dir=.
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337     break 2
10338   fi
10339 done
10340   done
10341 IFS=$as_save_IFS
10342
10343 fi
10344 fi
10345 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10346 if test -n "$GFORTRAN_FOR_TARGET"; then
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10348 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10349 else
10350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 fi
10353
10354
10355     fi
10356     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10357   done
10358 fi
10359
10360 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10361   set dummy gfortran
10362   if test $build = $target ; then
10363     GFORTRAN_FOR_TARGET="$2"
10364   else
10365     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10366   fi
10367 else
10368   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10369 fi
10370
10371
10372
10373 cat > conftest.c << \EOF
10374 #ifdef __GNUC__
10375   gcc_yay;
10376 #endif
10377 EOF
10378 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10379   have_gcc_for_target=yes
10380 else
10381   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10382   have_gcc_for_target=no
10383 fi
10384 rm conftest.c
10385
10386
10387
10388
10389 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10390   if test -n "$with_build_time_tools"; then
10391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10392 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10393     if test -x $with_build_time_tools/ar; then
10394       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10395       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10397 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10398     else
10399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10401     fi
10402   elif test $build != $host && test $have_gcc_for_target = yes; then
10403     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10404     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10405     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10406   fi
10407 fi
10408 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10409   # Extract the first word of "ar", so it can be a program name with args.
10410 set dummy ar; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   case $AR_FOR_TARGET in
10417   [\\/]* | ?:[\\/]*)
10418   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10419   ;;
10420   *)
10421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $gcc_cv_tool_dirs
10423 do
10424   IFS=$as_save_IFS
10425   test -z "$as_dir" && as_dir=.
10426     for ac_exec_ext in '' $ac_executable_extensions; do
10427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430     break 2
10431   fi
10432 done
10433   done
10434 IFS=$as_save_IFS
10435
10436   ;;
10437 esac
10438 fi
10439 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10440 if test -n "$AR_FOR_TARGET"; then
10441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10442 $as_echo "$AR_FOR_TARGET" >&6; }
10443 else
10444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10446 fi
10447
10448
10449 fi
10450 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10451
10452
10453 if test -n "$AR_FOR_TARGET"; then
10454   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10455 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10456   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10457 fi
10458
10459 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10460   for ncn_progname in ar; do
10461     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10462 set dummy ${ncn_progname}; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10466   $as_echo_n "(cached) " >&6
10467 else
10468   if test -n "$AR_FOR_TARGET"; then
10469   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10470 else
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472 for as_dir in $PATH
10473 do
10474   IFS=$as_save_IFS
10475   test -z "$as_dir" && as_dir=.
10476     for ac_exec_ext in '' $ac_executable_extensions; do
10477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10478     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480     break 2
10481   fi
10482 done
10483   done
10484 IFS=$as_save_IFS
10485
10486 fi
10487 fi
10488 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10489 if test -n "$AR_FOR_TARGET"; then
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10491 $as_echo "$AR_FOR_TARGET" >&6; }
10492 else
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10495 fi
10496
10497
10498   done
10499 fi
10500
10501 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10502   for ncn_progname in ar; do
10503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10504 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10505     if test -x $with_build_time_tools/${ncn_progname}; then
10506       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10509       break
10510     else
10511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513     fi
10514   done
10515 fi
10516
10517 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10518   for ncn_progname in ar; do
10519     if test -n "$ncn_target_tool_prefix"; then
10520       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AR_FOR_TARGET+set}" = set; then :
10525   $as_echo_n "(cached) " >&6
10526 else
10527   if test -n "$AR_FOR_TARGET"; then
10528   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10532 do
10533   IFS=$as_save_IFS
10534   test -z "$as_dir" && as_dir=.
10535     for ac_exec_ext in '' $ac_executable_extensions; do
10536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539     break 2
10540   fi
10541 done
10542   done
10543 IFS=$as_save_IFS
10544
10545 fi
10546 fi
10547 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10548 if test -n "$AR_FOR_TARGET"; then
10549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10550 $as_echo "$AR_FOR_TARGET" >&6; }
10551 else
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554 fi
10555
10556
10557     fi
10558     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10559       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10560 set dummy ${ncn_progname}; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if test -n "$AR_FOR_TARGET"; then
10567   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10587 if test -n "$AR_FOR_TARGET"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10589 $as_echo "$AR_FOR_TARGET" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596     fi
10597     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10598   done
10599 fi
10600
10601 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10602   set dummy ar
10603   if test $build = $target ; then
10604     AR_FOR_TARGET="$2"
10605   else
10606     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10607   fi
10608 else
10609   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10610 fi
10611
10612 else
10613   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10614 fi
10615
10616
10617
10618
10619 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10620   if test -n "$with_build_time_tools"; then
10621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10622 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10623     if test -x $with_build_time_tools/as; then
10624       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10625       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10627 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10628     else
10629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10631     fi
10632   elif test $build != $host && test $have_gcc_for_target = yes; then
10633     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10634     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10635     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10636   fi
10637 fi
10638 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10639   # Extract the first word of "as", so it can be a program name with args.
10640 set dummy as; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   case $AS_FOR_TARGET in
10647   [\\/]* | ?:[\\/]*)
10648   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10649   ;;
10650   *)
10651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $gcc_cv_tool_dirs
10653 do
10654   IFS=$as_save_IFS
10655   test -z "$as_dir" && as_dir=.
10656     for ac_exec_ext in '' $ac_executable_extensions; do
10657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660     break 2
10661   fi
10662 done
10663   done
10664 IFS=$as_save_IFS
10665
10666   ;;
10667 esac
10668 fi
10669 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10670 if test -n "$AS_FOR_TARGET"; then
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10672 $as_echo "$AS_FOR_TARGET" >&6; }
10673 else
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10676 fi
10677
10678
10679 fi
10680 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10681
10682
10683 if test -n "$AS_FOR_TARGET"; then
10684   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10685 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10686   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10687 fi
10688
10689 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10690   for ncn_progname in as; do
10691     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10692 set dummy ${ncn_progname}; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   if test -n "$AS_FOR_TARGET"; then
10699   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715
10716 fi
10717 fi
10718 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10719 if test -n "$AS_FOR_TARGET"; then
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10721 $as_echo "$AS_FOR_TARGET" >&6; }
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 fi
10726
10727
10728   done
10729 fi
10730
10731 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10732   for ncn_progname in as; do
10733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10734 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10735     if test -x $with_build_time_tools/${ncn_progname}; then
10736       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738 $as_echo "yes" >&6; }
10739       break
10740     else
10741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743     fi
10744   done
10745 fi
10746
10747 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10748   for ncn_progname in as; do
10749     if test -n "$ncn_target_tool_prefix"; then
10750       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AS_FOR_TARGET+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   if test -n "$AS_FOR_TARGET"; then
10758   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765     for ac_exec_ext in '' $ac_executable_extensions; do
10766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772   done
10773 IFS=$as_save_IFS
10774
10775 fi
10776 fi
10777 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10778 if test -n "$AS_FOR_TARGET"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10780 $as_echo "$AS_FOR_TARGET" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787     fi
10788     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10789       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   if test -n "$AS_FOR_TARGET"; then
10797   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802   IFS=$as_save_IFS
10803   test -z "$as_dir" && as_dir=.
10804     for ac_exec_ext in '' $ac_executable_extensions; do
10805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808     break 2
10809   fi
10810 done
10811   done
10812 IFS=$as_save_IFS
10813
10814 fi
10815 fi
10816 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10817 if test -n "$AS_FOR_TARGET"; then
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10819 $as_echo "$AS_FOR_TARGET" >&6; }
10820 else
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824
10825
10826     fi
10827     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10828   done
10829 fi
10830
10831 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10832   set dummy as
10833   if test $build = $target ; then
10834     AS_FOR_TARGET="$2"
10835   else
10836     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10837   fi
10838 else
10839   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10840 fi
10841
10842 else
10843   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10844 fi
10845
10846
10847
10848
10849 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10850   if test -n "$with_build_time_tools"; then
10851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10852 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10853     if test -x $with_build_time_tools/dlltool; then
10854       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10855       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10857 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10858     else
10859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861     fi
10862   elif test $build != $host && test $have_gcc_for_target = yes; then
10863     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10864     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10865     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10866   fi
10867 fi
10868 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10869   # Extract the first word of "dlltool", so it can be a program name with args.
10870 set dummy dlltool; ac_word=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10874   $as_echo_n "(cached) " >&6
10875 else
10876   case $DLLTOOL_FOR_TARGET in
10877   [\\/]* | ?:[\\/]*)
10878   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10879   ;;
10880   *)
10881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $gcc_cv_tool_dirs
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886     for ac_exec_ext in '' $ac_executable_extensions; do
10887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893   done
10894 IFS=$as_save_IFS
10895
10896   ;;
10897 esac
10898 fi
10899 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10900 if test -n "$DLLTOOL_FOR_TARGET"; then
10901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10902 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10903 else
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909 fi
10910 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10911
10912
10913 if test -n "$DLLTOOL_FOR_TARGET"; then
10914   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10915 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10916   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10917 fi
10918
10919 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10920   for ncn_progname in dlltool; do
10921     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922 set dummy ${ncn_progname}; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   if test -n "$DLLTOOL_FOR_TARGET"; then
10929   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934   IFS=$as_save_IFS
10935   test -z "$as_dir" && as_dir=.
10936     for ac_exec_ext in '' $ac_executable_extensions; do
10937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940     break 2
10941   fi
10942 done
10943   done
10944 IFS=$as_save_IFS
10945
10946 fi
10947 fi
10948 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10949 if test -n "$DLLTOOL_FOR_TARGET"; then
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10951 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10952 else
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10955 fi
10956
10957
10958   done
10959 fi
10960
10961 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10962   for ncn_progname in dlltool; do
10963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10965     if test -x $with_build_time_tools/${ncn_progname}; then
10966       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969       break
10970     else
10971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973     fi
10974   done
10975 fi
10976
10977 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10978   for ncn_progname in dlltool; do
10979     if test -n "$ncn_target_tool_prefix"; then
10980       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   if test -n "$DLLTOOL_FOR_TARGET"; then
10988   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10989 else
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10992 do
10993   IFS=$as_save_IFS
10994   test -z "$as_dir" && as_dir=.
10995     for ac_exec_ext in '' $ac_executable_extensions; do
10996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999     break 2
11000   fi
11001 done
11002   done
11003 IFS=$as_save_IFS
11004
11005 fi
11006 fi
11007 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11008 if test -n "$DLLTOOL_FOR_TARGET"; then
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11010 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11011 else
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014 fi
11015
11016
11017     fi
11018     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11019       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   if test -n "$DLLTOOL_FOR_TARGET"; then
11027   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11047 if test -n "$DLLTOOL_FOR_TARGET"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11049 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056     fi
11057     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11058   done
11059 fi
11060
11061 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11062   set dummy dlltool
11063   if test $build = $target ; then
11064     DLLTOOL_FOR_TARGET="$2"
11065   else
11066     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11067   fi
11068 else
11069   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11070 fi
11071
11072 else
11073   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11074 fi
11075
11076
11077
11078
11079 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11080   if test -n "$with_build_time_tools"; then
11081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11082 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11083     if test -x $with_build_time_tools/ld; then
11084       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11085       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11087 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11088     else
11089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091     fi
11092   elif test $build != $host && test $have_gcc_for_target = yes; then
11093     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11094     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11095     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11096   fi
11097 fi
11098 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11099   # Extract the first word of "ld", so it can be a program name with args.
11100 set dummy ld; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   case $LD_FOR_TARGET in
11107   [\\/]* | ?:[\\/]*)
11108   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11109   ;;
11110   *)
11111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $gcc_cv_tool_dirs
11113 do
11114   IFS=$as_save_IFS
11115   test -z "$as_dir" && as_dir=.
11116     for ac_exec_ext in '' $ac_executable_extensions; do
11117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120     break 2
11121   fi
11122 done
11123   done
11124 IFS=$as_save_IFS
11125
11126   ;;
11127 esac
11128 fi
11129 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11130 if test -n "$LD_FOR_TARGET"; then
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11132 $as_echo "$LD_FOR_TARGET" >&6; }
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136 fi
11137
11138
11139 fi
11140 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11141
11142
11143 if test -n "$LD_FOR_TARGET"; then
11144   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11145 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11146   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11147 fi
11148
11149 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11150   for ncn_progname in ld; do
11151     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152 set dummy ${ncn_progname}; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   if test -n "$LD_FOR_TARGET"; then
11159   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166     for ac_exec_ext in '' $ac_executable_extensions; do
11167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173   done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11179 if test -n "$LD_FOR_TARGET"; then
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11181 $as_echo "$LD_FOR_TARGET" >&6; }
11182 else
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185 fi
11186
11187
11188   done
11189 fi
11190
11191 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11192   for ncn_progname in ld; do
11193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11195     if test -x $with_build_time_tools/${ncn_progname}; then
11196       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198 $as_echo "yes" >&6; }
11199       break
11200     else
11201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11203     fi
11204   done
11205 fi
11206
11207 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11208   for ncn_progname in ld; do
11209     if test -n "$ncn_target_tool_prefix"; then
11210       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LD_FOR_TARGET+set}" = set; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   if test -n "$LD_FOR_TARGET"; then
11218   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223   IFS=$as_save_IFS
11224   test -z "$as_dir" && as_dir=.
11225     for ac_exec_ext in '' $ac_executable_extensions; do
11226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229     break 2
11230   fi
11231 done
11232   done
11233 IFS=$as_save_IFS
11234
11235 fi
11236 fi
11237 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11238 if test -n "$LD_FOR_TARGET"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11240 $as_echo "$LD_FOR_TARGET" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245
11246
11247     fi
11248     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11249       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if test -n "$LD_FOR_TARGET"; then
11257   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273
11274 fi
11275 fi
11276 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11277 if test -n "$LD_FOR_TARGET"; then
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11279 $as_echo "$LD_FOR_TARGET" >&6; }
11280 else
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284
11285
11286     fi
11287     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11288   done
11289 fi
11290
11291 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11292   set dummy ld
11293   if test $build = $target ; then
11294     LD_FOR_TARGET="$2"
11295   else
11296     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11297   fi
11298 else
11299   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11300 fi
11301
11302 else
11303   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11304 fi
11305
11306
11307
11308
11309 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11310   if test -n "$with_build_time_tools"; then
11311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11312 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11313     if test -x $with_build_time_tools/lipo; then
11314       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11315       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11317 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11318     else
11319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321     fi
11322   elif test $build != $host && test $have_gcc_for_target = yes; then
11323     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11324     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11325     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11326   fi
11327 fi
11328 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11329   # Extract the first word of "lipo", so it can be a program name with args.
11330 set dummy lipo; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   case $LIPO_FOR_TARGET in
11337   [\\/]* | ?:[\\/]*)
11338   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11339   ;;
11340   *)
11341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $gcc_cv_tool_dirs
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355
11356   ;;
11357 esac
11358 fi
11359 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11360 if test -n "$LIPO_FOR_TARGET"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11362 $as_echo "$LIPO_FOR_TARGET" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369 fi
11370 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11371
11372
11373 if test -n "$LIPO_FOR_TARGET"; then
11374   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11375 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11376   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11377 fi
11378
11379 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11380   for ncn_progname in lipo; do
11381     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382 set dummy ${ncn_progname}; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -n "$LIPO_FOR_TARGET"; then
11389   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11409 if test -n "$LIPO_FOR_TARGET"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11411 $as_echo "$LIPO_FOR_TARGET" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418   done
11419 fi
11420
11421 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11422   for ncn_progname in lipo; do
11423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11424 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11425     if test -x $with_build_time_tools/${ncn_progname}; then
11426       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11429       break
11430     else
11431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433     fi
11434   done
11435 fi
11436
11437 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11438   for ncn_progname in lipo; do
11439     if test -n "$ncn_target_tool_prefix"; then
11440       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11441 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LIPO_FOR_TARGET+set}" = set; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   if test -n "$LIPO_FOR_TARGET"; then
11448   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453   IFS=$as_save_IFS
11454   test -z "$as_dir" && as_dir=.
11455     for ac_exec_ext in '' $ac_executable_extensions; do
11456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11457     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459     break 2
11460   fi
11461 done
11462   done
11463 IFS=$as_save_IFS
11464
11465 fi
11466 fi
11467 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11468 if test -n "$LIPO_FOR_TARGET"; then
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11470 $as_echo "$LIPO_FOR_TARGET" >&6; }
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476
11477     fi
11478     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11479       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$LIPO_FOR_TARGET"; then
11487   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11507 if test -n "$LIPO_FOR_TARGET"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11509 $as_echo "$LIPO_FOR_TARGET" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516     fi
11517     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11518   done
11519 fi
11520
11521 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11522   set dummy lipo
11523   if test $build = $target ; then
11524     LIPO_FOR_TARGET="$2"
11525   else
11526     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11527   fi
11528 else
11529   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11530 fi
11531
11532 else
11533   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11534 fi
11535
11536
11537
11538
11539 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11540   if test -n "$with_build_time_tools"; then
11541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11542 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11543     if test -x $with_build_time_tools/nm; then
11544       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11545       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11547 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11548     else
11549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551     fi
11552   elif test $build != $host && test $have_gcc_for_target = yes; then
11553     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11554     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11555     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11556   fi
11557 fi
11558 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11559   # Extract the first word of "nm", so it can be a program name with args.
11560 set dummy nm; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   case $NM_FOR_TARGET in
11567   [\\/]* | ?:[\\/]*)
11568   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11569   ;;
11570   *)
11571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $gcc_cv_tool_dirs
11573 do
11574   IFS=$as_save_IFS
11575   test -z "$as_dir" && as_dir=.
11576     for ac_exec_ext in '' $ac_executable_extensions; do
11577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580     break 2
11581   fi
11582 done
11583   done
11584 IFS=$as_save_IFS
11585
11586   ;;
11587 esac
11588 fi
11589 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11590 if test -n "$NM_FOR_TARGET"; then
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11592 $as_echo "$NM_FOR_TARGET" >&6; }
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599 fi
11600 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11601
11602
11603 if test -n "$NM_FOR_TARGET"; then
11604   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11605 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11606   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11607 fi
11608
11609 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11610   for ncn_progname in nm; do
11611     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   if test -n "$NM_FOR_TARGET"; then
11619   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626     for ac_exec_ext in '' $ac_executable_extensions; do
11627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633   done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11639 if test -n "$NM_FOR_TARGET"; then
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11641 $as_echo "$NM_FOR_TARGET" >&6; }
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646
11647
11648   done
11649 fi
11650
11651 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11652   for ncn_progname in nm; do
11653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11654 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11655     if test -x $with_build_time_tools/${ncn_progname}; then
11656       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11659       break
11660     else
11661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663     fi
11664   done
11665 fi
11666
11667 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11668   for ncn_progname in nm; do
11669     if test -n "$ncn_target_tool_prefix"; then
11670       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11671 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_NM_FOR_TARGET+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   if test -n "$NM_FOR_TARGET"; then
11678   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11679 else
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11682 do
11683   IFS=$as_save_IFS
11684   test -z "$as_dir" && as_dir=.
11685     for ac_exec_ext in '' $ac_executable_extensions; do
11686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689     break 2
11690   fi
11691 done
11692   done
11693 IFS=$as_save_IFS
11694
11695 fi
11696 fi
11697 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11698 if test -n "$NM_FOR_TARGET"; then
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11700 $as_echo "$NM_FOR_TARGET" >&6; }
11701 else
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704 fi
11705
11706
11707     fi
11708     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11709       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$NM_FOR_TARGET"; then
11717   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11737 if test -n "$NM_FOR_TARGET"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11739 $as_echo "$NM_FOR_TARGET" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746     fi
11747     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11748   done
11749 fi
11750
11751 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11752   set dummy nm
11753   if test $build = $target ; then
11754     NM_FOR_TARGET="$2"
11755   else
11756     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11757   fi
11758 else
11759   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11760 fi
11761
11762 else
11763   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11764 fi
11765
11766
11767
11768
11769 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11770   if test -n "$with_build_time_tools"; then
11771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11772 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11773     if test -x $with_build_time_tools/objdump; then
11774       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11775       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11777 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11778     else
11779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781     fi
11782   elif test $build != $host && test $have_gcc_for_target = yes; then
11783     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11784     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11785     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11786   fi
11787 fi
11788 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11789   # Extract the first word of "objdump", so it can be a program name with args.
11790 set dummy objdump; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796   case $OBJDUMP_FOR_TARGET in
11797   [\\/]* | ?:[\\/]*)
11798   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11799   ;;
11800   *)
11801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $gcc_cv_tool_dirs
11803 do
11804   IFS=$as_save_IFS
11805   test -z "$as_dir" && as_dir=.
11806     for ac_exec_ext in '' $ac_executable_extensions; do
11807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810     break 2
11811   fi
11812 done
11813   done
11814 IFS=$as_save_IFS
11815
11816   ;;
11817 esac
11818 fi
11819 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11820 if test -n "$OBJDUMP_FOR_TARGET"; then
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11822 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11823 else
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829 fi
11830 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11831
11832
11833 if test -n "$OBJDUMP_FOR_TARGET"; then
11834   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11835 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11836   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11837 fi
11838
11839 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11840   for ncn_progname in objdump; do
11841     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11842 set dummy ${ncn_progname}; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   if test -n "$OBJDUMP_FOR_TARGET"; then
11849   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11850 else
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854   IFS=$as_save_IFS
11855   test -z "$as_dir" && as_dir=.
11856     for ac_exec_ext in '' $ac_executable_extensions; do
11857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860     break 2
11861   fi
11862 done
11863   done
11864 IFS=$as_save_IFS
11865
11866 fi
11867 fi
11868 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11869 if test -n "$OBJDUMP_FOR_TARGET"; then
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11871 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11872 else
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 fi
11876
11877
11878   done
11879 fi
11880
11881 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11882   for ncn_progname in objdump; do
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11884 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11885     if test -x $with_build_time_tools/${ncn_progname}; then
11886       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889       break
11890     else
11891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893     fi
11894   done
11895 fi
11896
11897 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11898   for ncn_progname in objdump; do
11899     if test -n "$ncn_target_tool_prefix"; then
11900       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11901 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   if test -n "$OBJDUMP_FOR_TARGET"; then
11908   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11928 if test -n "$OBJDUMP_FOR_TARGET"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11930 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936
11937     fi
11938     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11939       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11940 set dummy ${ncn_progname}; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if test -n "$OBJDUMP_FOR_TARGET"; then
11947   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963
11964 fi
11965 fi
11966 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11967 if test -n "$OBJDUMP_FOR_TARGET"; then
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11969 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975
11976     fi
11977     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11978   done
11979 fi
11980
11981 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11982   set dummy objdump
11983   if test $build = $target ; then
11984     OBJDUMP_FOR_TARGET="$2"
11985   else
11986     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11987   fi
11988 else
11989   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11990 fi
11991
11992 else
11993   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11994 fi
11995
11996
11997
11998
11999 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12000   if test -n "$with_build_time_tools"; then
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12002 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12003     if test -x $with_build_time_tools/ranlib; then
12004       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12005       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12007 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12008     else
12009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011     fi
12012   elif test $build != $host && test $have_gcc_for_target = yes; then
12013     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12014     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12015     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12016   fi
12017 fi
12018 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12019   # Extract the first word of "ranlib", so it can be a program name with args.
12020 set dummy ranlib; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   case $RANLIB_FOR_TARGET in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $gcc_cv_tool_dirs
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036     for ac_exec_ext in '' $ac_executable_extensions; do
12037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043   done
12044 IFS=$as_save_IFS
12045
12046   ;;
12047 esac
12048 fi
12049 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12050 if test -n "$RANLIB_FOR_TARGET"; then
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12052 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 fi
12060 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12061
12062
12063 if test -n "$RANLIB_FOR_TARGET"; then
12064   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12065 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12066   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12067 fi
12068
12069 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12070   for ncn_progname in ranlib; do
12071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072 set dummy ${ncn_progname}; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   if test -n "$RANLIB_FOR_TARGET"; then
12079   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093   done
12094 IFS=$as_save_IFS
12095
12096 fi
12097 fi
12098 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12099 if test -n "$RANLIB_FOR_TARGET"; then
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12101 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12102 else
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106
12107
12108   done
12109 fi
12110
12111 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12112   for ncn_progname in ranlib; do
12113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12114 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12115     if test -x $with_build_time_tools/${ncn_progname}; then
12116       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119       break
12120     else
12121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123     fi
12124   done
12125 fi
12126
12127 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12128   for ncn_progname in ranlib; do
12129     if test -n "$ncn_target_tool_prefix"; then
12130       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+set}" = set; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   if test -n "$RANLIB_FOR_TARGET"; then
12138   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_exec_ext in '' $ac_executable_extensions; do
12146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152   done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12158 if test -n "$RANLIB_FOR_TARGET"; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12160 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167     fi
12168     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12169       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12170 set dummy ${ncn_progname}; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   if test -n "$RANLIB_FOR_TARGET"; then
12177   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191   done
12192 IFS=$as_save_IFS
12193
12194 fi
12195 fi
12196 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12197 if test -n "$RANLIB_FOR_TARGET"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12199 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206     fi
12207     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12208   done
12209 fi
12210
12211 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12212   set dummy ranlib
12213   if test $build = $target ; then
12214     RANLIB_FOR_TARGET="$2"
12215   else
12216     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12217   fi
12218 else
12219   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12220 fi
12221
12222 else
12223   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12224 fi
12225
12226
12227
12228
12229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12230   if test -n "$with_build_time_tools"; then
12231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12232 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12233     if test -x $with_build_time_tools/strip; then
12234       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12235       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12237 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12238     else
12239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241     fi
12242   elif test $build != $host && test $have_gcc_for_target = yes; then
12243     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12244     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12245     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12246   fi
12247 fi
12248 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12249   # Extract the first word of "strip", so it can be a program name with args.
12250 set dummy strip; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $STRIP_FOR_TARGET in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $gcc_cv_tool_dirs
12263 do
12264   IFS=$as_save_IFS
12265   test -z "$as_dir" && as_dir=.
12266     for ac_exec_ext in '' $ac_executable_extensions; do
12267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270     break 2
12271   fi
12272 done
12273   done
12274 IFS=$as_save_IFS
12275
12276   ;;
12277 esac
12278 fi
12279 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12280 if test -n "$STRIP_FOR_TARGET"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12282 $as_echo "$STRIP_FOR_TARGET" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288
12289 fi
12290 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12291
12292
12293 if test -n "$STRIP_FOR_TARGET"; then
12294   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12295 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12296   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12297 fi
12298
12299 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12300   for ncn_progname in strip; do
12301     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12302 set dummy ${ncn_progname}; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   if test -n "$STRIP_FOR_TARGET"; then
12309   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314   IFS=$as_save_IFS
12315   test -z "$as_dir" && as_dir=.
12316     for ac_exec_ext in '' $ac_executable_extensions; do
12317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320     break 2
12321   fi
12322 done
12323   done
12324 IFS=$as_save_IFS
12325
12326 fi
12327 fi
12328 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12329 if test -n "$STRIP_FOR_TARGET"; then
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12331 $as_echo "$STRIP_FOR_TARGET" >&6; }
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336
12337
12338   done
12339 fi
12340
12341 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12342   for ncn_progname in strip; do
12343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12344 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12345     if test -x $with_build_time_tools/${ncn_progname}; then
12346       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349       break
12350     else
12351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353     fi
12354   done
12355 fi
12356
12357 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12358   for ncn_progname in strip; do
12359     if test -n "$ncn_target_tool_prefix"; then
12360       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363 $as_echo_n "checking for $ac_word... " >&6; }
12364 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367   if test -n "$STRIP_FOR_TARGET"; then
12368   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12369 else
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373   IFS=$as_save_IFS
12374   test -z "$as_dir" && as_dir=.
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379     break 2
12380   fi
12381 done
12382   done
12383 IFS=$as_save_IFS
12384
12385 fi
12386 fi
12387 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12388 if test -n "$STRIP_FOR_TARGET"; then
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12390 $as_echo "$STRIP_FOR_TARGET" >&6; }
12391 else
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395
12396
12397     fi
12398     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12399       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12400 set dummy ${ncn_progname}; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if test -n "$STRIP_FOR_TARGET"; then
12407   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412   IFS=$as_save_IFS
12413   test -z "$as_dir" && as_dir=.
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418     break 2
12419   fi
12420 done
12421   done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12427 if test -n "$STRIP_FOR_TARGET"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12429 $as_echo "$STRIP_FOR_TARGET" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436     fi
12437     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12438   done
12439 fi
12440
12441 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12442   set dummy strip
12443   if test $build = $target ; then
12444     STRIP_FOR_TARGET="$2"
12445   else
12446     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12447   fi
12448 else
12449   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12450 fi
12451
12452 else
12453   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12454 fi
12455
12456
12457
12458
12459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12460   if test -n "$with_build_time_tools"; then
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12462 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12463     if test -x $with_build_time_tools/windres; then
12464       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12465       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12467 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12468     else
12469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12471     fi
12472   elif test $build != $host && test $have_gcc_for_target = yes; then
12473     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12474     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12475     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12476   fi
12477 fi
12478 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12479   # Extract the first word of "windres", so it can be a program name with args.
12480 set dummy windres; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   case $WINDRES_FOR_TARGET in
12487   [\\/]* | ?:[\\/]*)
12488   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12489   ;;
12490   *)
12491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $gcc_cv_tool_dirs
12493 do
12494   IFS=$as_save_IFS
12495   test -z "$as_dir" && as_dir=.
12496     for ac_exec_ext in '' $ac_executable_extensions; do
12497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12498     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500     break 2
12501   fi
12502 done
12503   done
12504 IFS=$as_save_IFS
12505
12506   ;;
12507 esac
12508 fi
12509 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12510 if test -n "$WINDRES_FOR_TARGET"; then
12511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12512 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12513 else
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518
12519 fi
12520 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12521
12522
12523 if test -n "$WINDRES_FOR_TARGET"; then
12524   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12525 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12526   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12527 fi
12528
12529 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12530   for ncn_progname in windres; do
12531     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   if test -n "$WINDRES_FOR_TARGET"; then
12539   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12543 do
12544   IFS=$as_save_IFS
12545   test -z "$as_dir" && as_dir=.
12546     for ac_exec_ext in '' $ac_executable_extensions; do
12547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550     break 2
12551   fi
12552 done
12553   done
12554 IFS=$as_save_IFS
12555
12556 fi
12557 fi
12558 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12559 if test -n "$WINDRES_FOR_TARGET"; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12561 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12562 else
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565 fi
12566
12567
12568   done
12569 fi
12570
12571 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12572   for ncn_progname in windres; do
12573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12574 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12575     if test -x $with_build_time_tools/${ncn_progname}; then
12576       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578 $as_echo "yes" >&6; }
12579       break
12580     else
12581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583     fi
12584   done
12585 fi
12586
12587 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12588   for ncn_progname in windres; do
12589     if test -n "$ncn_target_tool_prefix"; then
12590       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12591 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12595   $as_echo_n "(cached) " >&6
12596 else
12597   if test -n "$WINDRES_FOR_TARGET"; then
12598   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603   IFS=$as_save_IFS
12604   test -z "$as_dir" && as_dir=.
12605     for ac_exec_ext in '' $ac_executable_extensions; do
12606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614
12615 fi
12616 fi
12617 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12618 if test -n "$WINDRES_FOR_TARGET"; then
12619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12620 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12621 else
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624 fi
12625
12626
12627     fi
12628     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12629       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12630 set dummy ${ncn_progname}; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   if test -n "$WINDRES_FOR_TARGET"; then
12637   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12638 else
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642   IFS=$as_save_IFS
12643   test -z "$as_dir" && as_dir=.
12644     for ac_exec_ext in '' $ac_executable_extensions; do
12645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648     break 2
12649   fi
12650 done
12651   done
12652 IFS=$as_save_IFS
12653
12654 fi
12655 fi
12656 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12657 if test -n "$WINDRES_FOR_TARGET"; then
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12659 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12660 else
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 fi
12664
12665
12666     fi
12667     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12668   done
12669 fi
12670
12671 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12672   set dummy windres
12673   if test $build = $target ; then
12674     WINDRES_FOR_TARGET="$2"
12675   else
12676     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12677   fi
12678 else
12679   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12680 fi
12681
12682 else
12683   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12684 fi
12685
12686
12687
12688
12689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12690   if test -n "$with_build_time_tools"; then
12691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12692 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12693     if test -x $with_build_time_tools/windmc; then
12694       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12695       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12697 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12698     else
12699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701     fi
12702   elif test $build != $host && test $have_gcc_for_target = yes; then
12703     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12704     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12705     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12706   fi
12707 fi
12708 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12709   # Extract the first word of "windmc", so it can be a program name with args.
12710 set dummy windmc; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   case $WINDMC_FOR_TARGET in
12717   [\\/]* | ?:[\\/]*)
12718   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12719   ;;
12720   *)
12721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $gcc_cv_tool_dirs
12723 do
12724   IFS=$as_save_IFS
12725   test -z "$as_dir" && as_dir=.
12726     for ac_exec_ext in '' $ac_executable_extensions; do
12727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12728     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730     break 2
12731   fi
12732 done
12733   done
12734 IFS=$as_save_IFS
12735
12736   ;;
12737 esac
12738 fi
12739 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12740 if test -n "$WINDMC_FOR_TARGET"; then
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12742 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12743 else
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749 fi
12750 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12751
12752
12753 if test -n "$WINDMC_FOR_TARGET"; then
12754   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12755 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12756   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12757 fi
12758
12759 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12760   for ncn_progname in windmc; do
12761     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12762 set dummy ${ncn_progname}; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   if test -n "$WINDMC_FOR_TARGET"; then
12769   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774   IFS=$as_save_IFS
12775   test -z "$as_dir" && as_dir=.
12776     for ac_exec_ext in '' $ac_executable_extensions; do
12777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780     break 2
12781   fi
12782 done
12783   done
12784 IFS=$as_save_IFS
12785
12786 fi
12787 fi
12788 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12789 if test -n "$WINDMC_FOR_TARGET"; then
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12791 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12792 else
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797
12798   done
12799 fi
12800
12801 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12802   for ncn_progname in windmc; do
12803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12804 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12805     if test -x $with_build_time_tools/${ncn_progname}; then
12806       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12809       break
12810     else
12811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813     fi
12814   done
12815 fi
12816
12817 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12818   for ncn_progname in windmc; do
12819     if test -n "$ncn_target_tool_prefix"; then
12820       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823 $as_echo_n "checking for $ac_word... " >&6; }
12824 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12825   $as_echo_n "(cached) " >&6
12826 else
12827   if test -n "$WINDMC_FOR_TARGET"; then
12828   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12829 else
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833   IFS=$as_save_IFS
12834   test -z "$as_dir" && as_dir=.
12835     for ac_exec_ext in '' $ac_executable_extensions; do
12836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12837     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839     break 2
12840   fi
12841 done
12842   done
12843 IFS=$as_save_IFS
12844
12845 fi
12846 fi
12847 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12848 if test -n "$WINDMC_FOR_TARGET"; then
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12850 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855
12856
12857     fi
12858     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12859       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12860 set dummy ${ncn_progname}; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   if test -n "$WINDMC_FOR_TARGET"; then
12867   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12887 if test -n "$WINDMC_FOR_TARGET"; then
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12889 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12890 else
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894
12895
12896     fi
12897     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12898   done
12899 fi
12900
12901 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12902   set dummy windmc
12903   if test $build = $target ; then
12904     WINDMC_FOR_TARGET="$2"
12905   else
12906     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12907   fi
12908 else
12909   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12910 fi
12911
12912 else
12913   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12914 fi
12915
12916
12917 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12920 $as_echo_n "checking where to find the target ar... " >&6; }
12921 if test "x${build}" != "x${host}" ; then
12922   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12923     # We already found the complete path
12924     ac_dir=`dirname $AR_FOR_TARGET`
12925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12926 $as_echo "pre-installed in $ac_dir" >&6; }
12927   else
12928     # Canadian cross, just use what we found
12929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12930 $as_echo "pre-installed" >&6; }
12931   fi
12932 else
12933   ok=yes
12934   case " ${configdirs} " in
12935     *" binutils "*) ;;
12936     *) ok=no ;;
12937   esac
12938
12939   if test $ok = yes; then
12940     # An in-tree tool is available and we can use it
12941     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12943 $as_echo "just compiled" >&6; }
12944   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12945     # We already found the complete path
12946     ac_dir=`dirname $AR_FOR_TARGET`
12947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12948 $as_echo "pre-installed in $ac_dir" >&6; }
12949   elif test "x$target" = "x$host"; then
12950     # We can use an host tool
12951     AR_FOR_TARGET='$(AR)'
12952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12953 $as_echo "host tool" >&6; }
12954   else
12955     # We need a cross tool
12956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12957 $as_echo "pre-installed" >&6; }
12958   fi
12959 fi
12960
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12962 $as_echo_n "checking where to find the target as... " >&6; }
12963 if test "x${build}" != "x${host}" ; then
12964   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12965     # We already found the complete path
12966     ac_dir=`dirname $AS_FOR_TARGET`
12967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12968 $as_echo "pre-installed in $ac_dir" >&6; }
12969   else
12970     # Canadian cross, just use what we found
12971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12972 $as_echo "pre-installed" >&6; }
12973   fi
12974 else
12975   ok=yes
12976   case " ${configdirs} " in
12977     *" gas "*) ;;
12978     *) ok=no ;;
12979   esac
12980
12981   if test $ok = yes; then
12982     # An in-tree tool is available and we can use it
12983     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12985 $as_echo "just compiled" >&6; }
12986   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12987     # We already found the complete path
12988     ac_dir=`dirname $AS_FOR_TARGET`
12989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12990 $as_echo "pre-installed in $ac_dir" >&6; }
12991   elif test "x$target" = "x$host"; then
12992     # We can use an host tool
12993     AS_FOR_TARGET='$(AS)'
12994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12995 $as_echo "host tool" >&6; }
12996   else
12997     # We need a cross tool
12998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12999 $as_echo "pre-installed" >&6; }
13000   fi
13001 fi
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13004 $as_echo_n "checking where to find the target cc... " >&6; }
13005 if test "x${build}" != "x${host}" ; then
13006   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13007     # We already found the complete path
13008     ac_dir=`dirname $CC_FOR_TARGET`
13009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13010 $as_echo "pre-installed in $ac_dir" >&6; }
13011   else
13012     # Canadian cross, just use what we found
13013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13014 $as_echo "pre-installed" >&6; }
13015   fi
13016 else
13017   ok=yes
13018   case " ${configdirs} " in
13019     *" gcc "*) ;;
13020     *) ok=no ;;
13021   esac
13022
13023   if test $ok = yes; then
13024     # An in-tree tool is available and we can use it
13025     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13027 $as_echo "just compiled" >&6; }
13028   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13029     # We already found the complete path
13030     ac_dir=`dirname $CC_FOR_TARGET`
13031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13032 $as_echo "pre-installed in $ac_dir" >&6; }
13033   elif test "x$target" = "x$host"; then
13034     # We can use an host tool
13035     CC_FOR_TARGET='$(CC)'
13036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13037 $as_echo "host tool" >&6; }
13038   else
13039     # We need a cross tool
13040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13041 $as_echo "pre-installed" >&6; }
13042   fi
13043 fi
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13046 $as_echo_n "checking where to find the target c++... " >&6; }
13047 if test "x${build}" != "x${host}" ; then
13048   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13049     # We already found the complete path
13050     ac_dir=`dirname $CXX_FOR_TARGET`
13051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13052 $as_echo "pre-installed in $ac_dir" >&6; }
13053   else
13054     # Canadian cross, just use what we found
13055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13056 $as_echo "pre-installed" >&6; }
13057   fi
13058 else
13059   ok=yes
13060   case " ${configdirs} " in
13061     *" gcc "*) ;;
13062     *) ok=no ;;
13063   esac
13064   case ,${enable_languages}, in
13065     *,c++,*) ;;
13066     *) ok=no ;;
13067   esac
13068   if test $ok = yes; then
13069     # An in-tree tool is available and we can use it
13070     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'
13071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13072 $as_echo "just compiled" >&6; }
13073   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13074     # We already found the complete path
13075     ac_dir=`dirname $CXX_FOR_TARGET`
13076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13077 $as_echo "pre-installed in $ac_dir" >&6; }
13078   elif test "x$target" = "x$host"; then
13079     # We can use an host tool
13080     CXX_FOR_TARGET='$(CXX)'
13081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13082 $as_echo "host tool" >&6; }
13083   else
13084     # We need a cross tool
13085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13086 $as_echo "pre-installed" >&6; }
13087   fi
13088 fi
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13091 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13092 if test "x${build}" != "x${host}" ; then
13093   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13094     # We already found the complete path
13095     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13097 $as_echo "pre-installed in $ac_dir" >&6; }
13098   else
13099     # Canadian cross, just use what we found
13100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13101 $as_echo "pre-installed" >&6; }
13102   fi
13103 else
13104   ok=yes
13105   case " ${configdirs} " in
13106     *" gcc "*) ;;
13107     *) ok=no ;;
13108   esac
13109   case ,${enable_languages}, in
13110     *,c++,*) ;;
13111     *) ok=no ;;
13112   esac
13113   if test $ok = yes; then
13114     # An in-tree tool is available and we can use it
13115     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'
13116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13117 $as_echo "just compiled" >&6; }
13118   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13119     # We already found the complete path
13120     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13122 $as_echo "pre-installed in $ac_dir" >&6; }
13123   elif test "x$target" = "x$host"; then
13124     # We can use an host tool
13125     RAW_CXX_FOR_TARGET='$(CXX)'
13126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13127 $as_echo "host tool" >&6; }
13128   else
13129     # We need a cross tool
13130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13131 $as_echo "pre-installed" >&6; }
13132   fi
13133 fi
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13136 $as_echo_n "checking where to find the target dlltool... " >&6; }
13137 if test "x${build}" != "x${host}" ; then
13138   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13139     # We already found the complete path
13140     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13142 $as_echo "pre-installed in $ac_dir" >&6; }
13143   else
13144     # Canadian cross, just use what we found
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13146 $as_echo "pre-installed" >&6; }
13147   fi
13148 else
13149   ok=yes
13150   case " ${configdirs} " in
13151     *" binutils "*) ;;
13152     *) ok=no ;;
13153   esac
13154
13155   if test $ok = yes; then
13156     # An in-tree tool is available and we can use it
13157     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13159 $as_echo "just compiled" >&6; }
13160   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13161     # We already found the complete path
13162     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13164 $as_echo "pre-installed in $ac_dir" >&6; }
13165   elif test "x$target" = "x$host"; then
13166     # We can use an host tool
13167     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13169 $as_echo "host tool" >&6; }
13170   else
13171     # We need a cross tool
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13173 $as_echo "pre-installed" >&6; }
13174   fi
13175 fi
13176
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13178 $as_echo_n "checking where to find the target gcc... " >&6; }
13179 if test "x${build}" != "x${host}" ; then
13180   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13181     # We already found the complete path
13182     ac_dir=`dirname $GCC_FOR_TARGET`
13183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13184 $as_echo "pre-installed in $ac_dir" >&6; }
13185   else
13186     # Canadian cross, just use what we found
13187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13188 $as_echo "pre-installed" >&6; }
13189   fi
13190 else
13191   ok=yes
13192   case " ${configdirs} " in
13193     *" gcc "*) ;;
13194     *) ok=no ;;
13195   esac
13196
13197   if test $ok = yes; then
13198     # An in-tree tool is available and we can use it
13199     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13201 $as_echo "just compiled" >&6; }
13202   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13203     # We already found the complete path
13204     ac_dir=`dirname $GCC_FOR_TARGET`
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13206 $as_echo "pre-installed in $ac_dir" >&6; }
13207   elif test "x$target" = "x$host"; then
13208     # We can use an host tool
13209     GCC_FOR_TARGET='$()'
13210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13211 $as_echo "host tool" >&6; }
13212   else
13213     # We need a cross tool
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13215 $as_echo "pre-installed" >&6; }
13216   fi
13217 fi
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13220 $as_echo_n "checking where to find the target gcj... " >&6; }
13221 if test "x${build}" != "x${host}" ; then
13222   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13223     # We already found the complete path
13224     ac_dir=`dirname $GCJ_FOR_TARGET`
13225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13226 $as_echo "pre-installed in $ac_dir" >&6; }
13227   else
13228     # Canadian cross, just use what we found
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13230 $as_echo "pre-installed" >&6; }
13231   fi
13232 else
13233   ok=yes
13234   case " ${configdirs} " in
13235     *" gcc "*) ;;
13236     *) ok=no ;;
13237   esac
13238   case ,${enable_languages}, in
13239     *,java,*) ;;
13240     *) ok=no ;;
13241   esac
13242   if test $ok = yes; then
13243     # An in-tree tool is available and we can use it
13244     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13246 $as_echo "just compiled" >&6; }
13247   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13248     # We already found the complete path
13249     ac_dir=`dirname $GCJ_FOR_TARGET`
13250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13251 $as_echo "pre-installed in $ac_dir" >&6; }
13252   elif test "x$target" = "x$host"; then
13253     # We can use an host tool
13254     GCJ_FOR_TARGET='$(GCJ)'
13255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13256 $as_echo "host tool" >&6; }
13257   else
13258     # We need a cross tool
13259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13260 $as_echo "pre-installed" >&6; }
13261   fi
13262 fi
13263
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13265 $as_echo_n "checking where to find the target gfortran... " >&6; }
13266 if test "x${build}" != "x${host}" ; then
13267   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13268     # We already found the complete path
13269     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13271 $as_echo "pre-installed in $ac_dir" >&6; }
13272   else
13273     # Canadian cross, just use what we found
13274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13275 $as_echo "pre-installed" >&6; }
13276   fi
13277 else
13278   ok=yes
13279   case " ${configdirs} " in
13280     *" gcc "*) ;;
13281     *) ok=no ;;
13282   esac
13283   case ,${enable_languages}, in
13284     *,fortran,*) ;;
13285     *) ok=no ;;
13286   esac
13287   if test $ok = yes; then
13288     # An in-tree tool is available and we can use it
13289     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13291 $as_echo "just compiled" >&6; }
13292   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13293     # We already found the complete path
13294     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13296 $as_echo "pre-installed in $ac_dir" >&6; }
13297   elif test "x$target" = "x$host"; then
13298     # We can use an host tool
13299     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13301 $as_echo "host tool" >&6; }
13302   else
13303     # We need a cross tool
13304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13305 $as_echo "pre-installed" >&6; }
13306   fi
13307 fi
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13310 $as_echo_n "checking where to find the target ld... " >&6; }
13311 if test "x${build}" != "x${host}" ; then
13312   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13313     # We already found the complete path
13314     ac_dir=`dirname $LD_FOR_TARGET`
13315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13316 $as_echo "pre-installed in $ac_dir" >&6; }
13317   else
13318     # Canadian cross, just use what we found
13319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13320 $as_echo "pre-installed" >&6; }
13321   fi
13322 else
13323   ok=yes
13324   case " ${configdirs} " in
13325     *" ld "*) ;;
13326     *) ok=no ;;
13327   esac
13328
13329   if test $ok = yes; then
13330     # An in-tree tool is available and we can use it
13331     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13333 $as_echo "just compiled" >&6; }
13334   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13335     # We already found the complete path
13336     ac_dir=`dirname $LD_FOR_TARGET`
13337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13338 $as_echo "pre-installed in $ac_dir" >&6; }
13339   elif test "x$target" = "x$host"; then
13340     # We can use an host tool
13341     LD_FOR_TARGET='$(LD)'
13342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13343 $as_echo "host tool" >&6; }
13344   else
13345     # We need a cross tool
13346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13347 $as_echo "pre-installed" >&6; }
13348   fi
13349 fi
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13352 $as_echo_n "checking where to find the target lipo... " >&6; }
13353 if test "x${build}" != "x${host}" ; then
13354   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13355     # We already found the complete path
13356     ac_dir=`dirname $LIPO_FOR_TARGET`
13357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13358 $as_echo "pre-installed in $ac_dir" >&6; }
13359   else
13360     # Canadian cross, just use what we found
13361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13362 $as_echo "pre-installed" >&6; }
13363   fi
13364 else
13365   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13366     # We already found the complete path
13367     ac_dir=`dirname $LIPO_FOR_TARGET`
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13369 $as_echo "pre-installed in $ac_dir" >&6; }
13370   elif test "x$target" = "x$host"; then
13371     # We can use an host tool
13372     LIPO_FOR_TARGET='$(LIPO)'
13373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13374 $as_echo "host tool" >&6; }
13375   else
13376     # We need a cross tool
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13378 $as_echo "pre-installed" >&6; }
13379   fi
13380 fi
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13383 $as_echo_n "checking where to find the target nm... " >&6; }
13384 if test "x${build}" != "x${host}" ; then
13385   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13386     # We already found the complete path
13387     ac_dir=`dirname $NM_FOR_TARGET`
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13389 $as_echo "pre-installed in $ac_dir" >&6; }
13390   else
13391     # Canadian cross, just use what we found
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13393 $as_echo "pre-installed" >&6; }
13394   fi
13395 else
13396   ok=yes
13397   case " ${configdirs} " in
13398     *" binutils "*) ;;
13399     *) ok=no ;;
13400   esac
13401
13402   if test $ok = yes; then
13403     # An in-tree tool is available and we can use it
13404     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13406 $as_echo "just compiled" >&6; }
13407   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13408     # We already found the complete path
13409     ac_dir=`dirname $NM_FOR_TARGET`
13410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13411 $as_echo "pre-installed in $ac_dir" >&6; }
13412   elif test "x$target" = "x$host"; then
13413     # We can use an host tool
13414     NM_FOR_TARGET='$(NM)'
13415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13416 $as_echo "host tool" >&6; }
13417   else
13418     # We need a cross tool
13419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13420 $as_echo "pre-installed" >&6; }
13421   fi
13422 fi
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13425 $as_echo_n "checking where to find the target objdump... " >&6; }
13426 if test "x${build}" != "x${host}" ; then
13427   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13428     # We already found the complete path
13429     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13431 $as_echo "pre-installed in $ac_dir" >&6; }
13432   else
13433     # Canadian cross, just use what we found
13434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13435 $as_echo "pre-installed" >&6; }
13436   fi
13437 else
13438   ok=yes
13439   case " ${configdirs} " in
13440     *" binutils "*) ;;
13441     *) ok=no ;;
13442   esac
13443
13444   if test $ok = yes; then
13445     # An in-tree tool is available and we can use it
13446     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13448 $as_echo "just compiled" >&6; }
13449   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13450     # We already found the complete path
13451     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13453 $as_echo "pre-installed in $ac_dir" >&6; }
13454   elif test "x$target" = "x$host"; then
13455     # We can use an host tool
13456     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13458 $as_echo "host tool" >&6; }
13459   else
13460     # We need a cross tool
13461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13462 $as_echo "pre-installed" >&6; }
13463   fi
13464 fi
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13467 $as_echo_n "checking where to find the target ranlib... " >&6; }
13468 if test "x${build}" != "x${host}" ; then
13469   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13470     # We already found the complete path
13471     ac_dir=`dirname $RANLIB_FOR_TARGET`
13472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13473 $as_echo "pre-installed in $ac_dir" >&6; }
13474   else
13475     # Canadian cross, just use what we found
13476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13477 $as_echo "pre-installed" >&6; }
13478   fi
13479 else
13480   ok=yes
13481   case " ${configdirs} " in
13482     *" binutils "*) ;;
13483     *) ok=no ;;
13484   esac
13485
13486   if test $ok = yes; then
13487     # An in-tree tool is available and we can use it
13488     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13490 $as_echo "just compiled" >&6; }
13491   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13492     # We already found the complete path
13493     ac_dir=`dirname $RANLIB_FOR_TARGET`
13494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13495 $as_echo "pre-installed in $ac_dir" >&6; }
13496   elif test "x$target" = "x$host"; then
13497     # We can use an host tool
13498     RANLIB_FOR_TARGET='$(RANLIB)'
13499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13500 $as_echo "host tool" >&6; }
13501   else
13502     # We need a cross tool
13503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13504 $as_echo "pre-installed" >&6; }
13505   fi
13506 fi
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13509 $as_echo_n "checking where to find the target strip... " >&6; }
13510 if test "x${build}" != "x${host}" ; then
13511   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13512     # We already found the complete path
13513     ac_dir=`dirname $STRIP_FOR_TARGET`
13514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13515 $as_echo "pre-installed in $ac_dir" >&6; }
13516   else
13517     # Canadian cross, just use what we found
13518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13519 $as_echo "pre-installed" >&6; }
13520   fi
13521 else
13522   ok=yes
13523   case " ${configdirs} " in
13524     *" binutils "*) ;;
13525     *) ok=no ;;
13526   esac
13527
13528   if test $ok = yes; then
13529     # An in-tree tool is available and we can use it
13530     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532 $as_echo "just compiled" >&6; }
13533   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13534     # We already found the complete path
13535     ac_dir=`dirname $STRIP_FOR_TARGET`
13536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537 $as_echo "pre-installed in $ac_dir" >&6; }
13538   elif test "x$target" = "x$host"; then
13539     # We can use an host tool
13540     STRIP_FOR_TARGET='$(STRIP)'
13541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542 $as_echo "host tool" >&6; }
13543   else
13544     # We need a cross tool
13545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546 $as_echo "pre-installed" >&6; }
13547   fi
13548 fi
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13551 $as_echo_n "checking where to find the target windres... " >&6; }
13552 if test "x${build}" != "x${host}" ; then
13553   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13554     # We already found the complete path
13555     ac_dir=`dirname $WINDRES_FOR_TARGET`
13556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557 $as_echo "pre-installed in $ac_dir" >&6; }
13558   else
13559     # Canadian cross, just use what we found
13560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561 $as_echo "pre-installed" >&6; }
13562   fi
13563 else
13564   ok=yes
13565   case " ${configdirs} " in
13566     *" binutils "*) ;;
13567     *) ok=no ;;
13568   esac
13569
13570   if test $ok = yes; then
13571     # An in-tree tool is available and we can use it
13572     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13574 $as_echo "just compiled" >&6; }
13575   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13576     # We already found the complete path
13577     ac_dir=`dirname $WINDRES_FOR_TARGET`
13578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13579 $as_echo "pre-installed in $ac_dir" >&6; }
13580   elif test "x$target" = "x$host"; then
13581     # We can use an host tool
13582     WINDRES_FOR_TARGET='$(WINDRES)'
13583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13584 $as_echo "host tool" >&6; }
13585   else
13586     # We need a cross tool
13587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13588 $as_echo "pre-installed" >&6; }
13589   fi
13590 fi
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13593 $as_echo_n "checking where to find the target windmc... " >&6; }
13594 if test "x${build}" != "x${host}" ; then
13595   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13596     # We already found the complete path
13597     ac_dir=`dirname $WINDMC_FOR_TARGET`
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599 $as_echo "pre-installed in $ac_dir" >&6; }
13600   else
13601     # Canadian cross, just use what we found
13602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603 $as_echo "pre-installed" >&6; }
13604   fi
13605 else
13606   ok=yes
13607   case " ${configdirs} " in
13608     *" binutils "*) ;;
13609     *) ok=no ;;
13610   esac
13611
13612   if test $ok = yes; then
13613     # An in-tree tool is available and we can use it
13614     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13616 $as_echo "just compiled" >&6; }
13617   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13618     # We already found the complete path
13619     ac_dir=`dirname $WINDMC_FOR_TARGET`
13620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13621 $as_echo "pre-installed in $ac_dir" >&6; }
13622   elif test "x$target" = "x$host"; then
13623     # We can use an host tool
13624     WINDMC_FOR_TARGET='$(WINDMC)'
13625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13626 $as_echo "host tool" >&6; }
13627   else
13628     # We need a cross tool
13629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13630 $as_echo "pre-installed" >&6; }
13631   fi
13632 fi
13633
13634
13635
13636
13637
13638 # Certain tools may need extra flags.
13639 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13640 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13641 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13642
13643 # When building target libraries, except in a Canadian cross, we use
13644 # the same toolchain as the compiler we just built.
13645 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13646 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13647 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13648 if test $host = $build; then
13649   case " $configdirs " in
13650     *" gcc "*)
13651       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13652       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13653       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13654       ;;
13655   esac
13656 fi
13657
13658
13659
13660
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13663 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13664 # Check whether --enable-maintainer-mode was given.
13665 if test "${enable_maintainer_mode+set}" = set; then :
13666   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13667 else
13668   USE_MAINTAINER_MODE=no
13669 fi
13670
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13672 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13673
13674
13675 if test "$USE_MAINTAINER_MODE" = yes; then
13676   MAINTAINER_MODE_TRUE=
13677   MAINTAINER_MODE_FALSE='#'
13678 else
13679   MAINTAINER_MODE_TRUE='#'
13680   MAINTAINER_MODE_FALSE=
13681 fi
13682 MAINT=$MAINTAINER_MODE_TRUE
13683
13684 # ---------------------
13685 # GCC bootstrap support
13686 # ---------------------
13687
13688 # Stage specific cflags for build.
13689 stage1_cflags="-g"
13690 case $build in
13691   vax-*-*)
13692     case ${GCC} in
13693       yes) stage1_cflags="-g -Wa,-J" ;;
13694       *) stage1_cflags="-g -J" ;;
13695     esac ;;
13696 esac
13697
13698 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13699 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13700   saved_CFLAGS="$CFLAGS"
13701
13702   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13703   CFLAGS="$CFLAGS -fkeep-inline-functions"
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13705 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h.  */
13708
13709 #if (__GNUC__ < 3) \
13710     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13711                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13712 #error http://gcc.gnu.org/PR29382
13713 #endif
13714
13715 int
13716 main ()
13717 {
13718
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13725 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13726 else
13727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731
13732   CFLAGS="$saved_CFLAGS"
13733 fi
13734
13735
13736
13737 # Enable --enable-checking in stage1 of the compiler.
13738 # Check whether --enable-stage1-checking was given.
13739 if test "${enable_stage1_checking+set}" = set; then :
13740   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13741 else
13742   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13743   stage1_checking=--enable-checking=yes,types
13744 else
13745   stage1_checking=--enable-checking=$enable_checking,types
13746 fi
13747 fi
13748
13749
13750
13751 # Enable -Werror in bootstrap stage2 and later.
13752 # Check whether --enable-werror was given.
13753 if test "${enable_werror+set}" = set; then :
13754   enableval=$enable_werror;
13755 else
13756   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13757   enable_werror=yes
13758 else
13759   enable_werror=no
13760 fi
13761 fi
13762
13763 case ${enable_werror} in
13764   yes) stage2_werror_flag="--enable-werror-always" ;;
13765   *) stage2_werror_flag="" ;;
13766 esac
13767
13768
13769 # Specify what files to not compare during bootstrap.
13770
13771 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13772 case "$target" in
13773   hppa*64*-*-hpux*) ;;
13774   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13775 esac
13776 case " $configdirs " in
13777 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13778 esac
13779
13780
13781 ac_config_files="$ac_config_files Makefile"
13782
13783 cat >confcache <<\_ACEOF
13784 # This file is a shell script that caches the results of configure
13785 # tests run on this system so they can be shared between configure
13786 # scripts and configure runs, see configure's option --config-cache.
13787 # It is not useful on other systems.  If it contains results you don't
13788 # want to keep, you may remove or edit it.
13789 #
13790 # config.status only pays attention to the cache file if you give it
13791 # the --recheck option to rerun configure.
13792 #
13793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13795 # following values.
13796
13797 _ACEOF
13798
13799 # The following way of writing the cache mishandles newlines in values,
13800 # but we know of no workaround that is simple, portable, and efficient.
13801 # So, we kill variables containing newlines.
13802 # Ultrix sh set writes to stderr and can't be redirected directly,
13803 # and sets the high bit in the cache file unless we assign to the vars.
13804 (
13805   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13806     eval ac_val=\$$ac_var
13807     case $ac_val in #(
13808     *${as_nl}*)
13809       case $ac_var in #(
13810       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13812       esac
13813       case $ac_var in #(
13814       _ | IFS | as_nl) ;; #(
13815       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13816       *) { eval $ac_var=; unset $ac_var;} ;;
13817       esac ;;
13818     esac
13819   done
13820
13821   (set) 2>&1 |
13822     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13823     *${as_nl}ac_space=\ *)
13824       # `set' does not quote correctly, so add quotes: double-quote
13825       # substitution turns \\\\ into \\, and sed turns \\ into \.
13826       sed -n \
13827         "s/'/'\\\\''/g;
13828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13829       ;; #(
13830     *)
13831       # `set' quotes correctly as required by POSIX, so do not add quotes.
13832       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13833       ;;
13834     esac |
13835     sort
13836 ) |
13837   sed '
13838      /^ac_cv_env_/b end
13839      t clear
13840      :clear
13841      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13842      t end
13843      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13844      :end' >>confcache
13845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13846   if test -w "$cache_file"; then
13847     test "x$cache_file" != "x/dev/null" &&
13848       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13849 $as_echo "$as_me: updating cache $cache_file" >&6;}
13850     cat confcache >$cache_file
13851   else
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13854   fi
13855 fi
13856 rm -f confcache
13857
13858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13859 # Let make expand exec_prefix.
13860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13861
13862 # Transform confdefs.h into DEFS.
13863 # Protect against shell expansion while executing Makefile rules.
13864 # Protect against Makefile macro expansion.
13865 #
13866 # If the first sed substitution is executed (which looks for macros that
13867 # take arguments), then branch to the quote section.  Otherwise,
13868 # look for a macro that doesn't take arguments.
13869 ac_script='
13870 :mline
13871 /\\$/{
13872  N
13873  s,\\\n,,
13874  b mline
13875 }
13876 t clear
13877 :clear
13878 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13879 t quote
13880 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13881 t quote
13882 b any
13883 :quote
13884 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13885 s/\[/\\&/g
13886 s/\]/\\&/g
13887 s/\$/$$/g
13888 H
13889 :any
13890 ${
13891         g
13892         s/^\n//
13893         s/\n/ /g
13894         p
13895 }
13896 '
13897 DEFS=`sed -n "$ac_script" confdefs.h`
13898
13899
13900 ac_libobjs=
13901 ac_ltlibobjs=
13902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13903   # 1. Remove the extension, and $U if already installed.
13904   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13905   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13906   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13907   #    will be set to the directory where LIBOBJS objects are built.
13908   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13909   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13910 done
13911 LIBOBJS=$ac_libobjs
13912
13913 LTLIBOBJS=$ac_ltlibobjs
13914
13915
13916
13917 : ${CONFIG_STATUS=./config.status}
13918 ac_write_fail=0
13919 ac_clean_files_save=$ac_clean_files
13920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13923 as_write_fail=0
13924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13925 #! $SHELL
13926 # Generated by $as_me.
13927 # Run this file to recreate the current configuration.
13928 # Compiler output produced by configure, useful for debugging
13929 # configure, is in config.log if it exists.
13930
13931 debug=false
13932 ac_cs_recheck=false
13933 ac_cs_silent=false
13934
13935 SHELL=\${CONFIG_SHELL-$SHELL}
13936 export SHELL
13937 _ASEOF
13938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13939 ## -------------------- ##
13940 ## M4sh Initialization. ##
13941 ## -------------------- ##
13942
13943 # Be more Bourne compatible
13944 DUALCASE=1; export DUALCASE # for MKS sh
13945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13946   emulate sh
13947   NULLCMD=:
13948   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13949   # is contrary to our usage.  Disable this feature.
13950   alias -g '${1+"$@"}'='"$@"'
13951   setopt NO_GLOB_SUBST
13952 else
13953   case `(set -o) 2>/dev/null` in #(
13954   *posix*) :
13955     set -o posix ;; #(
13956   *) :
13957      ;;
13958 esac
13959 fi
13960
13961
13962 as_nl='
13963 '
13964 export as_nl
13965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13969 # Prefer a ksh shell builtin over an external printf program on Solaris,
13970 # but without wasting forks for bash or zsh.
13971 if test -z "$BASH_VERSION$ZSH_VERSION" \
13972     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13973   as_echo='print -r --'
13974   as_echo_n='print -rn --'
13975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13976   as_echo='printf %s\n'
13977   as_echo_n='printf %s'
13978 else
13979   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13980     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13981     as_echo_n='/usr/ucb/echo -n'
13982   else
13983     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13984     as_echo_n_body='eval
13985       arg=$1;
13986       case $arg in #(
13987       *"$as_nl"*)
13988         expr "X$arg" : "X\\(.*\\)$as_nl";
13989         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13990       esac;
13991       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13992     '
13993     export as_echo_n_body
13994     as_echo_n='sh -c $as_echo_n_body as_echo'
13995   fi
13996   export as_echo_body
13997   as_echo='sh -c $as_echo_body as_echo'
13998 fi
13999
14000 # The user is always right.
14001 if test "${PATH_SEPARATOR+set}" != set; then
14002   PATH_SEPARATOR=:
14003   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14004     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14005       PATH_SEPARATOR=';'
14006   }
14007 fi
14008
14009
14010 # IFS
14011 # We need space, tab and new line, in precisely that order.  Quoting is
14012 # there to prevent editors from complaining about space-tab.
14013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14014 # splitting by setting IFS to empty value.)
14015 IFS=" ""        $as_nl"
14016
14017 # Find who we are.  Look in the path if we contain no directory separator.
14018 case $0 in #((
14019   *[\\/]* ) as_myself=$0 ;;
14020   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023   IFS=$as_save_IFS
14024   test -z "$as_dir" && as_dir=.
14025     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14026   done
14027 IFS=$as_save_IFS
14028
14029      ;;
14030 esac
14031 # We did not find ourselves, most probably we were run as `sh COMMAND'
14032 # in which case we are not to be found in the path.
14033 if test "x$as_myself" = x; then
14034   as_myself=$0
14035 fi
14036 if test ! -f "$as_myself"; then
14037   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14038   exit 1
14039 fi
14040
14041 # Unset variables that we do not need and which cause bugs (e.g. in
14042 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14043 # suppresses any "Segmentation fault" message there.  '((' could
14044 # trigger a bug in pdksh 5.2.14.
14045 for as_var in BASH_ENV ENV MAIL MAILPATH
14046 do eval test x\${$as_var+set} = xset \
14047   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14048 done
14049 PS1='$ '
14050 PS2='> '
14051 PS4='+ '
14052
14053 # NLS nuisances.
14054 LC_ALL=C
14055 export LC_ALL
14056 LANGUAGE=C
14057 export LANGUAGE
14058
14059 # CDPATH.
14060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14061
14062
14063 # as_fn_error ERROR [LINENO LOG_FD]
14064 # ---------------------------------
14065 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14066 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14067 # script with status $?, using 1 if that was 0.
14068 as_fn_error ()
14069 {
14070   as_status=$?; test $as_status -eq 0 && as_status=1
14071   if test "$3"; then
14072     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14073     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14074   fi
14075   $as_echo "$as_me: error: $1" >&2
14076   as_fn_exit $as_status
14077 } # as_fn_error
14078
14079
14080 # as_fn_set_status STATUS
14081 # -----------------------
14082 # Set $? to STATUS, without forking.
14083 as_fn_set_status ()
14084 {
14085   return $1
14086 } # as_fn_set_status
14087
14088 # as_fn_exit STATUS
14089 # -----------------
14090 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14091 as_fn_exit ()
14092 {
14093   set +e
14094   as_fn_set_status $1
14095   exit $1
14096 } # as_fn_exit
14097
14098 # as_fn_unset VAR
14099 # ---------------
14100 # Portably unset VAR.
14101 as_fn_unset ()
14102 {
14103   { eval $1=; unset $1;}
14104 }
14105 as_unset=as_fn_unset
14106 # as_fn_append VAR VALUE
14107 # ----------------------
14108 # Append the text in VALUE to the end of the definition contained in VAR. Take
14109 # advantage of any shell optimizations that allow amortized linear growth over
14110 # repeated appends, instead of the typical quadratic growth present in naive
14111 # implementations.
14112 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14113   eval 'as_fn_append ()
14114   {
14115     eval $1+=\$2
14116   }'
14117 else
14118   as_fn_append ()
14119   {
14120     eval $1=\$$1\$2
14121   }
14122 fi # as_fn_append
14123
14124 # as_fn_arith ARG...
14125 # ------------------
14126 # Perform arithmetic evaluation on the ARGs, and store the result in the
14127 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14128 # must be portable across $(()) and expr.
14129 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14130   eval 'as_fn_arith ()
14131   {
14132     as_val=$(( $* ))
14133   }'
14134 else
14135   as_fn_arith ()
14136   {
14137     as_val=`expr "$@" || test $? -eq 1`
14138   }
14139 fi # as_fn_arith
14140
14141
14142 if expr a : '\(a\)' >/dev/null 2>&1 &&
14143    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14144   as_expr=expr
14145 else
14146   as_expr=false
14147 fi
14148
14149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14150   as_basename=basename
14151 else
14152   as_basename=false
14153 fi
14154
14155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14156   as_dirname=dirname
14157 else
14158   as_dirname=false
14159 fi
14160
14161 as_me=`$as_basename -- "$0" ||
14162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14163          X"$0" : 'X\(//\)$' \| \
14164          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14165 $as_echo X/"$0" |
14166     sed '/^.*\/\([^/][^/]*\)\/*$/{
14167             s//\1/
14168             q
14169           }
14170           /^X\/\(\/\/\)$/{
14171             s//\1/
14172             q
14173           }
14174           /^X\/\(\/\).*/{
14175             s//\1/
14176             q
14177           }
14178           s/.*/./; q'`
14179
14180 # Avoid depending upon Character Ranges.
14181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14184 as_cr_digits='0123456789'
14185 as_cr_alnum=$as_cr_Letters$as_cr_digits
14186
14187 ECHO_C= ECHO_N= ECHO_T=
14188 case `echo -n x` in #(((((
14189 -n*)
14190   case `echo 'xy\c'` in
14191   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14192   xy)  ECHO_C='\c';;
14193   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14194        ECHO_T=' ';;
14195   esac;;
14196 *)
14197   ECHO_N='-n';;
14198 esac
14199
14200 rm -f conf$$ conf$$.exe conf$$.file
14201 if test -d conf$$.dir; then
14202   rm -f conf$$.dir/conf$$.file
14203 else
14204   rm -f conf$$.dir
14205   mkdir conf$$.dir 2>/dev/null
14206 fi
14207 if (echo >conf$$.file) 2>/dev/null; then
14208   if ln -s conf$$.file conf$$ 2>/dev/null; then
14209     as_ln_s='ln -s'
14210     # ... but there are two gotchas:
14211     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14212     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14213     # In both cases, we have to default to `cp -p'.
14214     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14215       as_ln_s='cp -p'
14216   elif ln conf$$.file conf$$ 2>/dev/null; then
14217     as_ln_s=ln
14218   else
14219     as_ln_s='cp -p'
14220   fi
14221 else
14222   as_ln_s='cp -p'
14223 fi
14224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14225 rmdir conf$$.dir 2>/dev/null
14226
14227
14228 # as_fn_mkdir_p
14229 # -------------
14230 # Create "$as_dir" as a directory, including parents if necessary.
14231 as_fn_mkdir_p ()
14232 {
14233
14234   case $as_dir in #(
14235   -*) as_dir=./$as_dir;;
14236   esac
14237   test -d "$as_dir" || eval $as_mkdir_p || {
14238     as_dirs=
14239     while :; do
14240       case $as_dir in #(
14241       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14242       *) as_qdir=$as_dir;;
14243       esac
14244       as_dirs="'$as_qdir' $as_dirs"
14245       as_dir=`$as_dirname -- "$as_dir" ||
14246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14247          X"$as_dir" : 'X\(//\)[^/]' \| \
14248          X"$as_dir" : 'X\(//\)$' \| \
14249          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14250 $as_echo X"$as_dir" |
14251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14252             s//\1/
14253             q
14254           }
14255           /^X\(\/\/\)[^/].*/{
14256             s//\1/
14257             q
14258           }
14259           /^X\(\/\/\)$/{
14260             s//\1/
14261             q
14262           }
14263           /^X\(\/\).*/{
14264             s//\1/
14265             q
14266           }
14267           s/.*/./; q'`
14268       test -d "$as_dir" && break
14269     done
14270     test -z "$as_dirs" || eval "mkdir $as_dirs"
14271   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14272
14273
14274 } # as_fn_mkdir_p
14275 if mkdir -p . 2>/dev/null; then
14276   as_mkdir_p='mkdir -p "$as_dir"'
14277 else
14278   test -d ./-p && rmdir ./-p
14279   as_mkdir_p=false
14280 fi
14281
14282 if test -x / >/dev/null 2>&1; then
14283   as_test_x='test -x'
14284 else
14285   if ls -dL / >/dev/null 2>&1; then
14286     as_ls_L_option=L
14287   else
14288     as_ls_L_option=
14289   fi
14290   as_test_x='
14291     eval sh -c '\''
14292       if test -d "$1"; then
14293         test -d "$1/.";
14294       else
14295         case $1 in #(
14296         -*)set "./$1";;
14297         esac;
14298         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14299         ???[sx]*):;;*)false;;esac;fi
14300     '\'' sh
14301   '
14302 fi
14303 as_executable_p=$as_test_x
14304
14305 # Sed expression to map a string onto a valid CPP name.
14306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14307
14308 # Sed expression to map a string onto a valid variable name.
14309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14310
14311
14312 exec 6>&1
14313 ## ----------------------------------- ##
14314 ## Main body of $CONFIG_STATUS script. ##
14315 ## ----------------------------------- ##
14316 _ASEOF
14317 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14318
14319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320 # Save the log message, to keep $0 and so on meaningful, and to
14321 # report actual input values of CONFIG_FILES etc. instead of their
14322 # values after options handling.
14323 ac_log="
14324 This file was extended by $as_me, which was
14325 generated by GNU Autoconf 2.64.  Invocation command line was
14326
14327   CONFIG_FILES    = $CONFIG_FILES
14328   CONFIG_HEADERS  = $CONFIG_HEADERS
14329   CONFIG_LINKS    = $CONFIG_LINKS
14330   CONFIG_COMMANDS = $CONFIG_COMMANDS
14331   $ $0 $@
14332
14333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14334 "
14335
14336 _ACEOF
14337
14338 case $ac_config_files in *"
14339 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14340 esac
14341
14342
14343
14344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14345 # Files that config.status was made for.
14346 config_files="$ac_config_files"
14347
14348 _ACEOF
14349
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351 ac_cs_usage="\
14352 \`$as_me' instantiates files and other configuration actions
14353 from templates according to the current configuration.  Unless the files
14354 and actions are specified as TAGs, all are instantiated by default.
14355
14356 Usage: $0 [OPTION]... [TAG]...
14357
14358   -h, --help       print this help, then exit
14359   -V, --version    print version number and configuration settings, then exit
14360   -q, --quiet, --silent
14361                    do not print progress messages
14362   -d, --debug      don't remove temporary files
14363       --recheck    update $as_me by reconfiguring in the same conditions
14364       --file=FILE[:TEMPLATE]
14365                    instantiate the configuration file FILE
14366
14367 Configuration files:
14368 $config_files
14369
14370 Report bugs to the package provider."
14371
14372 _ACEOF
14373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374 ac_cs_version="\\
14375 config.status
14376 configured by $0, generated by GNU Autoconf 2.64,
14377   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14378
14379 Copyright (C) 2009 Free Software Foundation, Inc.
14380 This config.status script is free software; the Free Software Foundation
14381 gives unlimited permission to copy, distribute and modify it."
14382
14383 ac_pwd='$ac_pwd'
14384 srcdir='$srcdir'
14385 INSTALL='$INSTALL'
14386 AWK='$AWK'
14387 test -n "\$AWK" || AWK=awk
14388 _ACEOF
14389
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 # The default lists apply if the user does not specify any file.
14392 ac_need_defaults=:
14393 while test $# != 0
14394 do
14395   case $1 in
14396   --*=*)
14397     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14398     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14399     ac_shift=:
14400     ;;
14401   *)
14402     ac_option=$1
14403     ac_optarg=$2
14404     ac_shift=shift
14405     ;;
14406   esac
14407
14408   case $ac_option in
14409   # Handling of the options.
14410   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14411     ac_cs_recheck=: ;;
14412   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14413     $as_echo "$ac_cs_version"; exit ;;
14414   --debug | --debu | --deb | --de | --d | -d )
14415     debug=: ;;
14416   --file | --fil | --fi | --f )
14417     $ac_shift
14418     case $ac_optarg in
14419     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14420     esac
14421     as_fn_append CONFIG_FILES " '$ac_optarg'"
14422     ac_need_defaults=false;;
14423   --he | --h |  --help | --hel | -h )
14424     $as_echo "$ac_cs_usage"; exit ;;
14425   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14426   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14427     ac_cs_silent=: ;;
14428
14429   # This is an error.
14430   -*) as_fn_error "unrecognized option: \`$1'
14431 Try \`$0 --help' for more information." ;;
14432
14433   *) as_fn_append ac_config_targets " $1"
14434      ac_need_defaults=false ;;
14435
14436   esac
14437   shift
14438 done
14439
14440 ac_configure_extra_args=
14441
14442 if $ac_cs_silent; then
14443   exec 6>/dev/null
14444   ac_configure_extra_args="$ac_configure_extra_args --silent"
14445 fi
14446
14447 _ACEOF
14448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14449 if \$ac_cs_recheck; then
14450   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14451   shift
14452   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14453   CONFIG_SHELL='$SHELL'
14454   export CONFIG_SHELL
14455   exec "\$@"
14456 fi
14457
14458 _ACEOF
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 exec 5>>config.log
14461 {
14462   echo
14463   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14464 ## Running $as_me. ##
14465 _ASBOX
14466   $as_echo "$ac_log"
14467 } >&5
14468
14469 _ACEOF
14470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14471 #
14472 # INIT-COMMANDS
14473 #
14474 extrasub_build="$extrasub_build"
14475    extrasub_host="$extrasub_host"
14476    extrasub_target="$extrasub_target"
14477
14478 _ACEOF
14479
14480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14481
14482 # Handling of arguments.
14483 for ac_config_target in $ac_config_targets
14484 do
14485   case $ac_config_target in
14486     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14487
14488   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14489   esac
14490 done
14491
14492
14493 # If the user did not use the arguments to specify the items to instantiate,
14494 # then the envvar interface is used.  Set only those that are not.
14495 # We use the long form for the default assignment because of an extremely
14496 # bizarre bug on SunOS 4.1.3.
14497 if $ac_need_defaults; then
14498   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14499 fi
14500
14501 # Have a temporary directory for convenience.  Make it in the build tree
14502 # simply because there is no reason against having it here, and in addition,
14503 # creating and moving files from /tmp can sometimes cause problems.
14504 # Hook for its removal unless debugging.
14505 # Note that there is a small window in which the directory will not be cleaned:
14506 # after its creation but before its name has been assigned to `$tmp'.
14507 $debug ||
14508 {
14509   tmp=
14510   trap 'exit_status=$?
14511   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14512 ' 0
14513   trap 'as_fn_exit 1' 1 2 13 15
14514 }
14515 # Create a (secure) tmp directory for tmp files.
14516
14517 {
14518   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14519   test -n "$tmp" && test -d "$tmp"
14520 }  ||
14521 {
14522   tmp=./conf$$-$RANDOM
14523   (umask 077 && mkdir "$tmp")
14524 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14525
14526 # Set up the scripts for CONFIG_FILES section.
14527 # No need to generate them if there are no CONFIG_FILES.
14528 # This happens for instance with `./config.status config.h'.
14529 if test -n "$CONFIG_FILES"; then
14530
14531 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14532   ac_cs_awk_getline=:
14533   ac_cs_awk_pipe_init=
14534   ac_cs_awk_read_file='
14535       while ((getline aline < (F[key])) > 0)
14536         print(aline)
14537       close(F[key])'
14538   ac_cs_awk_pipe_fini=
14539 else
14540   ac_cs_awk_getline=false
14541   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14542   ac_cs_awk_read_file='
14543       print "|#_!!_#|"
14544       print "cat " F[key] " &&"
14545       '$ac_cs_awk_pipe_init
14546   # The final `:' finishes the AND list.
14547   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14548 fi
14549 ac_cr=`echo X | tr X '\015'`
14550 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14551 # But we know of no other shell where ac_cr would be empty at this
14552 # point, so we can use a bashism as a fallback.
14553 if test "x$ac_cr" = x; then
14554   eval ac_cr=\$\'\\r\'
14555 fi
14556 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14558   ac_cs_awk_cr='\r'
14559 else
14560   ac_cs_awk_cr=$ac_cr
14561 fi
14562
14563 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14564 _ACEOF
14565
14566 # Create commands to substitute file output variables.
14567 {
14568   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14569   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14570   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14571   echo "_ACAWK" &&
14572   echo "_ACEOF"
14573 } >conf$$files.sh &&
14574 . ./conf$$files.sh ||
14575   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14576 rm -f conf$$files.sh
14577
14578 {
14579   echo "cat >conf$$subs.awk <<_ACEOF" &&
14580   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14581   echo "_ACEOF"
14582 } >conf$$subs.sh ||
14583   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14585 ac_delim='%!_!# '
14586 for ac_last_try in false false false false false :; do
14587   . ./conf$$subs.sh ||
14588     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14589
14590   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14591   if test $ac_delim_n = $ac_delim_num; then
14592     break
14593   elif $ac_last_try; then
14594     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14595   else
14596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14597   fi
14598 done
14599 rm -f conf$$subs.sh
14600
14601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14602 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14603 _ACEOF
14604 sed -n '
14605 h
14606 s/^/S["/; s/!.*/"]=/
14607 p
14608 g
14609 s/^[^!]*!//
14610 :repl
14611 t repl
14612 s/'"$ac_delim"'$//
14613 t delim
14614 :nl
14615 h
14616 s/\(.\{148\}\).*/\1/
14617 t more1
14618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14619 p
14620 n
14621 b repl
14622 :more1
14623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14624 p
14625 g
14626 s/.\{148\}//
14627 t nl
14628 :delim
14629 h
14630 s/\(.\{148\}\).*/\1/
14631 t more2
14632 s/["\\]/\\&/g; s/^/"/; s/$/"/
14633 p
14634 b
14635 :more2
14636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14637 p
14638 g
14639 s/.\{148\}//
14640 t delim
14641 ' <conf$$subs.awk | sed '
14642 /^[^""]/{
14643   N
14644   s/\n//
14645 }
14646 ' >>$CONFIG_STATUS || ac_write_fail=1
14647 rm -f conf$$subs.awk
14648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 _ACAWK
14650 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14651   for (key in S) S_is_set[key] = 1
14652   FS = "\a"
14653   \$ac_cs_awk_pipe_init
14654 }
14655 {
14656   line = $ 0
14657   nfields = split(line, field, "@")
14658   substed = 0
14659   len = length(field[1])
14660   for (i = 2; i < nfields; i++) {
14661     key = field[i]
14662     keylen = length(key)
14663     if (S_is_set[key]) {
14664       value = S[key]
14665       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14666       len += length(value) + length(field[++i])
14667       substed = 1
14668     } else
14669       len += 1 + keylen
14670   }
14671   if (nfields == 3 && !substed) {
14672     key = field[2]
14673     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14674       \$ac_cs_awk_read_file
14675       next
14676     }
14677   }
14678   print line
14679 }
14680 \$ac_cs_awk_pipe_fini
14681 _ACAWK
14682 _ACEOF
14683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14685   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14686 else
14687   cat
14688 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14689   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14690 _ACEOF
14691
14692 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14693 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14694 # trailing colons and then remove the whole line if VPATH becomes empty
14695 # (actually we leave an empty line to preserve line numbers).
14696 if test "x$srcdir" = x.; then
14697   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14698 s/:*\$(srcdir):*/:/
14699 s/:*\${srcdir}:*/:/
14700 s/:*@srcdir@:*/:/
14701 s/^\([^=]*=[     ]*\):*/\1/
14702 s/:*$//
14703 s/^[^=]*=[       ]*$//
14704 }'
14705 fi
14706
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 fi # test -n "$CONFIG_FILES"
14709
14710
14711 eval set X "  :F $CONFIG_FILES      "
14712 shift
14713 for ac_tag
14714 do
14715   case $ac_tag in
14716   :[FHLC]) ac_mode=$ac_tag; continue;;
14717   esac
14718   case $ac_mode$ac_tag in
14719   :[FHL]*:*);;
14720   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14721   :[FH]-) ac_tag=-:-;;
14722   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14723   esac
14724   ac_save_IFS=$IFS
14725   IFS=:
14726   set x $ac_tag
14727   IFS=$ac_save_IFS
14728   shift
14729   ac_file=$1
14730   shift
14731
14732   case $ac_mode in
14733   :L) ac_source=$1;;
14734   :[FH])
14735     ac_file_inputs=
14736     for ac_f
14737     do
14738       case $ac_f in
14739       -) ac_f="$tmp/stdin";;
14740       *) # Look for the file first in the build tree, then in the source tree
14741          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14742          # because $ac_f cannot contain `:'.
14743          test -f "$ac_f" ||
14744            case $ac_f in
14745            [\\/$]*) false;;
14746            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14747            esac ||
14748            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14749       esac
14750       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14751       as_fn_append ac_file_inputs " '$ac_f'"
14752     done
14753
14754     # Let's still pretend it is `configure' which instantiates (i.e., don't
14755     # use $as_me), people would be surprised to read:
14756     #    /* config.h.  Generated by config.status.  */
14757     configure_input='Generated from '`
14758           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14759         `' by configure.'
14760     if test x"$ac_file" != x-; then
14761       configure_input="$ac_file.  $configure_input"
14762       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14763 $as_echo "$as_me: creating $ac_file" >&6;}
14764     fi
14765     # Neutralize special characters interpreted by sed in replacement strings.
14766     case $configure_input in #(
14767     *\&* | *\|* | *\\* )
14768        ac_sed_conf_input=`$as_echo "$configure_input" |
14769        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14770     *) ac_sed_conf_input=$configure_input;;
14771     esac
14772
14773     case $ac_tag in
14774     *:-:* | *:-) cat >"$tmp/stdin" \
14775       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14776     esac
14777     ;;
14778   esac
14779
14780   ac_dir=`$as_dirname -- "$ac_file" ||
14781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782          X"$ac_file" : 'X\(//\)[^/]' \| \
14783          X"$ac_file" : 'X\(//\)$' \| \
14784          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14785 $as_echo X"$ac_file" |
14786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14787             s//\1/
14788             q
14789           }
14790           /^X\(\/\/\)[^/].*/{
14791             s//\1/
14792             q
14793           }
14794           /^X\(\/\/\)$/{
14795             s//\1/
14796             q
14797           }
14798           /^X\(\/\).*/{
14799             s//\1/
14800             q
14801           }
14802           s/.*/./; q'`
14803   as_dir="$ac_dir"; as_fn_mkdir_p
14804   ac_builddir=.
14805
14806 case "$ac_dir" in
14807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14808 *)
14809   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14810   # A ".." for each directory in $ac_dir_suffix.
14811   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14812   case $ac_top_builddir_sub in
14813   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14814   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14815   esac ;;
14816 esac
14817 ac_abs_top_builddir=$ac_pwd
14818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14819 # for backward compatibility:
14820 ac_top_builddir=$ac_top_build_prefix
14821
14822 case $srcdir in
14823   .)  # We are building in place.
14824     ac_srcdir=.
14825     ac_top_srcdir=$ac_top_builddir_sub
14826     ac_abs_top_srcdir=$ac_pwd ;;
14827   [\\/]* | ?:[\\/]* )  # Absolute name.
14828     ac_srcdir=$srcdir$ac_dir_suffix;
14829     ac_top_srcdir=$srcdir
14830     ac_abs_top_srcdir=$srcdir ;;
14831   *) # Relative name.
14832     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14833     ac_top_srcdir=$ac_top_build_prefix$srcdir
14834     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14835 esac
14836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14837
14838
14839   case $ac_mode in
14840   :F)
14841   #
14842   # CONFIG_FILE
14843   #
14844
14845   case $INSTALL in
14846   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14847   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14848   esac
14849 _ACEOF
14850
14851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14852 # If the template does not know about datarootdir, expand it.
14853 # FIXME: This hack should be removed a few years after 2.60.
14854 ac_datarootdir_hack=; ac_datarootdir_seen=
14855 ac_sed_dataroot='
14856 /datarootdir/ {
14857   p
14858   q
14859 }
14860 /@datadir@/p
14861 /@docdir@/p
14862 /@infodir@/p
14863 /@localedir@/p
14864 /@mandir@/p'
14865 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14866 *datarootdir*) ac_datarootdir_seen=yes;;
14867 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14869 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14870 _ACEOF
14871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14872   ac_datarootdir_hack='
14873   s&@datadir@&$datadir&g
14874   s&@docdir@&$docdir&g
14875   s&@infodir@&$infodir&g
14876   s&@localedir@&$localedir&g
14877   s&@mandir@&$mandir&g
14878   s&\\\${datarootdir}&$datarootdir&g' ;;
14879 esac
14880 _ACEOF
14881
14882 # Neutralize VPATH when `$srcdir' = `.'.
14883 # Shell code in configure.ac might set extrasub.
14884 # FIXME: do we really want to maintain this feature?
14885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14886 ac_sed_extra="$ac_vpsub
14887 $extrasub
14888 _ACEOF
14889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14890 :t
14891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14892 s|@configure_input@|$ac_sed_conf_input|;t t
14893 s&@top_builddir@&$ac_top_builddir_sub&;t t
14894 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14895 s&@srcdir@&$ac_srcdir&;t t
14896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14897 s&@top_srcdir@&$ac_top_srcdir&;t t
14898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14899 s&@builddir@&$ac_builddir&;t t
14900 s&@abs_builddir@&$ac_abs_builddir&;t t
14901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14902 s&@INSTALL@&$ac_INSTALL&;t t
14903 $ac_datarootdir_hack
14904 "
14905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14906 if $ac_cs_awk_getline; then
14907   $AWK -f "$tmp/subs.awk"
14908 else
14909   $AWK -f "$tmp/subs.awk" | $SHELL
14910 fi >$tmp/out \
14911   || as_fn_error "could not create $ac_file" "$LINENO" 5
14912
14913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14914   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14915   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14917 which seems to be undefined.  Please make sure it is defined." >&5
14918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14919 which seems to be undefined.  Please make sure it is defined." >&2;}
14920
14921   rm -f "$tmp/stdin"
14922   case $ac_file in
14923   -) cat "$tmp/out" && rm -f "$tmp/out";;
14924   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14925   esac \
14926   || as_fn_error "could not create $ac_file" "$LINENO" 5
14927  ;;
14928
14929
14930
14931   esac
14932
14933
14934   case $ac_file$ac_mode in
14935     "Makefile":F) sed "$extrasub_build" Makefile |
14936    sed "$extrasub_host" |
14937    sed "$extrasub_target" > mf$$
14938    mv -f mf$$ Makefile ;;
14939
14940   esac
14941 done # for ac_tag
14942
14943
14944 as_fn_exit 0
14945 _ACEOF
14946 ac_clean_files=$ac_clean_files_save
14947
14948 test $ac_write_fail = 0 ||
14949   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14950
14951
14952 # configure is writing to config.log, and then calls config.status.
14953 # config.status does its own redirection, appending to config.log.
14954 # Unfortunately, on DOS this fails, as config.log is still kept open
14955 # by configure, so config.status won't be able to write to it; its
14956 # output is simply discarded.  So we exec the FD to /dev/null,
14957 # effectively closing config.log, so it can be properly (re)opened and
14958 # appended to by config.status.  When coming back to configure, we
14959 # need to make the FD available again.
14960 if test "$no_create" != yes; then
14961   ac_cs_success=:
14962   ac_config_status_args=
14963   test "$silent" = yes &&
14964     ac_config_status_args="$ac_config_status_args --quiet"
14965   exec 5>/dev/null
14966   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14967   exec 5>>config.log
14968   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14969   # would make configure fail if this is the last instruction.
14970   $ac_cs_success || as_fn_exit $?
14971 fi
14972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14975 fi
14976