OSDN Git Service

0e4f1ed5baa2c53317148e34c4807dc36d0162b9
[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   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5729
5730     CFLAGS="${CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5731   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5732   LDFLAGS="${LDFLAGS} ${clooglibs} ${ppllibs}"
5733
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG" >&5
5735 $as_echo_n "checking for installed CLooG... " >&6; }
5736 if test "${gcc_cv_cloog_type+set}" = set; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   LIBS="-lcloog ${_cloog_saved_LIBS}"
5740      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h.  */
5742 #include "cloog/cloog.h"
5743 int
5744 main ()
5745 {
5746 #ifndef CLOOG_PPL_BACKEND
5747     choke me
5748    #endif
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"; then :
5754   gcc_cv_cloog_type="PPL Legacy"
5755 else
5756   LIBS="-lcloog-isl -lisl ${_cloog_saved_LIBS}"
5757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h.  */
5759 #include "cloog/cloog.h"
5760 int
5761 main ()
5762 {
5763 cloog_version ()
5764   ;
5765   return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_link "$LINENO"; then :
5769   gcc_cv_cloog_type=ISL
5770 else
5771   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h.  */
5774 #include "cloog/cloog.h"
5775 int
5776 main ()
5777 {
5778 cloog_version ()
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_c_try_link "$LINENO"; then :
5784   gcc_cv_cloog_type=PPL
5785 else
5786   gcc_cv_cloog_type=no
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext \
5789     conftest$ac_exeext conftest.$ac_ext
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext \
5792     conftest$ac_exeext conftest.$ac_ext
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext \
5795     conftest$ac_exeext conftest.$ac_ext
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5798 $as_echo "$gcc_cv_cloog_type" >&6; }
5799
5800   case $gcc_cv_cloog_type in
5801     "PPL Legacy")
5802       clooginc="${clooginc}"
5803       clooglibs="${clooglibs} -lcloog"
5804       cloog_org=no
5805       ;;
5806     "ISL")
5807       clooginc="${clooginc} ${_cloogorginc}"
5808       clooglibs="${clooglibs} -lcloog-isl"
5809       cloog_org=yes
5810       ;;
5811     "PPL")
5812       clooginc="${clooginc} ${_cloogorginc}"
5813       clooglibs="${clooglibs} -lcloog-ppl"
5814       cloog_org=yes
5815       ;;
5816     *)
5817       clooglibs=
5818       clooginc=
5819       cloog_org=
5820       ;;
5821   esac
5822
5823   LIBS=$_cloog_saved_LIBS
5824   CFLAGS=$_cloog_saved_CFLAGS
5825   CPPFLAGS=$_cloog_saved_CPPFLAGS
5826   LDFLAGS=$_cloog_saved_LDFLAGS
5827
5828
5829
5830
5831
5832   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5833     _cloog_saved_CFLAGS=$CFLAGS
5834     _cloog_saved_LDFLAGS=$LDFLAGS
5835
5836     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5837     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5838
5839     if test "${cloog_org}" = yes ; then
5840       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5841 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5842 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847 #include "cloog/cloog.h"
5848 int
5849 main ()
5850 {
5851 #if CLOOG_VERSION_MAJOR != 0 \
5852     || CLOOG_VERSION_MINOR != 14 \
5853     || CLOOG_VERSION_REVISION < 0
5854     choke me
5855    #endif
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861   gcc_cv_cloog_ct_0_14_0=yes
5862 else
5863   gcc_cv_cloog_ct_0_14_0=no
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5868 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5869     elif test "${cloog_org}" = no ; then
5870       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5871 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5872 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h.  */
5877 #include "cloog/cloog.h"
5878 int
5879 main ()
5880 {
5881 #if CLOOG_VERSION_MAJOR != 0 \
5882     || CLOOG_VERSION_MINOR != 15 \
5883     || CLOOG_VERSION_REVISION < 5
5884     choke me
5885    #endif
5886   ;
5887   return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_compile "$LINENO"; then :
5891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893 #include "cloog/cloog.h"
5894 int
5895 main ()
5896 {
5897 #if CLOOG_VERSION_MAJOR != 0 \
5898     || CLOOG_VERSION_MINOR != 15 \
5899     || CLOOG_VERSION_REVISION < 9
5900     choke me
5901    #endif
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907   gcc_cv_cloog_ct_0_15_5=yes
5908 else
5909   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5910 fi
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 else
5913   gcc_cv_cloog_ct_0_15_5=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5918 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5919     fi
5920
5921     CFLAGS=$_cloog_saved_CFLAGS
5922     LDFLAGS=$_cloog_saved_LDFLAGS
5923   fi
5924
5925
5926
5927
5928
5929
5930
5931   if test "x${with_cloog}" != x \
5932     || test "x${with_cloog_include}" != x \
5933     || test "x${with_cloog_lib}" != x ; then
5934     graphite_requested=yes
5935   else
5936     graphite_requested=no
5937   fi
5938
5939
5940
5941   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5942     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5943     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5944     clooglibs=
5945     clooginc=
5946   fi
5947
5948   if test "${graphite_requested}" = yes \
5949     && test "x${clooglibs}" = x \
5950     && test "x${clooginc}" = x ; then
5951
5952     as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5953   fi
5954
5955
5956 fi
5957
5958 # Check for LTO support.
5959 # Check whether --enable-lto was given.
5960 if test "${enable_lto+set}" = set; then :
5961   enableval=$enable_lto; enable_lto=$enableval
5962 else
5963   enable_lto=yes; default_enable_lto=yes
5964 fi
5965
5966
5967
5968
5969
5970 target_elf=no
5971 case $target in
5972   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5973   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5974   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5975     target_elf=no
5976     ;;
5977   *)
5978     target_elf=yes
5979     ;;
5980 esac
5981
5982 if test $target_elf = yes; then :
5983   # ELF platforms build the lto-plugin always.
5984   build_lto_plugin=yes
5985
5986 else
5987   if test x"$default_enable_lto" = x"yes" ; then
5988     case $target in
5989       *-apple-darwin* | *-cygwin* | *-mingw*) ;;
5990       # On other non-ELF platforms, LTO has yet to be validated.
5991       *) enable_lto=no ;;
5992     esac
5993   else
5994   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5995   # It would also be nice to check the binutils support, but we don't
5996   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5997   # warn during gcc/ subconfigure; unless you're bootstrapping with
5998   # -flto it won't be needed until after installation anyway.
5999     case $target in
6000       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6001       *) if test x"$enable_lto" = x"yes"; then
6002         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6003         fi
6004       ;;
6005     esac
6006   fi
6007   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6008   # Build it unless LTO was explicitly disabled.
6009   case $target in
6010     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6011     *) ;;
6012   esac
6013
6014 fi
6015
6016
6017
6018 # By default, C is the only stage 1 language.
6019 stage1_languages=,c,
6020
6021 # Target libraries that we bootstrap.
6022 bootstrap_target_libs=,target-libgcc,
6023
6024 # Figure out what language subdirectories are present.
6025 # Look if the user specified --enable-languages="..."; if not, use
6026 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6027 # go away some day.
6028 # NB:  embedded tabs in this IF block -- do not untabify
6029 if test -d ${srcdir}/gcc; then
6030   if test x"${enable_languages+set}" != xset; then
6031     if test x"${LANGUAGES+set}" = xset; then
6032       enable_languages="${LANGUAGES}"
6033         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6034     else
6035       enable_languages=all
6036     fi
6037   else
6038     if test x"${enable_languages}" = x ||
6039        test x"${enable_languages}" = xyes;
6040        then
6041       echo configure.in: --enable-languages needs at least one language argument 1>&2
6042       exit 1
6043     fi
6044   fi
6045   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6046
6047   # 'f95' is the old name for the 'fortran' language. We issue a warning
6048   # and make the substitution.
6049   case ,${enable_languages}, in
6050     *,f95,*)
6051       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6052       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6053       ;;
6054   esac
6055
6056   # First scan to see if an enabled language requires some other language.
6057   # We assume that a given config-lang.in will list all the language
6058   # front ends it requires, even if some are required indirectly.
6059   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6060     case ${lang_frag} in
6061       ..) ;;
6062       # The odd quoting in the next line works around
6063       # an apparent bug in bash 1.12 on linux.
6064       ${srcdir}/gcc/[*]/config-lang.in) ;;
6065       *)
6066         # From the config-lang.in, get $language, $lang_requires
6067         language=
6068         lang_requires=
6069         . ${lang_frag}
6070         for other in ${lang_requires} ; do
6071           case ,${enable_languages}, in
6072             *,$other,*) ;;
6073             *,all,*) ;;
6074             *,$language,*)
6075               echo " \`$other' language required by \`$language'; enabling" 1>&2
6076               enable_languages="${enable_languages},${other}"
6077               ;;
6078           esac
6079         done
6080         ;;
6081     esac
6082   done
6083
6084   new_enable_languages=,c,
6085
6086   # If LTO is enabled, add the LTO front end.
6087   extra_host_libiberty_configure_flags=
6088   if test "$enable_lto" = "yes" ; then
6089     case ,${enable_languages}, in
6090       *,lto,*) ;;
6091       *) enable_languages="${enable_languages},lto" ;;
6092     esac
6093     if test "${build_lto_plugin}" = "yes" ; then
6094       configdirs="$configdirs lto-plugin"
6095       extra_host_libiberty_configure_flags=--enable-shared
6096     fi
6097   fi
6098
6099
6100   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6101   potential_languages=,c,
6102
6103   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6104     case ${lang_frag} in
6105       ..) ;;
6106       # The odd quoting in the next line works around
6107       # an apparent bug in bash 1.12 on linux.
6108       ${srcdir}/gcc/[*]/config-lang.in) ;;
6109       *)
6110         # From the config-lang.in, get $language, $target_libs,
6111         # $lang_dirs, $boot_language, and $build_by_default
6112         language=
6113         target_libs=
6114         lang_dirs=
6115         subdir_requires=
6116         boot_language=no
6117         build_by_default=yes
6118         . ${lang_frag}
6119         if test x${language} = x; then
6120           echo "${lang_frag} doesn't set \$language." 1>&2
6121           exit 1
6122         fi
6123
6124         if test "$language" = "c++" \
6125            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6126           boot_language=yes
6127         fi
6128
6129         case ,${enable_languages}, in
6130           *,${language},*)
6131             # Language was explicitly selected; include it.
6132             add_this_lang=yes
6133             ;;
6134           *,all,*)
6135             # 'all' was selected, select it if it is a default language
6136             add_this_lang=${build_by_default}
6137             ;;
6138           *)
6139             add_this_lang=no
6140             ;;
6141         esac
6142
6143         # Disable languages that need other directories if these aren't available.
6144         for i in $subdir_requires; do
6145           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6146           case ,${enable_languages}, in
6147             *,${language},*)
6148               # Specifically requested language; tell them.
6149               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6150               ;;
6151             *)
6152               # Silently disable.
6153               add_this_lang=unsupported
6154               ;;
6155           esac
6156         done
6157
6158         # Disable Ada if no preexisting GNAT is available.
6159         case ,${enable_languages},:${language}:${have_gnat} in
6160           *,${language},*:ada:no)
6161             # Specifically requested language; tell them.
6162             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6163             ;;
6164           *:ada:no)
6165             # Silently disable.
6166             add_this_lang=unsupported
6167             ;;
6168         esac
6169
6170         # Disable a language that is unsupported by the target.
6171         case " $unsupported_languages " in
6172           *" $language "*)
6173             add_this_lang=unsupported
6174             ;;
6175         esac
6176
6177         case $add_this_lang in
6178           unsupported)
6179             # Remove language-dependent dirs.
6180             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6181             ;;
6182           no)
6183             # Remove language-dependent dirs; still show language as supported.
6184             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6185             potential_languages="${potential_languages}${language},"
6186             ;;
6187           yes)
6188             new_enable_languages="${new_enable_languages}${language},"
6189             potential_languages="${potential_languages}${language},"
6190             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6191             case "${boot_language}:,$enable_stage1_languages," in
6192               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6193                 # Add to (comma-separated) list of stage 1 languages.
6194                 case ",$stage1_languages," in
6195                   *,$language,* | ,yes, | ,all,) ;;
6196                   *) stage1_languages="${stage1_languages}${language}," ;;
6197                 esac
6198                 # We need to bootstrap any supporting libraries.
6199                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6200                 ;;
6201             esac
6202             ;;
6203         esac
6204         ;;
6205     esac
6206   done
6207
6208   # Check whether --enable-stage1-languages was given.
6209 if test "${enable_stage1_languages+set}" = set; then :
6210   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6211     ,no,|,,)
6212       # Set it to something that will have no effect in the loop below
6213       enable_stage1_languages=c ;;
6214     ,yes,)
6215       enable_stage1_languages=`echo $new_enable_languages | \
6216         sed -e "s/^,//" -e "s/,$//" ` ;;
6217     *,all,*)
6218       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6219         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6220   esac
6221
6222   # Add "good" languages from enable_stage1_languages to stage1_languages,
6223   # while "bad" languages go in missing_languages.  Leave no duplicates.
6224   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6225     case $potential_languages in
6226       *,$i,*)
6227         case $stage1_languages in
6228           *,$i,*) ;;
6229           *) stage1_languages="$stage1_languages$i," ;;
6230         esac ;;
6231       *)
6232         case $missing_languages in
6233           *,$i,*) ;;
6234           *) missing_languages="$missing_languages$i," ;;
6235         esac ;;
6236      esac
6237   done
6238 fi
6239
6240
6241   # Remove leading/trailing commas that were added for simplicity
6242   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6243   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6244   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6245   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6246
6247   if test "x$missing_languages" != x; then
6248     as_fn_error "
6249 The following requested languages could not be built: ${missing_languages}
6250 Supported languages are: ${potential_languages}" "$LINENO" 5
6251   fi
6252   if test "x$new_enable_languages" != "x$enable_languages"; then
6253     echo The following languages will be built: ${new_enable_languages}
6254     enable_languages="$new_enable_languages"
6255   fi
6256
6257
6258   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6259 fi
6260
6261 # Handle --disable-<component> generically.
6262 for dir in $configdirs $build_configdirs $target_configdirs ; do
6263   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6264   varname=`echo $dirname | sed -e s/+/_/g`
6265   if eval test x\${enable_${varname}} "=" xno ; then
6266     noconfigdirs="$noconfigdirs $dir"
6267   fi
6268 done
6269
6270 # Check for Boehm's garbage collector
6271 # Check whether --enable-objc-gc was given.
6272 if test "${enable_objc_gc+set}" = set; then :
6273   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6274   *,objc,*:*:yes:*target-boehm-gc*)
6275     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6276     ;;
6277 esac
6278 fi
6279
6280
6281 # Make sure we only build Boehm's garbage collector if required.
6282 case ,${enable_languages},:${enable_objc_gc} in
6283   *,objc,*:yes)
6284     # Keep target-boehm-gc if requested for Objective-C.
6285     ;;
6286   *)
6287     # Otherwise remove target-boehm-gc depending on target-libjava.
6288     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6289       noconfigdirs="$noconfigdirs target-boehm-gc"
6290     fi
6291     ;;
6292 esac
6293
6294 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6295 # $build_configdirs and $target_configdirs.
6296 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6297
6298 notsupp=""
6299 for dir in . $skipdirs $noconfigdirs ; do
6300   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6301   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6302     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6303     if test -r $srcdir/$dirname/configure ; then
6304       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6305         true
6306       else
6307         notsupp="$notsupp $dir"
6308       fi
6309     fi
6310   fi
6311   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6312     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6313     if test -r $srcdir/$dirname/configure ; then
6314       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6315         true
6316       else
6317         notsupp="$notsupp $dir"
6318       fi
6319     fi
6320   fi
6321   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6322     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6323     if test -r $srcdir/$dirname/configure ; then
6324       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6325         true
6326       else
6327         notsupp="$notsupp $dir"
6328       fi
6329     fi
6330   fi
6331 done
6332
6333 # Sometimes the tools are distributed with libiberty but with no other
6334 # libraries.  In that case, we don't want to build target-libiberty.
6335 # Don't let libgcc imply libiberty either.
6336 if test -n "${target_configdirs}" ; then
6337   libgcc=
6338   others=
6339   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6340     if test "$i" = "libgcc"; then
6341       libgcc=target-libgcc
6342     elif test "$i" != "libiberty" ; then
6343       if test -r $srcdir/$i/configure ; then
6344         others=yes;
6345         break;
6346       fi
6347     fi
6348   done
6349   if test -z "${others}" ; then
6350     target_configdirs=$libgcc
6351   fi
6352 fi
6353
6354 # Quietly strip out all directories which aren't configurable in this tree.
6355 # This relies on all configurable subdirectories being autoconfiscated, which
6356 # is now the case.
6357 build_configdirs_all="$build_configdirs"
6358 build_configdirs=
6359 for i in ${build_configdirs_all} ; do
6360   j=`echo $i | sed -e s/build-//g`
6361   if test -f ${srcdir}/$j/configure ; then
6362     build_configdirs="${build_configdirs} $i"
6363   fi
6364 done
6365
6366 configdirs_all="$configdirs"
6367 configdirs=
6368 for i in ${configdirs_all} ; do
6369   if test -f ${srcdir}/$i/configure ; then
6370     configdirs="${configdirs} $i"
6371   fi
6372 done
6373
6374 target_configdirs_all="$target_configdirs"
6375 target_configdirs=
6376 for i in ${target_configdirs_all} ; do
6377   j=`echo $i | sed -e s/target-//g`
6378   if test -f ${srcdir}/$j/configure ; then
6379     target_configdirs="${target_configdirs} $i"
6380   fi
6381 done
6382
6383 # Produce a warning message for the subdirs we can't configure.
6384 # This isn't especially interesting in the Cygnus tree, but in the individual
6385 # FSF releases, it's important to let people know when their machine isn't
6386 # supported by the one or two programs in a package.
6387
6388 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6389   # If $appdirs is non-empty, at least one of those directories must still
6390   # be configured, or we error out.  (E.g., if the gas release supports a
6391   # specified target in some subdirs but not the gas subdir, we shouldn't
6392   # pretend that all is well.)
6393   if test -n "$appdirs" ; then
6394     for dir in $appdirs ; do
6395       if test -r $dir/Makefile.in ; then
6396         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6397           appdirs=""
6398           break
6399         fi
6400         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6401           appdirs=""
6402           break
6403         fi
6404       fi
6405     done
6406     if test -n "$appdirs" ; then
6407       echo "*** This configuration is not supported by this package." 1>&2
6408       exit 1
6409     fi
6410   fi
6411   # Okay, some application will build, or we don't care to check.  Still
6412   # notify of subdirs not getting built.
6413   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6414   echo "    ${notsupp}" 1>&2
6415   echo "    (Any other directories should still work fine.)" 1>&2
6416 fi
6417
6418 case "$host" in
6419   *msdosdjgpp*)
6420     enable_gdbtk=no ;;
6421 esac
6422
6423 # To find our prefix, in gcc_cv_tool_prefix.
6424
6425 # The user is always right.
6426 if test "${PATH_SEPARATOR+set}" != set; then
6427   echo "#! /bin/sh" >conf$$.sh
6428   echo  "exit 0"   >>conf$$.sh
6429   chmod +x conf$$.sh
6430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6431     PATH_SEPARATOR=';'
6432   else
6433     PATH_SEPARATOR=:
6434   fi
6435   rm -f conf$$.sh
6436 fi
6437
6438
6439
6440 if test "x$exec_prefix" = xNONE; then
6441         if test "x$prefix" = xNONE; then
6442                 gcc_cv_tool_prefix=$ac_default_prefix
6443         else
6444                 gcc_cv_tool_prefix=$prefix
6445         fi
6446 else
6447         gcc_cv_tool_prefix=$exec_prefix
6448 fi
6449
6450 # If there is no compiler in the tree, use the PATH only.  In any
6451 # case, if there is no compiler in the tree nobody should use
6452 # AS_FOR_TARGET and LD_FOR_TARGET.
6453 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6454     gcc_version=`cat $srcdir/gcc/BASE-VER`
6455     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6456     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6457     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6458     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6459     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6460     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6461 else
6462     gcc_cv_tool_dirs=
6463 fi
6464
6465 if test x$build = x$target && test -n "$md_exec_prefix"; then
6466         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6467 fi
6468
6469
6470
6471 copy_dirs=
6472
6473
6474 # Check whether --with-build-sysroot was given.
6475 if test "${with_build_sysroot+set}" = set; then :
6476   withval=$with_build_sysroot; if test x"$withval" != x ; then
6477      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6478    fi
6479 else
6480   SYSROOT_CFLAGS_FOR_TARGET=
6481 fi
6482
6483
6484
6485
6486 # Check whether --with-debug-prefix-map was given.
6487 if test "${with_debug_prefix_map+set}" = set; then :
6488   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6489      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6490      for debug_map in $withval; do
6491        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6492      done
6493    fi
6494 else
6495   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6496 fi
6497
6498
6499
6500 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6501 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6502 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6503 # We want to ensure that TARGET libraries (which we know are built with
6504 # gcc) are built with "-O2 -g", so include those options when setting
6505 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6506 if test "x$CFLAGS_FOR_TARGET" = x; then
6507   CFLAGS_FOR_TARGET=$CFLAGS
6508   case " $CFLAGS " in
6509     *" -O2 "*) ;;
6510     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6511   esac
6512   case " $CFLAGS " in
6513     *" -g "* | *" -g3 "*) ;;
6514     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6515   esac
6516 fi
6517
6518
6519 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6520   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6521   case " $CXXFLAGS " in
6522     *" -O2 "*) ;;
6523     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6524   esac
6525   case " $CXXFLAGS " in
6526     *" -g "* | *" -g3 "*) ;;
6527     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6528   esac
6529 fi
6530
6531
6532 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6533 # the named directory are copied to $(tooldir)/sys-include.
6534 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6535   if test x${is_cross_compiler} = xno ; then
6536     echo 1>&2 '***' --with-headers is only supported when cross compiling
6537     exit 1
6538   fi
6539   if test x"${with_headers}" != xyes ; then
6540     x=${gcc_cv_tool_prefix}
6541     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6542   fi
6543 fi
6544
6545 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6546 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6547 # are permitted.
6548 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6549   if test x${is_cross_compiler} = xno ; then
6550     echo 1>&2 '***' --with-libs is only supported when cross compiling
6551     exit 1
6552   fi
6553   if test x"${with_libs}" != xyes ; then
6554     # Copy the libraries in reverse order, so that files in the first named
6555     # library override files in subsequent libraries.
6556     x=${gcc_cv_tool_prefix}
6557     for l in ${with_libs}; do
6558       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6559     done
6560   fi
6561 fi
6562
6563 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6564 #
6565 # This is done by determining whether or not the appropriate directory
6566 # is available, and by checking whether or not specific configurations
6567 # have requested that this magic not happen.
6568 #
6569 # The command line options always override the explicit settings in
6570 # configure.in, and the settings in configure.in override this magic.
6571 #
6572 # If the default for a toolchain is to use GNU as and ld, and you don't
6573 # want to do that, then you should use the --without-gnu-as and
6574 # --without-gnu-ld options for the configure script.  Similarly, if
6575 # the default is to use the included zlib and you don't want to do that,
6576 # you should use the --with-system-zlib option for the configure script.
6577
6578 if test x${use_gnu_as} = x &&
6579    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6580   with_gnu_as=yes
6581   extra_host_args="$extra_host_args --with-gnu-as"
6582 fi
6583
6584 if test x${use_gnu_ld} = x &&
6585    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6586   with_gnu_ld=yes
6587   extra_host_args="$extra_host_args --with-gnu-ld"
6588 fi
6589
6590 if test x${use_included_zlib} = x &&
6591    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6592   :
6593 else
6594   with_system_zlib=yes
6595   extra_host_args="$extra_host_args --with-system-zlib"
6596 fi
6597
6598 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6599 # can detect this case.
6600
6601 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6602   with_newlib=yes
6603   extra_host_args="$extra_host_args --with-newlib"
6604 fi
6605
6606 # Handle ${copy_dirs}
6607 set fnord ${copy_dirs}
6608 shift
6609 while test $# != 0 ; do
6610   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6611     :
6612   else
6613     echo Copying $1 to $2
6614
6615     # Use the install script to create the directory and all required
6616     # parent directories.
6617     if test -d $2 ; then
6618       :
6619     else
6620       echo >config.temp
6621       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6622     fi
6623
6624     # Copy the directory, assuming we have tar.
6625     # FIXME: Should we use B in the second tar?  Not all systems support it.
6626     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6627
6628     # It is the responsibility of the user to correctly adjust all
6629     # symlinks.  If somebody can figure out how to handle them correctly
6630     # here, feel free to add the code.
6631
6632     echo $1 > $2/COPIED
6633   fi
6634   shift; shift
6635 done
6636
6637 # Determine a target-dependent exec_prefix that the installed
6638 # gcc will search in.  Keep this list sorted by triplet, with
6639 # the *-*-osname triplets last.
6640 md_exec_prefix=
6641 case "${target}" in
6642   alpha*-*-*vms*)
6643     md_exec_prefix=/gnu/lib/gcc-lib
6644     ;;
6645   i[34567]86-pc-msdosdjgpp*)
6646     md_exec_prefix=/dev/env/DJDIR/bin
6647     ;;
6648   i[34567]86-*-sco3.2v5*)
6649     if test $with_gnu_as = yes; then
6650       md_exec_prefix=/usr/gnu/bin
6651     else
6652       md_exec_prefix=/usr/ccs/bin/elf
6653     fi
6654     ;;
6655
6656   mn10300-*-* | \
6657   powerpc-*-chorusos* | \
6658   powerpc*-*-eabi* | \
6659   powerpc*-*-sysv* | \
6660   powerpc*-*-kaos* | \
6661   s390x-ibm-tpf*)
6662     md_exec_prefix=/usr/ccs/bin
6663     ;;
6664   sparc64-*-elf*)
6665     ;;
6666   v850*-*-*)
6667     md_exec_prefix=/usr/ccs/bin
6668     ;;
6669   xtensa*-*-elf*)
6670     ;;
6671
6672   *-*-beos* | \
6673   *-*-elf* | \
6674   *-*-hpux* | \
6675   *-*-netware* | \
6676   *-*-nto-qnx* | \
6677   *-*-rtems* | \
6678   *-*-solaris2* | \
6679   *-*-sysv[45]* | \
6680   *-*-vxworks* | \
6681   *-wrs-windiss)
6682     md_exec_prefix=/usr/ccs/bin
6683     ;;
6684 esac
6685
6686 extra_arflags_for_target=
6687 extra_nmflags_for_target=
6688 extra_ranlibflags_for_target=
6689 target_makefile_frag=/dev/null
6690 case "${target}" in
6691   mep*-*-*)
6692     target_makefile_frag="config/mt-mep"
6693     ;;
6694   spu-*-*)
6695     target_makefile_frag="config/mt-spu"
6696     ;;
6697   mips*-sde-elf*)
6698     target_makefile_frag="config/mt-sde"
6699     ;;
6700   mipsisa*-*-elfoabi*)
6701     target_makefile_frag="config/mt-mips-elfoabi"
6702     ;;
6703   mips*-*-*linux* | mips*-*-gnu*)
6704     target_makefile_frag="config/mt-mips-gnu"
6705     ;;
6706   *-*-netware*)
6707     target_makefile_frag="config/mt-netware"
6708     ;;
6709   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6710     target_makefile_frag="config/mt-gnu"
6711     ;;
6712   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6713     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6714     # commands to handle both 32-bit and 64-bit objects.  These flags are
6715     # harmless if we're using GNU nm or ar.
6716     extra_arflags_for_target=" -X32_64"
6717     extra_nmflags_for_target=" -B -X32_64"
6718     ;;
6719   *-*-darwin[3-9]*)
6720     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6721     extra_ranlibflags_for_target=" -c"
6722     ;;
6723   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6724     target_makefile_frag="config/mt-wince"
6725     ;;
6726 esac
6727
6728 alphaieee_frag=/dev/null
6729 case $target in
6730   alpha*-*-*)
6731     # This just makes sure to use the -mieee option to build target libs.
6732     # This should probably be set individually by each library.
6733     alphaieee_frag="config/mt-alphaieee"
6734     ;;
6735 esac
6736
6737 # If --enable-target-optspace always use -Os instead of -O2 to build
6738 # the target libraries, similarly if it is not specified, use -Os
6739 # on selected platforms.
6740 ospace_frag=/dev/null
6741 case "${enable_target_optspace}:${target}" in
6742   yes:*)
6743     ospace_frag="config/mt-ospace"
6744     ;;
6745   :d30v-*)
6746     ospace_frag="config/mt-d30v"
6747     ;;
6748   :m32r-* | :d10v-* | :fr30-*)
6749     ospace_frag="config/mt-ospace"
6750     ;;
6751   no:* | :*)
6752     ;;
6753   *)
6754     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6755     ;;
6756 esac
6757
6758 # Default to using --with-stabs for certain targets.
6759 if test x${with_stabs} = x ; then
6760   case "${target}" in
6761   mips*-*-irix[56]*)
6762     ;;
6763   mips*-*-* | alpha*-*-osf*)
6764     with_stabs=yes;
6765     extra_host_args="${extra_host_args} --with-stabs"
6766     ;;
6767   esac
6768 fi
6769
6770 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6771 # them automatically.
6772 case "${host}" in
6773   hppa*64*-*-hpux11*)
6774     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6775     ;;
6776 esac
6777
6778 # Some systems (e.g., one of the i386-aix systems the gas testers are
6779 # using) don't handle "\$" correctly, so don't use it here.
6780 tooldir='${exec_prefix}'/${target_noncanonical}
6781 build_tooldir=${tooldir}
6782
6783 # Create a .gdbinit file which runs the one in srcdir
6784 # and tells GDB to look there for source files.
6785
6786 if test -r ${srcdir}/.gdbinit ; then
6787   case ${srcdir} in
6788     .) ;;
6789     *) cat > ./.gdbinit <<EOF
6790 # ${NO_EDIT}
6791 dir ${srcdir}
6792 dir .
6793 source ${srcdir}/.gdbinit
6794 EOF
6795     ;;
6796   esac
6797 fi
6798
6799 # Make sure that the compiler is able to generate an executable.  If it
6800 # can't, we are probably in trouble.  We don't care whether we can run the
6801 # executable--we might be using a cross compiler--we only care whether it
6802 # can be created.  At this point the main configure script has set CC.
6803 we_are_ok=no
6804 echo "int main () { return 0; }" > conftest.c
6805 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6806 if test $? = 0 ; then
6807   if test -s conftest || test -s conftest.exe ; then
6808     we_are_ok=yes
6809   fi
6810 fi
6811 case $we_are_ok in
6812   no)
6813     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6814     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6815     rm -f conftest*
6816     exit 1
6817     ;;
6818 esac
6819 rm -f conftest*
6820
6821 # The Solaris /usr/ucb/cc compiler does not appear to work.
6822 case "${host}" in
6823   sparc-sun-solaris2*)
6824       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6825       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6826           could_use=
6827           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6828           if test -d /opt/cygnus/bin ; then
6829               if test "$could_use" = "" ; then
6830                   could_use="/opt/cygnus/bin"
6831               else
6832                   could_use="$could_use or /opt/cygnus/bin"
6833               fi
6834           fi
6835         if test "$could_use" = "" ; then
6836             echo "Warning: compilation may fail because you're using"
6837             echo "/usr/ucb/cc.  You should change your PATH or CC "
6838             echo "variable and rerun configure."
6839         else
6840             echo "Warning: compilation may fail because you're using"
6841             echo "/usr/ucb/cc, when you should use the C compiler from"
6842             echo "$could_use.  You should change your"
6843             echo "PATH or CC variable and rerun configure."
6844         fi
6845       fi
6846   ;;
6847 esac
6848
6849 # Decide which environment variable is used to find dynamic libraries.
6850 case "${host}" in
6851   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6852   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6853   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6854   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6855 esac
6856
6857 # On systems where the dynamic library environment variable is PATH,
6858 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6859 # built executables to PATH.
6860 if test "$RPATH_ENVVAR" = PATH; then
6861   GCC_SHLIB_SUBDIR=/shlib
6862 else
6863   GCC_SHLIB_SUBDIR=
6864 fi
6865
6866 # Record target_configdirs and the configure arguments for target and
6867 # build configuration in Makefile.
6868 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6869 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6870
6871 # If we are building libgomp, bootstrap it.
6872 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6873   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6874 fi
6875
6876 # Determine whether gdb needs tk/tcl or not.
6877 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6878 # and in that case we want gdb to be built without tk.  Ugh!
6879 # In fact I believe gdb is the *only* package directly dependent on tk,
6880 # so we should be able to put the 'maybe's in unconditionally and
6881 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6882 # 100% sure that that's safe though.
6883
6884 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6885 case "$enable_gdbtk" in
6886   no)
6887     GDB_TK="" ;;
6888   yes)
6889     GDB_TK="${gdb_tk}" ;;
6890   *)
6891     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6892     # distro.  Eventually someone will fix this and move Insight, nee
6893     # gdbtk to a separate directory.
6894     if test -d ${srcdir}/gdb/gdbtk ; then
6895       GDB_TK="${gdb_tk}"
6896     else
6897       GDB_TK=""
6898     fi
6899     ;;
6900 esac
6901 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6902 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6903
6904 # Strip out unwanted targets.
6905
6906 # While at that, we remove Makefiles if we were started for recursive
6907 # configuration, so that the top-level Makefile reconfigures them,
6908 # like we used to do when configure itself was recursive.
6909
6910 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6911 # but now we're fixing up the Makefile ourselves with the additional
6912 # commands passed to AC_CONFIG_FILES.  Use separate variables
6913 # extrasub-{build,host,target} not because there is any reason to split
6914 # the substitutions up that way, but only to remain below the limit of
6915 # 99 commands in a script, for HP-UX sed.
6916 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6917
6918 # Check whether --enable-bootstrap was given.
6919 if test "${enable_bootstrap+set}" = set; then :
6920   enableval=$enable_bootstrap;
6921 else
6922   enable_bootstrap=default
6923 fi
6924
6925
6926 # Issue errors and warnings for invalid/strange bootstrap combinations.
6927 case "$configdirs" in
6928   *gcc*) have_compiler=yes ;;
6929   *) have_compiler=no ;;
6930 esac
6931
6932 case "$have_compiler:$host:$target:$enable_bootstrap" in
6933   *:*:*:no) ;;
6934
6935   # Default behavior.  Enable bootstrap if we have a compiler
6936   # and we are in a native configuration.
6937   yes:$build:$build:default)
6938     enable_bootstrap=yes ;;
6939
6940   *:*:*:default)
6941     enable_bootstrap=no ;;
6942
6943   # We have a compiler and we are in a native configuration, bootstrap is ok
6944   yes:$build:$build:yes)
6945     ;;
6946
6947   # Other configurations, but we have a compiler.  Assume the user knows
6948   # what he's doing.
6949   yes:*:*:yes)
6950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6951 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6952     ;;
6953
6954   # No compiler: if they passed --enable-bootstrap explicitly, fail
6955   no:*:*:yes)
6956     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6957
6958   # Fail if wrong command line
6959   *)
6960     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6961     ;;
6962 esac
6963
6964 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6965   *,c++,*:yes:yes) ;;
6966   *:yes:yes)
6967     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6968     ;;
6969 esac
6970
6971 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6972   yes:yes:*\ gold\ *:*,c++,*) ;;
6973   yes:yes:*\ gold\ *:*)
6974     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6975     ;;
6976 esac
6977
6978 # Adjust the toplevel makefile according to whether bootstrap was selected.
6979 case $enable_bootstrap in
6980   yes)
6981     bootstrap_suffix=bootstrap
6982     BUILD_CONFIG=bootstrap-debug
6983     ;;
6984   no)
6985     bootstrap_suffix=no-bootstrap
6986     BUILD_CONFIG=
6987     ;;
6988 esac
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6991 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6992
6993
6994 # Check whether --with-build-config was given.
6995 if test "${with_build_config+set}" = set; then :
6996   withval=$with_build_config; case $with_build_config in
6997    yes) with_build_config= ;;
6998    no) with_build_config= BUILD_CONFIG= ;;
6999    esac
7000 fi
7001
7002
7003 if test "x${with_build_config}" != x; then
7004   BUILD_CONFIG=$with_build_config
7005 else
7006   case $BUILD_CONFIG in
7007   bootstrap-debug)
7008     if echo "int f (void) { return 0; }" > conftest.c &&
7009        ${CC} -c conftest.c &&
7010        mv conftest.o conftest.o.g0 &&
7011        ${CC} -c -g conftest.c &&
7012        mv conftest.o conftest.o.g &&
7013        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7014       :
7015     else
7016       BUILD_CONFIG=
7017     fi
7018     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7019     ;;
7020   esac
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7023 $as_echo "$BUILD_CONFIG" >&6; }
7024
7025
7026 extrasub_build=
7027 for module in ${build_configdirs} ; do
7028   if test -z "${no_recursion}" \
7029      && test -f ${build_subdir}/${module}/Makefile; then
7030     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7031     rm -f ${build_subdir}/${module}/Makefile
7032   fi
7033   extrasub_build="$extrasub_build
7034 /^@if build-$module\$/d
7035 /^@endif build-$module\$/d
7036 /^@if build-$module-$bootstrap_suffix\$/d
7037 /^@endif build-$module-$bootstrap_suffix\$/d"
7038 done
7039 extrasub_host=
7040 for module in ${configdirs} ; do
7041   if test -z "${no_recursion}"; then
7042     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7043       if test -f ${file}; then
7044         echo 1>&2 "*** removing ${file} to force reconfigure"
7045         rm -f ${file}
7046       fi
7047     done
7048   fi
7049   extrasub_host="$extrasub_host
7050 /^@if $module\$/d
7051 /^@endif $module\$/d
7052 /^@if $module-$bootstrap_suffix\$/d
7053 /^@endif $module-$bootstrap_suffix\$/d"
7054 done
7055 extrasub_target=
7056 for module in ${target_configdirs} ; do
7057   if test -z "${no_recursion}" \
7058      && test -f ${target_subdir}/${module}/Makefile; then
7059     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7060     rm -f ${target_subdir}/${module}/Makefile
7061   fi
7062
7063   # We only bootstrap target libraries listed in bootstrap_target_libs.
7064   case $bootstrap_target_libs in
7065     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7066     *) target_bootstrap_suffix=no-bootstrap ;;
7067   esac
7068
7069   extrasub_target="$extrasub_target
7070 /^@if target-$module\$/d
7071 /^@endif target-$module\$/d
7072 /^@if target-$module-$target_bootstrap_suffix\$/d
7073 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7074 done
7075
7076 # Do the final fixup along with target modules.
7077 extrasub_target="$extrasub_target
7078 /^@if /,/^@endif /d"
7079
7080 # Create the serialization dependencies.  This uses a temporary file.
7081
7082 # Check whether --enable-serial-configure was given.
7083 if test "${enable_serial_configure+set}" = set; then :
7084   enableval=$enable_serial_configure;
7085 fi
7086
7087
7088 case ${enable_serial_configure} in
7089   yes)
7090     enable_serial_build_configure=yes
7091     enable_serial_host_configure=yes
7092     enable_serial_target_configure=yes
7093     ;;
7094 esac
7095
7096 # These force 'configure's to be done one at a time, to avoid problems
7097 # with contention over a shared config.cache.
7098 rm -f serdep.tmp
7099 echo '# serdep.tmp' > serdep.tmp
7100 olditem=
7101 test "x${enable_serial_build_configure}" = xyes &&
7102 for item in ${build_configdirs} ; do
7103   case ${olditem} in
7104     "") ;;
7105     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7106   esac
7107   olditem=${item}
7108 done
7109 olditem=
7110 test "x${enable_serial_host_configure}" = xyes &&
7111 for item in ${configdirs} ; do
7112   case ${olditem} in
7113     "") ;;
7114     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7115   esac
7116   olditem=${item}
7117 done
7118 olditem=
7119 test "x${enable_serial_target_configure}" = xyes &&
7120 for item in ${target_configdirs} ; do
7121   case ${olditem} in
7122     "") ;;
7123     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7124   esac
7125   olditem=${item}
7126 done
7127 serialization_dependencies=serdep.tmp
7128
7129
7130 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7131 # target, nonopt, and variable assignments.  These are the ones we
7132 # might not want to pass down to subconfigures.  The exception being
7133 # --cache-file=/dev/null, which is used to turn off the use of cache
7134 # files altogether, and which should be passed on to subconfigures.
7135 # Also strip program-prefix, program-suffix, and program-transform-name,
7136 # so that we can pass down a consistent program-transform-name.
7137 baseargs=
7138 keep_next=no
7139 skip_next=no
7140 eval "set -- $ac_configure_args"
7141 for ac_arg
7142 do
7143   if test X"$skip_next" = X"yes"; then
7144     skip_next=no
7145     continue
7146   fi
7147   if test X"$keep_next" = X"yes"; then
7148     case $ac_arg in
7149       *\'*)
7150         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7151     esac
7152     baseargs="$baseargs '$ac_arg'"
7153     keep_next=no
7154     continue
7155   fi
7156
7157   # Handle separated arguments.  Based on the logic generated by
7158   # autoconf 2.59.
7159   case $ac_arg in
7160     *=* | --config-cache | -C | -disable-* | --disable-* \
7161       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7162       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7163       | -with-* | --with-* | -without-* | --without-* | --x)
7164       separate_arg=no
7165       ;;
7166     -*)
7167       separate_arg=yes
7168       ;;
7169     *)
7170       separate_arg=no
7171       ;;
7172   esac
7173
7174   case "$ac_arg" in
7175     --cache-file=/dev/null | \
7176     -cache-file=/dev/null )
7177       # Handled here to avoid the test to skip args below.
7178       baseargs="$baseargs '$ac_arg'"
7179       # Assert: $separate_arg should always be no.
7180       keep_next=$separate_arg
7181       ;;
7182     --no*)
7183       continue
7184       ;;
7185     --c* | \
7186     --sr* | \
7187     --ho* | \
7188     --bu* | \
7189     --t* | \
7190     --program-* | \
7191     -cache_file* | \
7192     -srcdir* | \
7193     -host* | \
7194     -build* | \
7195     -target* | \
7196     -program-prefix* | \
7197     -program-suffix* | \
7198     -program-transform-name* )
7199       skip_next=$separate_arg
7200       continue
7201       ;;
7202     -*)
7203       # An option.  Add it.
7204       case $ac_arg in
7205         *\'*)
7206           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7207       esac
7208       baseargs="$baseargs '$ac_arg'"
7209       keep_next=$separate_arg
7210       ;;
7211     *)
7212       # Either a variable assignment, or a nonopt (triplet).  Don't
7213       # pass it down; let the Makefile handle this.
7214       continue
7215       ;;
7216   esac
7217 done
7218 # Remove the initial space we just introduced and, as these will be
7219 # expanded by make, quote '$'.
7220 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7221
7222 # Add in --program-transform-name, after --program-prefix and
7223 # --program-suffix have been applied to it.  Autoconf has already
7224 # doubled dollar signs and backslashes in program_transform_name; we want
7225 # the backslashes un-doubled, and then the entire thing wrapped in single
7226 # quotes, because this will be expanded first by make and then by the shell.
7227 # Also, because we want to override the logic in subdir configure scripts to
7228 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7229 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7230 ${program_transform_name}
7231 EOF_SED
7232 gcc_transform_name=`cat conftestsed.out`
7233 rm -f conftestsed.out
7234 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7235 if test "$silent" = yes; then
7236   baseargs="$baseargs --silent"
7237 fi
7238 baseargs="$baseargs --disable-option-checking"
7239
7240 # Record and document user additions to sub configure arguments.
7241
7242
7243
7244
7245 # For the build-side libraries, we just need to pretend we're native,
7246 # and not use the same cache file.  Multilibs are neither needed nor
7247 # desired.
7248 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7249
7250 # For host modules, accept cache file option, or specification as blank.
7251 case "${cache_file}" in
7252 "") # empty
7253   cache_file_option="" ;;
7254 /* | [A-Za-z]:[\\/]* ) # absolute path
7255   cache_file_option="--cache-file=${cache_file}" ;;
7256 *) # relative path
7257   cache_file_option="--cache-file=../${cache_file}" ;;
7258 esac
7259
7260 # Host dirs don't like to share a cache file either, horribly enough.
7261 # This seems to be due to autoconf 2.5x stupidity.
7262 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7263
7264 target_configargs="$target_configargs ${baseargs}"
7265
7266 # Passing a --with-cross-host argument lets the target libraries know
7267 # whether they are being built with a cross-compiler or being built
7268 # native.  However, it would be better to use other mechanisms to make the
7269 # sorts of decisions they want to make on this basis.  Please consider
7270 # this option to be deprecated.  FIXME.
7271 if test x${is_cross_compiler} = xyes ; then
7272   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7273 fi
7274
7275 # Default to --enable-multilib.
7276 if test x${enable_multilib} = x ; then
7277   target_configargs="--enable-multilib ${target_configargs}"
7278 fi
7279
7280 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7281 # changed from the earlier setting of with_newlib.
7282 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7283   target_configargs="--with-newlib ${target_configargs}"
7284 fi
7285
7286 # Different target subdirs use different values of certain variables
7287 # (notably CXX).  Worse, multilibs use *lots* of different values.
7288 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7289 # it doesn't automatically accept command-line overrides of them.
7290 # This means it's not safe for target subdirs to share a cache file,
7291 # which is disgusting, but there you have it.  Hopefully this can be
7292 # fixed in future.  It's still worthwhile to use a cache file for each
7293 # directory.  I think.
7294
7295 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7296 # We need to pass --target, as newer autoconf's requires consistency
7297 # for target_alias and gcc doesn't manage it consistently.
7298 target_configargs="--cache-file=./config.cache ${target_configargs}"
7299
7300 FLAGS_FOR_TARGET=
7301 case " $target_configdirs " in
7302  *" newlib "*)
7303   case " $target_configargs " in
7304   *" --with-newlib "*)
7305    case "$target" in
7306     *-cygwin*)
7307       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'
7308       ;;
7309    esac
7310
7311    # If we're not building GCC, don't discard standard headers.
7312    if test -d ${srcdir}/gcc; then
7313      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7314
7315      if test "${build}" != "${host}"; then
7316        # On Canadian crosses, CC_FOR_TARGET will have already been set
7317        # by `configure', so we won't have an opportunity to add -Bgcc/
7318        # to it.  This is right: we don't want to search that directory
7319        # for binaries, but we want the header files in there, so add
7320        # them explicitly.
7321        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7322
7323        # Someone might think of using the pre-installed headers on
7324        # Canadian crosses, in case the installed compiler is not fully
7325        # compatible with the compiler being built.  In this case, it
7326        # would be better to flag an error than risking having
7327        # incompatible object files being constructed.  We can't
7328        # guarantee that an error will be flagged, but let's hope the
7329        # compiler will do it, when presented with incompatible header
7330        # files.
7331      fi
7332    fi
7333
7334    case "${target}-${is_cross_compiler}" in
7335    i[3456789]86-*-linux*-no)
7336       # Here host == target, so we don't need to build gcc,
7337       # so we don't want to discard standard headers.
7338       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7339       ;;
7340    *)
7341       # If we're building newlib, use its generic headers last, but search
7342       # for any libc-related directories first (so make it the last -B
7343       # switch).
7344       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7345
7346       # If we're building libgloss, find the startup file, simulator library
7347       # and linker script.
7348       case " $target_configdirs " in
7349         *" libgloss "*)
7350         # Look for startup file, simulator library and maybe linker script.
7351         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7352         # Look for libnosys.a in case the target needs it.
7353         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7354         # Most targets have the linker script in the source directory.
7355         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7356         ;;
7357       esac
7358       ;;
7359    esac
7360    ;;
7361   esac
7362   ;;
7363 esac
7364
7365 case "$target" in
7366   x86_64-*mingw* | *-w64-mingw*)
7367   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7368   # however, use a symlink named 'mingw' in ${prefix} .
7369     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7370     ;;
7371   *-mingw*)
7372   # MinGW can't be handled as Cygwin above since it does not use newlib.
7373     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'
7374     ;;
7375 esac
7376
7377 # Allow the user to override the flags for
7378 # our build compiler if desired.
7379 if test x"${build}" = x"${host}" ; then
7380   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7381   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7382   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7383 fi
7384
7385 # On Canadian crosses, we'll be searching the right directories for
7386 # the previously-installed cross compiler, so don't bother to add
7387 # flags for directories within the install tree of the compiler
7388 # being built; programs in there won't even run.
7389 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7390   # Search for pre-installed headers if nothing else fits.
7391   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7392 fi
7393
7394 if test "x${use_gnu_ld}" = x &&
7395    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7396   # Arrange for us to find uninstalled linker scripts.
7397   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7398 fi
7399
7400 # Search for other target-specific linker scripts and such.
7401 case "${target}" in
7402   mep*)
7403     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7404     ;;
7405 esac
7406
7407 # Makefile fragments.
7408 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7409 do
7410   eval fragval=\$$frag
7411   if test $fragval != /dev/null; then
7412     eval $frag=${srcdir}/$fragval
7413   fi
7414 done
7415
7416
7417
7418
7419
7420 # Miscellanea: directories, flags, etc.
7421
7422
7423
7424
7425
7426
7427
7428
7429 # Build module lists & subconfigure args.
7430
7431
7432
7433 # Host module lists & subconfigure args.
7434
7435
7436
7437
7438 # Target module lists & subconfigure args.
7439
7440
7441
7442 # Build tools.
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 # Generate default definitions for YACC, M4, LEX and other programs that run
7461 # on the build machine.  These are used if the Makefile can't locate these
7462 # programs in objdir.
7463 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7464
7465 for ac_prog in 'bison -y' byacc yacc
7466 do
7467   # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_YACC+set}" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   if test -n "$YACC"; then
7475   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482     for ac_exec_ext in '' $ac_executable_extensions; do
7483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484     ac_cv_prog_YACC="$ac_prog"
7485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489   done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 YACC=$ac_cv_prog_YACC
7495 if test -n "$YACC"; then
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7497 $as_echo "$YACC" >&6; }
7498 else
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504   test -n "$YACC" && break
7505 done
7506 test -n "$YACC" || YACC="$MISSING bison -y"
7507
7508 case " $build_configdirs " in
7509   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7510   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7511 esac
7512
7513 for ac_prog in bison
7514 do
7515   # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_BISON+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$BISON"; then
7523   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_BISON="$ac_prog"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 BISON=$ac_cv_prog_BISON
7543 if test -n "$BISON"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7545 $as_echo "$BISON" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552   test -n "$BISON" && break
7553 done
7554 test -n "$BISON" || BISON="$MISSING bison"
7555
7556 case " $build_configdirs " in
7557   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7558 esac
7559
7560 for ac_prog in gm4 gnum4 m4
7561 do
7562   # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_M4+set}" = set; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   if test -n "$M4"; then
7570   ac_cv_prog_M4="$M4" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579     ac_cv_prog_M4="$ac_prog"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 M4=$ac_cv_prog_M4
7590 if test -n "$M4"; then
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7592 $as_echo "$M4" >&6; }
7593 else
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598
7599   test -n "$M4" && break
7600 done
7601 test -n "$M4" || M4="$MISSING m4"
7602
7603 case " $build_configdirs " in
7604   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7605 esac
7606
7607 for ac_prog in flex lex
7608 do
7609   # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if test "${ac_cv_prog_LEX+set}" = set; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test -n "$LEX"; then
7617   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_exec_ext in '' $ac_executable_extensions; do
7625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626     ac_cv_prog_LEX="$ac_prog"
7627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631   done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 LEX=$ac_cv_prog_LEX
7637 if test -n "$LEX"; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7639 $as_echo "$LEX" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645
7646   test -n "$LEX" && break
7647 done
7648 test -n "$LEX" || LEX="$MISSING flex"
7649
7650 case " $build_configdirs " in
7651   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7652   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7653 esac
7654
7655 for ac_prog in flex
7656 do
7657   # Extract the first word of "$ac_prog", so it can be a program name with args.
7658 set dummy $ac_prog; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_FLEX+set}" = set; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   if test -n "$FLEX"; then
7665   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_prog_FLEX="$ac_prog"
7675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 FLEX=$ac_cv_prog_FLEX
7685 if test -n "$FLEX"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7687 $as_echo "$FLEX" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694   test -n "$FLEX" && break
7695 done
7696 test -n "$FLEX" || FLEX="$MISSING flex"
7697
7698 case " $build_configdirs " in
7699   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7700 esac
7701
7702 for ac_prog in makeinfo
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if test -n "$MAKEINFO"; then
7712   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_prog_MAKEINFO="$ac_prog"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 MAKEINFO=$ac_cv_prog_MAKEINFO
7732 if test -n "$MAKEINFO"; then
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7734 $as_echo "$MAKEINFO" >&6; }
7735 else
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741   test -n "$MAKEINFO" && break
7742 done
7743 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7744
7745 case " $build_configdirs " in
7746   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7747   *)
7748
7749     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7750     # higher, else we use the "missing" dummy.
7751     if ${MAKEINFO} --version \
7752        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7753       :
7754     else
7755       MAKEINFO="$MISSING makeinfo"
7756     fi
7757     ;;
7758
7759 esac
7760
7761 # FIXME: expect and dejagnu may become build tools?
7762
7763 for ac_prog in expect
7764 do
7765   # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   if test -n "$EXPECT"; then
7773   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780     for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_prog_EXPECT="$ac_prog"
7783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787   done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 EXPECT=$ac_cv_prog_EXPECT
7793 if test -n "$EXPECT"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7795 $as_echo "$EXPECT" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802   test -n "$EXPECT" && break
7803 done
7804 test -n "$EXPECT" || EXPECT="expect"
7805
7806 case " $configdirs " in
7807   *" expect "*)
7808     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7809     ;;
7810 esac
7811
7812 for ac_prog in runtest
7813 do
7814   # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   if test -n "$RUNTEST"; then
7822   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_prog_RUNTEST="$ac_prog"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 RUNTEST=$ac_cv_prog_RUNTEST
7842 if test -n "$RUNTEST"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7844 $as_echo "$RUNTEST" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850
7851   test -n "$RUNTEST" && break
7852 done
7853 test -n "$RUNTEST" || RUNTEST="runtest"
7854
7855 case " $configdirs " in
7856   *" dejagnu "*)
7857     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7858     ;;
7859 esac
7860
7861
7862 # Host tools.
7863 ncn_tool_prefix=
7864 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7865 ncn_target_tool_prefix=
7866 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7867
7868
7869
7870 if test -n "$AR"; then
7871   ac_cv_prog_AR=$AR
7872 elif test -n "$ac_cv_prog_AR"; then
7873   AR=$ac_cv_prog_AR
7874 fi
7875
7876 if test -n "$ac_cv_prog_AR"; then
7877   for ncn_progname in ar; do
7878     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7879 set dummy ${ncn_progname}; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_prog_AR+set}" = set; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   if test -n "$AR"; then
7886   ac_cv_prog_AR="$AR" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893     for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_prog_AR="${ncn_progname}"
7896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900   done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 AR=$ac_cv_prog_AR
7906 if test -n "$AR"; then
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7908 $as_echo "$AR" >&6; }
7909 else
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915   done
7916 fi
7917
7918 for ncn_progname in ar; do
7919   if test -n "$ncn_tool_prefix"; then
7920     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_AR+set}" = set; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   if test -n "$AR"; then
7928   ac_cv_prog_AR="$AR" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933   IFS=$as_save_IFS
7934   test -z "$as_dir" && as_dir=.
7935     for ac_exec_ext in '' $ac_executable_extensions; do
7936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939     break 2
7940   fi
7941 done
7942   done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 AR=$ac_cv_prog_AR
7948 if test -n "$AR"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7950 $as_echo "$AR" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956
7957   fi
7958   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7959     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7960 set dummy ${ncn_progname}; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964   $as_echo_n "(cached) " >&6
7965 else
7966   if test -n "$AR"; then
7967   ac_cv_prog_AR="$AR" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972   IFS=$as_save_IFS
7973   test -z "$as_dir" && as_dir=.
7974     for ac_exec_ext in '' $ac_executable_extensions; do
7975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976     ac_cv_prog_AR="${ncn_progname}"
7977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978     break 2
7979   fi
7980 done
7981   done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 AR=$ac_cv_prog_AR
7987 if test -n "$AR"; then
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7989 $as_echo "$AR" >&6; }
7990 else
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994
7995
7996   fi
7997   test -n "$ac_cv_prog_AR" && break
7998 done
7999
8000 if test -z "$ac_cv_prog_AR" ; then
8001   set dummy ar
8002   if test $build = $host ; then
8003     AR="$2"
8004   else
8005     AR="${ncn_tool_prefix}$2"
8006   fi
8007 fi
8008
8009
8010
8011 if test -n "$AS"; then
8012   ac_cv_prog_AS=$AS
8013 elif test -n "$ac_cv_prog_AS"; then
8014   AS=$ac_cv_prog_AS
8015 fi
8016
8017 if test -n "$ac_cv_prog_AS"; then
8018   for ncn_progname in as; do
8019     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8020 set dummy ${ncn_progname}; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if test "${ac_cv_prog_AS+set}" = set; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$AS"; then
8027   ac_cv_prog_AS="$AS" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036     ac_cv_prog_AS="${ncn_progname}"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 AS=$ac_cv_prog_AS
8047 if test -n "$AS"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8049 $as_echo "$AS" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055
8056   done
8057 fi
8058
8059 for ncn_progname in as; do
8060   if test -n "$ncn_tool_prefix"; then
8061     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_AS+set}" = set; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   if test -n "$AS"; then
8069   ac_cv_prog_AS="$AS" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076     for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083   done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 AS=$ac_cv_prog_AS
8089 if test -n "$AS"; then
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8091 $as_echo "$AS" >&6; }
8092 else
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098   fi
8099   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8100     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101 set dummy ${ncn_progname}; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_AS+set}" = set; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   if test -n "$AS"; then
8108   ac_cv_prog_AS="$AS" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115     for ac_exec_ext in '' $ac_executable_extensions; do
8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117     ac_cv_prog_AS="${ncn_progname}"
8118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122   done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 AS=$ac_cv_prog_AS
8128 if test -n "$AS"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8130 $as_echo "$AS" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137   fi
8138   test -n "$ac_cv_prog_AS" && break
8139 done
8140
8141 if test -z "$ac_cv_prog_AS" ; then
8142   set dummy as
8143   if test $build = $host ; then
8144     AS="$2"
8145   else
8146     AS="${ncn_tool_prefix}$2"
8147   fi
8148 fi
8149
8150
8151
8152 if test -n "$DLLTOOL"; then
8153   ac_cv_prog_DLLTOOL=$DLLTOOL
8154 elif test -n "$ac_cv_prog_DLLTOOL"; then
8155   DLLTOOL=$ac_cv_prog_DLLTOOL
8156 fi
8157
8158 if test -n "$ac_cv_prog_DLLTOOL"; then
8159   for ncn_progname in dlltool; do
8160     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8161 set dummy ${ncn_progname}; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   if test -n "$DLLTOOL"; then
8168   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177     ac_cv_prog_DLLTOOL="${ncn_progname}"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 DLLTOOL=$ac_cv_prog_DLLTOOL
8188 if test -n "$DLLTOOL"; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8190 $as_echo "$DLLTOOL" >&6; }
8191 else
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197   done
8198 fi
8199
8200 for ncn_progname in dlltool; do
8201   if test -n "$ncn_tool_prefix"; then
8202     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8203 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   if test -n "$DLLTOOL"; then
8210   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215   IFS=$as_save_IFS
8216   test -z "$as_dir" && as_dir=.
8217     for ac_exec_ext in '' $ac_executable_extensions; do
8218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221     break 2
8222   fi
8223 done
8224   done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 DLLTOOL=$ac_cv_prog_DLLTOOL
8230 if test -n "$DLLTOOL"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8232 $as_echo "$DLLTOOL" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239   fi
8240   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8241     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8242 set dummy ${ncn_progname}; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   if test -n "$DLLTOOL"; then
8249   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258     ac_cv_prog_DLLTOOL="${ncn_progname}"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 DLLTOOL=$ac_cv_prog_DLLTOOL
8269 if test -n "$DLLTOOL"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8271 $as_echo "$DLLTOOL" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278   fi
8279   test -n "$ac_cv_prog_DLLTOOL" && break
8280 done
8281
8282 if test -z "$ac_cv_prog_DLLTOOL" ; then
8283   set dummy dlltool
8284   if test $build = $host ; then
8285     DLLTOOL="$2"
8286   else
8287     DLLTOOL="${ncn_tool_prefix}$2"
8288   fi
8289 fi
8290
8291
8292
8293 if test -n "$LD"; then
8294   ac_cv_prog_LD=$LD
8295 elif test -n "$ac_cv_prog_LD"; then
8296   LD=$ac_cv_prog_LD
8297 fi
8298
8299 if test -n "$ac_cv_prog_LD"; then
8300   for ncn_progname in ld; do
8301     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302 set dummy ${ncn_progname}; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_LD+set}" = set; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   if test -n "$LD"; then
8309   ac_cv_prog_LD="$LD" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318     ac_cv_prog_LD="${ncn_progname}"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 LD=$ac_cv_prog_LD
8329 if test -n "$LD"; then
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8331 $as_echo "$LD" >&6; }
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337
8338   done
8339 fi
8340
8341 for ncn_progname in ld; do
8342   if test -n "$ncn_tool_prefix"; then
8343     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_LD+set}" = set; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   if test -n "$LD"; then
8351   ac_cv_prog_LD="$LD" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356   IFS=$as_save_IFS
8357   test -z "$as_dir" && as_dir=.
8358     for ac_exec_ext in '' $ac_executable_extensions; do
8359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362     break 2
8363   fi
8364 done
8365   done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 LD=$ac_cv_prog_LD
8371 if test -n "$LD"; then
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8373 $as_echo "$LD" >&6; }
8374 else
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380   fi
8381   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8382     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8383 set dummy ${ncn_progname}; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_LD+set}" = set; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   if test -n "$LD"; then
8390   ac_cv_prog_LD="$LD" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395   IFS=$as_save_IFS
8396   test -z "$as_dir" && as_dir=.
8397     for ac_exec_ext in '' $ac_executable_extensions; do
8398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399     ac_cv_prog_LD="${ncn_progname}"
8400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401     break 2
8402   fi
8403 done
8404   done
8405 IFS=$as_save_IFS
8406
8407 fi
8408 fi
8409 LD=$ac_cv_prog_LD
8410 if test -n "$LD"; then
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8412 $as_echo "$LD" >&6; }
8413 else
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418
8419   fi
8420   test -n "$ac_cv_prog_LD" && break
8421 done
8422
8423 if test -z "$ac_cv_prog_LD" ; then
8424   set dummy ld
8425   if test $build = $host ; then
8426     LD="$2"
8427   else
8428     LD="${ncn_tool_prefix}$2"
8429   fi
8430 fi
8431
8432
8433
8434 if test -n "$LIPO"; then
8435   ac_cv_prog_LIPO=$LIPO
8436 elif test -n "$ac_cv_prog_LIPO"; then
8437   LIPO=$ac_cv_prog_LIPO
8438 fi
8439
8440 if test -n "$ac_cv_prog_LIPO"; then
8441   for ncn_progname in lipo; do
8442     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443 set dummy ${ncn_progname}; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_LIPO+set}" = set; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   if test -n "$LIPO"; then
8450   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455   IFS=$as_save_IFS
8456   test -z "$as_dir" && as_dir=.
8457     for ac_exec_ext in '' $ac_executable_extensions; do
8458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459     ac_cv_prog_LIPO="${ncn_progname}"
8460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461     break 2
8462   fi
8463 done
8464   done
8465 IFS=$as_save_IFS
8466
8467 fi
8468 fi
8469 LIPO=$ac_cv_prog_LIPO
8470 if test -n "$LIPO"; then
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8472 $as_echo "$LIPO" >&6; }
8473 else
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 fi
8477
8478
8479   done
8480 fi
8481
8482 for ncn_progname in lipo; do
8483   if test -n "$ncn_tool_prefix"; then
8484     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if test "${ac_cv_prog_LIPO+set}" = set; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   if test -n "$LIPO"; then
8492   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499     for ac_exec_ext in '' $ac_executable_extensions; do
8500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503     break 2
8504   fi
8505 done
8506   done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 LIPO=$ac_cv_prog_LIPO
8512 if test -n "$LIPO"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8514 $as_echo "$LIPO" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521   fi
8522   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8523     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_progname}; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_LIPO+set}" = set; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$LIPO"; then
8531   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538     for ac_exec_ext in '' $ac_executable_extensions; do
8539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540     ac_cv_prog_LIPO="${ncn_progname}"
8541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545   done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 LIPO=$ac_cv_prog_LIPO
8551 if test -n "$LIPO"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8553 $as_echo "$LIPO" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559
8560   fi
8561   test -n "$ac_cv_prog_LIPO" && break
8562 done
8563
8564 if test -z "$ac_cv_prog_LIPO" ; then
8565   set dummy lipo
8566   if test $build = $host ; then
8567     LIPO="$2"
8568   else
8569     LIPO="${ncn_tool_prefix}$2"
8570   fi
8571 fi
8572
8573
8574
8575 if test -n "$NM"; then
8576   ac_cv_prog_NM=$NM
8577 elif test -n "$ac_cv_prog_NM"; then
8578   NM=$ac_cv_prog_NM
8579 fi
8580
8581 if test -n "$ac_cv_prog_NM"; then
8582   for ncn_progname in nm; do
8583     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8584 set dummy ${ncn_progname}; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_prog_NM+set}" = set; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$NM"; then
8591   ac_cv_prog_NM="$NM" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600     ac_cv_prog_NM="${ncn_progname}"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 NM=$ac_cv_prog_NM
8611 if test -n "$NM"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8613 $as_echo "$NM" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620   done
8621 fi
8622
8623 for ncn_progname in nm; do
8624   if test -n "$ncn_tool_prefix"; then
8625     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_prog_NM+set}" = set; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   if test -n "$NM"; then
8633   ac_cv_prog_NM="$NM" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
8638   IFS=$as_save_IFS
8639   test -z "$as_dir" && as_dir=.
8640     for ac_exec_ext in '' $ac_executable_extensions; do
8641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644     break 2
8645   fi
8646 done
8647   done
8648 IFS=$as_save_IFS
8649
8650 fi
8651 fi
8652 NM=$ac_cv_prog_NM
8653 if test -n "$NM"; then
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8655 $as_echo "$NM" >&6; }
8656 else
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 fi
8660
8661
8662   fi
8663   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8664     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8665 set dummy ${ncn_progname}; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_NM+set}" = set; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   if test -n "$NM"; then
8672   ac_cv_prog_NM="$NM" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677   IFS=$as_save_IFS
8678   test -z "$as_dir" && as_dir=.
8679     for ac_exec_ext in '' $ac_executable_extensions; do
8680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681     ac_cv_prog_NM="${ncn_progname}"
8682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683     break 2
8684   fi
8685 done
8686   done
8687 IFS=$as_save_IFS
8688
8689 fi
8690 fi
8691 NM=$ac_cv_prog_NM
8692 if test -n "$NM"; then
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8694 $as_echo "$NM" >&6; }
8695 else
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701   fi
8702   test -n "$ac_cv_prog_NM" && break
8703 done
8704
8705 if test -z "$ac_cv_prog_NM" ; then
8706   set dummy nm
8707   if test $build = $host ; then
8708     NM="$2"
8709   else
8710     NM="${ncn_tool_prefix}$2"
8711   fi
8712 fi
8713
8714
8715
8716 if test -n "$RANLIB"; then
8717   ac_cv_prog_RANLIB=$RANLIB
8718 elif test -n "$ac_cv_prog_RANLIB"; then
8719   RANLIB=$ac_cv_prog_RANLIB
8720 fi
8721
8722 if test -n "$ac_cv_prog_RANLIB"; then
8723   for ncn_progname in ranlib; do
8724     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8725 set dummy ${ncn_progname}; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   if test -n "$RANLIB"; then
8732   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741     ac_cv_prog_RANLIB="${ncn_progname}"
8742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 RANLIB=$ac_cv_prog_RANLIB
8752 if test -n "$RANLIB"; then
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8754 $as_echo "$RANLIB" >&6; }
8755 else
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 fi
8759
8760
8761   done
8762 fi
8763
8764 for ncn_progname in ranlib; do
8765   if test -n "$ncn_tool_prefix"; then
8766     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   if test -n "$RANLIB"; then
8774   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781     for ac_exec_ext in '' $ac_executable_extensions; do
8782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788   done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 RANLIB=$ac_cv_prog_RANLIB
8794 if test -n "$RANLIB"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8796 $as_echo "$RANLIB" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803   fi
8804   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8805     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8806 set dummy ${ncn_progname}; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   if test -n "$RANLIB"; then
8813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818   IFS=$as_save_IFS
8819   test -z "$as_dir" && as_dir=.
8820     for ac_exec_ext in '' $ac_executable_extensions; do
8821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822     ac_cv_prog_RANLIB="${ncn_progname}"
8823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824     break 2
8825   fi
8826 done
8827   done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 RANLIB=$ac_cv_prog_RANLIB
8833 if test -n "$RANLIB"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8835 $as_echo "$RANLIB" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842   fi
8843   test -n "$ac_cv_prog_RANLIB" && break
8844 done
8845
8846 if test -z "$ac_cv_prog_RANLIB" ; then
8847   RANLIB="true"
8848 fi
8849
8850
8851
8852 if test -n "$STRIP"; then
8853   ac_cv_prog_STRIP=$STRIP
8854 elif test -n "$ac_cv_prog_STRIP"; then
8855   STRIP=$ac_cv_prog_STRIP
8856 fi
8857
8858 if test -n "$ac_cv_prog_STRIP"; then
8859   for ncn_progname in strip; do
8860     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_STRIP+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   if test -n "$STRIP"; then
8868   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873   IFS=$as_save_IFS
8874   test -z "$as_dir" && as_dir=.
8875     for ac_exec_ext in '' $ac_executable_extensions; do
8876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877     ac_cv_prog_STRIP="${ncn_progname}"
8878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879     break 2
8880   fi
8881 done
8882   done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 STRIP=$ac_cv_prog_STRIP
8888 if test -n "$STRIP"; then
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8890 $as_echo "$STRIP" >&6; }
8891 else
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897   done
8898 fi
8899
8900 for ncn_progname in strip; do
8901   if test -n "$ncn_tool_prefix"; then
8902     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_STRIP+set}" = set; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   if test -n "$STRIP"; then
8910   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915   IFS=$as_save_IFS
8916   test -z "$as_dir" && as_dir=.
8917     for ac_exec_ext in '' $ac_executable_extensions; do
8918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921     break 2
8922   fi
8923 done
8924   done
8925 IFS=$as_save_IFS
8926
8927 fi
8928 fi
8929 STRIP=$ac_cv_prog_STRIP
8930 if test -n "$STRIP"; then
8931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8932 $as_echo "$STRIP" >&6; }
8933 else
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939   fi
8940   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8941     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if test "${ac_cv_prog_STRIP+set}" = set; then :
8946   $as_echo_n "(cached) " >&6
8947 else
8948   if test -n "$STRIP"; then
8949   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954   IFS=$as_save_IFS
8955   test -z "$as_dir" && as_dir=.
8956     for ac_exec_ext in '' $ac_executable_extensions; do
8957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958     ac_cv_prog_STRIP="${ncn_progname}"
8959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960     break 2
8961   fi
8962 done
8963   done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 STRIP=$ac_cv_prog_STRIP
8969 if test -n "$STRIP"; then
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8971 $as_echo "$STRIP" >&6; }
8972 else
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977
8978   fi
8979   test -n "$ac_cv_prog_STRIP" && break
8980 done
8981
8982 if test -z "$ac_cv_prog_STRIP" ; then
8983   STRIP="true"
8984 fi
8985
8986
8987
8988 if test -n "$WINDRES"; then
8989   ac_cv_prog_WINDRES=$WINDRES
8990 elif test -n "$ac_cv_prog_WINDRES"; then
8991   WINDRES=$ac_cv_prog_WINDRES
8992 fi
8993
8994 if test -n "$ac_cv_prog_WINDRES"; then
8995   for ncn_progname in windres; do
8996     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8997 set dummy ${ncn_progname}; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   if test -n "$WINDRES"; then
9004   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9005 else
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009   IFS=$as_save_IFS
9010   test -z "$as_dir" && as_dir=.
9011     for ac_exec_ext in '' $ac_executable_extensions; do
9012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9013     ac_cv_prog_WINDRES="${ncn_progname}"
9014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015     break 2
9016   fi
9017 done
9018   done
9019 IFS=$as_save_IFS
9020
9021 fi
9022 fi
9023 WINDRES=$ac_cv_prog_WINDRES
9024 if test -n "$WINDRES"; then
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9026 $as_echo "$WINDRES" >&6; }
9027 else
9028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9030 fi
9031
9032
9033   done
9034 fi
9035
9036 for ncn_progname in windres; do
9037   if test -n "$ncn_tool_prefix"; then
9038     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9039 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   if test -n "$WINDRES"; then
9046   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051   IFS=$as_save_IFS
9052   test -z "$as_dir" && as_dir=.
9053     for ac_exec_ext in '' $ac_executable_extensions; do
9054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057     break 2
9058   fi
9059 done
9060   done
9061 IFS=$as_save_IFS
9062
9063 fi
9064 fi
9065 WINDRES=$ac_cv_prog_WINDRES
9066 if test -n "$WINDRES"; then
9067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9068 $as_echo "$WINDRES" >&6; }
9069 else
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072 fi
9073
9074
9075   fi
9076   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9077     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9078 set dummy ${ncn_progname}; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9082   $as_echo_n "(cached) " >&6
9083 else
9084   if test -n "$WINDRES"; then
9085   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092     for ac_exec_ext in '' $ac_executable_extensions; do
9093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094     ac_cv_prog_WINDRES="${ncn_progname}"
9095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099   done
9100 IFS=$as_save_IFS
9101
9102 fi
9103 fi
9104 WINDRES=$ac_cv_prog_WINDRES
9105 if test -n "$WINDRES"; then
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9107 $as_echo "$WINDRES" >&6; }
9108 else
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112
9113
9114   fi
9115   test -n "$ac_cv_prog_WINDRES" && break
9116 done
9117
9118 if test -z "$ac_cv_prog_WINDRES" ; then
9119   set dummy windres
9120   if test $build = $host ; then
9121     WINDRES="$2"
9122   else
9123     WINDRES="${ncn_tool_prefix}$2"
9124   fi
9125 fi
9126
9127
9128
9129 if test -n "$WINDMC"; then
9130   ac_cv_prog_WINDMC=$WINDMC
9131 elif test -n "$ac_cv_prog_WINDMC"; then
9132   WINDMC=$ac_cv_prog_WINDMC
9133 fi
9134
9135 if test -n "$ac_cv_prog_WINDMC"; then
9136   for ncn_progname in windmc; do
9137     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138 set dummy ${ncn_progname}; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   if test -n "$WINDMC"; then
9145   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9146 else
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150   IFS=$as_save_IFS
9151   test -z "$as_dir" && as_dir=.
9152     for ac_exec_ext in '' $ac_executable_extensions; do
9153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154     ac_cv_prog_WINDMC="${ncn_progname}"
9155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156     break 2
9157   fi
9158 done
9159   done
9160 IFS=$as_save_IFS
9161
9162 fi
9163 fi
9164 WINDMC=$ac_cv_prog_WINDMC
9165 if test -n "$WINDMC"; then
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9167 $as_echo "$WINDMC" >&6; }
9168 else
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171 fi
9172
9173
9174   done
9175 fi
9176
9177 for ncn_progname in windmc; do
9178   if test -n "$ncn_tool_prefix"; then
9179     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9180 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9184   $as_echo_n "(cached) " >&6
9185 else
9186   if test -n "$WINDMC"; then
9187   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9188 else
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 for as_dir in $PATH
9191 do
9192   IFS=$as_save_IFS
9193   test -z "$as_dir" && as_dir=.
9194     for ac_exec_ext in '' $ac_executable_extensions; do
9195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9196     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198     break 2
9199   fi
9200 done
9201   done
9202 IFS=$as_save_IFS
9203
9204 fi
9205 fi
9206 WINDMC=$ac_cv_prog_WINDMC
9207 if test -n "$WINDMC"; then
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9209 $as_echo "$WINDMC" >&6; }
9210 else
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 fi
9214
9215
9216   fi
9217   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9218     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9219 set dummy ${ncn_progname}; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   if test -n "$WINDMC"; then
9226   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233     for ac_exec_ext in '' $ac_executable_extensions; do
9234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235     ac_cv_prog_WINDMC="${ncn_progname}"
9236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240   done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 WINDMC=$ac_cv_prog_WINDMC
9246 if test -n "$WINDMC"; then
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9248 $as_echo "$WINDMC" >&6; }
9249 else
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254
9255   fi
9256   test -n "$ac_cv_prog_WINDMC" && break
9257 done
9258
9259 if test -z "$ac_cv_prog_WINDMC" ; then
9260   set dummy windmc
9261   if test $build = $host ; then
9262     WINDMC="$2"
9263   else
9264     WINDMC="${ncn_tool_prefix}$2"
9265   fi
9266 fi
9267
9268
9269
9270 if test -n "$OBJCOPY"; then
9271   ac_cv_prog_OBJCOPY=$OBJCOPY
9272 elif test -n "$ac_cv_prog_OBJCOPY"; then
9273   OBJCOPY=$ac_cv_prog_OBJCOPY
9274 fi
9275
9276 if test -n "$ac_cv_prog_OBJCOPY"; then
9277   for ncn_progname in objcopy; do
9278     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9279 set dummy ${ncn_progname}; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9283   $as_echo_n "(cached) " >&6
9284 else
9285   if test -n "$OBJCOPY"; then
9286   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9290 do
9291   IFS=$as_save_IFS
9292   test -z "$as_dir" && as_dir=.
9293     for ac_exec_ext in '' $ac_executable_extensions; do
9294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295     ac_cv_prog_OBJCOPY="${ncn_progname}"
9296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297     break 2
9298   fi
9299 done
9300   done
9301 IFS=$as_save_IFS
9302
9303 fi
9304 fi
9305 OBJCOPY=$ac_cv_prog_OBJCOPY
9306 if test -n "$OBJCOPY"; then
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9308 $as_echo "$OBJCOPY" >&6; }
9309 else
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9312 fi
9313
9314
9315   done
9316 fi
9317
9318 for ncn_progname in objcopy; do
9319   if test -n "$ncn_tool_prefix"; then
9320     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9321 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   if test -n "$OBJCOPY"; then
9328   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333   IFS=$as_save_IFS
9334   test -z "$as_dir" && as_dir=.
9335     for ac_exec_ext in '' $ac_executable_extensions; do
9336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339     break 2
9340   fi
9341 done
9342   done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 OBJCOPY=$ac_cv_prog_OBJCOPY
9348 if test -n "$OBJCOPY"; then
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9350 $as_echo "$OBJCOPY" >&6; }
9351 else
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357   fi
9358   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9359     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9360 set dummy ${ncn_progname}; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9364   $as_echo_n "(cached) " >&6
9365 else
9366   if test -n "$OBJCOPY"; then
9367   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9368 else
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9371 do
9372   IFS=$as_save_IFS
9373   test -z "$as_dir" && as_dir=.
9374     for ac_exec_ext in '' $ac_executable_extensions; do
9375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376     ac_cv_prog_OBJCOPY="${ncn_progname}"
9377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378     break 2
9379   fi
9380 done
9381   done
9382 IFS=$as_save_IFS
9383
9384 fi
9385 fi
9386 OBJCOPY=$ac_cv_prog_OBJCOPY
9387 if test -n "$OBJCOPY"; then
9388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9389 $as_echo "$OBJCOPY" >&6; }
9390 else
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9393 fi
9394
9395
9396   fi
9397   test -n "$ac_cv_prog_OBJCOPY" && break
9398 done
9399
9400 if test -z "$ac_cv_prog_OBJCOPY" ; then
9401   set dummy objcopy
9402   if test $build = $host ; then
9403     OBJCOPY="$2"
9404   else
9405     OBJCOPY="${ncn_tool_prefix}$2"
9406   fi
9407 fi
9408
9409
9410
9411 if test -n "$OBJDUMP"; then
9412   ac_cv_prog_OBJDUMP=$OBJDUMP
9413 elif test -n "$ac_cv_prog_OBJDUMP"; then
9414   OBJDUMP=$ac_cv_prog_OBJDUMP
9415 fi
9416
9417 if test -n "$ac_cv_prog_OBJDUMP"; then
9418   for ncn_progname in objdump; do
9419     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420 set dummy ${ncn_progname}; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   if test -n "$OBJDUMP"; then
9427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9428 else
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $PATH
9431 do
9432   IFS=$as_save_IFS
9433   test -z "$as_dir" && as_dir=.
9434     for ac_exec_ext in '' $ac_executable_extensions; do
9435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9436     ac_cv_prog_OBJDUMP="${ncn_progname}"
9437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438     break 2
9439   fi
9440 done
9441   done
9442 IFS=$as_save_IFS
9443
9444 fi
9445 fi
9446 OBJDUMP=$ac_cv_prog_OBJDUMP
9447 if test -n "$OBJDUMP"; then
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9449 $as_echo "$OBJDUMP" >&6; }
9450 else
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9453 fi
9454
9455
9456   done
9457 fi
9458
9459 for ncn_progname in objdump; do
9460   if test -n "$ncn_tool_prefix"; then
9461     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   if test -n "$OBJDUMP"; then
9469   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474   IFS=$as_save_IFS
9475   test -z "$as_dir" && as_dir=.
9476     for ac_exec_ext in '' $ac_executable_extensions; do
9477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480     break 2
9481   fi
9482 done
9483   done
9484 IFS=$as_save_IFS
9485
9486 fi
9487 fi
9488 OBJDUMP=$ac_cv_prog_OBJDUMP
9489 if test -n "$OBJDUMP"; then
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9491 $as_echo "$OBJDUMP" >&6; }
9492 else
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497
9498   fi
9499   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9500     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9501 set dummy ${ncn_progname}; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   if test -n "$OBJDUMP"; then
9508   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9509 else
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in $PATH
9512 do
9513   IFS=$as_save_IFS
9514   test -z "$as_dir" && as_dir=.
9515     for ac_exec_ext in '' $ac_executable_extensions; do
9516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517     ac_cv_prog_OBJDUMP="${ncn_progname}"
9518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9519     break 2
9520   fi
9521 done
9522   done
9523 IFS=$as_save_IFS
9524
9525 fi
9526 fi
9527 OBJDUMP=$ac_cv_prog_OBJDUMP
9528 if test -n "$OBJDUMP"; then
9529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9530 $as_echo "$OBJDUMP" >&6; }
9531 else
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9534 fi
9535
9536
9537   fi
9538   test -n "$ac_cv_prog_OBJDUMP" && break
9539 done
9540
9541 if test -z "$ac_cv_prog_OBJDUMP" ; then
9542   set dummy objdump
9543   if test $build = $host ; then
9544     OBJDUMP="$2"
9545   else
9546     OBJDUMP="${ncn_tool_prefix}$2"
9547   fi
9548 fi
9549
9550
9551
9552
9553
9554
9555 # Target tools.
9556
9557 # Check whether --with-build-time-tools was given.
9558 if test "${with_build_time_tools+set}" = set; then :
9559   withval=$with_build_time_tools; case x"$withval" in
9560      x/*) ;;
9561      *)
9562        with_build_time_tools=
9563        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9564 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9565        ;;
9566    esac
9567 else
9568   with_build_time_tools=
9569 fi
9570
9571
9572
9573
9574 if test -n "$CC_FOR_TARGET"; then
9575   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9576 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9577   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9578 fi
9579
9580 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9581   for ncn_progname in cc gcc; do
9582     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9583 set dummy ${ncn_progname}; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   if test -n "$CC_FOR_TARGET"; then
9590   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595   IFS=$as_save_IFS
9596   test -z "$as_dir" && as_dir=.
9597     for ac_exec_ext in '' $ac_executable_extensions; do
9598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601     break 2
9602   fi
9603 done
9604   done
9605 IFS=$as_save_IFS
9606
9607 fi
9608 fi
9609 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9610 if test -n "$CC_FOR_TARGET"; then
9611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9612 $as_echo "$CC_FOR_TARGET" >&6; }
9613 else
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618
9619   done
9620 fi
9621
9622 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9623   for ncn_progname in cc gcc; do
9624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9625 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9626     if test -x $with_build_time_tools/${ncn_progname}; then
9627       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9629 $as_echo "yes" >&6; }
9630       break
9631     else
9632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634     fi
9635   done
9636 fi
9637
9638 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9639   for ncn_progname in cc gcc; do
9640     if test -n "$ncn_target_tool_prefix"; then
9641       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   if test -n "$CC_FOR_TARGET"; then
9649   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654   IFS=$as_save_IFS
9655   test -z "$as_dir" && as_dir=.
9656     for ac_exec_ext in '' $ac_executable_extensions; do
9657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660     break 2
9661   fi
9662 done
9663   done
9664 IFS=$as_save_IFS
9665
9666 fi
9667 fi
9668 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9669 if test -n "$CC_FOR_TARGET"; then
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9671 $as_echo "$CC_FOR_TARGET" >&6; }
9672 else
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678     fi
9679     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9680       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9681 set dummy ${ncn_progname}; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9685   $as_echo_n "(cached) " >&6
9686 else
9687   if test -n "$CC_FOR_TARGET"; then
9688   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9689 else
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in $PATH
9692 do
9693   IFS=$as_save_IFS
9694   test -z "$as_dir" && as_dir=.
9695     for ac_exec_ext in '' $ac_executable_extensions; do
9696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699     break 2
9700   fi
9701 done
9702   done
9703 IFS=$as_save_IFS
9704
9705 fi
9706 fi
9707 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9708 if test -n "$CC_FOR_TARGET"; then
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9710 $as_echo "$CC_FOR_TARGET" >&6; }
9711 else
9712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 fi
9715
9716
9717     fi
9718     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9719   done
9720 fi
9721
9722 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9723   set dummy cc gcc
9724   if test $build = $target ; then
9725     CC_FOR_TARGET="$2"
9726   else
9727     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9728   fi
9729 else
9730   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9731 fi
9732
9733
9734
9735 if test -n "$CXX_FOR_TARGET"; then
9736   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9737 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9738   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9739 fi
9740
9741 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9742   for ncn_progname in c++ g++ cxx gxx; do
9743     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_progname}; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9748   $as_echo_n "(cached) " >&6
9749 else
9750   if test -n "$CXX_FOR_TARGET"; then
9751   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756   IFS=$as_save_IFS
9757   test -z "$as_dir" && as_dir=.
9758     for ac_exec_ext in '' $ac_executable_extensions; do
9759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762     break 2
9763   fi
9764 done
9765   done
9766 IFS=$as_save_IFS
9767
9768 fi
9769 fi
9770 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9771 if test -n "$CXX_FOR_TARGET"; then
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9773 $as_echo "$CXX_FOR_TARGET" >&6; }
9774 else
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778
9779
9780   done
9781 fi
9782
9783 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9784   for ncn_progname in c++ g++ cxx gxx; do
9785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9787     if test -x $with_build_time_tools/${ncn_progname}; then
9788       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790 $as_echo "yes" >&6; }
9791       break
9792     else
9793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795     fi
9796   done
9797 fi
9798
9799 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9800   for ncn_progname in c++ g++ cxx gxx; do
9801     if test -n "$ncn_target_tool_prefix"; then
9802       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9807   $as_echo_n "(cached) " >&6
9808 else
9809   if test -n "$CXX_FOR_TARGET"; then
9810   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817     for ac_exec_ext in '' $ac_executable_extensions; do
9818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821     break 2
9822   fi
9823 done
9824   done
9825 IFS=$as_save_IFS
9826
9827 fi
9828 fi
9829 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9830 if test -n "$CXX_FOR_TARGET"; then
9831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9832 $as_echo "$CXX_FOR_TARGET" >&6; }
9833 else
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9836 fi
9837
9838
9839     fi
9840     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9841       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9842 set dummy ${ncn_progname}; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9846   $as_echo_n "(cached) " >&6
9847 else
9848   if test -n "$CXX_FOR_TARGET"; then
9849   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9850 else
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9853 do
9854   IFS=$as_save_IFS
9855   test -z "$as_dir" && as_dir=.
9856     for ac_exec_ext in '' $ac_executable_extensions; do
9857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860     break 2
9861   fi
9862 done
9863   done
9864 IFS=$as_save_IFS
9865
9866 fi
9867 fi
9868 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9869 if test -n "$CXX_FOR_TARGET"; then
9870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9871 $as_echo "$CXX_FOR_TARGET" >&6; }
9872 else
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9875 fi
9876
9877
9878     fi
9879     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9880   done
9881 fi
9882
9883 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9884   set dummy c++ g++ cxx gxx
9885   if test $build = $target ; then
9886     CXX_FOR_TARGET="$2"
9887   else
9888     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9889   fi
9890 else
9891   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9892 fi
9893
9894
9895
9896 if test -n "$GCC_FOR_TARGET"; then
9897   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9898 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9899   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9900 fi
9901
9902 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9903   for ncn_progname in gcc; do
9904     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_progname}; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   if test -n "$GCC_FOR_TARGET"; then
9912   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9916 do
9917   IFS=$as_save_IFS
9918   test -z "$as_dir" && as_dir=.
9919     for ac_exec_ext in '' $ac_executable_extensions; do
9920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923     break 2
9924   fi
9925 done
9926   done
9927 IFS=$as_save_IFS
9928
9929 fi
9930 fi
9931 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9932 if test -n "$GCC_FOR_TARGET"; then
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9934 $as_echo "$GCC_FOR_TARGET" >&6; }
9935 else
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938 fi
9939
9940
9941   done
9942 fi
9943
9944 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9945   for ncn_progname in gcc; do
9946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9948     if test -x $with_build_time_tools/${ncn_progname}; then
9949       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9952       break
9953     else
9954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956     fi
9957   done
9958 fi
9959
9960 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9961   for ncn_progname in gcc; do
9962     if test -n "$ncn_target_tool_prefix"; then
9963       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9964 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   if test -n "$GCC_FOR_TARGET"; then
9971   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982     break 2
9983   fi
9984 done
9985   done
9986 IFS=$as_save_IFS
9987
9988 fi
9989 fi
9990 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9991 if test -n "$GCC_FOR_TARGET"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9993 $as_echo "$GCC_FOR_TARGET" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999
10000     fi
10001     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10002       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10003 set dummy ${ncn_progname}; ac_word=$2
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 $as_echo_n "checking for $ac_word... " >&6; }
10006 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10007   $as_echo_n "(cached) " >&6
10008 else
10009   if test -n "$GCC_FOR_TARGET"; then
10010   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10011 else
10012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10014 do
10015   IFS=$as_save_IFS
10016   test -z "$as_dir" && as_dir=.
10017     for ac_exec_ext in '' $ac_executable_extensions; do
10018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10019     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021     break 2
10022   fi
10023 done
10024   done
10025 IFS=$as_save_IFS
10026
10027 fi
10028 fi
10029 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10030 if test -n "$GCC_FOR_TARGET"; then
10031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10032 $as_echo "$GCC_FOR_TARGET" >&6; }
10033 else
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10036 fi
10037
10038
10039     fi
10040     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10041   done
10042 fi
10043
10044 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10045   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10046 else
10047   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10048 fi
10049
10050
10051
10052 if test -n "$GCJ_FOR_TARGET"; then
10053   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10054 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10055   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10056 fi
10057
10058 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10059   for ncn_progname in gcj; do
10060     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10061 set dummy ${ncn_progname}; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   if test -n "$GCJ_FOR_TARGET"; then
10068   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done
10083 IFS=$as_save_IFS
10084
10085 fi
10086 fi
10087 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10088 if test -n "$GCJ_FOR_TARGET"; then
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10090 $as_echo "$GCJ_FOR_TARGET" >&6; }
10091 else
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10094 fi
10095
10096
10097   done
10098 fi
10099
10100 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10101   for ncn_progname in gcj; do
10102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10104     if test -x $with_build_time_tools/${ncn_progname}; then
10105       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10107 $as_echo "yes" >&6; }
10108       break
10109     else
10110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112     fi
10113   done
10114 fi
10115
10116 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10117   for ncn_progname in gcj; do
10118     if test -n "$ncn_target_tool_prefix"; then
10119       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   if test -n "$GCJ_FOR_TARGET"; then
10127   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132   IFS=$as_save_IFS
10133   test -z "$as_dir" && as_dir=.
10134     for ac_exec_ext in '' $ac_executable_extensions; do
10135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138     break 2
10139   fi
10140 done
10141   done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10147 if test -n "$GCJ_FOR_TARGET"; then
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10149 $as_echo "$GCJ_FOR_TARGET" >&6; }
10150 else
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155
10156     fi
10157     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10158       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10159 set dummy ${ncn_progname}; ac_word=$2
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161 $as_echo_n "checking for $ac_word... " >&6; }
10162 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   if test -n "$GCJ_FOR_TARGET"; then
10166   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10167 else
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10170 do
10171   IFS=$as_save_IFS
10172   test -z "$as_dir" && as_dir=.
10173     for ac_exec_ext in '' $ac_executable_extensions; do
10174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10175     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177     break 2
10178   fi
10179 done
10180   done
10181 IFS=$as_save_IFS
10182
10183 fi
10184 fi
10185 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10186 if test -n "$GCJ_FOR_TARGET"; then
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10188 $as_echo "$GCJ_FOR_TARGET" >&6; }
10189 else
10190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10192 fi
10193
10194
10195     fi
10196     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10197   done
10198 fi
10199
10200 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10201   set dummy gcj
10202   if test $build = $target ; then
10203     GCJ_FOR_TARGET="$2"
10204   else
10205     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10206   fi
10207 else
10208   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10209 fi
10210
10211
10212
10213 if test -n "$GFORTRAN_FOR_TARGET"; then
10214   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10215 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10216   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10217 fi
10218
10219 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10220   for ncn_progname in gfortran; do
10221     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10222 set dummy ${ncn_progname}; ac_word=$2
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224 $as_echo_n "checking for $ac_word... " >&6; }
10225 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   if test -n "$GFORTRAN_FOR_TARGET"; then
10229   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10230 else
10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10233 do
10234   IFS=$as_save_IFS
10235   test -z "$as_dir" && as_dir=.
10236     for ac_exec_ext in '' $ac_executable_extensions; do
10237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10238     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240     break 2
10241   fi
10242 done
10243   done
10244 IFS=$as_save_IFS
10245
10246 fi
10247 fi
10248 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10249 if test -n "$GFORTRAN_FOR_TARGET"; then
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10251 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10252 else
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256
10257
10258   done
10259 fi
10260
10261 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10262   for ncn_progname in gfortran; do
10263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10264 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10265     if test -x $with_build_time_tools/${ncn_progname}; then
10266       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10268 $as_echo "yes" >&6; }
10269       break
10270     else
10271       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10273     fi
10274   done
10275 fi
10276
10277 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10278   for ncn_progname in gfortran; do
10279     if test -n "$ncn_target_tool_prefix"; then
10280       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10281 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   if test -n "$GFORTRAN_FOR_TARGET"; then
10288   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10289 else
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10292 do
10293   IFS=$as_save_IFS
10294   test -z "$as_dir" && as_dir=.
10295     for ac_exec_ext in '' $ac_executable_extensions; do
10296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299     break 2
10300   fi
10301 done
10302   done
10303 IFS=$as_save_IFS
10304
10305 fi
10306 fi
10307 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10308 if test -n "$GFORTRAN_FOR_TARGET"; then
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10310 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315
10316
10317     fi
10318     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10319       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10320 set dummy ${ncn_progname}; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   if test -n "$GFORTRAN_FOR_TARGET"; then
10327   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332   IFS=$as_save_IFS
10333   test -z "$as_dir" && as_dir=.
10334     for ac_exec_ext in '' $ac_executable_extensions; do
10335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338     break 2
10339   fi
10340 done
10341   done
10342 IFS=$as_save_IFS
10343
10344 fi
10345 fi
10346 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10347 if test -n "$GFORTRAN_FOR_TARGET"; then
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10349 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10350 else
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354
10355
10356     fi
10357     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10358   done
10359 fi
10360
10361 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10362   set dummy gfortran
10363   if test $build = $target ; then
10364     GFORTRAN_FOR_TARGET="$2"
10365   else
10366     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10367   fi
10368 else
10369   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10370 fi
10371
10372
10373
10374 cat > conftest.c << \EOF
10375 #ifdef __GNUC__
10376   gcc_yay;
10377 #endif
10378 EOF
10379 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10380   have_gcc_for_target=yes
10381 else
10382   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10383   have_gcc_for_target=no
10384 fi
10385 rm conftest.c
10386
10387
10388
10389
10390 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10391   if test -n "$with_build_time_tools"; then
10392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10393 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10394     if test -x $with_build_time_tools/ar; then
10395       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10396       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10398 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10399     else
10400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10402     fi
10403   elif test $build != $host && test $have_gcc_for_target = yes; then
10404     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10405     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10406     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10407   fi
10408 fi
10409 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10410   # Extract the first word of "ar", so it can be a program name with args.
10411 set dummy ar; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   case $AR_FOR_TARGET in
10418   [\\/]* | ?:[\\/]*)
10419   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10420   ;;
10421   *)
10422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $gcc_cv_tool_dirs
10424 do
10425   IFS=$as_save_IFS
10426   test -z "$as_dir" && as_dir=.
10427     for ac_exec_ext in '' $ac_executable_extensions; do
10428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431     break 2
10432   fi
10433 done
10434   done
10435 IFS=$as_save_IFS
10436
10437   ;;
10438 esac
10439 fi
10440 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10441 if test -n "$AR_FOR_TARGET"; then
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10443 $as_echo "$AR_FOR_TARGET" >&6; }
10444 else
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10447 fi
10448
10449
10450 fi
10451 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10452
10453
10454 if test -n "$AR_FOR_TARGET"; then
10455   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10456 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10457   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10458 fi
10459
10460 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10461   for ncn_progname in ar; do
10462     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   if test -n "$AR_FOR_TARGET"; then
10470   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475   IFS=$as_save_IFS
10476   test -z "$as_dir" && as_dir=.
10477     for ac_exec_ext in '' $ac_executable_extensions; do
10478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481     break 2
10482   fi
10483 done
10484   done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10490 if test -n "$AR_FOR_TARGET"; then
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10492 $as_echo "$AR_FOR_TARGET" >&6; }
10493 else
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499   done
10500 fi
10501
10502 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10503   for ncn_progname in ar; do
10504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10506     if test -x $with_build_time_tools/${ncn_progname}; then
10507       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; }
10510       break
10511     else
10512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514     fi
10515   done
10516 fi
10517
10518 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10519   for ncn_progname in ar; do
10520     if test -n "$ncn_target_tool_prefix"; then
10521       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   if test -n "$AR_FOR_TARGET"; then
10529   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534   IFS=$as_save_IFS
10535   test -z "$as_dir" && as_dir=.
10536     for ac_exec_ext in '' $ac_executable_extensions; do
10537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540     break 2
10541   fi
10542 done
10543   done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10549 if test -n "$AR_FOR_TARGET"; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10551 $as_echo "$AR_FOR_TARGET" >&6; }
10552 else
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558     fi
10559     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10560       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10561 set dummy ${ncn_progname}; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   if test -n "$AR_FOR_TARGET"; then
10568   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573   IFS=$as_save_IFS
10574   test -z "$as_dir" && as_dir=.
10575     for ac_exec_ext in '' $ac_executable_extensions; do
10576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579     break 2
10580   fi
10581 done
10582   done
10583 IFS=$as_save_IFS
10584
10585 fi
10586 fi
10587 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10588 if test -n "$AR_FOR_TARGET"; then
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10590 $as_echo "$AR_FOR_TARGET" >&6; }
10591 else
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595
10596
10597     fi
10598     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10599   done
10600 fi
10601
10602 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10603   set dummy ar
10604   if test $build = $target ; then
10605     AR_FOR_TARGET="$2"
10606   else
10607     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10608   fi
10609 else
10610   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10611 fi
10612
10613 else
10614   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10615 fi
10616
10617
10618
10619
10620 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10621   if test -n "$with_build_time_tools"; then
10622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10623 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10624     if test -x $with_build_time_tools/as; then
10625       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10626       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10628 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10629     else
10630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632     fi
10633   elif test $build != $host && test $have_gcc_for_target = yes; then
10634     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10635     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10636     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10637   fi
10638 fi
10639 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10640   # Extract the first word of "as", so it can be a program name with args.
10641 set dummy as; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10645   $as_echo_n "(cached) " >&6
10646 else
10647   case $AS_FOR_TARGET in
10648   [\\/]* | ?:[\\/]*)
10649   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10650   ;;
10651   *)
10652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $gcc_cv_tool_dirs
10654 do
10655   IFS=$as_save_IFS
10656   test -z "$as_dir" && as_dir=.
10657     for ac_exec_ext in '' $ac_executable_extensions; do
10658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10659     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661     break 2
10662   fi
10663 done
10664   done
10665 IFS=$as_save_IFS
10666
10667   ;;
10668 esac
10669 fi
10670 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10671 if test -n "$AS_FOR_TARGET"; then
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10673 $as_echo "$AS_FOR_TARGET" >&6; }
10674 else
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10677 fi
10678
10679
10680 fi
10681 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10682
10683
10684 if test -n "$AS_FOR_TARGET"; then
10685   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10686 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10687   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10688 fi
10689
10690 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10691   for ncn_progname in as; do
10692     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   if test -n "$AS_FOR_TARGET"; then
10700   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705   IFS=$as_save_IFS
10706   test -z "$as_dir" && as_dir=.
10707     for ac_exec_ext in '' $ac_executable_extensions; do
10708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711     break 2
10712   fi
10713 done
10714   done
10715 IFS=$as_save_IFS
10716
10717 fi
10718 fi
10719 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10720 if test -n "$AS_FOR_TARGET"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10722 $as_echo "$AS_FOR_TARGET" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727
10728
10729   done
10730 fi
10731
10732 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10733   for ncn_progname in as; do
10734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10735 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10736     if test -x $with_build_time_tools/${ncn_progname}; then
10737       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10739 $as_echo "yes" >&6; }
10740       break
10741     else
10742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744     fi
10745   done
10746 fi
10747
10748 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10749   for ncn_progname in as; do
10750     if test -n "$ncn_target_tool_prefix"; then
10751       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   if test -n "$AS_FOR_TARGET"; then
10759   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10763 do
10764   IFS=$as_save_IFS
10765   test -z "$as_dir" && as_dir=.
10766     for ac_exec_ext in '' $ac_executable_extensions; do
10767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770     break 2
10771   fi
10772 done
10773   done
10774 IFS=$as_save_IFS
10775
10776 fi
10777 fi
10778 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10779 if test -n "$AS_FOR_TARGET"; then
10780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10781 $as_echo "$AS_FOR_TARGET" >&6; }
10782 else
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10785 fi
10786
10787
10788     fi
10789     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10790       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   if test -n "$AS_FOR_TARGET"; then
10798   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805     for ac_exec_ext in '' $ac_executable_extensions; do
10806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812   done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10818 if test -n "$AS_FOR_TARGET"; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10820 $as_echo "$AS_FOR_TARGET" >&6; }
10821 else
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 fi
10825
10826
10827     fi
10828     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10829   done
10830 fi
10831
10832 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10833   set dummy as
10834   if test $build = $target ; then
10835     AS_FOR_TARGET="$2"
10836   else
10837     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10838   fi
10839 else
10840   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10841 fi
10842
10843 else
10844   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10845 fi
10846
10847
10848
10849
10850 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10851   if test -n "$with_build_time_tools"; then
10852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10853 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10854     if test -x $with_build_time_tools/dlltool; then
10855       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10856       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10858 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10859     else
10860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862     fi
10863   elif test $build != $host && test $have_gcc_for_target = yes; then
10864     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10865     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10866     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10867   fi
10868 fi
10869 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10870   # Extract the first word of "dlltool", so it can be a program name with args.
10871 set dummy dlltool; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877   case $DLLTOOL_FOR_TARGET in
10878   [\\/]* | ?:[\\/]*)
10879   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10880   ;;
10881   *)
10882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $gcc_cv_tool_dirs
10884 do
10885   IFS=$as_save_IFS
10886   test -z "$as_dir" && as_dir=.
10887     for ac_exec_ext in '' $ac_executable_extensions; do
10888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891     break 2
10892   fi
10893 done
10894   done
10895 IFS=$as_save_IFS
10896
10897   ;;
10898 esac
10899 fi
10900 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10901 if test -n "$DLLTOOL_FOR_TARGET"; then
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10903 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10904 else
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10907 fi
10908
10909
10910 fi
10911 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10912
10913
10914 if test -n "$DLLTOOL_FOR_TARGET"; then
10915   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10916 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10917   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10918 fi
10919
10920 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10921   for ncn_progname in dlltool; do
10922     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   if test -n "$DLLTOOL_FOR_TARGET"; then
10930   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935   IFS=$as_save_IFS
10936   test -z "$as_dir" && as_dir=.
10937     for ac_exec_ext in '' $ac_executable_extensions; do
10938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941     break 2
10942   fi
10943 done
10944   done
10945 IFS=$as_save_IFS
10946
10947 fi
10948 fi
10949 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10950 if test -n "$DLLTOOL_FOR_TARGET"; then
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10952 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959   done
10960 fi
10961
10962 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10963   for ncn_progname in dlltool; do
10964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10966     if test -x $with_build_time_tools/${ncn_progname}; then
10967       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10969 $as_echo "yes" >&6; }
10970       break
10971     else
10972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10974     fi
10975   done
10976 fi
10977
10978 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10979   for ncn_progname in dlltool; do
10980     if test -n "$ncn_target_tool_prefix"; then
10981       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10986   $as_echo_n "(cached) " >&6
10987 else
10988   if test -n "$DLLTOOL_FOR_TARGET"; then
10989   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10990 else
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994   IFS=$as_save_IFS
10995   test -z "$as_dir" && as_dir=.
10996     for ac_exec_ext in '' $ac_executable_extensions; do
10997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000     break 2
11001   fi
11002 done
11003   done
11004 IFS=$as_save_IFS
11005
11006 fi
11007 fi
11008 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11009 if test -n "$DLLTOOL_FOR_TARGET"; then
11010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11011 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11012 else
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11015 fi
11016
11017
11018     fi
11019     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11020       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11021 set dummy ${ncn_progname}; ac_word=$2
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023 $as_echo_n "checking for $ac_word... " >&6; }
11024 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027   if test -n "$DLLTOOL_FOR_TARGET"; then
11028   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11029 else
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031 for as_dir in $PATH
11032 do
11033   IFS=$as_save_IFS
11034   test -z "$as_dir" && as_dir=.
11035     for ac_exec_ext in '' $ac_executable_extensions; do
11036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11037     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039     break 2
11040   fi
11041 done
11042   done
11043 IFS=$as_save_IFS
11044
11045 fi
11046 fi
11047 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11048 if test -n "$DLLTOOL_FOR_TARGET"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11050 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055
11056
11057     fi
11058     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11059   done
11060 fi
11061
11062 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11063   set dummy dlltool
11064   if test $build = $target ; then
11065     DLLTOOL_FOR_TARGET="$2"
11066   else
11067     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11068   fi
11069 else
11070   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11071 fi
11072
11073 else
11074   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11075 fi
11076
11077
11078
11079
11080 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11081   if test -n "$with_build_time_tools"; then
11082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11083 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11084     if test -x $with_build_time_tools/ld; then
11085       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11086       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11088 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11089     else
11090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092     fi
11093   elif test $build != $host && test $have_gcc_for_target = yes; then
11094     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11095     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11096     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11097   fi
11098 fi
11099 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11100   # Extract the first word of "ld", so it can be a program name with args.
11101 set dummy ld; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   case $LD_FOR_TARGET in
11108   [\\/]* | ?:[\\/]*)
11109   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11110   ;;
11111   *)
11112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $gcc_cv_tool_dirs
11114 do
11115   IFS=$as_save_IFS
11116   test -z "$as_dir" && as_dir=.
11117     for ac_exec_ext in '' $ac_executable_extensions; do
11118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121     break 2
11122   fi
11123 done
11124   done
11125 IFS=$as_save_IFS
11126
11127   ;;
11128 esac
11129 fi
11130 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11131 if test -n "$LD_FOR_TARGET"; then
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11133 $as_echo "$LD_FOR_TARGET" >&6; }
11134 else
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11137 fi
11138
11139
11140 fi
11141 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11142
11143
11144 if test -n "$LD_FOR_TARGET"; then
11145   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11146 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11147   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11148 fi
11149
11150 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11151   for ncn_progname in ld; do
11152     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11153 set dummy ${ncn_progname}; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11157   $as_echo_n "(cached) " >&6
11158 else
11159   if test -n "$LD_FOR_TARGET"; then
11160   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11161 else
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11164 do
11165   IFS=$as_save_IFS
11166   test -z "$as_dir" && as_dir=.
11167     for ac_exec_ext in '' $ac_executable_extensions; do
11168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171     break 2
11172   fi
11173 done
11174   done
11175 IFS=$as_save_IFS
11176
11177 fi
11178 fi
11179 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11180 if test -n "$LD_FOR_TARGET"; then
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11182 $as_echo "$LD_FOR_TARGET" >&6; }
11183 else
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186 fi
11187
11188
11189   done
11190 fi
11191
11192 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11193   for ncn_progname in ld; do
11194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11195 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11196     if test -x $with_build_time_tools/${ncn_progname}; then
11197       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; }
11200       break
11201     else
11202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11204     fi
11205   done
11206 fi
11207
11208 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11209   for ncn_progname in ld; do
11210     if test -n "$ncn_target_tool_prefix"; then
11211       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11212 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218   if test -n "$LD_FOR_TARGET"; then
11219   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226     for ac_exec_ext in '' $ac_executable_extensions; do
11227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233   done
11234 IFS=$as_save_IFS
11235
11236 fi
11237 fi
11238 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11239 if test -n "$LD_FOR_TARGET"; then
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11241 $as_echo "$LD_FOR_TARGET" >&6; }
11242 else
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11245 fi
11246
11247
11248     fi
11249     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11250       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11251 set dummy ${ncn_progname}; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   if test -n "$LD_FOR_TARGET"; then
11258   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11259 else
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265     for ac_exec_ext in '' $ac_executable_extensions; do
11266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11267     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269     break 2
11270   fi
11271 done
11272   done
11273 IFS=$as_save_IFS
11274
11275 fi
11276 fi
11277 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11278 if test -n "$LD_FOR_TARGET"; then
11279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11280 $as_echo "$LD_FOR_TARGET" >&6; }
11281 else
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11284 fi
11285
11286
11287     fi
11288     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11289   done
11290 fi
11291
11292 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11293   set dummy ld
11294   if test $build = $target ; then
11295     LD_FOR_TARGET="$2"
11296   else
11297     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11298   fi
11299 else
11300   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11301 fi
11302
11303 else
11304   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11305 fi
11306
11307
11308
11309
11310 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11311   if test -n "$with_build_time_tools"; then
11312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11313 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11314     if test -x $with_build_time_tools/lipo; then
11315       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11316       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11318 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11319     else
11320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322     fi
11323   elif test $build != $host && test $have_gcc_for_target = yes; then
11324     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11325     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11326     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11327   fi
11328 fi
11329 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11330   # Extract the first word of "lipo", so it can be a program name with args.
11331 set dummy lipo; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337   case $LIPO_FOR_TARGET in
11338   [\\/]* | ?:[\\/]*)
11339   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11340   ;;
11341   *)
11342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $gcc_cv_tool_dirs
11344 do
11345   IFS=$as_save_IFS
11346   test -z "$as_dir" && as_dir=.
11347     for ac_exec_ext in '' $ac_executable_extensions; do
11348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351     break 2
11352   fi
11353 done
11354   done
11355 IFS=$as_save_IFS
11356
11357   ;;
11358 esac
11359 fi
11360 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11361 if test -n "$LIPO_FOR_TARGET"; then
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11363 $as_echo "$LIPO_FOR_TARGET" >&6; }
11364 else
11365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370 fi
11371 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11372
11373
11374 if test -n "$LIPO_FOR_TARGET"; then
11375   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11376 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11377   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11378 fi
11379
11380 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11381   for ncn_progname in lipo; do
11382     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11383 set dummy ${ncn_progname}; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   if test -n "$LIPO_FOR_TARGET"; then
11390   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11391 else
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395   IFS=$as_save_IFS
11396   test -z "$as_dir" && as_dir=.
11397     for ac_exec_ext in '' $ac_executable_extensions; do
11398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401     break 2
11402   fi
11403 done
11404   done
11405 IFS=$as_save_IFS
11406
11407 fi
11408 fi
11409 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11410 if test -n "$LIPO_FOR_TARGET"; then
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11412 $as_echo "$LIPO_FOR_TARGET" >&6; }
11413 else
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417
11418
11419   done
11420 fi
11421
11422 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11423   for ncn_progname in lipo; do
11424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11425 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11426     if test -x $with_build_time_tools/${ncn_progname}; then
11427       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430       break
11431     else
11432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434     fi
11435   done
11436 fi
11437
11438 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11439   for ncn_progname in lipo; do
11440     if test -n "$ncn_target_tool_prefix"; then
11441       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11442 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448   if test -n "$LIPO_FOR_TARGET"; then
11449   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11450 else
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11453 do
11454   IFS=$as_save_IFS
11455   test -z "$as_dir" && as_dir=.
11456     for ac_exec_ext in '' $ac_executable_extensions; do
11457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460     break 2
11461   fi
11462 done
11463   done
11464 IFS=$as_save_IFS
11465
11466 fi
11467 fi
11468 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11469 if test -n "$LIPO_FOR_TARGET"; then
11470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11471 $as_echo "$LIPO_FOR_TARGET" >&6; }
11472 else
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 fi
11476
11477
11478     fi
11479     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11480       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11481 set dummy ${ncn_progname}; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   if test -n "$LIPO_FOR_TARGET"; then
11488   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11489 else
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11492 do
11493   IFS=$as_save_IFS
11494   test -z "$as_dir" && as_dir=.
11495     for ac_exec_ext in '' $ac_executable_extensions; do
11496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499     break 2
11500   fi
11501 done
11502   done
11503 IFS=$as_save_IFS
11504
11505 fi
11506 fi
11507 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11508 if test -n "$LIPO_FOR_TARGET"; then
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11510 $as_echo "$LIPO_FOR_TARGET" >&6; }
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 fi
11515
11516
11517     fi
11518     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11519   done
11520 fi
11521
11522 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11523   set dummy lipo
11524   if test $build = $target ; then
11525     LIPO_FOR_TARGET="$2"
11526   else
11527     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11528   fi
11529 else
11530   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11531 fi
11532
11533 else
11534   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11535 fi
11536
11537
11538
11539
11540 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11541   if test -n "$with_build_time_tools"; then
11542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11543 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11544     if test -x $with_build_time_tools/nm; then
11545       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11546       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11548 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11549     else
11550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552     fi
11553   elif test $build != $host && test $have_gcc_for_target = yes; then
11554     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11555     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11556     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11557   fi
11558 fi
11559 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11560   # Extract the first word of "nm", so it can be a program name with args.
11561 set dummy nm; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11565   $as_echo_n "(cached) " >&6
11566 else
11567   case $NM_FOR_TARGET in
11568   [\\/]* | ?:[\\/]*)
11569   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11570   ;;
11571   *)
11572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $gcc_cv_tool_dirs
11574 do
11575   IFS=$as_save_IFS
11576   test -z "$as_dir" && as_dir=.
11577     for ac_exec_ext in '' $ac_executable_extensions; do
11578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581     break 2
11582   fi
11583 done
11584   done
11585 IFS=$as_save_IFS
11586
11587   ;;
11588 esac
11589 fi
11590 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11591 if test -n "$NM_FOR_TARGET"; then
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11593 $as_echo "$NM_FOR_TARGET" >&6; }
11594 else
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 fi
11598
11599
11600 fi
11601 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11602
11603
11604 if test -n "$NM_FOR_TARGET"; then
11605   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11606 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11607   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11608 fi
11609
11610 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11611   for ncn_progname in nm; do
11612     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11613 set dummy ${ncn_progname}; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   if test -n "$NM_FOR_TARGET"; then
11620   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11621 else
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11624 do
11625   IFS=$as_save_IFS
11626   test -z "$as_dir" && as_dir=.
11627     for ac_exec_ext in '' $ac_executable_extensions; do
11628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631     break 2
11632   fi
11633 done
11634   done
11635 IFS=$as_save_IFS
11636
11637 fi
11638 fi
11639 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11640 if test -n "$NM_FOR_TARGET"; then
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11642 $as_echo "$NM_FOR_TARGET" >&6; }
11643 else
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647
11648
11649   done
11650 fi
11651
11652 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11653   for ncn_progname in nm; do
11654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11656     if test -x $with_build_time_tools/${ncn_progname}; then
11657       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659 $as_echo "yes" >&6; }
11660       break
11661     else
11662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664     fi
11665   done
11666 fi
11667
11668 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11669   for ncn_progname in nm; do
11670     if test -n "$ncn_target_tool_prefix"; then
11671       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11676   $as_echo_n "(cached) " >&6
11677 else
11678   if test -n "$NM_FOR_TARGET"; then
11679   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684   IFS=$as_save_IFS
11685   test -z "$as_dir" && as_dir=.
11686     for ac_exec_ext in '' $ac_executable_extensions; do
11687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690     break 2
11691   fi
11692 done
11693   done
11694 IFS=$as_save_IFS
11695
11696 fi
11697 fi
11698 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11699 if test -n "$NM_FOR_TARGET"; then
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11701 $as_echo "$NM_FOR_TARGET" >&6; }
11702 else
11703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 fi
11706
11707
11708     fi
11709     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11710       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11711 set dummy ${ncn_progname}; ac_word=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11715   $as_echo_n "(cached) " >&6
11716 else
11717   if test -n "$NM_FOR_TARGET"; then
11718   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11719 else
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723   IFS=$as_save_IFS
11724   test -z "$as_dir" && as_dir=.
11725     for ac_exec_ext in '' $ac_executable_extensions; do
11726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729     break 2
11730   fi
11731 done
11732   done
11733 IFS=$as_save_IFS
11734
11735 fi
11736 fi
11737 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11738 if test -n "$NM_FOR_TARGET"; then
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11740 $as_echo "$NM_FOR_TARGET" >&6; }
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745
11746
11747     fi
11748     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11749   done
11750 fi
11751
11752 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11753   set dummy nm
11754   if test $build = $target ; then
11755     NM_FOR_TARGET="$2"
11756   else
11757     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11758   fi
11759 else
11760   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11761 fi
11762
11763 else
11764   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11765 fi
11766
11767
11768
11769
11770 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11771   if test -n "$with_build_time_tools"; then
11772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11773 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11774     if test -x $with_build_time_tools/objdump; then
11775       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11776       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11778 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11779     else
11780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782     fi
11783   elif test $build != $host && test $have_gcc_for_target = yes; then
11784     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11785     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11786     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11787   fi
11788 fi
11789 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11790   # Extract the first word of "objdump", so it can be a program name with args.
11791 set dummy objdump; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   case $OBJDUMP_FOR_TARGET in
11798   [\\/]* | ?:[\\/]*)
11799   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11800   ;;
11801   *)
11802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $gcc_cv_tool_dirs
11804 do
11805   IFS=$as_save_IFS
11806   test -z "$as_dir" && as_dir=.
11807     for ac_exec_ext in '' $ac_executable_extensions; do
11808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811     break 2
11812   fi
11813 done
11814   done
11815 IFS=$as_save_IFS
11816
11817   ;;
11818 esac
11819 fi
11820 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11821 if test -n "$OBJDUMP_FOR_TARGET"; then
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11823 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11824 else
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828
11829
11830 fi
11831 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11832
11833
11834 if test -n "$OBJDUMP_FOR_TARGET"; then
11835   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11836 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11837   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11838 fi
11839
11840 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11841   for ncn_progname in objdump; do
11842     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11843 set dummy ${ncn_progname}; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   if test -n "$OBJDUMP_FOR_TARGET"; then
11850   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11851 else
11852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853 for as_dir in $PATH
11854 do
11855   IFS=$as_save_IFS
11856   test -z "$as_dir" && as_dir=.
11857     for ac_exec_ext in '' $ac_executable_extensions; do
11858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11859     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11861     break 2
11862   fi
11863 done
11864   done
11865 IFS=$as_save_IFS
11866
11867 fi
11868 fi
11869 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11870 if test -n "$OBJDUMP_FOR_TARGET"; then
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11872 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11873 else
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 fi
11877
11878
11879   done
11880 fi
11881
11882 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11883   for ncn_progname in objdump; do
11884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11885 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11886     if test -x $with_build_time_tools/${ncn_progname}; then
11887       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11890       break
11891     else
11892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894     fi
11895   done
11896 fi
11897
11898 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11899   for ncn_progname in objdump; do
11900     if test -n "$ncn_target_tool_prefix"; then
11901       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11902 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11906   $as_echo_n "(cached) " >&6
11907 else
11908   if test -n "$OBJDUMP_FOR_TARGET"; then
11909   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11910 else
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11913 do
11914   IFS=$as_save_IFS
11915   test -z "$as_dir" && as_dir=.
11916     for ac_exec_ext in '' $ac_executable_extensions; do
11917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920     break 2
11921   fi
11922 done
11923   done
11924 IFS=$as_save_IFS
11925
11926 fi
11927 fi
11928 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11929 if test -n "$OBJDUMP_FOR_TARGET"; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11931 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936
11937
11938     fi
11939     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11940       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11941 set dummy ${ncn_progname}; ac_word=$2
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943 $as_echo_n "checking for $ac_word... " >&6; }
11944 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947   if test -n "$OBJDUMP_FOR_TARGET"; then
11948   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11949 else
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11952 do
11953   IFS=$as_save_IFS
11954   test -z "$as_dir" && as_dir=.
11955     for ac_exec_ext in '' $ac_executable_extensions; do
11956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959     break 2
11960   fi
11961 done
11962   done
11963 IFS=$as_save_IFS
11964
11965 fi
11966 fi
11967 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11968 if test -n "$OBJDUMP_FOR_TARGET"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11970 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976
11977     fi
11978     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11979   done
11980 fi
11981
11982 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11983   set dummy objdump
11984   if test $build = $target ; then
11985     OBJDUMP_FOR_TARGET="$2"
11986   else
11987     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11988   fi
11989 else
11990   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11991 fi
11992
11993 else
11994   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11995 fi
11996
11997
11998
11999
12000 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12001   if test -n "$with_build_time_tools"; then
12002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12003 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12004     if test -x $with_build_time_tools/ranlib; then
12005       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12006       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12008 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12009     else
12010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012     fi
12013   elif test $build != $host && test $have_gcc_for_target = yes; then
12014     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12015     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12016     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12017   fi
12018 fi
12019 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12020   # Extract the first word of "ranlib", so it can be a program name with args.
12021 set dummy ranlib; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   case $RANLIB_FOR_TARGET in
12028   [\\/]* | ?:[\\/]*)
12029   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12030   ;;
12031   *)
12032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $gcc_cv_tool_dirs
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046
12047   ;;
12048 esac
12049 fi
12050 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12051 if test -n "$RANLIB_FOR_TARGET"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12053 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058
12059
12060 fi
12061 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12062
12063
12064 if test -n "$RANLIB_FOR_TARGET"; then
12065   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12066 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12067   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12068 fi
12069
12070 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12071   for ncn_progname in ranlib; do
12072     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12073 set dummy ${ncn_progname}; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12077   $as_echo_n "(cached) " >&6
12078 else
12079   if test -n "$RANLIB_FOR_TARGET"; then
12080   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12081 else
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12084 do
12085   IFS=$as_save_IFS
12086   test -z "$as_dir" && as_dir=.
12087     for ac_exec_ext in '' $ac_executable_extensions; do
12088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12089     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091     break 2
12092   fi
12093 done
12094   done
12095 IFS=$as_save_IFS
12096
12097 fi
12098 fi
12099 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12100 if test -n "$RANLIB_FOR_TARGET"; then
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12102 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12103 else
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107
12108
12109   done
12110 fi
12111
12112 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12113   for ncn_progname in ranlib; do
12114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12115 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12116     if test -x $with_build_time_tools/${ncn_progname}; then
12117       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12119 $as_echo "yes" >&6; }
12120       break
12121     else
12122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124     fi
12125   done
12126 fi
12127
12128 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12129   for ncn_progname in ranlib; do
12130     if test -n "$ncn_target_tool_prefix"; then
12131       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12132 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138   if test -n "$RANLIB_FOR_TARGET"; then
12139   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12140 else
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12143 do
12144   IFS=$as_save_IFS
12145   test -z "$as_dir" && as_dir=.
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150     break 2
12151   fi
12152 done
12153   done
12154 IFS=$as_save_IFS
12155
12156 fi
12157 fi
12158 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12159 if test -n "$RANLIB_FOR_TARGET"; then
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12161 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12162 else
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166
12167
12168     fi
12169     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12170       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12171 set dummy ${ncn_progname}; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   if test -n "$RANLIB_FOR_TARGET"; then
12178   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12179 else
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185     for ac_exec_ext in '' $ac_executable_extensions; do
12186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189     break 2
12190   fi
12191 done
12192   done
12193 IFS=$as_save_IFS
12194
12195 fi
12196 fi
12197 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12198 if test -n "$RANLIB_FOR_TARGET"; then
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12200 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12201 else
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12204 fi
12205
12206
12207     fi
12208     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12209   done
12210 fi
12211
12212 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12213   set dummy ranlib
12214   if test $build = $target ; then
12215     RANLIB_FOR_TARGET="$2"
12216   else
12217     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12218   fi
12219 else
12220   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12221 fi
12222
12223 else
12224   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12225 fi
12226
12227
12228
12229
12230 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12231   if test -n "$with_build_time_tools"; then
12232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12233 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12234     if test -x $with_build_time_tools/strip; then
12235       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12236       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12238 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12239     else
12240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242     fi
12243   elif test $build != $host && test $have_gcc_for_target = yes; then
12244     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12245     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12246     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12247   fi
12248 fi
12249 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12250   # Extract the first word of "strip", so it can be a program name with args.
12251 set dummy strip; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   case $STRIP_FOR_TARGET in
12258   [\\/]* | ?:[\\/]*)
12259   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12260   ;;
12261   *)
12262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $gcc_cv_tool_dirs
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276
12277   ;;
12278 esac
12279 fi
12280 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12281 if test -n "$STRIP_FOR_TARGET"; then
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12283 $as_echo "$STRIP_FOR_TARGET" >&6; }
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290 fi
12291 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12292
12293
12294 if test -n "$STRIP_FOR_TARGET"; then
12295   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12296 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12297   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12298 fi
12299
12300 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12301   for ncn_progname in strip; do
12302     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12303 set dummy ${ncn_progname}; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   if test -n "$STRIP_FOR_TARGET"; then
12310   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12311 else
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12314 do
12315   IFS=$as_save_IFS
12316   test -z "$as_dir" && as_dir=.
12317     for ac_exec_ext in '' $ac_executable_extensions; do
12318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321     break 2
12322   fi
12323 done
12324   done
12325 IFS=$as_save_IFS
12326
12327 fi
12328 fi
12329 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12330 if test -n "$STRIP_FOR_TARGET"; then
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12332 $as_echo "$STRIP_FOR_TARGET" >&6; }
12333 else
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337
12338
12339   done
12340 fi
12341
12342 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12343   for ncn_progname in strip; do
12344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12346     if test -x $with_build_time_tools/${ncn_progname}; then
12347       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12350       break
12351     else
12352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354     fi
12355   done
12356 fi
12357
12358 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12359   for ncn_progname in strip; do
12360     if test -n "$ncn_target_tool_prefix"; then
12361       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   if test -n "$STRIP_FOR_TARGET"; then
12369   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376     for ac_exec_ext in '' $ac_executable_extensions; do
12377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380     break 2
12381   fi
12382 done
12383   done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12389 if test -n "$STRIP_FOR_TARGET"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12391 $as_echo "$STRIP_FOR_TARGET" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398     fi
12399     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12400       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12401 set dummy ${ncn_progname}; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   if test -n "$STRIP_FOR_TARGET"; then
12408   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12409 else
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_exec_ext in '' $ac_executable_extensions; do
12416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419     break 2
12420   fi
12421 done
12422   done
12423 IFS=$as_save_IFS
12424
12425 fi
12426 fi
12427 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12428 if test -n "$STRIP_FOR_TARGET"; then
12429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12430 $as_echo "$STRIP_FOR_TARGET" >&6; }
12431 else
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435
12436
12437     fi
12438     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12439   done
12440 fi
12441
12442 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12443   set dummy strip
12444   if test $build = $target ; then
12445     STRIP_FOR_TARGET="$2"
12446   else
12447     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12448   fi
12449 else
12450   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12451 fi
12452
12453 else
12454   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12455 fi
12456
12457
12458
12459
12460 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12461   if test -n "$with_build_time_tools"; then
12462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12463 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12464     if test -x $with_build_time_tools/windres; then
12465       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12466       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12468 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12469     else
12470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472     fi
12473   elif test $build != $host && test $have_gcc_for_target = yes; then
12474     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12475     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12476     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12477   fi
12478 fi
12479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12480   # Extract the first word of "windres", so it can be a program name with args.
12481 set dummy windres; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   case $WINDRES_FOR_TARGET in
12488   [\\/]* | ?:[\\/]*)
12489   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12490   ;;
12491   *)
12492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $gcc_cv_tool_dirs
12494 do
12495   IFS=$as_save_IFS
12496   test -z "$as_dir" && as_dir=.
12497     for ac_exec_ext in '' $ac_executable_extensions; do
12498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501     break 2
12502   fi
12503 done
12504   done
12505 IFS=$as_save_IFS
12506
12507   ;;
12508 esac
12509 fi
12510 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12511 if test -n "$WINDRES_FOR_TARGET"; then
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12513 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12514 else
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 fi
12521 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12522
12523
12524 if test -n "$WINDRES_FOR_TARGET"; then
12525   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12526 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12527   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12528 fi
12529
12530 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12531   for ncn_progname in windres; do
12532     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12533 set dummy ${ncn_progname}; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   if test -n "$WINDRES_FOR_TARGET"; then
12540   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12541 else
12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543 for as_dir in $PATH
12544 do
12545   IFS=$as_save_IFS
12546   test -z "$as_dir" && as_dir=.
12547     for ac_exec_ext in '' $ac_executable_extensions; do
12548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12549     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551     break 2
12552   fi
12553 done
12554   done
12555 IFS=$as_save_IFS
12556
12557 fi
12558 fi
12559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12560 if test -n "$WINDRES_FOR_TARGET"; then
12561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12562 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12563 else
12564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566 fi
12567
12568
12569   done
12570 fi
12571
12572 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12573   for ncn_progname in windres; do
12574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12576     if test -x $with_build_time_tools/${ncn_progname}; then
12577       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579 $as_echo "yes" >&6; }
12580       break
12581     else
12582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584     fi
12585   done
12586 fi
12587
12588 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12589   for ncn_progname in windres; do
12590     if test -n "$ncn_target_tool_prefix"; then
12591       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598   if test -n "$WINDRES_FOR_TARGET"; then
12599   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615
12616 fi
12617 fi
12618 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12619 if test -n "$WINDRES_FOR_TARGET"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12621 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628     fi
12629     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12630       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631 set dummy ${ncn_progname}; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   if test -n "$WINDRES_FOR_TARGET"; then
12638   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12639 else
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643   IFS=$as_save_IFS
12644   test -z "$as_dir" && as_dir=.
12645     for ac_exec_ext in '' $ac_executable_extensions; do
12646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12647     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649     break 2
12650   fi
12651 done
12652   done
12653 IFS=$as_save_IFS
12654
12655 fi
12656 fi
12657 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12658 if test -n "$WINDRES_FOR_TARGET"; then
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12660 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12661 else
12662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 fi
12665
12666
12667     fi
12668     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12669   done
12670 fi
12671
12672 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12673   set dummy windres
12674   if test $build = $target ; then
12675     WINDRES_FOR_TARGET="$2"
12676   else
12677     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12678   fi
12679 else
12680   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12681 fi
12682
12683 else
12684   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12685 fi
12686
12687
12688
12689
12690 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12691   if test -n "$with_build_time_tools"; then
12692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12693 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12694     if test -x $with_build_time_tools/windmc; then
12695       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12696       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12698 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12699     else
12700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12702     fi
12703   elif test $build != $host && test $have_gcc_for_target = yes; then
12704     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12705     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12706     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12707   fi
12708 fi
12709 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12710   # Extract the first word of "windmc", so it can be a program name with args.
12711 set dummy windmc; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   case $WINDMC_FOR_TARGET in
12718   [\\/]* | ?:[\\/]*)
12719   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12720   ;;
12721   *)
12722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $gcc_cv_tool_dirs
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     for ac_exec_ext in '' $ac_executable_extensions; do
12728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731     break 2
12732   fi
12733 done
12734   done
12735 IFS=$as_save_IFS
12736
12737   ;;
12738 esac
12739 fi
12740 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12741 if test -n "$WINDMC_FOR_TARGET"; then
12742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12743 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12744 else
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748
12749
12750 fi
12751 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12752
12753
12754 if test -n "$WINDMC_FOR_TARGET"; then
12755   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12756 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12757   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12758 fi
12759
12760 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12761   for ncn_progname in windmc; do
12762     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12763 set dummy ${ncn_progname}; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12767   $as_echo_n "(cached) " >&6
12768 else
12769   if test -n "$WINDMC_FOR_TARGET"; then
12770   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12771 else
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_exec_ext in '' $ac_executable_extensions; do
12778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781     break 2
12782   fi
12783 done
12784   done
12785 IFS=$as_save_IFS
12786
12787 fi
12788 fi
12789 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12790 if test -n "$WINDMC_FOR_TARGET"; then
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12792 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12793 else
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797
12798
12799   done
12800 fi
12801
12802 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12803   for ncn_progname in windmc; do
12804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12806     if test -x $with_build_time_tools/${ncn_progname}; then
12807       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12809 $as_echo "yes" >&6; }
12810       break
12811     else
12812       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12814     fi
12815   done
12816 fi
12817
12818 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12819   for ncn_progname in windmc; do
12820     if test -n "$ncn_target_tool_prefix"; then
12821       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12826   $as_echo_n "(cached) " >&6
12827 else
12828   if test -n "$WINDMC_FOR_TARGET"; then
12829   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836     for ac_exec_ext in '' $ac_executable_extensions; do
12837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843   done
12844 IFS=$as_save_IFS
12845
12846 fi
12847 fi
12848 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12849 if test -n "$WINDMC_FOR_TARGET"; then
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12851 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12852 else
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12855 fi
12856
12857
12858     fi
12859     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12860       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12861 set dummy ${ncn_progname}; ac_word=$2
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863 $as_echo_n "checking for $ac_word... " >&6; }
12864 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   if test -n "$WINDMC_FOR_TARGET"; then
12868   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12869 else
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875     for ac_exec_ext in '' $ac_executable_extensions; do
12876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12877     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879     break 2
12880   fi
12881 done
12882   done
12883 IFS=$as_save_IFS
12884
12885 fi
12886 fi
12887 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12888 if test -n "$WINDMC_FOR_TARGET"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12890 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895
12896
12897     fi
12898     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12899   done
12900 fi
12901
12902 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12903   set dummy windmc
12904   if test $build = $target ; then
12905     WINDMC_FOR_TARGET="$2"
12906   else
12907     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12908   fi
12909 else
12910   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12911 fi
12912
12913 else
12914   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12915 fi
12916
12917
12918 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12919
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12921 $as_echo_n "checking where to find the target ar... " >&6; }
12922 if test "x${build}" != "x${host}" ; then
12923   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12924     # We already found the complete path
12925     ac_dir=`dirname $AR_FOR_TARGET`
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12927 $as_echo "pre-installed in $ac_dir" >&6; }
12928   else
12929     # Canadian cross, just use what we found
12930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12931 $as_echo "pre-installed" >&6; }
12932   fi
12933 else
12934   ok=yes
12935   case " ${configdirs} " in
12936     *" binutils "*) ;;
12937     *) ok=no ;;
12938   esac
12939
12940   if test $ok = yes; then
12941     # An in-tree tool is available and we can use it
12942     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12944 $as_echo "just compiled" >&6; }
12945   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12946     # We already found the complete path
12947     ac_dir=`dirname $AR_FOR_TARGET`
12948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12949 $as_echo "pre-installed in $ac_dir" >&6; }
12950   elif test "x$target" = "x$host"; then
12951     # We can use an host tool
12952     AR_FOR_TARGET='$(AR)'
12953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12954 $as_echo "host tool" >&6; }
12955   else
12956     # We need a cross tool
12957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12958 $as_echo "pre-installed" >&6; }
12959   fi
12960 fi
12961
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12963 $as_echo_n "checking where to find the target as... " >&6; }
12964 if test "x${build}" != "x${host}" ; then
12965   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12966     # We already found the complete path
12967     ac_dir=`dirname $AS_FOR_TARGET`
12968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12969 $as_echo "pre-installed in $ac_dir" >&6; }
12970   else
12971     # Canadian cross, just use what we found
12972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12973 $as_echo "pre-installed" >&6; }
12974   fi
12975 else
12976   ok=yes
12977   case " ${configdirs} " in
12978     *" gas "*) ;;
12979     *) ok=no ;;
12980   esac
12981
12982   if test $ok = yes; then
12983     # An in-tree tool is available and we can use it
12984     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12986 $as_echo "just compiled" >&6; }
12987   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12988     # We already found the complete path
12989     ac_dir=`dirname $AS_FOR_TARGET`
12990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12991 $as_echo "pre-installed in $ac_dir" >&6; }
12992   elif test "x$target" = "x$host"; then
12993     # We can use an host tool
12994     AS_FOR_TARGET='$(AS)'
12995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12996 $as_echo "host tool" >&6; }
12997   else
12998     # We need a cross tool
12999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13000 $as_echo "pre-installed" >&6; }
13001   fi
13002 fi
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13005 $as_echo_n "checking where to find the target cc... " >&6; }
13006 if test "x${build}" != "x${host}" ; then
13007   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13008     # We already found the complete path
13009     ac_dir=`dirname $CC_FOR_TARGET`
13010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13011 $as_echo "pre-installed in $ac_dir" >&6; }
13012   else
13013     # Canadian cross, just use what we found
13014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13015 $as_echo "pre-installed" >&6; }
13016   fi
13017 else
13018   ok=yes
13019   case " ${configdirs} " in
13020     *" gcc "*) ;;
13021     *) ok=no ;;
13022   esac
13023
13024   if test $ok = yes; then
13025     # An in-tree tool is available and we can use it
13026     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13028 $as_echo "just compiled" >&6; }
13029   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13030     # We already found the complete path
13031     ac_dir=`dirname $CC_FOR_TARGET`
13032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13033 $as_echo "pre-installed in $ac_dir" >&6; }
13034   elif test "x$target" = "x$host"; then
13035     # We can use an host tool
13036     CC_FOR_TARGET='$(CC)'
13037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13038 $as_echo "host tool" >&6; }
13039   else
13040     # We need a cross tool
13041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13042 $as_echo "pre-installed" >&6; }
13043   fi
13044 fi
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13047 $as_echo_n "checking where to find the target c++... " >&6; }
13048 if test "x${build}" != "x${host}" ; then
13049   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13050     # We already found the complete path
13051     ac_dir=`dirname $CXX_FOR_TARGET`
13052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13053 $as_echo "pre-installed in $ac_dir" >&6; }
13054   else
13055     # Canadian cross, just use what we found
13056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13057 $as_echo "pre-installed" >&6; }
13058   fi
13059 else
13060   ok=yes
13061   case " ${configdirs} " in
13062     *" gcc "*) ;;
13063     *) ok=no ;;
13064   esac
13065   case ,${enable_languages}, in
13066     *,c++,*) ;;
13067     *) ok=no ;;
13068   esac
13069   if test $ok = yes; then
13070     # An in-tree tool is available and we can use it
13071     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'
13072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13073 $as_echo "just compiled" >&6; }
13074   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13075     # We already found the complete path
13076     ac_dir=`dirname $CXX_FOR_TARGET`
13077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13078 $as_echo "pre-installed in $ac_dir" >&6; }
13079   elif test "x$target" = "x$host"; then
13080     # We can use an host tool
13081     CXX_FOR_TARGET='$(CXX)'
13082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13083 $as_echo "host tool" >&6; }
13084   else
13085     # We need a cross tool
13086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13087 $as_echo "pre-installed" >&6; }
13088   fi
13089 fi
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13092 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13093 if test "x${build}" != "x${host}" ; then
13094   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13095     # We already found the complete path
13096     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13098 $as_echo "pre-installed in $ac_dir" >&6; }
13099   else
13100     # Canadian cross, just use what we found
13101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13102 $as_echo "pre-installed" >&6; }
13103   fi
13104 else
13105   ok=yes
13106   case " ${configdirs} " in
13107     *" gcc "*) ;;
13108     *) ok=no ;;
13109   esac
13110   case ,${enable_languages}, in
13111     *,c++,*) ;;
13112     *) ok=no ;;
13113   esac
13114   if test $ok = yes; then
13115     # An in-tree tool is available and we can use it
13116     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'
13117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13118 $as_echo "just compiled" >&6; }
13119   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13120     # We already found the complete path
13121     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13123 $as_echo "pre-installed in $ac_dir" >&6; }
13124   elif test "x$target" = "x$host"; then
13125     # We can use an host tool
13126     RAW_CXX_FOR_TARGET='$(CXX)'
13127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13128 $as_echo "host tool" >&6; }
13129   else
13130     # We need a cross tool
13131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13132 $as_echo "pre-installed" >&6; }
13133   fi
13134 fi
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13137 $as_echo_n "checking where to find the target dlltool... " >&6; }
13138 if test "x${build}" != "x${host}" ; then
13139   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13140     # We already found the complete path
13141     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13143 $as_echo "pre-installed in $ac_dir" >&6; }
13144   else
13145     # Canadian cross, just use what we found
13146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13147 $as_echo "pre-installed" >&6; }
13148   fi
13149 else
13150   ok=yes
13151   case " ${configdirs} " in
13152     *" binutils "*) ;;
13153     *) ok=no ;;
13154   esac
13155
13156   if test $ok = yes; then
13157     # An in-tree tool is available and we can use it
13158     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13160 $as_echo "just compiled" >&6; }
13161   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13162     # We already found the complete path
13163     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13165 $as_echo "pre-installed in $ac_dir" >&6; }
13166   elif test "x$target" = "x$host"; then
13167     # We can use an host tool
13168     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13170 $as_echo "host tool" >&6; }
13171   else
13172     # We need a cross tool
13173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13174 $as_echo "pre-installed" >&6; }
13175   fi
13176 fi
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13179 $as_echo_n "checking where to find the target gcc... " >&6; }
13180 if test "x${build}" != "x${host}" ; then
13181   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13182     # We already found the complete path
13183     ac_dir=`dirname $GCC_FOR_TARGET`
13184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13185 $as_echo "pre-installed in $ac_dir" >&6; }
13186   else
13187     # Canadian cross, just use what we found
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189 $as_echo "pre-installed" >&6; }
13190   fi
13191 else
13192   ok=yes
13193   case " ${configdirs} " in
13194     *" gcc "*) ;;
13195     *) ok=no ;;
13196   esac
13197
13198   if test $ok = yes; then
13199     # An in-tree tool is available and we can use it
13200     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13202 $as_echo "just compiled" >&6; }
13203   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13204     # We already found the complete path
13205     ac_dir=`dirname $GCC_FOR_TARGET`
13206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13207 $as_echo "pre-installed in $ac_dir" >&6; }
13208   elif test "x$target" = "x$host"; then
13209     # We can use an host tool
13210     GCC_FOR_TARGET='$()'
13211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13212 $as_echo "host tool" >&6; }
13213   else
13214     # We need a cross tool
13215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13216 $as_echo "pre-installed" >&6; }
13217   fi
13218 fi
13219
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13221 $as_echo_n "checking where to find the target gcj... " >&6; }
13222 if test "x${build}" != "x${host}" ; then
13223   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13224     # We already found the complete path
13225     ac_dir=`dirname $GCJ_FOR_TARGET`
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13227 $as_echo "pre-installed in $ac_dir" >&6; }
13228   else
13229     # Canadian cross, just use what we found
13230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231 $as_echo "pre-installed" >&6; }
13232   fi
13233 else
13234   ok=yes
13235   case " ${configdirs} " in
13236     *" gcc "*) ;;
13237     *) ok=no ;;
13238   esac
13239   case ,${enable_languages}, in
13240     *,java,*) ;;
13241     *) ok=no ;;
13242   esac
13243   if test $ok = yes; then
13244     # An in-tree tool is available and we can use it
13245     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13247 $as_echo "just compiled" >&6; }
13248   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13249     # We already found the complete path
13250     ac_dir=`dirname $GCJ_FOR_TARGET`
13251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252 $as_echo "pre-installed in $ac_dir" >&6; }
13253   elif test "x$target" = "x$host"; then
13254     # We can use an host tool
13255     GCJ_FOR_TARGET='$(GCJ)'
13256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13257 $as_echo "host tool" >&6; }
13258   else
13259     # We need a cross tool
13260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13261 $as_echo "pre-installed" >&6; }
13262   fi
13263 fi
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13266 $as_echo_n "checking where to find the target gfortran... " >&6; }
13267 if test "x${build}" != "x${host}" ; then
13268   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13269     # We already found the complete path
13270     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272 $as_echo "pre-installed in $ac_dir" >&6; }
13273   else
13274     # Canadian cross, just use what we found
13275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13276 $as_echo "pre-installed" >&6; }
13277   fi
13278 else
13279   ok=yes
13280   case " ${configdirs} " in
13281     *" gcc "*) ;;
13282     *) ok=no ;;
13283   esac
13284   case ,${enable_languages}, in
13285     *,fortran,*) ;;
13286     *) ok=no ;;
13287   esac
13288   if test $ok = yes; then
13289     # An in-tree tool is available and we can use it
13290     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13292 $as_echo "just compiled" >&6; }
13293   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13294     # We already found the complete path
13295     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297 $as_echo "pre-installed in $ac_dir" >&6; }
13298   elif test "x$target" = "x$host"; then
13299     # We can use an host tool
13300     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13302 $as_echo "host tool" >&6; }
13303   else
13304     # We need a cross tool
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306 $as_echo "pre-installed" >&6; }
13307   fi
13308 fi
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13311 $as_echo_n "checking where to find the target ld... " >&6; }
13312 if test "x${build}" != "x${host}" ; then
13313   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13314     # We already found the complete path
13315     ac_dir=`dirname $LD_FOR_TARGET`
13316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317 $as_echo "pre-installed in $ac_dir" >&6; }
13318   else
13319     # Canadian cross, just use what we found
13320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13321 $as_echo "pre-installed" >&6; }
13322   fi
13323 else
13324   ok=yes
13325   case " ${configdirs} " in
13326     *" ld "*) ;;
13327     *) ok=no ;;
13328   esac
13329
13330   if test $ok = yes; then
13331     # An in-tree tool is available and we can use it
13332     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13334 $as_echo "just compiled" >&6; }
13335   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13336     # We already found the complete path
13337     ac_dir=`dirname $LD_FOR_TARGET`
13338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13339 $as_echo "pre-installed in $ac_dir" >&6; }
13340   elif test "x$target" = "x$host"; then
13341     # We can use an host tool
13342     LD_FOR_TARGET='$(LD)'
13343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13344 $as_echo "host tool" >&6; }
13345   else
13346     # We need a cross tool
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13348 $as_echo "pre-installed" >&6; }
13349   fi
13350 fi
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13353 $as_echo_n "checking where to find the target lipo... " >&6; }
13354 if test "x${build}" != "x${host}" ; then
13355   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13356     # We already found the complete path
13357     ac_dir=`dirname $LIPO_FOR_TARGET`
13358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13359 $as_echo "pre-installed in $ac_dir" >&6; }
13360   else
13361     # Canadian cross, just use what we found
13362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13363 $as_echo "pre-installed" >&6; }
13364   fi
13365 else
13366   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13367     # We already found the complete path
13368     ac_dir=`dirname $LIPO_FOR_TARGET`
13369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13370 $as_echo "pre-installed in $ac_dir" >&6; }
13371   elif test "x$target" = "x$host"; then
13372     # We can use an host tool
13373     LIPO_FOR_TARGET='$(LIPO)'
13374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13375 $as_echo "host tool" >&6; }
13376   else
13377     # We need a cross tool
13378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13379 $as_echo "pre-installed" >&6; }
13380   fi
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13384 $as_echo_n "checking where to find the target nm... " >&6; }
13385 if test "x${build}" != "x${host}" ; then
13386   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13387     # We already found the complete path
13388     ac_dir=`dirname $NM_FOR_TARGET`
13389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390 $as_echo "pre-installed in $ac_dir" >&6; }
13391   else
13392     # Canadian cross, just use what we found
13393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394 $as_echo "pre-installed" >&6; }
13395   fi
13396 else
13397   ok=yes
13398   case " ${configdirs} " in
13399     *" binutils "*) ;;
13400     *) ok=no ;;
13401   esac
13402
13403   if test $ok = yes; then
13404     # An in-tree tool is available and we can use it
13405     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13407 $as_echo "just compiled" >&6; }
13408   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13409     # We already found the complete path
13410     ac_dir=`dirname $NM_FOR_TARGET`
13411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13412 $as_echo "pre-installed in $ac_dir" >&6; }
13413   elif test "x$target" = "x$host"; then
13414     # We can use an host tool
13415     NM_FOR_TARGET='$(NM)'
13416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13417 $as_echo "host tool" >&6; }
13418   else
13419     # We need a cross tool
13420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13421 $as_echo "pre-installed" >&6; }
13422   fi
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13426 $as_echo_n "checking where to find the target objdump... " >&6; }
13427 if test "x${build}" != "x${host}" ; then
13428   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13429     # We already found the complete path
13430     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432 $as_echo "pre-installed in $ac_dir" >&6; }
13433   else
13434     # Canadian cross, just use what we found
13435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436 $as_echo "pre-installed" >&6; }
13437   fi
13438 else
13439   ok=yes
13440   case " ${configdirs} " in
13441     *" binutils "*) ;;
13442     *) ok=no ;;
13443   esac
13444
13445   if test $ok = yes; then
13446     # An in-tree tool is available and we can use it
13447     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13449 $as_echo "just compiled" >&6; }
13450   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13451     # We already found the complete path
13452     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13454 $as_echo "pre-installed in $ac_dir" >&6; }
13455   elif test "x$target" = "x$host"; then
13456     # We can use an host tool
13457     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13459 $as_echo "host tool" >&6; }
13460   else
13461     # We need a cross tool
13462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13463 $as_echo "pre-installed" >&6; }
13464   fi
13465 fi
13466
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13468 $as_echo_n "checking where to find the target ranlib... " >&6; }
13469 if test "x${build}" != "x${host}" ; then
13470   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13471     # We already found the complete path
13472     ac_dir=`dirname $RANLIB_FOR_TARGET`
13473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13474 $as_echo "pre-installed in $ac_dir" >&6; }
13475   else
13476     # Canadian cross, just use what we found
13477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478 $as_echo "pre-installed" >&6; }
13479   fi
13480 else
13481   ok=yes
13482   case " ${configdirs} " in
13483     *" binutils "*) ;;
13484     *) ok=no ;;
13485   esac
13486
13487   if test $ok = yes; then
13488     # An in-tree tool is available and we can use it
13489     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13491 $as_echo "just compiled" >&6; }
13492   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13493     # We already found the complete path
13494     ac_dir=`dirname $RANLIB_FOR_TARGET`
13495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496 $as_echo "pre-installed in $ac_dir" >&6; }
13497   elif test "x$target" = "x$host"; then
13498     # We can use an host tool
13499     RANLIB_FOR_TARGET='$(RANLIB)'
13500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13501 $as_echo "host tool" >&6; }
13502   else
13503     # We need a cross tool
13504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505 $as_echo "pre-installed" >&6; }
13506   fi
13507 fi
13508
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13510 $as_echo_n "checking where to find the target strip... " >&6; }
13511 if test "x${build}" != "x${host}" ; then
13512   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13513     # We already found the complete path
13514     ac_dir=`dirname $STRIP_FOR_TARGET`
13515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516 $as_echo "pre-installed in $ac_dir" >&6; }
13517   else
13518     # Canadian cross, just use what we found
13519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13520 $as_echo "pre-installed" >&6; }
13521   fi
13522 else
13523   ok=yes
13524   case " ${configdirs} " in
13525     *" binutils "*) ;;
13526     *) ok=no ;;
13527   esac
13528
13529   if test $ok = yes; then
13530     # An in-tree tool is available and we can use it
13531     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13533 $as_echo "just compiled" >&6; }
13534   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13535     # We already found the complete path
13536     ac_dir=`dirname $STRIP_FOR_TARGET`
13537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13538 $as_echo "pre-installed in $ac_dir" >&6; }
13539   elif test "x$target" = "x$host"; then
13540     # We can use an host tool
13541     STRIP_FOR_TARGET='$(STRIP)'
13542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13543 $as_echo "host tool" >&6; }
13544   else
13545     # We need a cross tool
13546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13547 $as_echo "pre-installed" >&6; }
13548   fi
13549 fi
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13552 $as_echo_n "checking where to find the target windres... " >&6; }
13553 if test "x${build}" != "x${host}" ; then
13554   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13555     # We already found the complete path
13556     ac_dir=`dirname $WINDRES_FOR_TARGET`
13557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13558 $as_echo "pre-installed in $ac_dir" >&6; }
13559   else
13560     # Canadian cross, just use what we found
13561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13562 $as_echo "pre-installed" >&6; }
13563   fi
13564 else
13565   ok=yes
13566   case " ${configdirs} " in
13567     *" binutils "*) ;;
13568     *) ok=no ;;
13569   esac
13570
13571   if test $ok = yes; then
13572     # An in-tree tool is available and we can use it
13573     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13575 $as_echo "just compiled" >&6; }
13576   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13577     # We already found the complete path
13578     ac_dir=`dirname $WINDRES_FOR_TARGET`
13579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13580 $as_echo "pre-installed in $ac_dir" >&6; }
13581   elif test "x$target" = "x$host"; then
13582     # We can use an host tool
13583     WINDRES_FOR_TARGET='$(WINDRES)'
13584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13585 $as_echo "host tool" >&6; }
13586   else
13587     # We need a cross tool
13588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13589 $as_echo "pre-installed" >&6; }
13590   fi
13591 fi
13592
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13594 $as_echo_n "checking where to find the target windmc... " >&6; }
13595 if test "x${build}" != "x${host}" ; then
13596   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13597     # We already found the complete path
13598     ac_dir=`dirname $WINDMC_FOR_TARGET`
13599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13600 $as_echo "pre-installed in $ac_dir" >&6; }
13601   else
13602     # Canadian cross, just use what we found
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13604 $as_echo "pre-installed" >&6; }
13605   fi
13606 else
13607   ok=yes
13608   case " ${configdirs} " in
13609     *" binutils "*) ;;
13610     *) ok=no ;;
13611   esac
13612
13613   if test $ok = yes; then
13614     # An in-tree tool is available and we can use it
13615     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13617 $as_echo "just compiled" >&6; }
13618   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13619     # We already found the complete path
13620     ac_dir=`dirname $WINDMC_FOR_TARGET`
13621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13622 $as_echo "pre-installed in $ac_dir" >&6; }
13623   elif test "x$target" = "x$host"; then
13624     # We can use an host tool
13625     WINDMC_FOR_TARGET='$(WINDMC)'
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13627 $as_echo "host tool" >&6; }
13628   else
13629     # We need a cross tool
13630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13632   fi
13633 fi
13634
13635
13636
13637
13638
13639 # Certain tools may need extra flags.
13640 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13641 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13642 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13643
13644 # When building target libraries, except in a Canadian cross, we use
13645 # the same toolchain as the compiler we just built.
13646 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13647 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13648 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13649 if test $host = $build; then
13650   case " $configdirs " in
13651     *" gcc "*)
13652       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13653       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13654       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13655       ;;
13656   esac
13657 fi
13658
13659
13660
13661
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13664 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13665 # Check whether --enable-maintainer-mode was given.
13666 if test "${enable_maintainer_mode+set}" = set; then :
13667   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13668 else
13669   USE_MAINTAINER_MODE=no
13670 fi
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13673 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13674
13675
13676 if test "$USE_MAINTAINER_MODE" = yes; then
13677   MAINTAINER_MODE_TRUE=
13678   MAINTAINER_MODE_FALSE='#'
13679 else
13680   MAINTAINER_MODE_TRUE='#'
13681   MAINTAINER_MODE_FALSE=
13682 fi
13683 MAINT=$MAINTAINER_MODE_TRUE
13684
13685 # ---------------------
13686 # GCC bootstrap support
13687 # ---------------------
13688
13689 # Stage specific cflags for build.
13690 stage1_cflags="-g"
13691 case $build in
13692   vax-*-*)
13693     case ${GCC} in
13694       yes) stage1_cflags="-g -Wa,-J" ;;
13695       *) stage1_cflags="-g -J" ;;
13696     esac ;;
13697 esac
13698
13699 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13700 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13701   saved_CFLAGS="$CFLAGS"
13702
13703   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13704   CFLAGS="$CFLAGS -fkeep-inline-functions"
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13706 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h.  */
13709
13710 #if (__GNUC__ < 3) \
13711     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13712                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13713 #error http://gcc.gnu.org/PR29382
13714 #endif
13715
13716 int
13717 main ()
13718 {
13719
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13727 else
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732
13733   CFLAGS="$saved_CFLAGS"
13734 fi
13735
13736
13737
13738 # Enable --enable-checking in stage1 of the compiler.
13739 # Check whether --enable-stage1-checking was given.
13740 if test "${enable_stage1_checking+set}" = set; then :
13741   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13742 else
13743   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13744   stage1_checking=--enable-checking=yes,types
13745 else
13746   stage1_checking=--enable-checking=$enable_checking,types
13747 fi
13748 fi
13749
13750
13751
13752 # Enable -Werror in bootstrap stage2 and later.
13753 # Check whether --enable-werror was given.
13754 if test "${enable_werror+set}" = set; then :
13755   enableval=$enable_werror;
13756 else
13757   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13758   enable_werror=yes
13759 else
13760   enable_werror=no
13761 fi
13762 fi
13763
13764 case ${enable_werror} in
13765   yes) stage2_werror_flag="--enable-werror-always" ;;
13766   *) stage2_werror_flag="" ;;
13767 esac
13768
13769
13770 # Specify what files to not compare during bootstrap.
13771
13772 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13773 case "$target" in
13774   hppa*64*-*-hpux*) ;;
13775   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13776 esac
13777 case " $configdirs " in
13778 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13779 esac
13780
13781
13782 ac_config_files="$ac_config_files Makefile"
13783
13784 cat >confcache <<\_ACEOF
13785 # This file is a shell script that caches the results of configure
13786 # tests run on this system so they can be shared between configure
13787 # scripts and configure runs, see configure's option --config-cache.
13788 # It is not useful on other systems.  If it contains results you don't
13789 # want to keep, you may remove or edit it.
13790 #
13791 # config.status only pays attention to the cache file if you give it
13792 # the --recheck option to rerun configure.
13793 #
13794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13796 # following values.
13797
13798 _ACEOF
13799
13800 # The following way of writing the cache mishandles newlines in values,
13801 # but we know of no workaround that is simple, portable, and efficient.
13802 # So, we kill variables containing newlines.
13803 # Ultrix sh set writes to stderr and can't be redirected directly,
13804 # and sets the high bit in the cache file unless we assign to the vars.
13805 (
13806   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13807     eval ac_val=\$$ac_var
13808     case $ac_val in #(
13809     *${as_nl}*)
13810       case $ac_var in #(
13811       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13813       esac
13814       case $ac_var in #(
13815       _ | IFS | as_nl) ;; #(
13816       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13817       *) { eval $ac_var=; unset $ac_var;} ;;
13818       esac ;;
13819     esac
13820   done
13821
13822   (set) 2>&1 |
13823     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13824     *${as_nl}ac_space=\ *)
13825       # `set' does not quote correctly, so add quotes: double-quote
13826       # substitution turns \\\\ into \\, and sed turns \\ into \.
13827       sed -n \
13828         "s/'/'\\\\''/g;
13829           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13830       ;; #(
13831     *)
13832       # `set' quotes correctly as required by POSIX, so do not add quotes.
13833       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13834       ;;
13835     esac |
13836     sort
13837 ) |
13838   sed '
13839      /^ac_cv_env_/b end
13840      t clear
13841      :clear
13842      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13843      t end
13844      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13845      :end' >>confcache
13846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13847   if test -w "$cache_file"; then
13848     test "x$cache_file" != "x/dev/null" &&
13849       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13850 $as_echo "$as_me: updating cache $cache_file" >&6;}
13851     cat confcache >$cache_file
13852   else
13853     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13855   fi
13856 fi
13857 rm -f confcache
13858
13859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13860 # Let make expand exec_prefix.
13861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13862
13863 # Transform confdefs.h into DEFS.
13864 # Protect against shell expansion while executing Makefile rules.
13865 # Protect against Makefile macro expansion.
13866 #
13867 # If the first sed substitution is executed (which looks for macros that
13868 # take arguments), then branch to the quote section.  Otherwise,
13869 # look for a macro that doesn't take arguments.
13870 ac_script='
13871 :mline
13872 /\\$/{
13873  N
13874  s,\\\n,,
13875  b mline
13876 }
13877 t clear
13878 :clear
13879 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13880 t quote
13881 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13882 t quote
13883 b any
13884 :quote
13885 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13886 s/\[/\\&/g
13887 s/\]/\\&/g
13888 s/\$/$$/g
13889 H
13890 :any
13891 ${
13892         g
13893         s/^\n//
13894         s/\n/ /g
13895         p
13896 }
13897 '
13898 DEFS=`sed -n "$ac_script" confdefs.h`
13899
13900
13901 ac_libobjs=
13902 ac_ltlibobjs=
13903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13904   # 1. Remove the extension, and $U if already installed.
13905   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13906   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13907   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13908   #    will be set to the directory where LIBOBJS objects are built.
13909   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13910   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13911 done
13912 LIBOBJS=$ac_libobjs
13913
13914 LTLIBOBJS=$ac_ltlibobjs
13915
13916
13917
13918 : ${CONFIG_STATUS=./config.status}
13919 ac_write_fail=0
13920 ac_clean_files_save=$ac_clean_files
13921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13924 as_write_fail=0
13925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13926 #! $SHELL
13927 # Generated by $as_me.
13928 # Run this file to recreate the current configuration.
13929 # Compiler output produced by configure, useful for debugging
13930 # configure, is in config.log if it exists.
13931
13932 debug=false
13933 ac_cs_recheck=false
13934 ac_cs_silent=false
13935
13936 SHELL=\${CONFIG_SHELL-$SHELL}
13937 export SHELL
13938 _ASEOF
13939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13940 ## -------------------- ##
13941 ## M4sh Initialization. ##
13942 ## -------------------- ##
13943
13944 # Be more Bourne compatible
13945 DUALCASE=1; export DUALCASE # for MKS sh
13946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13947   emulate sh
13948   NULLCMD=:
13949   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13950   # is contrary to our usage.  Disable this feature.
13951   alias -g '${1+"$@"}'='"$@"'
13952   setopt NO_GLOB_SUBST
13953 else
13954   case `(set -o) 2>/dev/null` in #(
13955   *posix*) :
13956     set -o posix ;; #(
13957   *) :
13958      ;;
13959 esac
13960 fi
13961
13962
13963 as_nl='
13964 '
13965 export as_nl
13966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13970 # Prefer a ksh shell builtin over an external printf program on Solaris,
13971 # but without wasting forks for bash or zsh.
13972 if test -z "$BASH_VERSION$ZSH_VERSION" \
13973     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13974   as_echo='print -r --'
13975   as_echo_n='print -rn --'
13976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13977   as_echo='printf %s\n'
13978   as_echo_n='printf %s'
13979 else
13980   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13981     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13982     as_echo_n='/usr/ucb/echo -n'
13983   else
13984     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13985     as_echo_n_body='eval
13986       arg=$1;
13987       case $arg in #(
13988       *"$as_nl"*)
13989         expr "X$arg" : "X\\(.*\\)$as_nl";
13990         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13991       esac;
13992       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13993     '
13994     export as_echo_n_body
13995     as_echo_n='sh -c $as_echo_n_body as_echo'
13996   fi
13997   export as_echo_body
13998   as_echo='sh -c $as_echo_body as_echo'
13999 fi
14000
14001 # The user is always right.
14002 if test "${PATH_SEPARATOR+set}" != set; then
14003   PATH_SEPARATOR=:
14004   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14005     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14006       PATH_SEPARATOR=';'
14007   }
14008 fi
14009
14010
14011 # IFS
14012 # We need space, tab and new line, in precisely that order.  Quoting is
14013 # there to prevent editors from complaining about space-tab.
14014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14015 # splitting by setting IFS to empty value.)
14016 IFS=" ""        $as_nl"
14017
14018 # Find who we are.  Look in the path if we contain no directory separator.
14019 case $0 in #((
14020   *[\\/]* ) as_myself=$0 ;;
14021   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14027   done
14028 IFS=$as_save_IFS
14029
14030      ;;
14031 esac
14032 # We did not find ourselves, most probably we were run as `sh COMMAND'
14033 # in which case we are not to be found in the path.
14034 if test "x$as_myself" = x; then
14035   as_myself=$0
14036 fi
14037 if test ! -f "$as_myself"; then
14038   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14039   exit 1
14040 fi
14041
14042 # Unset variables that we do not need and which cause bugs (e.g. in
14043 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14044 # suppresses any "Segmentation fault" message there.  '((' could
14045 # trigger a bug in pdksh 5.2.14.
14046 for as_var in BASH_ENV ENV MAIL MAILPATH
14047 do eval test x\${$as_var+set} = xset \
14048   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14049 done
14050 PS1='$ '
14051 PS2='> '
14052 PS4='+ '
14053
14054 # NLS nuisances.
14055 LC_ALL=C
14056 export LC_ALL
14057 LANGUAGE=C
14058 export LANGUAGE
14059
14060 # CDPATH.
14061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14062
14063
14064 # as_fn_error ERROR [LINENO LOG_FD]
14065 # ---------------------------------
14066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14068 # script with status $?, using 1 if that was 0.
14069 as_fn_error ()
14070 {
14071   as_status=$?; test $as_status -eq 0 && as_status=1
14072   if test "$3"; then
14073     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14074     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14075   fi
14076   $as_echo "$as_me: error: $1" >&2
14077   as_fn_exit $as_status
14078 } # as_fn_error
14079
14080
14081 # as_fn_set_status STATUS
14082 # -----------------------
14083 # Set $? to STATUS, without forking.
14084 as_fn_set_status ()
14085 {
14086   return $1
14087 } # as_fn_set_status
14088
14089 # as_fn_exit STATUS
14090 # -----------------
14091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14092 as_fn_exit ()
14093 {
14094   set +e
14095   as_fn_set_status $1
14096   exit $1
14097 } # as_fn_exit
14098
14099 # as_fn_unset VAR
14100 # ---------------
14101 # Portably unset VAR.
14102 as_fn_unset ()
14103 {
14104   { eval $1=; unset $1;}
14105 }
14106 as_unset=as_fn_unset
14107 # as_fn_append VAR VALUE
14108 # ----------------------
14109 # Append the text in VALUE to the end of the definition contained in VAR. Take
14110 # advantage of any shell optimizations that allow amortized linear growth over
14111 # repeated appends, instead of the typical quadratic growth present in naive
14112 # implementations.
14113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14114   eval 'as_fn_append ()
14115   {
14116     eval $1+=\$2
14117   }'
14118 else
14119   as_fn_append ()
14120   {
14121     eval $1=\$$1\$2
14122   }
14123 fi # as_fn_append
14124
14125 # as_fn_arith ARG...
14126 # ------------------
14127 # Perform arithmetic evaluation on the ARGs, and store the result in the
14128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14129 # must be portable across $(()) and expr.
14130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14131   eval 'as_fn_arith ()
14132   {
14133     as_val=$(( $* ))
14134   }'
14135 else
14136   as_fn_arith ()
14137   {
14138     as_val=`expr "$@" || test $? -eq 1`
14139   }
14140 fi # as_fn_arith
14141
14142
14143 if expr a : '\(a\)' >/dev/null 2>&1 &&
14144    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14145   as_expr=expr
14146 else
14147   as_expr=false
14148 fi
14149
14150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14151   as_basename=basename
14152 else
14153   as_basename=false
14154 fi
14155
14156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14157   as_dirname=dirname
14158 else
14159   as_dirname=false
14160 fi
14161
14162 as_me=`$as_basename -- "$0" ||
14163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14164          X"$0" : 'X\(//\)$' \| \
14165          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14166 $as_echo X/"$0" |
14167     sed '/^.*\/\([^/][^/]*\)\/*$/{
14168             s//\1/
14169             q
14170           }
14171           /^X\/\(\/\/\)$/{
14172             s//\1/
14173             q
14174           }
14175           /^X\/\(\/\).*/{
14176             s//\1/
14177             q
14178           }
14179           s/.*/./; q'`
14180
14181 # Avoid depending upon Character Ranges.
14182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14185 as_cr_digits='0123456789'
14186 as_cr_alnum=$as_cr_Letters$as_cr_digits
14187
14188 ECHO_C= ECHO_N= ECHO_T=
14189 case `echo -n x` in #(((((
14190 -n*)
14191   case `echo 'xy\c'` in
14192   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14193   xy)  ECHO_C='\c';;
14194   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14195        ECHO_T=' ';;
14196   esac;;
14197 *)
14198   ECHO_N='-n';;
14199 esac
14200
14201 rm -f conf$$ conf$$.exe conf$$.file
14202 if test -d conf$$.dir; then
14203   rm -f conf$$.dir/conf$$.file
14204 else
14205   rm -f conf$$.dir
14206   mkdir conf$$.dir 2>/dev/null
14207 fi
14208 if (echo >conf$$.file) 2>/dev/null; then
14209   if ln -s conf$$.file conf$$ 2>/dev/null; then
14210     as_ln_s='ln -s'
14211     # ... but there are two gotchas:
14212     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14213     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14214     # In both cases, we have to default to `cp -p'.
14215     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14216       as_ln_s='cp -p'
14217   elif ln conf$$.file conf$$ 2>/dev/null; then
14218     as_ln_s=ln
14219   else
14220     as_ln_s='cp -p'
14221   fi
14222 else
14223   as_ln_s='cp -p'
14224 fi
14225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14226 rmdir conf$$.dir 2>/dev/null
14227
14228
14229 # as_fn_mkdir_p
14230 # -------------
14231 # Create "$as_dir" as a directory, including parents if necessary.
14232 as_fn_mkdir_p ()
14233 {
14234
14235   case $as_dir in #(
14236   -*) as_dir=./$as_dir;;
14237   esac
14238   test -d "$as_dir" || eval $as_mkdir_p || {
14239     as_dirs=
14240     while :; do
14241       case $as_dir in #(
14242       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14243       *) as_qdir=$as_dir;;
14244       esac
14245       as_dirs="'$as_qdir' $as_dirs"
14246       as_dir=`$as_dirname -- "$as_dir" ||
14247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14248          X"$as_dir" : 'X\(//\)[^/]' \| \
14249          X"$as_dir" : 'X\(//\)$' \| \
14250          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14251 $as_echo X"$as_dir" |
14252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14253             s//\1/
14254             q
14255           }
14256           /^X\(\/\/\)[^/].*/{
14257             s//\1/
14258             q
14259           }
14260           /^X\(\/\/\)$/{
14261             s//\1/
14262             q
14263           }
14264           /^X\(\/\).*/{
14265             s//\1/
14266             q
14267           }
14268           s/.*/./; q'`
14269       test -d "$as_dir" && break
14270     done
14271     test -z "$as_dirs" || eval "mkdir $as_dirs"
14272   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14273
14274
14275 } # as_fn_mkdir_p
14276 if mkdir -p . 2>/dev/null; then
14277   as_mkdir_p='mkdir -p "$as_dir"'
14278 else
14279   test -d ./-p && rmdir ./-p
14280   as_mkdir_p=false
14281 fi
14282
14283 if test -x / >/dev/null 2>&1; then
14284   as_test_x='test -x'
14285 else
14286   if ls -dL / >/dev/null 2>&1; then
14287     as_ls_L_option=L
14288   else
14289     as_ls_L_option=
14290   fi
14291   as_test_x='
14292     eval sh -c '\''
14293       if test -d "$1"; then
14294         test -d "$1/.";
14295       else
14296         case $1 in #(
14297         -*)set "./$1";;
14298         esac;
14299         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14300         ???[sx]*):;;*)false;;esac;fi
14301     '\'' sh
14302   '
14303 fi
14304 as_executable_p=$as_test_x
14305
14306 # Sed expression to map a string onto a valid CPP name.
14307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14308
14309 # Sed expression to map a string onto a valid variable name.
14310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14311
14312
14313 exec 6>&1
14314 ## ----------------------------------- ##
14315 ## Main body of $CONFIG_STATUS script. ##
14316 ## ----------------------------------- ##
14317 _ASEOF
14318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14319
14320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14321 # Save the log message, to keep $0 and so on meaningful, and to
14322 # report actual input values of CONFIG_FILES etc. instead of their
14323 # values after options handling.
14324 ac_log="
14325 This file was extended by $as_me, which was
14326 generated by GNU Autoconf 2.64.  Invocation command line was
14327
14328   CONFIG_FILES    = $CONFIG_FILES
14329   CONFIG_HEADERS  = $CONFIG_HEADERS
14330   CONFIG_LINKS    = $CONFIG_LINKS
14331   CONFIG_COMMANDS = $CONFIG_COMMANDS
14332   $ $0 $@
14333
14334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14335 "
14336
14337 _ACEOF
14338
14339 case $ac_config_files in *"
14340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14341 esac
14342
14343
14344
14345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14346 # Files that config.status was made for.
14347 config_files="$ac_config_files"
14348
14349 _ACEOF
14350
14351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352 ac_cs_usage="\
14353 \`$as_me' instantiates files and other configuration actions
14354 from templates according to the current configuration.  Unless the files
14355 and actions are specified as TAGs, all are instantiated by default.
14356
14357 Usage: $0 [OPTION]... [TAG]...
14358
14359   -h, --help       print this help, then exit
14360   -V, --version    print version number and configuration settings, then exit
14361   -q, --quiet, --silent
14362                    do not print progress messages
14363   -d, --debug      don't remove temporary files
14364       --recheck    update $as_me by reconfiguring in the same conditions
14365       --file=FILE[:TEMPLATE]
14366                    instantiate the configuration file FILE
14367
14368 Configuration files:
14369 $config_files
14370
14371 Report bugs to the package provider."
14372
14373 _ACEOF
14374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14375 ac_cs_version="\\
14376 config.status
14377 configured by $0, generated by GNU Autoconf 2.64,
14378   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14379
14380 Copyright (C) 2009 Free Software Foundation, Inc.
14381 This config.status script is free software; the Free Software Foundation
14382 gives unlimited permission to copy, distribute and modify it."
14383
14384 ac_pwd='$ac_pwd'
14385 srcdir='$srcdir'
14386 INSTALL='$INSTALL'
14387 AWK='$AWK'
14388 test -n "\$AWK" || AWK=awk
14389 _ACEOF
14390
14391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14392 # The default lists apply if the user does not specify any file.
14393 ac_need_defaults=:
14394 while test $# != 0
14395 do
14396   case $1 in
14397   --*=*)
14398     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14399     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14400     ac_shift=:
14401     ;;
14402   *)
14403     ac_option=$1
14404     ac_optarg=$2
14405     ac_shift=shift
14406     ;;
14407   esac
14408
14409   case $ac_option in
14410   # Handling of the options.
14411   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14412     ac_cs_recheck=: ;;
14413   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14414     $as_echo "$ac_cs_version"; exit ;;
14415   --debug | --debu | --deb | --de | --d | -d )
14416     debug=: ;;
14417   --file | --fil | --fi | --f )
14418     $ac_shift
14419     case $ac_optarg in
14420     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14421     esac
14422     as_fn_append CONFIG_FILES " '$ac_optarg'"
14423     ac_need_defaults=false;;
14424   --he | --h |  --help | --hel | -h )
14425     $as_echo "$ac_cs_usage"; exit ;;
14426   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14427   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14428     ac_cs_silent=: ;;
14429
14430   # This is an error.
14431   -*) as_fn_error "unrecognized option: \`$1'
14432 Try \`$0 --help' for more information." ;;
14433
14434   *) as_fn_append ac_config_targets " $1"
14435      ac_need_defaults=false ;;
14436
14437   esac
14438   shift
14439 done
14440
14441 ac_configure_extra_args=
14442
14443 if $ac_cs_silent; then
14444   exec 6>/dev/null
14445   ac_configure_extra_args="$ac_configure_extra_args --silent"
14446 fi
14447
14448 _ACEOF
14449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450 if \$ac_cs_recheck; then
14451   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14452   shift
14453   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14454   CONFIG_SHELL='$SHELL'
14455   export CONFIG_SHELL
14456   exec "\$@"
14457 fi
14458
14459 _ACEOF
14460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14461 exec 5>>config.log
14462 {
14463   echo
14464   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14465 ## Running $as_me. ##
14466 _ASBOX
14467   $as_echo "$ac_log"
14468 } >&5
14469
14470 _ACEOF
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 #
14473 # INIT-COMMANDS
14474 #
14475 extrasub_build="$extrasub_build"
14476    extrasub_host="$extrasub_host"
14477    extrasub_target="$extrasub_target"
14478
14479 _ACEOF
14480
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14482
14483 # Handling of arguments.
14484 for ac_config_target in $ac_config_targets
14485 do
14486   case $ac_config_target in
14487     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14488
14489   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14490   esac
14491 done
14492
14493
14494 # If the user did not use the arguments to specify the items to instantiate,
14495 # then the envvar interface is used.  Set only those that are not.
14496 # We use the long form for the default assignment because of an extremely
14497 # bizarre bug on SunOS 4.1.3.
14498 if $ac_need_defaults; then
14499   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14500 fi
14501
14502 # Have a temporary directory for convenience.  Make it in the build tree
14503 # simply because there is no reason against having it here, and in addition,
14504 # creating and moving files from /tmp can sometimes cause problems.
14505 # Hook for its removal unless debugging.
14506 # Note that there is a small window in which the directory will not be cleaned:
14507 # after its creation but before its name has been assigned to `$tmp'.
14508 $debug ||
14509 {
14510   tmp=
14511   trap 'exit_status=$?
14512   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14513 ' 0
14514   trap 'as_fn_exit 1' 1 2 13 15
14515 }
14516 # Create a (secure) tmp directory for tmp files.
14517
14518 {
14519   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14520   test -n "$tmp" && test -d "$tmp"
14521 }  ||
14522 {
14523   tmp=./conf$$-$RANDOM
14524   (umask 077 && mkdir "$tmp")
14525 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14526
14527 # Set up the scripts for CONFIG_FILES section.
14528 # No need to generate them if there are no CONFIG_FILES.
14529 # This happens for instance with `./config.status config.h'.
14530 if test -n "$CONFIG_FILES"; then
14531
14532 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14533   ac_cs_awk_getline=:
14534   ac_cs_awk_pipe_init=
14535   ac_cs_awk_read_file='
14536       while ((getline aline < (F[key])) > 0)
14537         print(aline)
14538       close(F[key])'
14539   ac_cs_awk_pipe_fini=
14540 else
14541   ac_cs_awk_getline=false
14542   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14543   ac_cs_awk_read_file='
14544       print "|#_!!_#|"
14545       print "cat " F[key] " &&"
14546       '$ac_cs_awk_pipe_init
14547   # The final `:' finishes the AND list.
14548   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14549 fi
14550 ac_cr=`echo X | tr X '\015'`
14551 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14552 # But we know of no other shell where ac_cr would be empty at this
14553 # point, so we can use a bashism as a fallback.
14554 if test "x$ac_cr" = x; then
14555   eval ac_cr=\$\'\\r\'
14556 fi
14557 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14558 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14559   ac_cs_awk_cr='\r'
14560 else
14561   ac_cs_awk_cr=$ac_cr
14562 fi
14563
14564 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14565 _ACEOF
14566
14567 # Create commands to substitute file output variables.
14568 {
14569   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14570   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14571   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14572   echo "_ACAWK" &&
14573   echo "_ACEOF"
14574 } >conf$$files.sh &&
14575 . ./conf$$files.sh ||
14576   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14577 rm -f conf$$files.sh
14578
14579 {
14580   echo "cat >conf$$subs.awk <<_ACEOF" &&
14581   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14582   echo "_ACEOF"
14583 } >conf$$subs.sh ||
14584   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14585 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14586 ac_delim='%!_!# '
14587 for ac_last_try in false false false false false :; do
14588   . ./conf$$subs.sh ||
14589     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14590
14591   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14592   if test $ac_delim_n = $ac_delim_num; then
14593     break
14594   elif $ac_last_try; then
14595     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14596   else
14597     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14598   fi
14599 done
14600 rm -f conf$$subs.sh
14601
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14604 _ACEOF
14605 sed -n '
14606 h
14607 s/^/S["/; s/!.*/"]=/
14608 p
14609 g
14610 s/^[^!]*!//
14611 :repl
14612 t repl
14613 s/'"$ac_delim"'$//
14614 t delim
14615 :nl
14616 h
14617 s/\(.\{148\}\).*/\1/
14618 t more1
14619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14620 p
14621 n
14622 b repl
14623 :more1
14624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14625 p
14626 g
14627 s/.\{148\}//
14628 t nl
14629 :delim
14630 h
14631 s/\(.\{148\}\).*/\1/
14632 t more2
14633 s/["\\]/\\&/g; s/^/"/; s/$/"/
14634 p
14635 b
14636 :more2
14637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14638 p
14639 g
14640 s/.\{148\}//
14641 t delim
14642 ' <conf$$subs.awk | sed '
14643 /^[^""]/{
14644   N
14645   s/\n//
14646 }
14647 ' >>$CONFIG_STATUS || ac_write_fail=1
14648 rm -f conf$$subs.awk
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 _ACAWK
14651 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14652   for (key in S) S_is_set[key] = 1
14653   FS = "\a"
14654   \$ac_cs_awk_pipe_init
14655 }
14656 {
14657   line = $ 0
14658   nfields = split(line, field, "@")
14659   substed = 0
14660   len = length(field[1])
14661   for (i = 2; i < nfields; i++) {
14662     key = field[i]
14663     keylen = length(key)
14664     if (S_is_set[key]) {
14665       value = S[key]
14666       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14667       len += length(value) + length(field[++i])
14668       substed = 1
14669     } else
14670       len += 1 + keylen
14671   }
14672   if (nfields == 3 && !substed) {
14673     key = field[2]
14674     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14675       \$ac_cs_awk_read_file
14676       next
14677     }
14678   }
14679   print line
14680 }
14681 \$ac_cs_awk_pipe_fini
14682 _ACAWK
14683 _ACEOF
14684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14685 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14686   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14687 else
14688   cat
14689 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14690   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14691 _ACEOF
14692
14693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14695 # trailing colons and then remove the whole line if VPATH becomes empty
14696 # (actually we leave an empty line to preserve line numbers).
14697 if test "x$srcdir" = x.; then
14698   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14699 s/:*\$(srcdir):*/:/
14700 s/:*\${srcdir}:*/:/
14701 s/:*@srcdir@:*/:/
14702 s/^\([^=]*=[     ]*\):*/\1/
14703 s/:*$//
14704 s/^[^=]*=[       ]*$//
14705 }'
14706 fi
14707
14708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14709 fi # test -n "$CONFIG_FILES"
14710
14711
14712 eval set X "  :F $CONFIG_FILES      "
14713 shift
14714 for ac_tag
14715 do
14716   case $ac_tag in
14717   :[FHLC]) ac_mode=$ac_tag; continue;;
14718   esac
14719   case $ac_mode$ac_tag in
14720   :[FHL]*:*);;
14721   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14722   :[FH]-) ac_tag=-:-;;
14723   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14724   esac
14725   ac_save_IFS=$IFS
14726   IFS=:
14727   set x $ac_tag
14728   IFS=$ac_save_IFS
14729   shift
14730   ac_file=$1
14731   shift
14732
14733   case $ac_mode in
14734   :L) ac_source=$1;;
14735   :[FH])
14736     ac_file_inputs=
14737     for ac_f
14738     do
14739       case $ac_f in
14740       -) ac_f="$tmp/stdin";;
14741       *) # Look for the file first in the build tree, then in the source tree
14742          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14743          # because $ac_f cannot contain `:'.
14744          test -f "$ac_f" ||
14745            case $ac_f in
14746            [\\/$]*) false;;
14747            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14748            esac ||
14749            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14750       esac
14751       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14752       as_fn_append ac_file_inputs " '$ac_f'"
14753     done
14754
14755     # Let's still pretend it is `configure' which instantiates (i.e., don't
14756     # use $as_me), people would be surprised to read:
14757     #    /* config.h.  Generated by config.status.  */
14758     configure_input='Generated from '`
14759           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14760         `' by configure.'
14761     if test x"$ac_file" != x-; then
14762       configure_input="$ac_file.  $configure_input"
14763       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14764 $as_echo "$as_me: creating $ac_file" >&6;}
14765     fi
14766     # Neutralize special characters interpreted by sed in replacement strings.
14767     case $configure_input in #(
14768     *\&* | *\|* | *\\* )
14769        ac_sed_conf_input=`$as_echo "$configure_input" |
14770        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14771     *) ac_sed_conf_input=$configure_input;;
14772     esac
14773
14774     case $ac_tag in
14775     *:-:* | *:-) cat >"$tmp/stdin" \
14776       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14777     esac
14778     ;;
14779   esac
14780
14781   ac_dir=`$as_dirname -- "$ac_file" ||
14782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14783          X"$ac_file" : 'X\(//\)[^/]' \| \
14784          X"$ac_file" : 'X\(//\)$' \| \
14785          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14786 $as_echo X"$ac_file" |
14787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14788             s//\1/
14789             q
14790           }
14791           /^X\(\/\/\)[^/].*/{
14792             s//\1/
14793             q
14794           }
14795           /^X\(\/\/\)$/{
14796             s//\1/
14797             q
14798           }
14799           /^X\(\/\).*/{
14800             s//\1/
14801             q
14802           }
14803           s/.*/./; q'`
14804   as_dir="$ac_dir"; as_fn_mkdir_p
14805   ac_builddir=.
14806
14807 case "$ac_dir" in
14808 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14809 *)
14810   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14811   # A ".." for each directory in $ac_dir_suffix.
14812   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14813   case $ac_top_builddir_sub in
14814   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14815   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14816   esac ;;
14817 esac
14818 ac_abs_top_builddir=$ac_pwd
14819 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14820 # for backward compatibility:
14821 ac_top_builddir=$ac_top_build_prefix
14822
14823 case $srcdir in
14824   .)  # We are building in place.
14825     ac_srcdir=.
14826     ac_top_srcdir=$ac_top_builddir_sub
14827     ac_abs_top_srcdir=$ac_pwd ;;
14828   [\\/]* | ?:[\\/]* )  # Absolute name.
14829     ac_srcdir=$srcdir$ac_dir_suffix;
14830     ac_top_srcdir=$srcdir
14831     ac_abs_top_srcdir=$srcdir ;;
14832   *) # Relative name.
14833     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14834     ac_top_srcdir=$ac_top_build_prefix$srcdir
14835     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14836 esac
14837 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14838
14839
14840   case $ac_mode in
14841   :F)
14842   #
14843   # CONFIG_FILE
14844   #
14845
14846   case $INSTALL in
14847   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14848   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14849   esac
14850 _ACEOF
14851
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 # If the template does not know about datarootdir, expand it.
14854 # FIXME: This hack should be removed a few years after 2.60.
14855 ac_datarootdir_hack=; ac_datarootdir_seen=
14856 ac_sed_dataroot='
14857 /datarootdir/ {
14858   p
14859   q
14860 }
14861 /@datadir@/p
14862 /@docdir@/p
14863 /@infodir@/p
14864 /@localedir@/p
14865 /@mandir@/p'
14866 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14867 *datarootdir*) ac_datarootdir_seen=yes;;
14868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14869   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14870 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14871 _ACEOF
14872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873   ac_datarootdir_hack='
14874   s&@datadir@&$datadir&g
14875   s&@docdir@&$docdir&g
14876   s&@infodir@&$infodir&g
14877   s&@localedir@&$localedir&g
14878   s&@mandir@&$mandir&g
14879   s&\\\${datarootdir}&$datarootdir&g' ;;
14880 esac
14881 _ACEOF
14882
14883 # Neutralize VPATH when `$srcdir' = `.'.
14884 # Shell code in configure.ac might set extrasub.
14885 # FIXME: do we really want to maintain this feature?
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 ac_sed_extra="$ac_vpsub
14888 $extrasub
14889 _ACEOF
14890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14891 :t
14892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14893 s|@configure_input@|$ac_sed_conf_input|;t t
14894 s&@top_builddir@&$ac_top_builddir_sub&;t t
14895 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14896 s&@srcdir@&$ac_srcdir&;t t
14897 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14898 s&@top_srcdir@&$ac_top_srcdir&;t t
14899 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14900 s&@builddir@&$ac_builddir&;t t
14901 s&@abs_builddir@&$ac_abs_builddir&;t t
14902 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14903 s&@INSTALL@&$ac_INSTALL&;t t
14904 $ac_datarootdir_hack
14905 "
14906 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14907 if $ac_cs_awk_getline; then
14908   $AWK -f "$tmp/subs.awk"
14909 else
14910   $AWK -f "$tmp/subs.awk" | $SHELL
14911 fi >$tmp/out \
14912   || as_fn_error "could not create $ac_file" "$LINENO" 5
14913
14914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14915   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14916   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14917   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14918 which seems to be undefined.  Please make sure it is defined." >&5
14919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14920 which seems to be undefined.  Please make sure it is defined." >&2;}
14921
14922   rm -f "$tmp/stdin"
14923   case $ac_file in
14924   -) cat "$tmp/out" && rm -f "$tmp/out";;
14925   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14926   esac \
14927   || as_fn_error "could not create $ac_file" "$LINENO" 5
14928  ;;
14929
14930
14931
14932   esac
14933
14934
14935   case $ac_file$ac_mode in
14936     "Makefile":F) sed "$extrasub_build" Makefile |
14937    sed "$extrasub_host" |
14938    sed "$extrasub_target" > mf$$
14939    mv -f mf$$ Makefile ;;
14940
14941   esac
14942 done # for ac_tag
14943
14944
14945 as_fn_exit 0
14946 _ACEOF
14947 ac_clean_files=$ac_clean_files_save
14948
14949 test $ac_write_fail = 0 ||
14950   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14951
14952
14953 # configure is writing to config.log, and then calls config.status.
14954 # config.status does its own redirection, appending to config.log.
14955 # Unfortunately, on DOS this fails, as config.log is still kept open
14956 # by configure, so config.status won't be able to write to it; its
14957 # output is simply discarded.  So we exec the FD to /dev/null,
14958 # effectively closing config.log, so it can be properly (re)opened and
14959 # appended to by config.status.  When coming back to configure, we
14960 # need to make the FD available again.
14961 if test "$no_create" != yes; then
14962   ac_cs_success=:
14963   ac_config_status_args=
14964   test "$silent" = yes &&
14965     ac_config_status_args="$ac_config_status_args --quiet"
14966   exec 5>/dev/null
14967   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14968   exec 5>>config.log
14969   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14970   # would make configure fail if this is the last instruction.
14971   $ac_cs_success || as_fn_exit $?
14972 fi
14973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14976 fi
14977