PR gas/12296
[binutils.git] / configure
blob8a146e2bfd010468401dacacdd52ab2fd7a21bed
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
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
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+"$@"}
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."
234 exit 1
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
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
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 ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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 ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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 ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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 ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
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
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
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
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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
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
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
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;;
460 ECHO_N='-n';;
461 esac
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
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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
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
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=
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
518 as_executable_p=$as_test_x
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'"
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'"
527 exec 7<&0 </dev/null 6>&1
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`
535 # Initializations.
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=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
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 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
594 LIPO
596 DLLTOOL
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
605 BISON
606 YACC
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 GOC_FOR_BUILD
614 GFORTRAN_FOR_BUILD
615 GCJ_FOR_BUILD
616 DLLTOOL_FOR_BUILD
617 CXX_FOR_BUILD
618 CXXFLAGS_FOR_BUILD
619 CFLAGS_FOR_BUILD
620 CC_FOR_BUILD
621 AS_FOR_BUILD
622 AR_FOR_BUILD
623 target_configdirs
624 configdirs
625 build_configdirs
626 INSTALL_GDB_TK
627 GDB_TK
628 CONFIGURE_GDB_TK
629 build_tooldir
630 tooldir
631 GCC_SHLIB_SUBDIR
632 RPATH_ENVVAR
633 target_configargs
634 host_configargs
635 build_configargs
636 BUILD_CONFIG
637 CXXFLAGS_FOR_TARGET
638 CFLAGS_FOR_TARGET
639 DEBUG_PREFIX_CFLAGS_FOR_TARGET
640 SYSROOT_CFLAGS_FOR_TARGET
641 stage1_languages
642 extra_host_libiberty_configure_flags
643 clooginc
644 clooglibs
645 pplinc
646 ppllibs
647 poststage1_ldflags
648 poststage1_libs
649 stage1_libs
650 stage1_ldflags
651 extra_mpc_mpfr_configure_flags
652 extra_mpc_gmp_configure_flags
653 extra_mpfr_configure_flags
654 gmpinc
655 gmplibs
656 do_compare
657 GNATMAKE
658 GNATBIND
659 ac_ct_CXX
660 CXXFLAGS
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
669 target_subdir
670 host_subdir
671 build_subdir
672 build_libsubdir
675 LN_S
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 target_noncanonical
689 host_noncanonical
690 build_noncanonical
691 build_os
692 build_vendor
693 build_cpu
694 build
695 TOPLEVEL_CONFIGURE_ARGUMENTS
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files='serialization_dependencies
735 host_makefile_frag
736 target_makefile_frag
737 alphaieee_frag
738 ospace_frag'
739 ac_user_opts='
740 enable_option_checking
741 with_build_libsubdir
742 enable_gold
743 enable_ld
744 enable_libquadmath
745 enable_libquadmath_support
746 enable_libada
747 enable_libssp
748 enable_build_with_cxx
749 with_mpc
750 with_mpc_include
751 with_mpc_lib
752 with_mpfr_dir
753 with_mpfr
754 with_mpfr_include
755 with_mpfr_lib
756 with_gmp_dir
757 with_gmp
758 with_gmp_include
759 with_gmp_lib
760 with_host_libstdcxx
761 with_stage1_ldflags
762 with_stage1_libs
763 with_boot_libs
764 with_boot_ldflags
765 with_ppl
766 with_ppl_include
767 with_ppl_lib
768 enable_ppl_version_check
769 with_cloog
770 with_cloog_include
771 with_cloog_lib
772 enable_cloog_backend
773 enable_cloog_version_check
774 enable_lto
775 enable_stage1_languages
776 enable_objc_gc
777 with_build_sysroot
778 with_debug_prefix_map
779 enable_bootstrap
780 with_build_config
781 enable_serial_configure
782 with_build_time_tools
783 enable_maintainer_mode
784 enable_stage1_checking
785 enable_werror
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
796 CXXFLAGS
798 build_configargs
799 host_configargs
800 target_configargs
803 DLLTOOL
805 LIPO
807 RANLIB
808 STRIP
809 WINDRES
810 WINDMC
811 OBJCOPY
812 OBJDUMP
813 CC_FOR_TARGET
814 CXX_FOR_TARGET
815 GCC_FOR_TARGET
816 GCJ_FOR_TARGET
817 GFORTRAN_FOR_TARGET
818 GOC_FOR_TARGET
819 AR_FOR_TARGET
820 AS_FOR_TARGET
821 DLLTOOL_FOR_TARGET
822 LD_FOR_TARGET
823 LIPO_FOR_TARGET
824 NM_FOR_TARGET
825 OBJDUMP_FOR_TARGET
826 RANLIB_FOR_TARGET
827 STRIP_FOR_TARGET
828 WINDRES_FOR_TARGET
829 WINDMC_FOR_TARGET'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
880 ac_prev=
881 ac_dashdash=
882 for ac_option
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 esac
1237 done
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1323 /^X\(\/\/\)$/{
1324 s//\1/
1327 /^X\(\/\).*/{
1328 s//\1/
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1336 else
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1361 esac
1362 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1433 cat <<\_ACEOF
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444 _ACEOF
1447 if test -n "$ac_init_help"; then
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
1463 --disable-ppl-version-check
1464 disable check for PPL version
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
1468 --disable-cloog-version-check
1469 disable check for CLooG version
1470 --enable-lto enable link time optimization support
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
1502 --with-mpfr-include=PATH
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
1534 --with-build-sysroot=SYSROOT
1535 use sysroot as the system root during the build
1536 --with-debug-prefix-map='A=B C=D ...'
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
1540 --with-build-time-tools=PATH
1541 use given path to find target tools during the build
1543 Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
1568 WINDMC WINDMC for the host
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
1581 GOC_FOR_TARGET
1582 GOC for the target
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1609 Report bugs to the package provider.
1610 _ACEOF
1611 ac_status=$?
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
1620 ac_builddir=.
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1638 case $srcdir in
1639 .) # We are building in place.
1640 ac_srcdir=.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 configure
1673 generated by GNU Autoconf 2.64
1675 Copyright (C) 2009 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=1
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1722 } # ac_fn_c_try_compile
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1760 } # ac_fn_cxx_try_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=1
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1806 } # ac_fn_c_try_link
1807 cat >config.log <<_ACEOF
1808 This file contains any messages produced by compilers while
1809 running configure, to aid debugging if configure makes a mistake.
1811 It was created by $as_me, which was
1812 generated by GNU Autoconf 2.64. Invocation command line was
1814 $ $0 $@
1816 _ACEOF
1817 exec 5>>config.log
1819 cat <<_ASUNAME
1820 ## --------- ##
1821 ## Platform. ##
1822 ## --------- ##
1824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841 _ASUNAME
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 $as_echo "PATH: $as_dir"
1849 done
1850 IFS=$as_save_IFS
1852 } >&5
1854 cat >&5 <<_ACEOF
1857 ## ----------- ##
1858 ## Core tests. ##
1859 ## ----------- ##
1861 _ACEOF
1864 # Keep a trace of the command line.
1865 # Strip out --no-create and --no-recursion so they do not pile up.
1866 # Strip out --silent because we don't want to record it for future runs.
1867 # Also quote any args containing shell meta-characters.
1868 # Make two passes to allow for proper duplicate-argument suppression.
1869 ac_configure_args=
1870 ac_configure_args0=
1871 ac_configure_args1=
1872 ac_must_keep_next=false
1873 for ac_pass in 1 2
1875 for ac_arg
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 esac
1885 case $ac_pass in
1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888 as_fn_append ac_configure_args1 " '$ac_arg'"
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1904 as_fn_append ac_configure_args " '$ac_arg'"
1906 esac
1907 done
1908 done
1909 { ac_configure_args0=; unset ac_configure_args0;}
1910 { ac_configure_args1=; unset ac_configure_args1;}
1912 # When interrupted or exit'd, cleanup temporary files, and complete
1913 # config.log. We remove comments because anyway the quotes in there
1914 # would cause problems or look ugly.
1915 # WARNING: Use '\'' to represent an apostrophe within the trap.
1916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917 trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1920 echo
1922 cat <<\_ASBOX
1923 ## ---------------- ##
1924 ## Cache variables. ##
1925 ## ---------------- ##
1926 _ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
1945 (set) 2>&1 |
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
1948 sed -n \
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955 esac |
1956 sort
1958 echo
1960 cat <<\_ASBOX
1961 ## ----------------- ##
1962 ## Output variables. ##
1963 ## ----------------- ##
1964 _ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
1978 ## ------------------- ##
1979 ## File substitutions. ##
1980 ## ------------------- ##
1981 _ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
1990 done | sort
1991 echo
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996 ## ----------- ##
1997 ## confdefs.h. ##
1998 ## ----------- ##
1999 _ASBOX
2000 echo
2001 cat confdefs.h
2002 echo
2004 test "$ac_signal" != 0 &&
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
2007 } >&5
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010 exit $exit_status
2012 for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014 done
2015 ac_signal=0
2017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2018 rm -f -r conftest* confdefs.h
2020 $as_echo "/* confdefs.h */" > confdefs.h
2022 # Predefined preprocessor variables.
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_NAME "$PACKAGE_NAME"
2026 _ACEOF
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030 _ACEOF
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2034 _ACEOF
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_STRING "$PACKAGE_STRING"
2038 _ACEOF
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042 _ACEOF
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_URL "$PACKAGE_URL"
2046 _ACEOF
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2051 ac_site_file1=NONE
2052 ac_site_file2=NONE
2053 if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055 elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058 else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
2062 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064 test "x$ac_site_file" = xNONE && continue
2065 if test -r "$ac_site_file"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2068 sed 's/^/| /' "$ac_site_file" >&5
2069 . "$ac_site_file"
2071 done
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 progname=$0
2166 # if PWD already has a value, it is probably wrong.
2167 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169 # Export original configure arguments for use by sub-configures.
2170 # Quote arguments with shell meta charatcers.
2171 TOPLEVEL_CONFIGURE_ARGUMENTS=
2172 set -- "$progname" "$@"
2173 for ac_arg
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184 done
2185 if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188 # Remove the initial space we just introduced and, as these will be
2189 # expanded by make, quote '$'.
2190 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2193 # Find the build, host, and target systems.
2194 ac_aux_dir=
2195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2202 done
2203 done
2204 if test -z "$ac_aux_dir"; then
2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217 # Make sure we can run config.sub.
2218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222 $as_echo_n "checking build system type... " >&6; }
2223 if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225 else
2226 ac_build_alias=$build_alias
2227 test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229 test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236 $as_echo "$ac_cv_build" >&6; }
2237 case $ac_cv_build in
2238 *-*-*) ;;
2239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240 esac
2241 build=$ac_cv_build
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_build
2244 shift
2245 build_cpu=$1
2246 build_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 build_os=$*
2251 IFS=$ac_save_IFS
2252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
2258 esac
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
2265 esac
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
2272 esac
2277 test "$host_noncanonical" = "$target_noncanonical" &&
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
2280 program_transform_name=s,y,y,
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283 $as_echo_n "checking host system type... " >&6; }
2284 if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289 else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296 $as_echo "$ac_cv_host" >&6; }
2297 case $ac_cv_host in
2298 *-*-*) ;;
2299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300 esac
2301 host=$ac_cv_host
2302 ac_save_IFS=$IFS; IFS='-'
2303 set x $ac_cv_host
2304 shift
2305 host_cpu=$1
2306 host_vendor=$2
2307 shift; shift
2308 # Remember, the first character of IFS is used to create $*,
2309 # except with old shells:
2310 host_os=$*
2311 IFS=$ac_save_IFS
2312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316 $as_echo_n "checking target system type... " >&6; }
2317 if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322 else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329 $as_echo "$ac_cv_target" >&6; }
2330 case $ac_cv_target in
2331 *-*-*) ;;
2332 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333 esac
2334 target=$ac_cv_target
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_target
2337 shift
2338 target_cpu=$1
2339 target_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 target_os=$*
2344 IFS=$ac_save_IFS
2345 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2348 # The aliases save the names the user supplied, while $host etc.
2349 # will get canonicalized.
2350 test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
2355 test "$program_prefix" != NONE &&
2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2357 # Use a double $ so make ignores it.
2358 test "$program_suffix" != NONE &&
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360 # Double any \ or $.
2361 # By default was `s,x,x', remove it if useless.
2362 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367 # Get 'install' or 'install-sh' and its variants.
2368 # Find a good install program. We prefer a C program (faster),
2369 # so one script is as good as another. But avoid the broken or
2370 # incompatible versions:
2371 # SysV /etc/install, /usr/sbin/install
2372 # SunOS /usr/etc/install
2373 # IRIX /sbin/install
2374 # AIX /bin/install
2375 # AmigaOS /C/install, which installs bootblocks on floppy discs
2376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2379 # OS/2's system install, which has a completely different semantic
2380 # ./install, which can be erroneously created by make from ./install.sh.
2381 # Reject install programs that cannot install multiple files.
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2384 if test -z "$INSTALL"; then
2385 if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 # Account for people who put trailing slashes in PATH elements.
2394 case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2398 /usr/ucb/* ) ;;
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2406 if test $ac_prog = install &&
2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # AIX install. It has an incompatible calling convention.
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2414 else
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2429 done
2430 done
2432 esac
2434 done
2435 IFS=$as_save_IFS
2437 rm -rf conftest.one conftest.two conftest.dir
2440 if test "${ac_cv_path_install+set}" = set; then
2441 INSTALL=$ac_cv_path_install
2442 else
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the value is a relative name.
2447 INSTALL=$ac_install_sh
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451 $as_echo "$INSTALL" >&6; }
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462 $as_echo_n "checking whether ln works... " >&6; }
2463 if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 rm -f conftestdata_t
2467 echo >conftestdata_f
2468 if ln conftestdata_f conftestdata_t 2>/dev/null
2469 then
2470 acx_cv_prog_LN=ln
2471 else
2472 acx_cv_prog_LN=no
2474 rm -f conftestdata_f conftestdata_t
2477 if test $acx_cv_prog_LN = no; then
2478 LN="cp"
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480 $as_echo "no, using $LN" >&6; }
2481 else
2482 LN="$acx_cv_prog_LN"
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488 $as_echo_n "checking whether ln -s works... " >&6; }
2489 LN_S=$as_ln_s
2490 if test "$LN_S" = "ln -s"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495 $as_echo "no, using $LN_S" >&6; }
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500 if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521 # Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523 case `"$ac_path_SED" --version 2>&1` in
2524 *GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547 esac
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553 IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 else
2558 ac_cv_path_SED=$SED
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563 $as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2567 for ac_prog in gawk mawk nawk awk
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2592 IFS=$as_save_IFS
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2606 test -n "$AWK" && break
2607 done
2610 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2612 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613 # a relative path.
2614 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2618 # Set srcdir to "." if that's what it is.
2619 # This is important for multilib support.
2620 pwd=`${PWDCMD-pwd}`
2621 if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
2625 topsrcdir=$srcpwd
2627 extra_host_args=
2629 ### To add a new directory to the tree, first choose whether it is a target
2630 ### or a host dependent tool. Then put it into the appropriate list
2631 ### (library or tools, host or target), doing a dependency sort.
2633 # Subdirs will be configured in the order listed in build_configdirs,
2634 # configdirs, or target_configdirs; see the serialization section below.
2636 # Dependency sorting is only needed when *configuration* must be done in
2637 # a particular order. In all cases a dependency should be specified in
2638 # the Makefile, whether or not it's implicitly specified here.
2640 # Double entries in build_configdirs, configdirs, or target_configdirs may
2641 # cause circular dependencies and break everything horribly.
2643 # these library is used by various programs built for the build
2644 # environment
2646 build_libs="build-libiberty"
2648 # these tools are built for the build environment
2649 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2651 # these libraries are used by various programs built for the host environment
2653 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2655 # these tools are built for the host environment
2656 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657 # know that we are building the simulator.
2658 # binutils, gas and ld appear in that order because it makes sense to run
2659 # "make check" in that particular order.
2660 # If --enable-gold is used, "gold" may replace "ld".
2661 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2663 # libgcj represents the runtime libraries only used by gcj.
2664 libgcj="target-libffi \
2665 target-zlib \
2666 target-libjava"
2668 # these libraries are built for the target environment, and are built after
2669 # the host libraries and the host tools (which may be a cross compiler)
2671 target_libraries="target-libgcc \
2672 target-libiberty \
2673 target-libgloss \
2674 target-newlib \
2675 target-libgomp \
2676 target-libstdc++-v3 \
2677 target-libmudflap \
2678 target-libssp \
2679 target-libquadmath \
2680 target-libgfortran \
2681 target-boehm-gc \
2682 ${libgcj} \
2683 target-libobjc \
2684 target-libada \
2685 target-libgo"
2687 # these tools are built using the target libraries, and are intended to
2688 # run only in the target environment
2690 # note: any program that *uses* libraries that are in the "target_libraries"
2691 # list belongs in this list.
2693 target_tools="target-rda"
2695 ################################################################################
2697 ## All tools belong in one of the four categories, and are assigned above
2698 ## We assign ${configdirs} this way to remove all embedded newlines. This
2699 ## is important because configure will choke if they ever get through.
2700 ## ${configdirs} is directories we build using the host tools.
2701 ## ${target_configdirs} is directories we build using the target tools.
2702 configdirs=`echo ${host_libs} ${host_tools}`
2703 target_configdirs=`echo ${target_libraries} ${target_tools}`
2704 build_configdirs=`echo ${build_libs} ${build_tools}`
2708 ################################################################################
2710 srcname="gnu development package"
2712 # This gets set non-empty for some net releases of packages.
2713 appdirs=""
2715 # Define is_cross_compiler to save on calls to 'test'.
2716 is_cross_compiler=
2717 if test x"${host}" = x"${target}" ; then
2718 is_cross_compiler=no
2719 else
2720 is_cross_compiler=yes
2723 # Find the build and target subdir names.
2725 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2726 # have matching libraries, they should use host libraries: Makefile.tpl
2727 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2728 # However, they still use the build modules, because the corresponding
2729 # host modules (e.g. bison) are only built for the host when bootstrap
2730 # finishes. So:
2731 # - build_subdir is where we find build modules, and never changes.
2732 # - build_libsubdir is where we find build libraries, and can be overridden.
2734 # Prefix 'build-' so this never conflicts with target_subdir.
2735 build_subdir="build-${build_noncanonical}"
2737 # Check whether --with-build-libsubdir was given.
2738 if test "${with_build_libsubdir+set}" = set; then :
2739 withval=$with_build_libsubdir; build_libsubdir="$withval"
2740 else
2741 build_libsubdir="$build_subdir"
2744 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2745 if ( test $srcdir = . && test -d gcc ) \
2746 || test -d $srcdir/../host-${host_noncanonical}; then
2747 host_subdir="host-${host_noncanonical}"
2748 else
2749 host_subdir=.
2751 # No prefix.
2752 target_subdir=${target_noncanonical}
2754 # Be sure to cover against remnants of an in-tree build.
2755 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2756 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2757 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2760 # Skipdirs are removed silently.
2761 skipdirs=
2762 # Noconfigdirs are removed loudly.
2763 noconfigdirs=""
2765 use_gnu_ld=
2766 # Make sure we don't let GNU ld be added if we didn't want it.
2767 if test x$with_gnu_ld = xno ; then
2768 use_gnu_ld=no
2769 noconfigdirs="$noconfigdirs ld gold"
2772 use_gnu_as=
2773 # Make sure we don't let GNU as be added if we didn't want it.
2774 if test x$with_gnu_as = xno ; then
2775 use_gnu_as=no
2776 noconfigdirs="$noconfigdirs gas"
2779 use_included_zlib=
2780 # Make sure we don't let ZLIB be added if we didn't want it.
2781 if test x$with_system_zlib = xyes ; then
2782 use_included_zlib=no
2783 noconfigdirs="$noconfigdirs zlib"
2786 # some tools are so dependent upon X11 that if we're not building with X,
2787 # it's not even worth trying to configure, much less build, that tool.
2789 case ${with_x} in
2790 yes | "") ;; # the default value for this tree is that X11 is available
2792 skipdirs="${skipdirs} tk itcl libgui"
2793 # We won't be able to build gdbtk without X.
2794 enable_gdbtk=no
2796 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2797 esac
2799 # Some are only suitable for cross toolchains.
2800 # Remove these if host=target.
2801 cross_only="target-libgloss target-newlib target-opcodes"
2803 case $is_cross_compiler in
2804 no) skipdirs="${skipdirs} ${cross_only}" ;;
2805 esac
2807 # If both --with-headers and --with-libs are specified, default to
2808 # --without-newlib.
2809 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2811 if test x"${with_newlib}" = x ; then
2812 with_newlib=no
2816 # Recognize --with-newlib/--without-newlib.
2817 case ${with_newlib} in
2818 no) skipdirs="${skipdirs} target-newlib" ;;
2819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2820 esac
2822 # Handle --enable-gold, --enable-ld.
2823 # --disable-gold [--enable-ld]
2824 # Build only ld. Default option.
2825 # --enable-gold [--enable-ld]
2826 # Build both gold and ld. Install gold as "ld.gold", install ld
2827 # as "ld.bfd" and "ld".
2828 # --enable-gold=default [--enable-ld]
2829 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2830 # install ld as "ld.bfd".
2831 # --enable-gold[=default] --disable-ld
2832 # Build only gold, which is then installed as both "ld.gold" and "ld".
2833 # --enable-gold --enable-ld=default
2834 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2835 # and ld.bfd).
2836 # In other words, ld is default
2837 # --enable-gold=default --enable-ld=default
2838 # Error.
2840 default_ld=
2841 # Check whether --enable-gold was given.
2842 if test "${enable_gold+set}" = set; then :
2843 enableval=$enable_gold; ENABLE_GOLD=$enableval
2844 else
2845 ENABLE_GOLD=no
2848 case "${ENABLE_GOLD}" in
2849 yes|default)
2850 # Check for ELF target.
2851 is_elf=no
2852 case "${target}" in
2853 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2854 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2855 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2856 | *-*-solaris2* | *-*-nto*)
2857 case "${target}" in
2858 *-*-linux*aout* | *-*-linux*oldld*)
2861 is_elf=yes
2863 esac
2864 esac
2866 if test "$is_elf" = "yes"; then
2867 # Check for target supported by gold.
2868 case "${target}" in
2869 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2870 configdirs="$configdirs gold"
2871 if test x${ENABLE_GOLD} = xdefault; then
2872 default_ld=gold
2874 ENABLE_GOLD=yes
2876 esac
2882 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2884 esac
2886 # Check whether --enable-ld was given.
2887 if test "${enable_ld+set}" = set; then :
2888 enableval=$enable_ld; ENABLE_LD=$enableval
2889 else
2890 ENABLE_LD=yes
2894 case "${ENABLE_LD}" in
2895 default)
2896 if test x${default_ld} != x; then
2897 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2900 yes)
2903 if test x${ENABLE_GOLD} != xyes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2905 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2907 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2910 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2912 esac
2914 # Configure extra directories which are host specific
2916 case "${host}" in
2917 *-cygwin*)
2918 configdirs="$configdirs libtermcap" ;;
2919 esac
2921 # A target can indicate whether a language isn't supported for some reason.
2922 # Only spaces may be used in this macro; not newlines or tabs.
2923 unsupported_languages=
2925 # Remove more programs from consideration, based on the host or
2926 # target this usually means that a port of the program doesn't
2927 # exist yet.
2929 case "${host}" in
2930 i[3456789]86-*-msdosdjgpp*)
2931 noconfigdirs="$noconfigdirs tcl tk itcl"
2933 esac
2936 # Check whether --enable-libquadmath was given.
2937 if test "${enable_libquadmath+set}" = set; then :
2938 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2939 else
2940 ENABLE_LIBQUADMATH=yes
2943 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2944 noconfigdirs="$noconfigdirs target-libquadmath"
2948 # Check whether --enable-libquadmath-support was given.
2949 if test "${enable_libquadmath_support+set}" = set; then :
2950 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2951 else
2952 ENABLE_LIBQUADMATH_SUPPORT=yes
2955 enable_libquadmath_support=
2956 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2957 enable_libquadmath_support=no
2961 # Check whether --enable-libada was given.
2962 if test "${enable_libada+set}" = set; then :
2963 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2964 else
2965 ENABLE_LIBADA=yes
2968 if test "${ENABLE_LIBADA}" != "yes" ; then
2969 noconfigdirs="$noconfigdirs gnattools"
2972 # Check whether --enable-libssp was given.
2973 if test "${enable_libssp+set}" = set; then :
2974 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2975 else
2976 ENABLE_LIBSSP=yes
2980 # Save it here so that, even in case of --enable-libgcj, if the Java
2981 # front-end isn't enabled, we still get libgcj disabled.
2982 libgcj_saved=$libgcj
2983 case $enable_libgcj in
2984 yes)
2985 # If we reset it here, it won't get added to noconfigdirs in the
2986 # target-specific build rules, so it will be forcibly enabled
2987 # (unless the Java language itself isn't enabled).
2988 libgcj=
2991 # Make sure we get it printed in the list of not supported target libs.
2992 # Don't disable libffi, though, other languages use it.
2993 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
2994 # Clear libgcj_saved so that even if java is enabled libffi won't be
2995 # built.
2996 libgcj_saved=
2998 esac
3001 # Disable libmudflap on some systems.
3002 if test x$enable_libmudflap = x ; then
3003 case "${target}" in
3004 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3005 # Enable libmudflap by default in GNU and friends.
3007 *-*-freebsd*)
3008 # Enable libmudflap by default in FreeBSD.
3011 # Disable it by default everywhere else.
3012 noconfigdirs="$noconfigdirs target-libmudflap"
3014 esac
3017 # Disable libgomp on non POSIX hosted systems.
3018 if test x$enable_libgomp = x ; then
3019 # Enable libgomp by default on hosted POSIX systems.
3020 case "${target}" in
3021 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3023 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3025 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3027 *-*-darwin* | *-*-aix*)
3030 noconfigdirs="$noconfigdirs target-libgomp"
3032 esac
3035 # Disable libssp for some systems.
3036 case "${target}" in
3037 avr-*-*)
3038 # No hosted I/O support.
3039 noconfigdirs="$noconfigdirs target-libssp"
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3044 esac
3046 # Disable target libiberty for some systems.
3047 case "${target}" in
3048 *-*-kaos*)
3049 # Remove unsupported stuff on all kaOS configurations.
3050 skipdirs="target-libiberty"
3052 *-*-netbsd*)
3053 # Skip some stuff on all NetBSD configurations.
3054 noconfigdirs="$noconfigdirs target-libiberty"
3056 *-*-netware*)
3057 noconfigdirs="$noconfigdirs target-libiberty"
3059 *-*-rtems*)
3060 skipdirs="${skipdirs} target-libiberty"
3062 *-*-tpf*)
3063 noconfigdirs="$noconfigdirs target-libiberty"
3065 *-*-vxworks*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3068 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3071 arm*-*-symbianelf*)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3074 avr-*-*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3077 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3080 picochip-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3083 mips*-sde-elf*)
3084 skipdirs="$skipdirs target-libiberty"
3086 ip2k-*-*)
3087 noconfigdirs="$noconfigdirs target-libiberty"
3089 esac
3091 # Disable libstdc++-v3 for some systems.
3092 case "${target}" in
3093 *-*-vxworks*)
3094 # VxWorks uses the Dinkumware C++ library.
3095 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3097 arm*-wince-pe*)
3098 # the C++ libraries don't build on top of CE's C libraries
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3101 avr-*-*)
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3104 esac
3106 # Disable Fortran for some systems.
3107 case "${target}" in
3108 mmix-*-*)
3109 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3110 unsupported_languages="$unsupported_languages fortran"
3112 esac
3114 # Default libgloss CPU subdirectory.
3115 libgloss_dir="$target_cpu"
3117 case "${target}" in
3118 *-*-chorusos)
3119 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121 powerpc-*-darwin*)
3122 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3123 noconfigdirs="$noconfigdirs sim target-rda"
3125 i[3456789]86-*-darwin*)
3126 noconfigdirs="$noconfigdirs ld gprof"
3127 noconfigdirs="$noconfigdirs sim target-rda"
3129 x86_64-*-darwin[912]*)
3130 noconfigdirs="$noconfigdirs ld gas gprof"
3131 noconfigdirs="$noconfigdirs sim target-rda"
3133 *-*-darwin*)
3134 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3135 noconfigdirs="$noconfigdirs sim target-rda"
3136 noconfigdirs="$noconfigdirs ${libgcj}"
3138 *-*-dragonfly*)
3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3141 *-*-freebsd*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3143 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3144 && test -f /usr/local/include/gmp.h; then
3145 with_gmp=/usr/local
3148 # Skip some stuff that's unsupported on some FreeBSD configurations.
3149 case "${target}" in
3150 i*86-*-*) ;;
3151 alpha*-*-*) ;;
3152 x86_64-*-*) ;;
3154 noconfigdirs="$noconfigdirs ${libgcj}"
3156 esac
3158 *-*-kaos*)
3159 # Remove unsupported stuff on all kaOS configurations.
3160 noconfigdirs="$noconfigdirs target-libgloss"
3162 *-*-netbsd*)
3163 # Skip some stuff on all NetBSD configurations.
3164 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3166 # Skip some stuff that's unsupported on some NetBSD configurations.
3167 case "${target}" in
3168 i*86-*-netbsdelf*) ;;
3169 arm*-*-netbsdelf*) ;;
3171 noconfigdirs="$noconfigdirs ${libgcj}"
3173 esac
3175 *-*-netware*)
3176 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3178 *-*-rtems*)
3179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3181 # The tpf target doesn't support gdb yet.
3182 *-*-tpf*)
3183 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl"
3185 *-*-uclinux*)
3186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3188 *-*-vxworks*)
3189 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3191 alpha*-dec-osf*)
3192 # ld works, but does not support shared libraries.
3193 # newlib is not 64 bit ready.
3194 # gas doesn't generate exception information.
3195 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
3197 alpha*-*-*vms*)
3198 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3200 alpha*-*-linux*)
3201 # newlib is not 64 bit ready
3202 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3204 alpha*-*-*)
3205 # newlib is not 64 bit ready
3206 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3208 am33_2.0-*-linux*)
3209 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3211 sh-*-linux*)
3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3214 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3215 noconfigdirs="$noconfigdirs ${libgcj}"
3216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3217 noconfigdirs="$noconfigdirs target-newlib"
3218 libgloss_dir=wince
3220 arc-*-*)
3221 noconfigdirs="$noconfigdirs target-libgloss"
3223 arm-*-coff)
3224 libgloss_dir=arm
3226 arm-*-elf* | arm*-*-eabi* )
3227 noconfigdirs="$noconfigdirs target-libffi"
3228 libgloss_dir=arm
3230 arm*-*-linux-gnueabi)
3231 case ${with_newlib} in
3232 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3233 esac
3234 libgloss_dir=arm
3236 arm*-*-symbianelf*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3238 libgloss_dir=arm
3240 arm-*-pe*)
3241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3243 arm-*-riscix*)
3244 noconfigdirs="$noconfigdirs ld target-libgloss"
3246 avr-*-*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3249 bfin-*-*)
3250 unsupported_languages="$unsupported_languages java"
3251 noconfigdirs="$noconfigdirs target-boehm-gc"
3253 c4x-*-* | tic4x-*-*)
3254 noconfigdirs="$noconfigdirs target-libgloss"
3256 tic54x-*-*)
3257 noconfigdirs="$noconfigdirs target-libgloss gdb"
3259 cr16-*-*)
3260 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3262 cris-*-* | crisv32-*-*)
3263 unsupported_languages="$unsupported_languages java"
3264 case "${target}" in
3265 *-*-linux*)
3266 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3267 *) # See PR46792 regarding target-libffi.
3268 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3269 esac
3270 libgloss_dir=cris
3272 d10v-*-*)
3273 noconfigdirs="$noconfigdirs target-libgloss"
3275 d30v-*-*)
3276 noconfigdirs="$noconfigdirs gdb"
3278 fr30-*-elf*)
3279 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3281 frv-*-*)
3282 noconfigdirs="$noconfigdirs ${libgcj}"
3284 moxie-*-*)
3285 noconfigdirs="$noconfigdirs ${libgcj}"
3286 noconfigdirs="$noconfigdirs gprof"
3288 h8300*-*-*)
3289 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3291 h8500-*-*)
3292 noconfigdirs="$noconfigdirs target-libgloss"
3294 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3296 hppa*64*-*-linux*)
3297 # In this case, it's because the hppa64-linux target is for
3298 # the kernel only at this point and has no libc, and thus no
3299 # headers, crt*.o, etc., all of which are needed by these.
3300 noconfigdirs="$noconfigdirs target-zlib"
3302 hppa*-*-linux*)
3304 hppa*-*-*elf* | \
3305 hppa*-*-lites* | \
3306 hppa*-*-openbsd* | \
3307 hppa*64*-*-*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3310 hppa*-hp-hpux11*)
3311 noconfigdirs="$noconfigdirs ld"
3313 hppa*-*-pro*)
3314 libgloss_dir=pa
3316 hppa*-*-*)
3317 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3318 # build on HP-UX 10.20.
3319 noconfigdirs="$noconfigdirs ld ${libgcj}"
3321 i960-*-*)
3322 noconfigdirs="$noconfigdirs gdb"
3324 ia64*-*-elf*)
3325 # No gdb support yet.
3326 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3328 ia64*-**-hpux*)
3329 # No ld support yet.
3330 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
3332 ia64*-*-*vms*)
3333 # No gdb or ld support yet.
3334 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
3336 i[3456789]86-*-coff | i[3456789]86-*-elf)
3337 noconfigdirs="$noconfigdirs ${libgcj}"
3338 libgloss_dir=i386
3340 i[3456789]86-*-linux*)
3341 # This section makes it possible to build newlib natively on linux.
3342 # If we are using a cross compiler then don't configure newlib.
3343 if test x${is_cross_compiler} != xno ; then
3344 noconfigdirs="$noconfigdirs target-newlib"
3346 noconfigdirs="$noconfigdirs target-libgloss"
3347 # If we are not using a cross compiler, do configure newlib.
3348 # Note however, that newlib will only be configured in this situation
3349 # if the --with-newlib option has been given, because otherwise
3350 # 'target-newlib' will appear in skipdirs.
3352 i[3456789]86-w64-mingw*)
3353 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3355 i[3456789]86-*-mingw*)
3356 target_configdirs="$target_configdirs target-winsup"
3357 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3359 x86_64-*-mingw*)
3360 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3362 *-*-cygwin*)
3363 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3364 noconfigdirs="$noconfigdirs target-libgloss"
3365 # always build newlib if winsup directory is present.
3366 if test -d "$srcdir/winsup/cygwin"; then
3367 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3368 elif test -d "$srcdir/newlib"; then
3369 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3372 i[3456789]86-*-interix* )
3374 i[3456789]86-*-pe)
3375 noconfigdirs="$noconfigdirs target-libgloss"
3377 i[3456789]86-*-sco3.2v5*)
3378 # The linker does not yet know about weak symbols in COFF,
3379 # and is not configured to handle mixed ELF and COFF.
3380 noconfigdirs="$noconfigdirs ld target-libgloss"
3382 i[3456789]86-*-sco*)
3383 noconfigdirs="$noconfigdirs gprof target-libgloss"
3385 i[3456789]86-*-solaris2*)
3386 noconfigdirs="$noconfigdirs target-libgloss"
3388 i[3456789]86-*-sysv4*)
3389 noconfigdirs="$noconfigdirs target-libgloss"
3391 i[3456789]86-*-beos*)
3392 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3394 i[3456789]86-*-rdos*)
3395 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3397 m32r-*-*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3400 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3401 libgloss_dir=m68hc11
3403 m68k-*-elf*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3406 m68*-*-* | fido-*-*)
3407 libgloss_dir=m68k
3409 mmix-*-*)
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
3411 unsupported_languages="$unsupported_languages java"
3413 mt-*-*)
3414 noconfigdirs="$noconfigdirs sim"
3416 powerpc-*-aix*)
3417 # copied from rs6000-*-* entry
3418 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
3420 powerpc*-*-winnt* | powerpc*-*-pe*)
3421 target_configdirs="$target_configdirs target-winsup"
3422 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3423 # always build newlib.
3424 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3426 # This is temporary until we can link against shared libraries
3427 powerpcle-*-solaris*)
3428 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3429 libgloss_dir=rs6000
3431 powerpc-*-beos*)
3432 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3434 powerpc-*-eabi)
3435 noconfigdirs="$noconfigdirs ${libgcj}"
3436 libgloss_dir=rs6000
3438 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3439 libgloss_dir=rs6000
3441 rs6000-*-lynxos*)
3442 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3444 rs6000-*-aix*)
3445 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
3447 rs6000-*-*)
3448 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3450 m68k-apollo-*)
3451 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3453 microblaze*)
3454 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3456 mips*-sde-elf*)
3457 noconfigdirs="$noconfigdirs ${libgcj}"
3458 if test x$with_newlib = xyes; then
3459 noconfigdirs="$noconfigdirs gprof"
3461 libgloss_dir=mips
3463 mips*-*-irix5*)
3464 noconfigdirs="$noconfigdirs gprof target-libgloss"
3466 mips*-*-irix6*)
3467 # Linking libjava exceeds command-line length limits on at least
3468 # IRIX 6.2, but not on IRIX 6.5.
3469 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3470 # <oldham@codesourcery.com>
3471 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3473 mips*-*-bsd*)
3474 noconfigdirs="$noconfigdirs gprof target-libgloss"
3476 mips*-*-linux*)
3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3479 mips*-*-*)
3480 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3481 libgloss_dir=mips
3483 sh-*-* | sh64-*-*)
3484 case "${target}" in
3485 sh*-*-elf)
3486 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3488 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3489 esac
3491 sparclet-*-aout* | sparc86x-*-*)
3492 libgloss_dir=sparc
3494 sparc-*-elf*)
3495 noconfigdirs="$noconfigdirs ${libgcj}"
3497 sparc64-*-elf*)
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3499 libgloss_dir=sparc
3501 sparclite-*-*)
3502 libgloss_dir=sparc
3504 sparc-*-sunos4*)
3505 if test x${is_cross_compiler} != xno ; then
3506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3507 else
3508 use_gnu_ld=no
3511 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3513 tic6x-*-*)
3514 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3516 v810-*-*)
3517 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3519 vax-*-*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3522 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 *-*-lynxos*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3528 *-*-*)
3529 noconfigdirs="$noconfigdirs ${libgcj}"
3531 esac
3533 # If we aren't building newlib, then don't build libgloss, since libgloss
3534 # depends upon some newlib header files.
3535 case "${noconfigdirs}" in
3536 *target-libgloss*) ;;
3537 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3538 esac
3540 # Work in distributions that contain no compiler tools, like Autoconf.
3541 host_makefile_frag=/dev/null
3542 if test -d ${srcdir}/config ; then
3543 case "${host}" in
3544 i[3456789]86-*-msdosdjgpp*)
3545 host_makefile_frag="config/mh-djgpp"
3547 *-cygwin*)
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3550 $as_echo_n "checking to see if cat works as expected... " >&6; }
3551 echo a >cygwin-cat-check
3552 if test `cat cygwin-cat-check` = a ; then
3553 rm cygwin-cat-check
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3556 else
3557 rm cygwin-cat-check
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 as_fn_error "The cat command does not ignore carriage return characters.
3561 Please either mount the build directory in binary mode or run the following
3562 commands before running any configure script:
3563 set -o igncr
3564 export SHELLOPTS
3565 " "$LINENO" 5
3568 host_makefile_frag="config/mh-cygwin"
3570 *-mingw*)
3571 host_makefile_frag="config/mh-mingw"
3573 *-interix*)
3574 host_makefile_frag="config/mh-interix"
3576 hppa*-hp-hpux10*)
3577 host_makefile_frag="config/mh-pa-hpux10"
3579 hppa*-hp-hpux*)
3580 host_makefile_frag="config/mh-pa"
3582 hppa*-*)
3583 host_makefile_frag="config/mh-pa"
3585 *-*-darwin*)
3586 host_makefile_frag="config/mh-darwin"
3588 powerpc-*-aix*)
3589 host_makefile_frag="config/mh-ppc-aix"
3591 rs6000-*-aix*)
3592 host_makefile_frag="config/mh-ppc-aix"
3594 esac
3597 if test "${build}" != "${host}" ; then
3598 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3599 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3600 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3601 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3602 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3603 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3604 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3605 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3606 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3607 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3608 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3609 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3610 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3611 else
3612 AR_FOR_BUILD="\$(AR)"
3613 AS_FOR_BUILD="\$(AS)"
3614 CC_FOR_BUILD="\$(CC)"
3615 CXX_FOR_BUILD="\$(CXX)"
3616 GCJ_FOR_BUILD="\$(GCJ)"
3617 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3618 GOC_FOR_BUILD="\$(GOC)"
3619 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3620 LD_FOR_BUILD="\$(LD)"
3621 NM_FOR_BUILD="\$(NM)"
3622 RANLIB_FOR_BUILD="\$(RANLIB)"
3623 WINDRES_FOR_BUILD="\$(WINDRES)"
3624 WINDMC_FOR_BUILD="\$(WINDMC)"
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if test "${ac_cv_prog_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3671 if test -z "$ac_cv_prog_CC"; then
3672 ac_ct_CC=$CC
3673 # Extract the first word of "gcc", so it can be a program name with args.
3674 set dummy gcc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$ac_ct_CC"; then
3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_ac_ct_CC="gcc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3701 if test -n "$ac_ct_CC"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3703 $as_echo "$ac_ct_CC" >&6; }
3704 else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3709 if test "x$ac_ct_CC" = x; then
3710 CC=""
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713 yes:)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3717 esac
3718 CC=$ac_ct_CC
3720 else
3721 CC="$ac_cv_prog_CC"
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}cc; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if test "${ac_cv_prog_CC+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC="$CC" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_prog_CC="${ac_tool_prefix}cc"
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 break 2
3747 done
3748 done
3749 IFS=$as_save_IFS
3753 CC=$ac_cv_prog_CC
3754 if test -n "$CC"; then
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3756 $as_echo "$CC" >&6; }
3757 else
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3765 if test -z "$CC"; then
3766 # Extract the first word of "cc", so it can be a program name with args.
3767 set dummy cc; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_prog_CC+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 ac_prog_rejected=no
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3785 ac_prog_rejected=yes
3786 continue
3788 ac_cv_prog_CC="cc"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3796 if test $ac_prog_rejected = yes; then
3797 # We found a bogon in the path, so make sure we never use it.
3798 set dummy $ac_cv_prog_CC
3799 shift
3800 if test $# != 0; then
3801 # We chose a different compiler from the bogus one.
3802 # However, it has the same basename, so the bogon will be chosen
3803 # first if we set CC to just the basename; use the full file name.
3804 shift
3805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3821 if test -z "$CC"; then
3822 if test -n "$ac_tool_prefix"; then
3823 for ac_prog in cl.exe
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if test "${ac_cv_prog_CC+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$CC"; then
3833 ac_cv_prog_CC="$CC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3848 IFS=$as_save_IFS
3852 CC=$ac_cv_prog_CC
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3862 test -n "$CC" && break
3863 done
3865 if test -z "$CC"; then
3866 ac_ct_CC=$CC
3867 for ac_prog in cl.exe
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_ac_ct_CC="$ac_prog"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3892 IFS=$as_save_IFS
3896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897 if test -n "$ac_ct_CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899 $as_echo "$ac_ct_CC" >&6; }
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3906 test -n "$ac_ct_CC" && break
3907 done
3909 if test "x$ac_ct_CC" = x; then
3910 CC=""
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913 yes:)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3917 esac
3918 CC=$ac_ct_CC
3925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "no acceptable C compiler found in \$PATH
3928 See \`config.log' for more details." "$LINENO" 5; }
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3932 set X $ac_compile
3933 ac_compiler=$2
3934 for ac_option in --version -v -V -qversion; do
3935 { { ac_try="$ac_compiler $ac_option >&5"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3943 ac_status=$?
3944 if test -s conftest.err; then
3945 sed '10a\
3946 ... rest of stderr output deleted ...
3947 10q' conftest.err >conftest.er1
3948 cat conftest.er1 >&5
3949 rm -f conftest.er1 conftest.err
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 done
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 ac_clean_files_save=$ac_clean_files
3967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3968 # Try to create an executable without -o first, disregard a.out.
3969 # It will help us diagnose broken compilers, and finding out an intuition
3970 # of exeext.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3972 $as_echo_n "checking for C compiler default output file name... " >&6; }
3973 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3975 # The possible output files:
3976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3978 ac_rmfiles=
3979 for ac_file in $ac_files
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3984 esac
3985 done
3986 rm -f $ac_rmfiles
3988 if { { ac_try="$ac_link_default"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_link_default") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; then :
3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4002 # so that the user can short-circuit this test for compilers unknown to
4003 # Autoconf.
4004 for ac_file in $ac_files ''
4006 test -f "$ac_file" || continue
4007 case $ac_file in
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4010 [ab].out )
4011 # We found the default executable, but exeext='' is most
4012 # certainly right.
4013 break;;
4014 *.* )
4015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4016 then :; else
4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 # We set ac_cv_exeext here because the later test for it is not
4020 # safe: cross compilers may not add the suffix if given an `-o'
4021 # argument, so we may need to know it at that point already.
4022 # Even if this section looks crufty: it has the advantage of
4023 # actually working.
4024 break;;
4026 break;;
4027 esac
4028 done
4029 test "$ac_cv_exeext" = no && ac_cv_exeext=
4031 else
4032 ac_file=''
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4035 $as_echo "$ac_file" >&6; }
4036 if test -z "$ac_file"; then :
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 { as_fn_set_status 77
4043 as_fn_error "C compiler cannot create executables
4044 See \`config.log' for more details." "$LINENO" 5; }; }
4046 ac_exeext=$ac_cv_exeext
4048 # Check that the compiler produces executables we can run. If not, either
4049 # the compiler is broken, or we cross compile.
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051 $as_echo_n "checking whether the C compiler works... " >&6; }
4052 # If not cross compiling, check that we can run a simple program.
4053 if test "$cross_compiling" != yes; then
4054 if { ac_try='./$ac_file'
4055 { { case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; }; then
4065 cross_compiling=no
4066 else
4067 if test "$cross_compiling" = maybe; then
4068 cross_compiling=yes
4069 else
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error "cannot run C compiled programs.
4073 If you meant to cross compile, use \`--host'.
4074 See \`config.log' for more details." "$LINENO" 5; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4081 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4082 ac_clean_files=$ac_clean_files_save
4083 # Check that the compiler produces executables we can run. If not, either
4084 # the compiler is broken, or we cross compile.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4086 $as_echo_n "checking whether we are cross compiling... " >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4088 $as_echo "$cross_compiling" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4091 $as_echo_n "checking for suffix of executables... " >&6; }
4092 if { { ac_try="$ac_link"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098 $as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_link") 2>&5
4100 ac_status=$?
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; then :
4103 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4104 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4105 # work properly (i.e., refer to `conftest.exe'), while it won't with
4106 # `rm'.
4107 for ac_file in conftest.exe conftest conftest.*; do
4108 test -f "$ac_file" || continue
4109 case $ac_file in
4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4112 break;;
4113 * ) break;;
4114 esac
4115 done
4116 else
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error "cannot compute suffix of executables: cannot compile and link
4120 See \`config.log' for more details." "$LINENO" 5; }
4122 rm -f conftest$ac_cv_exeext
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4124 $as_echo "$ac_cv_exeext" >&6; }
4126 rm -f conftest.$ac_ext
4127 EXEEXT=$ac_cv_exeext
4128 ac_exeext=$EXEEXT
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4130 $as_echo_n "checking for suffix of object files... " >&6; }
4131 if test "${ac_cv_objext+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.o conftest.obj
4146 if { { ac_try="$ac_compile"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 $as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_compile") 2>&5
4154 ac_status=$?
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; then :
4157 for ac_file in conftest.o conftest.obj conftest.*; do
4158 test -f "$ac_file" || continue;
4159 case $ac_file in
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4162 break;;
4163 esac
4164 done
4165 else
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error "cannot compute suffix of object files: cannot compile
4172 See \`config.log' for more details." "$LINENO" 5; }
4174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4177 $as_echo "$ac_cv_objext" >&6; }
4178 OBJEXT=$ac_cv_objext
4179 ac_objext=$OBJEXT
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4181 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4182 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4191 #ifndef __GNUC__
4192 choke me
4193 #endif
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_compiler_gnu=yes
4201 else
4202 ac_compiler_gnu=no
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4209 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4210 if test $ac_compiler_gnu = yes; then
4211 GCC=yes
4212 else
4213 GCC=
4215 ac_test_CFLAGS=${CFLAGS+set}
4216 ac_save_CFLAGS=$CFLAGS
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4218 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4219 if test "${ac_cv_prog_cc_g+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 ac_save_c_werror_flag=$ac_c_werror_flag
4223 ac_c_werror_flag=yes
4224 ac_cv_prog_cc_g=no
4225 CFLAGS="-g"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4230 main ()
4234 return 0;
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_g=yes
4239 else
4240 CFLAGS=""
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4249 return 0;
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4254 else
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="-g"
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4261 main ()
4265 return 0;
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_g=yes
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4279 $as_echo "$ac_cv_prog_cc_g" >&6; }
4280 if test "$ac_test_CFLAGS" = set; then
4281 CFLAGS=$ac_save_CFLAGS
4282 elif test $ac_cv_prog_cc_g = yes; then
4283 if test "$GCC" = yes; then
4284 CFLAGS="-g -O2"
4285 else
4286 CFLAGS="-g"
4288 else
4289 if test "$GCC" = yes; then
4290 CFLAGS="-O2"
4291 else
4292 CFLAGS=
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4296 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4297 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 ac_cv_prog_cc_c89=no
4301 ac_save_CC=$CC
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <stdarg.h>
4305 #include <stdio.h>
4306 #include <sys/types.h>
4307 #include <sys/stat.h>
4308 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4309 struct buf { int x; };
4310 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4311 static char *e (p, i)
4312 char **p;
4313 int i;
4315 return p[i];
4317 static char *f (char * (*g) (char **, int), char **p, ...)
4319 char *s;
4320 va_list v;
4321 va_start (v,p);
4322 s = g (p, va_arg (v,int));
4323 va_end (v);
4324 return s;
4327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4328 function prototypes and stuff, but not '\xHH' hex character constants.
4329 These don't provoke an error unfortunately, instead are silently treated
4330 as 'x'. The following induces an error, until -std is added to get
4331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4332 array size at least. It's necessary to write '\x00'==0 to get something
4333 that's true only with -std. */
4334 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4337 inside strings and character constants. */
4338 #define FOO(x) 'x'
4339 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4341 int test (int i, double x);
4342 struct s1 {int (*f) (int a);};
4343 struct s2 {int (*f) (double a);};
4344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4345 int argc;
4346 char **argv;
4348 main ()
4350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4352 return 0;
4354 _ACEOF
4355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4358 CC="$ac_save_CC $ac_arg"
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_c89=$ac_arg
4362 rm -f core conftest.err conftest.$ac_objext
4363 test "x$ac_cv_prog_cc_c89" != "xno" && break
4364 done
4365 rm -f conftest.$ac_ext
4366 CC=$ac_save_CC
4369 # AC_CACHE_VAL
4370 case "x$ac_cv_prog_cc_c89" in
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4373 $as_echo "none needed" >&6; } ;;
4374 xno)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4376 $as_echo "unsupported" >&6; } ;;
4378 CC="$CC $ac_cv_prog_cc_c89"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4380 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4381 esac
4382 if test "x$ac_cv_prog_cc_c89" != xno; then :
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 ac_ext=cpp
4393 ac_cpp='$CXXCPP $CPPFLAGS'
4394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4397 if test -z "$CXX"; then
4398 if test -n "$CCC"; then
4399 CXX=$CCC
4400 else
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_CXX+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$CXX"; then
4412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4427 IFS=$as_save_IFS
4431 CXX=$ac_cv_prog_CXX
4432 if test -n "$CXX"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4434 $as_echo "$CXX" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4441 test -n "$CXX" && break
4442 done
4444 if test -z "$CXX"; then
4445 ac_ct_CXX=$CXX
4446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449 set dummy $ac_prog; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$ac_ct_CXX"; then
4456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ac_ct_CXX="$ac_prog"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4469 done
4470 done
4471 IFS=$as_save_IFS
4475 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4476 if test -n "$ac_ct_CXX"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4478 $as_echo "$ac_ct_CXX" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4485 test -n "$ac_ct_CXX" && break
4486 done
4488 if test "x$ac_ct_CXX" = x; then
4489 CXX="g++"
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497 CXX=$ac_ct_CXX
4503 # Provide some information about the compiler.
4504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4505 set X $ac_compile
4506 ac_compiler=$2
4507 for ac_option in --version -v -V -qversion; do
4508 { { ac_try="$ac_compiler $ac_option >&5"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 ac_status=$?
4517 if test -s conftest.err; then
4518 sed '10a\
4519 ... rest of stderr output deleted ...
4520 10q' conftest.err >conftest.er1
4521 cat conftest.er1 >&5
4522 rm -f conftest.er1 conftest.err
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4526 done
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4539 #ifndef __GNUC__
4540 choke me
4541 #endif
4544 return 0;
4546 _ACEOF
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 ac_compiler_gnu=yes
4549 else
4550 ac_compiler_gnu=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4557 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4559 GXX=yes
4560 else
4561 GXX=
4563 ac_test_CXXFLAGS=${CXXFLAGS+set}
4564 ac_save_CXXFLAGS=$CXXFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4566 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4567 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4571 ac_cxx_werror_flag=yes
4572 ac_cv_prog_cxx_g=no
4573 CXXFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586 ac_cv_prog_cxx_g=yes
4587 else
4588 CXXFLAGS=""
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 else
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 CXXFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_cxx_try_compile "$LINENO"; then :
4617 ac_cv_prog_cxx_g=yes
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4627 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4628 if test "$ac_test_CXXFLAGS" = set; then
4629 CXXFLAGS=$ac_save_CXXFLAGS
4630 elif test $ac_cv_prog_cxx_g = yes; then
4631 if test "$GXX" = yes; then
4632 CXXFLAGS="-g -O2"
4633 else
4634 CXXFLAGS="-g"
4636 else
4637 if test "$GXX" = yes; then
4638 CXXFLAGS="-O2"
4639 else
4640 CXXFLAGS=
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 # We must set the default linker to the linker used by gcc for the correct
4651 # operation of libtool. If LD is not defined and we are using gcc, try to
4652 # set the LD default to the ld used by gcc.
4653 if test -z "$LD"; then
4654 if test "$GCC" = yes; then
4655 case $build in
4656 *-*-mingw*)
4657 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4659 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4660 esac
4661 case $gcc_prog_ld in
4662 # Accept absolute paths.
4663 [\\/]* | [A-Za-z]:[\\/]*)
4664 LD="$gcc_prog_ld" ;;
4665 esac
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$GNATBIND"; then
4681 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4696 IFS=$as_save_IFS
4700 GNATBIND=$ac_cv_prog_GNATBIND
4701 if test -n "$GNATBIND"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4703 $as_echo "$GNATBIND" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4711 if test -z "$ac_cv_prog_GNATBIND"; then
4712 ac_ct_GNATBIND=$GNATBIND
4713 # Extract the first word of "gnatbind", so it can be a program name with args.
4714 set dummy gnatbind; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$ac_ct_GNATBIND"; then
4721 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4741 if test -n "$ac_ct_GNATBIND"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4743 $as_echo "$ac_ct_GNATBIND" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4749 if test "x$ac_ct_GNATBIND" = x; then
4750 GNATBIND="no"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 GNATBIND=$ac_ct_GNATBIND
4760 else
4761 GNATBIND="$ac_cv_prog_GNATBIND"
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4766 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$GNATMAKE"; then
4773 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 GNATMAKE=$ac_cv_prog_GNATMAKE
4793 if test -n "$GNATMAKE"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4795 $as_echo "$GNATMAKE" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4803 if test -z "$ac_cv_prog_GNATMAKE"; then
4804 ac_ct_GNATMAKE=$GNATMAKE
4805 # Extract the first word of "gnatmake", so it can be a program name with args.
4806 set dummy gnatmake; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4833 if test -n "$ac_ct_GNATMAKE"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4835 $as_echo "$ac_ct_GNATMAKE" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4841 if test "x$ac_ct_GNATMAKE" = x; then
4842 GNATMAKE="no"
4843 else
4844 case $cross_compiling:$ac_tool_warned in
4845 yes:)
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4848 ac_tool_warned=yes ;;
4849 esac
4850 GNATMAKE=$ac_ct_GNATMAKE
4852 else
4853 GNATMAKE="$ac_cv_prog_GNATMAKE"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4857 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4858 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat >conftest.adb <<EOF
4862 procedure conftest is begin null; end conftest;
4864 acx_cv_cc_gcc_supports_ada=no
4865 # There is a bug in old released versions of GCC which causes the
4866 # driver to exit successfully when the appropriate language module
4867 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4868 # Therefore we must check for the error message as well as an
4869 # unsuccessful exit.
4870 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4871 # given a .adb file, but produce no object file. So we must check
4872 # if an object file was really produced to guard against this.
4873 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4874 if test x"$errors" = x && test -f conftest.$ac_objext; then
4875 acx_cv_cc_gcc_supports_ada=yes
4877 rm -f conftest.*
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4880 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4882 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4883 have_gnat=yes
4884 else
4885 have_gnat=no
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4889 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4890 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 echo abfoo >t1
4894 echo cdfoo >t2
4895 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4896 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4897 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4899 else
4900 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4903 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4904 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4906 else
4907 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4910 rm t1 t2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4914 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
4915 do_compare="$gcc_cv_prog_cmp_skip"
4919 # See if we are building gcc with C++.
4920 # Check whether --enable-build-with-cxx was given.
4921 if test "${enable_build_with_cxx+set}" = set; then :
4922 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4923 else
4924 ENABLE_BUILD_WITH_CXX=no
4928 # Used for setting $lt_cv_objdir
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4930 $as_echo_n "checking for objdir... " >&6; }
4931 if test "${lt_cv_objdir+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 rm -f .libs 2>/dev/null
4935 mkdir .libs 2>/dev/null
4936 if test -d .libs; then
4937 lt_cv_objdir=.libs
4938 else
4939 # MS-DOS does not allow filenames that begin with a dot.
4940 lt_cv_objdir=_libs
4942 rmdir .libs 2>/dev/null
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4945 $as_echo "$lt_cv_objdir" >&6; }
4946 objdir=$lt_cv_objdir
4952 cat >>confdefs.h <<_ACEOF
4953 #define LT_OBJDIR "$lt_cv_objdir/"
4954 _ACEOF
4958 # Check for GMP, MPFR and MPC
4959 gmplibs="-lmpc -lmpfr -lgmp"
4960 gmpinc=
4961 have_gmp=no
4963 # Specify a location for mpc
4964 # check for this first so it ends up on the link line before mpfr.
4966 # Check whether --with-mpc was given.
4967 if test "${with_mpc+set}" = set; then :
4968 withval=$with_mpc;
4972 # Check whether --with-mpc-include was given.
4973 if test "${with_mpc_include+set}" = set; then :
4974 withval=$with_mpc_include;
4978 # Check whether --with-mpc-lib was given.
4979 if test "${with_mpc_lib+set}" = set; then :
4980 withval=$with_mpc_lib;
4984 if test "x$with_mpc" != x; then
4985 gmplibs="-L$with_mpc/lib $gmplibs"
4986 gmpinc="-I$with_mpc/include $gmpinc"
4988 if test "x$with_mpc_include" != x; then
4989 gmpinc="-I$with_mpc_include $gmpinc"
4991 if test "x$with_mpc_lib" != x; then
4992 gmplibs="-L$with_mpc_lib $gmplibs"
4994 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4995 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
4996 gmpinc='-I$$s/mpc/src '"$gmpinc"
4997 # Do not test the mpc version. Assume that it is sufficient, since
4998 # it is in the source tree, and the library has not been built yet
4999 # but it would be included on the link line in the version check below
5000 # hence making the test fail.
5001 have_gmp=yes
5004 # Specify a location for mpfr
5005 # check for this first so it ends up on the link line before gmp.
5007 # Check whether --with-mpfr-dir was given.
5008 if test "${with_mpfr_dir+set}" = set; then :
5009 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5010 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5015 # Check whether --with-mpfr was given.
5016 if test "${with_mpfr+set}" = set; then :
5017 withval=$with_mpfr;
5021 # Check whether --with-mpfr-include was given.
5022 if test "${with_mpfr_include+set}" = set; then :
5023 withval=$with_mpfr_include;
5027 # Check whether --with-mpfr-lib was given.
5028 if test "${with_mpfr_lib+set}" = set; then :
5029 withval=$with_mpfr_lib;
5033 if test "x$with_mpfr" != x; then
5034 gmplibs="-L$with_mpfr/lib $gmplibs"
5035 gmpinc="-I$with_mpfr/include $gmpinc"
5037 if test "x$with_mpfr_include" != x; then
5038 gmpinc="-I$with_mpfr_include $gmpinc"
5040 if test "x$with_mpfr_lib" != x; then
5041 gmplibs="-L$with_mpfr_lib $gmplibs"
5043 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5044 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5045 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5046 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5047 # Do not test the mpfr version. Assume that it is sufficient, since
5048 # it is in the source tree, and the library has not been built yet
5049 # but it would be included on the link line in the version check below
5050 # hence making the test fail.
5051 have_gmp=yes
5054 # Specify a location for gmp
5056 # Check whether --with-gmp-dir was given.
5057 if test "${with_gmp_dir+set}" = set; then :
5058 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5059 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5064 # Check whether --with-gmp was given.
5065 if test "${with_gmp+set}" = set; then :
5066 withval=$with_gmp;
5070 # Check whether --with-gmp-include was given.
5071 if test "${with_gmp_include+set}" = set; then :
5072 withval=$with_gmp_include;
5076 # Check whether --with-gmp-lib was given.
5077 if test "${with_gmp_lib+set}" = set; then :
5078 withval=$with_gmp_lib;
5083 if test "x$with_gmp" != x; then
5084 gmplibs="-L$with_gmp/lib $gmplibs"
5085 gmpinc="-I$with_gmp/include $gmpinc"
5087 if test "x$with_gmp_include" != x; then
5088 gmpinc="-I$with_gmp_include $gmpinc"
5090 if test "x$with_gmp_lib" != x; then
5091 gmplibs="-L$with_gmp_lib $gmplibs"
5093 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5094 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5095 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5096 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5097 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5098 # Do not test the gmp version. Assume that it is sufficient, since
5099 # it is in the source tree, and the library has not been built yet
5100 # but it would be included on the link line in the version check below
5101 # hence making the test fail.
5102 have_gmp=yes
5105 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5106 have_gmp=yes
5107 saved_CFLAGS="$CFLAGS"
5108 CFLAGS="$CFLAGS $gmpinc"
5109 # Check for the recommended and required versions of GMP.
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5111 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include "gmp.h"
5117 main ()
5120 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5121 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5122 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5123 choke me
5124 #endif
5127 return 0;
5129 _ACEOF
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133 #include <gmp.h>
5135 main ()
5138 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5139 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5140 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5141 choke me
5142 #endif
5145 return 0;
5147 _ACEOF
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5153 $as_echo "buggy but acceptable" >&6; }
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }; have_gmp=no
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 # If we have GMP, check the MPFR version.
5163 if test x"$have_gmp" = xyes; then
5164 # Check for the recommended and required versions of MPFR.
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5166 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <gmp.h>
5170 #include <mpfr.h>
5172 main ()
5175 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5176 choke me
5177 #endif
5180 return 0;
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"; then :
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <gmp.h>
5187 #include <mpfr.h>
5189 main ()
5192 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5193 choke me
5194 #endif
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5202 $as_echo "yes" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5205 $as_echo "buggy but acceptable" >&6; }
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }; have_gmp=no
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 # Check for the MPC header version.
5216 if test x"$have_gmp" = xyes ; then
5217 # Check for the recommended and required versions of MPC.
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5219 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <mpc.h>
5224 main ()
5227 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5228 choke me
5229 #endif
5232 return 0;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #include <mpc.h>
5240 main ()
5243 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5244 choke me
5245 #endif
5248 return 0;
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253 $as_echo "yes" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5256 $as_echo "buggy but acceptable" >&6; }
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }; have_gmp=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 # Now check the MPFR library.
5267 if test x"$have_gmp" = xyes; then
5268 saved_LIBS="$LIBS"
5269 LIBS="$LIBS $gmplibs"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5271 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <mpc.h>
5276 main ()
5279 mpfr_t n;
5280 mpfr_t x;
5281 mpc_t c;
5282 int t;
5283 mpfr_init (n);
5284 mpfr_init (x);
5285 mpfr_atan2 (n, n, x, GMP_RNDN);
5286 mpfr_erfc (n, x, GMP_RNDN);
5287 mpfr_subnormalize (x, t, GMP_RNDN);
5288 mpfr_clear(n);
5289 mpfr_clear(x);
5290 mpc_init2 (c, 53);
5291 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5292 mpc_cosh (c, c, MPC_RNDNN);
5293 mpc_pow (c, c, c, MPC_RNDNN);
5294 mpc_acosh (c, c, MPC_RNDNN);
5295 mpc_clear (c);
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_link "$LINENO"; then :
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303 $as_echo "yes" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }; have_gmp=no
5308 rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 LIBS="$saved_LIBS"
5313 CFLAGS="$saved_CFLAGS"
5315 # The library versions listed in the error message below should match
5316 # the HARD-minimums enforced above.
5317 if test x$have_gmp != xyes; then
5318 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5319 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5320 their locations. Source code for these libraries can be found at
5321 their respective hosting sites as well as at
5322 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5323 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5324 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5325 make sure that you have installed both the libraries and the header
5326 files. They may be located in separate packages." "$LINENO" 5
5330 # Flags needed for both GMP, MPFR and/or MPC.
5337 # Allow host libstdc++ to be specified for static linking with PPL.
5339 # Check whether --with-host-libstdcxx was given.
5340 if test "${with_host_libstdcxx+set}" = set; then :
5341 withval=$with_host_libstdcxx;
5345 case $with_host_libstdcxx in
5346 no|yes)
5347 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5349 esac
5351 # Linker flags to use for stage1 or when not boostrapping.
5353 # Check whether --with-stage1-ldflags was given.
5354 if test "${with_stage1_ldflags+set}" = set; then :
5355 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5356 stage1_ldflags=
5357 else
5358 stage1_ldflags=$withval
5360 else
5361 stage1_ldflags=
5366 # Libraries to use for stage1 or when not bootstrapping.
5368 # Check whether --with-stage1-libs was given.
5369 if test "${with_stage1_libs+set}" = set; then :
5370 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5371 stage1_libs=
5372 else
5373 stage1_libs=$withval
5375 else
5376 stage1_libs=$with_host_libstdcxx
5381 # Libraries to use for stage2 and later builds. This defaults to the
5382 # argument passed to --with-host-libstdcxx.
5384 # Check whether --with-boot-libs was given.
5385 if test "${with_boot_libs+set}" = set; then :
5386 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5387 poststage1_libs=
5388 else
5389 poststage1_libs=$withval
5391 else
5392 poststage1_libs=$with_host_libstdcxx
5397 # Linker flags to use for stage2 and later builds.
5399 # Check whether --with-boot-ldflags was given.
5400 if test "${with_boot_ldflags+set}" = set; then :
5401 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5402 poststage1_ldflags=
5403 else
5404 poststage1_ldflags=$withval
5406 else
5407 poststage1_ldflags=
5408 # In stages 2 and 3, default to linking libstdc++ and libgcc
5409 # statically. But if the user explicitly specified the libraries to
5410 # use, trust that they are doing what they want.
5411 if test "$poststage1_libs" = ""; then
5412 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5418 # Check for PPL
5419 ppllibs=
5420 pplinc=
5421 pwllib=
5424 # Check whether --with-ppl was given.
5425 if test "${with_ppl+set}" = set; then :
5426 withval=$with_ppl;
5430 # Check whether --with-ppl-include was given.
5431 if test "${with_ppl_include+set}" = set; then :
5432 withval=$with_ppl_include;
5436 # Check whether --with-ppl-lib was given.
5437 if test "${with_ppl_lib+set}" = set; then :
5438 withval=$with_ppl_lib;
5442 # Check whether --enable-ppl-version-check was given.
5443 if test "${enable_ppl_version_check+set}" = set; then :
5444 enableval=$enable_ppl_version_check;
5448 case $with_ppl in
5449 yes | no | "")
5452 ppllibs="-L$with_ppl/lib"
5453 pplinc="-I$with_ppl/include $pplinc"
5454 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5455 with_ppl=yes
5456 else
5457 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5460 esac
5462 if test x"$with_ppl_include" != x; then
5463 pplinc="-I$with_ppl_include $pplinc"
5464 with_ppl=yes
5467 if test "x$with_ppl_lib" != x; then
5468 ppllibs="-L$with_ppl_lib"
5469 with_ppl=yes
5472 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5473 if test x"$enable_watchdog" = xyes; then
5474 pwllib="-lpwl"
5476 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5477 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5478 enable_ppl_version_check=no
5479 with_ppl=yes
5482 if test "x$with_ppl" != xno; then
5483 if test "x$pwllib" = x; then
5484 saved_LIBS="$LIBS"
5485 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5487 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5488 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 ac_check_lib_save_LIBS=$LIBS
5492 LIBS="-lpwl $LIBS"
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5496 /* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
5499 #ifdef __cplusplus
5500 extern "C"
5501 #endif
5502 char PWL_handle_timeout ();
5504 main ()
5506 return PWL_handle_timeout ();
5508 return 0;
5510 _ACEOF
5511 if ac_fn_c_try_link "$LINENO"; then :
5512 ac_cv_lib_pwl_PWL_handle_timeout=yes
5513 else
5514 ac_cv_lib_pwl_PWL_handle_timeout=no
5516 rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518 LIBS=$ac_check_lib_save_LIBS
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5521 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5522 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5523 pwllib="-lpwl"
5526 LIBS="$saved_LIBS"
5529 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5531 if test "$enable_ppl_version_check" != no; then
5532 saved_CFLAGS="$CFLAGS"
5533 CFLAGS="$CFLAGS $pplinc $gmpinc"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5535 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include "ppl_c.h"
5540 main ()
5543 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5544 choke me
5545 #endif
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 CFLAGS="$saved_CFLAGS"
5563 # Flags needed for PPL
5568 # Check for CLOOG
5572 # Check whether --with-cloog was given.
5573 if test "${with_cloog+set}" = set; then :
5574 withval=$with_cloog;
5578 # Check whether --with-cloog-include was given.
5579 if test "${with_cloog_include+set}" = set; then :
5580 withval=$with_cloog_include;
5584 # Check whether --with-cloog-lib was given.
5585 if test "${with_cloog_lib+set}" = set; then :
5586 withval=$with_cloog_lib;
5590 # Check whether --enable-cloog-backend was given.
5591 if test "${enable_cloog_backend+set}" = set; then :
5592 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5593 cloog_backend=isl
5594 elif test "x${enableval}" = "xppl"; then
5595 cloog_backend=ppl
5596 else
5597 cloog_backend=ppl-legacy
5599 else
5600 cloog_backend=ppl-legacy
5603 # Check whether --enable-cloog-version-check was given.
5604 if test "${enable_cloog_version_check+set}" = set; then :
5605 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5606 else
5607 ENABLE_CLOOG_CHECK=yes
5611 # Initialize clooglibs and clooginc.
5612 case $with_cloog in
5614 clooglibs=
5615 clooginc=
5617 "" | yes)
5620 clooglibs="-L$with_cloog/lib"
5621 clooginc="-I$with_cloog/include"
5623 esac
5624 if test "x${with_cloog_include}" != x ; then
5625 clooginc="-I$with_cloog_include"
5627 if test "x${with_cloog_lib}" != x; then
5628 clooglibs="-L$with_cloog_lib"
5635 if test "x$with_ppl" = "xno"; then
5639 if test "x${with_cloog}" = xno; then
5640 graphite_requested=no
5641 elif test "x${with_cloog}" != x \
5642 || test "x${with_cloog_include}" != x \
5643 || test "x${with_cloog_lib}" != x ; then
5644 graphite_requested=yes
5645 else
5646 graphite_requested=no
5650 if test "${graphite_requested}" = yes; then
5651 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5653 with_cloog=no
5655 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5656 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5657 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5658 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5660 if test "x$with_cloog" != "xno"; then
5664 _cloog_saved_CFLAGS=$CFLAGS
5665 _cloog_saved_CPPFLAGS=$CPPFLAGS
5666 _cloog_saved_LDFLAGS=$LDFLAGS
5667 _cloog_saved_LIBS=$LIBS
5669 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5671 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5672 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5673 LDFLAGS="${LDFLAGS} ${clooglibs}"
5675 case $cloog_backend in
5676 "ppl-legacy")
5677 CFLAGS="${CFLAGS} ${pplinc}"
5678 LDFLAGS="${LDFLAGS} ${ppllibs}"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5680 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5681 if test "${gcc_cv_cloog_type+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 LIBS="-lcloog ${_cloog_saved_LIBS}"
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include "cloog/cloog.h"
5689 main ()
5691 #ifndef CLOOG_PPL_BACKEND
5692 choke me
5693 #endif
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 gcc_cv_cloog_type="PPL Legacy"
5700 else
5701 gcc_cv_cloog_type=no
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5707 $as_echo "$gcc_cv_cloog_type" >&6; }
5709 "isl")
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5711 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5712 if test "${gcc_cv_cloog_type+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include "cloog/cloog.h"
5720 main ()
5722 cloog_version ()
5724 return 0;
5726 _ACEOF
5727 if ac_fn_c_try_link "$LINENO"; then :
5728 gcc_cv_cloog_type="ISL"
5729 else
5730 gcc_cv_cloog_type=no
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5736 $as_echo "$gcc_cv_cloog_type" >&6; }
5738 "ppl")
5739 CFLAGS="${CFLAGS} ${pplinc}"
5740 LDFLAGS="${LDFLAGS} ${ppllibs}"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5742 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5743 if test "${gcc_cv_cloog_type+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include "cloog/cloog.h"
5750 #include "cloog/ppl/cloog.h"
5752 main ()
5754 cloog_version ()
5756 return 0;
5758 _ACEOF
5759 if ac_fn_c_try_link "$LINENO"; then :
5760 gcc_cv_cloog_type="PPL"
5761 else
5762 gcc_cv_cloog_type=no
5764 rm -f core conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5768 $as_echo "$gcc_cv_cloog_type" >&6; }
5771 gcc_cv_cloog_type=""
5772 esac
5774 case $gcc_cv_cloog_type in
5775 "PPL Legacy")
5776 clooginc="${clooginc}"
5777 clooglibs="${clooglibs} -lcloog"
5778 cloog_org=no
5780 "ISL")
5781 clooginc="${clooginc} ${_cloogorginc}"
5782 clooglibs="${clooglibs} -lcloog-isl -lisl"
5783 cloog_org=yes
5785 "PPL")
5786 clooginc="${clooginc} ${_cloogorginc}"
5787 clooglibs="${clooglibs} -lcloog-ppl"
5788 cloog_org=yes
5791 clooglibs=
5792 clooginc=
5793 cloog_org=
5795 esac
5797 LIBS=$_cloog_saved_LIBS
5798 CFLAGS=$_cloog_saved_CFLAGS
5799 CPPFLAGS=$_cloog_saved_CPPFLAGS
5800 LDFLAGS=$_cloog_saved_LDFLAGS
5806 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5807 _cloog_saved_CFLAGS=$CFLAGS
5808 _cloog_saved_LDFLAGS=$LDFLAGS
5810 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5811 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5813 if test "${cloog_org}" = yes ; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5815 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5816 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include "cloog/cloog.h"
5823 main ()
5825 #if CLOOG_VERSION_MAJOR != 0 \
5826 || CLOOG_VERSION_MINOR != 16 \
5827 || CLOOG_VERSION_REVISION < 1
5828 choke me
5829 #endif
5831 return 0;
5833 _ACEOF
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835 gcc_cv_cloog_ct_0_14_0=yes
5836 else
5837 gcc_cv_cloog_ct_0_14_0=no
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5842 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5843 elif test "${cloog_org}" = no ; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5845 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5846 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include "cloog/cloog.h"
5853 main ()
5855 #if CLOOG_VERSION_MAJOR != 0 \
5856 || CLOOG_VERSION_MINOR != 15 \
5857 || CLOOG_VERSION_REVISION < 5
5858 choke me
5859 #endif
5861 return 0;
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include "cloog/cloog.h"
5869 main ()
5871 #if CLOOG_VERSION_MAJOR != 0 \
5872 || CLOOG_VERSION_MINOR != 15 \
5873 || CLOOG_VERSION_REVISION < 9
5874 choke me
5875 #endif
5877 return 0;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5881 gcc_cv_cloog_ct_0_15_5=yes
5882 else
5883 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 else
5887 gcc_cv_cloog_ct_0_15_5=no
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5892 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5895 CFLAGS=$_cloog_saved_CFLAGS
5896 LDFLAGS=$_cloog_saved_LDFLAGS
5905 if test "x${with_cloog}" = xno; then
5906 graphite_requested=no
5907 elif test "x${with_cloog}" != x \
5908 || test "x${with_cloog_include}" != x \
5909 || test "x${with_cloog_lib}" != x ; then
5910 graphite_requested=yes
5911 else
5912 graphite_requested=no
5917 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5918 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5919 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5920 clooglibs=
5921 clooginc=
5924 if test "${graphite_requested}" = yes \
5925 && test "x${clooglibs}" = x \
5926 && test "x${clooginc}" = x ; then
5928 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5934 # Check for LTO support.
5935 # Check whether --enable-lto was given.
5936 if test "${enable_lto+set}" = set; then :
5937 enableval=$enable_lto; enable_lto=$enableval
5938 else
5939 enable_lto=yes; default_enable_lto=yes
5946 target_elf=no
5947 case $target in
5948 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5949 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5950 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5951 target_elf=no
5954 target_elf=yes
5956 esac
5958 if test $target_elf = yes; then :
5959 # ELF platforms build the lto-plugin always.
5960 build_lto_plugin=yes
5962 else
5963 if test x"$default_enable_lto" = x"yes" ; then
5964 case $target in
5965 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
5966 # On other non-ELF platforms, LTO has yet to be validated.
5967 *) enable_lto=no ;;
5968 esac
5969 else
5970 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5971 # It would also be nice to check the binutils support, but we don't
5972 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5973 # warn during gcc/ subconfigure; unless you're bootstrapping with
5974 # -flto it won't be needed until after installation anyway.
5975 case $target in
5976 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5977 *) if test x"$enable_lto" = x"yes"; then
5978 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5981 esac
5983 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5984 # Build it unless LTO was explicitly disabled.
5985 case $target in
5986 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5987 *) ;;
5988 esac
5994 # By default, C is the only stage 1 language.
5995 stage1_languages=,c,
5997 # Target libraries that we bootstrap.
5998 bootstrap_target_libs=,target-libgcc,
6000 # Figure out what language subdirectories are present.
6001 # Look if the user specified --enable-languages="..."; if not, use
6002 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6003 # go away some day.
6004 # NB: embedded tabs in this IF block -- do not untabify
6005 if test -d ${srcdir}/gcc; then
6006 if test x"${enable_languages+set}" != xset; then
6007 if test x"${LANGUAGES+set}" = xset; then
6008 enable_languages="${LANGUAGES}"
6009 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6010 else
6011 enable_languages=all
6013 else
6014 if test x"${enable_languages}" = x ||
6015 test x"${enable_languages}" = xyes;
6016 then
6017 echo configure.in: --enable-languages needs at least one language argument 1>&2
6018 exit 1
6021 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6023 # 'f95' is the old name for the 'fortran' language. We issue a warning
6024 # and make the substitution.
6025 case ,${enable_languages}, in
6026 *,f95,*)
6027 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6028 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6030 esac
6032 # First scan to see if an enabled language requires some other language.
6033 # We assume that a given config-lang.in will list all the language
6034 # front ends it requires, even if some are required indirectly.
6035 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6036 case ${lang_frag} in
6037 ..) ;;
6038 # The odd quoting in the next line works around
6039 # an apparent bug in bash 1.12 on linux.
6040 ${srcdir}/gcc/[*]/config-lang.in) ;;
6042 # From the config-lang.in, get $language, $lang_requires, and
6043 # $lang_requires_boot_languages.
6044 language=
6045 lang_requires=
6046 lang_requires_boot_languages=
6047 . ${lang_frag}
6048 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6049 case ,${enable_languages}, in
6050 *,$other,*) ;;
6051 *,all,*) ;;
6052 *,$language,*)
6053 echo " \`$other' language required by \`$language'; enabling" 1>&2
6054 enable_languages="${enable_languages},${other}"
6056 esac
6057 done
6058 for other in ${lang_requires_boot_languages} ; do
6059 if test "$other" != "c"; then
6060 case ,${enable_stage1_languages}, in
6061 *,$other,*) ;;
6062 *,all,*) ;;
6064 case ,${enable_languages}, in
6065 *,$language,*)
6066 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6067 enable_stage1_languages="$enable_stage1_languages,${other}"
6069 esac
6071 esac
6073 done
6075 esac
6076 done
6078 new_enable_languages=,c,
6080 # If LTO is enabled, add the LTO front end.
6081 extra_host_libiberty_configure_flags=
6082 if test "$enable_lto" = "yes" ; then
6083 case ,${enable_languages}, in
6084 *,lto,*) ;;
6085 *) enable_languages="${enable_languages},lto" ;;
6086 esac
6087 if test "${build_lto_plugin}" = "yes" ; then
6088 configdirs="$configdirs lto-plugin"
6089 extra_host_libiberty_configure_flags=--enable-shared
6094 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6095 potential_languages=,c,
6097 enabled_target_libs=
6098 disabled_target_libs=
6100 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6101 case ${lang_frag} in
6102 ..) ;;
6103 # The odd quoting in the next line works around
6104 # an apparent bug in bash 1.12 on linux.
6105 ${srcdir}/gcc/[*]/config-lang.in) ;;
6107 # From the config-lang.in, get $language, $target_libs,
6108 # $lang_dirs, $boot_language, and $build_by_default
6109 language=
6110 target_libs=
6111 lang_dirs=
6112 subdir_requires=
6113 boot_language=no
6114 build_by_default=yes
6115 . ${lang_frag}
6116 if test x${language} = x; then
6117 echo "${lang_frag} doesn't set \$language." 1>&2
6118 exit 1
6121 if test "$language" = "c++" \
6122 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6123 boot_language=yes
6126 case ,${enable_languages}, in
6127 *,${language},*)
6128 # Language was explicitly selected; include it.
6129 add_this_lang=yes
6131 *,all,*)
6132 # 'all' was selected, select it if it is a default language
6133 add_this_lang=${build_by_default}
6136 add_this_lang=no
6138 esac
6140 # Disable languages that need other directories if these aren't available.
6141 for i in $subdir_requires; do
6142 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6143 case ,${enable_languages}, in
6144 *,${language},*)
6145 # Specifically requested language; tell them.
6146 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6149 # Silently disable.
6150 add_this_lang=unsupported
6152 esac
6153 done
6155 # Disable Ada if no preexisting GNAT is available.
6156 case ,${enable_languages},:${language}:${have_gnat} in
6157 *,${language},*:ada:no)
6158 # Specifically requested language; tell them.
6159 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6161 *:ada:no)
6162 # Silently disable.
6163 add_this_lang=unsupported
6165 esac
6167 # Disable a language that is unsupported by the target.
6168 case " $unsupported_languages " in
6169 *" $language "*)
6170 add_this_lang=unsupported
6172 esac
6174 case $add_this_lang in
6175 unsupported)
6176 # Remove language-dependent dirs.
6177 disabled_target_libs="$disabled_target_libs $target_libs"
6178 noconfigdirs="$noconfigdirs $lang_dirs"
6181 # Remove language-dependent dirs; still show language as supported.
6182 disabled_target_libs="$disabled_target_libs $target_libs"
6183 noconfigdirs="$noconfigdirs $lang_dirs"
6184 potential_languages="${potential_languages}${language},"
6186 yes)
6187 new_enable_languages="${new_enable_languages}${language},"
6188 potential_languages="${potential_languages}${language},"
6189 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6190 enabled_target_libs="$enabled_target_libs $target_libs"
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},"
6201 esac
6203 esac
6205 esac
6206 done
6208 # Add target libraries which are only needed for disabled languages
6209 # to noconfigdirs.
6210 if test -n "$disabled_target_libs"; then
6211 for dir in $disabled_target_libs; do
6212 case " $enabled_target_libs " in
6213 *" ${dir} "*) ;;
6214 *) noconfigdirs="$noconfigdirs $dir" ;;
6215 esac
6216 done
6219 # Check whether --enable-stage1-languages was given.
6220 if test "${enable_stage1_languages+set}" = set; then :
6221 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6222 ,no,|,,)
6223 # Set it to something that will have no effect in the loop below
6224 enable_stage1_languages=c ;;
6225 ,yes,)
6226 enable_stage1_languages=`echo $new_enable_languages | \
6227 sed -e "s/^,//" -e "s/,$//" ` ;;
6228 *,all,*)
6229 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6230 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6231 esac
6233 # Add "good" languages from enable_stage1_languages to stage1_languages,
6234 # while "bad" languages go in missing_languages. Leave no duplicates.
6235 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6236 case $potential_languages in
6237 *,$i,*)
6238 case $stage1_languages in
6239 *,$i,*) ;;
6240 *) stage1_languages="$stage1_languages$i," ;;
6241 esac ;;
6243 case $missing_languages in
6244 *,$i,*) ;;
6245 *) missing_languages="$missing_languages$i," ;;
6246 esac ;;
6247 esac
6248 done
6252 # Remove leading/trailing commas that were added for simplicity
6253 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6254 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6255 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6256 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6258 if test "x$missing_languages" != x; then
6259 as_fn_error "
6260 The following requested languages could not be built: ${missing_languages}
6261 Supported languages are: ${potential_languages}" "$LINENO" 5
6263 if test "x$new_enable_languages" != "x$enable_languages"; then
6264 echo The following languages will be built: ${new_enable_languages}
6265 enable_languages="$new_enable_languages"
6269 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6272 # Handle --disable-<component> generically.
6273 for dir in $configdirs $build_configdirs $target_configdirs ; do
6274 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6275 varname=`echo $dirname | sed -e s/+/_/g`
6276 if eval test x\${enable_${varname}} "=" xno ; then
6277 noconfigdirs="$noconfigdirs $dir"
6279 done
6281 # Check for Boehm's garbage collector
6282 # Check whether --enable-objc-gc was given.
6283 if test "${enable_objc_gc+set}" = set; then :
6284 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6285 *,objc,*:*:yes:*target-boehm-gc*)
6286 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6288 esac
6292 # Make sure we only build Boehm's garbage collector if required.
6293 case ,${enable_languages},:${enable_objc_gc} in
6294 *,objc,*:yes)
6295 # Keep target-boehm-gc if requested for Objective-C.
6298 # Otherwise remove target-boehm-gc depending on target-libjava.
6299 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6300 noconfigdirs="$noconfigdirs target-boehm-gc"
6303 esac
6305 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6306 # $build_configdirs and $target_configdirs.
6307 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6309 notsupp=""
6310 for dir in . $skipdirs $noconfigdirs ; do
6311 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6312 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6314 if test -r $srcdir/$dirname/configure ; then
6315 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6316 true
6317 else
6318 notsupp="$notsupp $dir"
6322 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6324 if test -r $srcdir/$dirname/configure ; then
6325 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6326 true
6327 else
6328 notsupp="$notsupp $dir"
6332 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6334 if test -r $srcdir/$dirname/configure ; then
6335 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336 true
6337 else
6338 notsupp="$notsupp $dir"
6342 done
6344 # Sometimes the tools are distributed with libiberty but with no other
6345 # libraries. In that case, we don't want to build target-libiberty.
6346 # Don't let libgcc imply libiberty either.
6347 if test -n "${target_configdirs}" ; then
6348 libgcc=
6349 others=
6350 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6351 if test "$i" = "libgcc"; then
6352 libgcc=target-libgcc
6353 elif test "$i" != "libiberty" ; then
6354 if test -r $srcdir/$i/configure ; then
6355 others=yes;
6356 break;
6359 done
6360 if test -z "${others}" ; then
6361 target_configdirs=$libgcc
6365 # Quietly strip out all directories which aren't configurable in this tree.
6366 # This relies on all configurable subdirectories being autoconfiscated, which
6367 # is now the case.
6368 build_configdirs_all="$build_configdirs"
6369 build_configdirs=
6370 for i in ${build_configdirs_all} ; do
6371 j=`echo $i | sed -e s/build-//g`
6372 if test -f ${srcdir}/$j/configure ; then
6373 build_configdirs="${build_configdirs} $i"
6375 done
6377 configdirs_all="$configdirs"
6378 configdirs=
6379 for i in ${configdirs_all} ; do
6380 if test -f ${srcdir}/$i/configure ; then
6381 configdirs="${configdirs} $i"
6383 done
6385 target_configdirs_all="$target_configdirs"
6386 target_configdirs=
6387 for i in ${target_configdirs_all} ; do
6388 j=`echo $i | sed -e s/target-//g`
6389 if test -f ${srcdir}/$j/configure ; then
6390 target_configdirs="${target_configdirs} $i"
6392 done
6394 # Produce a warning message for the subdirs we can't configure.
6395 # This isn't especially interesting in the Cygnus tree, but in the individual
6396 # FSF releases, it's important to let people know when their machine isn't
6397 # supported by the one or two programs in a package.
6399 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6400 # If $appdirs is non-empty, at least one of those directories must still
6401 # be configured, or we error out. (E.g., if the gas release supports a
6402 # specified target in some subdirs but not the gas subdir, we shouldn't
6403 # pretend that all is well.)
6404 if test -n "$appdirs" ; then
6405 for dir in $appdirs ; do
6406 if test -r $dir/Makefile.in ; then
6407 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6408 appdirs=""
6409 break
6411 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6412 appdirs=""
6413 break
6416 done
6417 if test -n "$appdirs" ; then
6418 echo "*** This configuration is not supported by this package." 1>&2
6419 exit 1
6422 # Okay, some application will build, or we don't care to check. Still
6423 # notify of subdirs not getting built.
6424 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6425 echo " ${notsupp}" 1>&2
6426 echo " (Any other directories should still work fine.)" 1>&2
6429 case "$host" in
6430 *msdosdjgpp*)
6431 enable_gdbtk=no ;;
6432 esac
6434 # To find our prefix, in gcc_cv_tool_prefix.
6436 # The user is always right.
6437 if test "${PATH_SEPARATOR+set}" != set; then
6438 echo "#! /bin/sh" >conf$$.sh
6439 echo "exit 0" >>conf$$.sh
6440 chmod +x conf$$.sh
6441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6442 PATH_SEPARATOR=';'
6443 else
6444 PATH_SEPARATOR=:
6446 rm -f conf$$.sh
6451 if test "x$exec_prefix" = xNONE; then
6452 if test "x$prefix" = xNONE; then
6453 gcc_cv_tool_prefix=$ac_default_prefix
6454 else
6455 gcc_cv_tool_prefix=$prefix
6457 else
6458 gcc_cv_tool_prefix=$exec_prefix
6461 # If there is no compiler in the tree, use the PATH only. In any
6462 # case, if there is no compiler in the tree nobody should use
6463 # AS_FOR_TARGET and LD_FOR_TARGET.
6464 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6465 gcc_version=`cat $srcdir/gcc/BASE-VER`
6466 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6467 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6472 else
6473 gcc_cv_tool_dirs=
6476 if test x$build = x$target && test -n "$md_exec_prefix"; then
6477 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6482 copy_dirs=
6485 # Check whether --with-build-sysroot was given.
6486 if test "${with_build_sysroot+set}" = set; then :
6487 withval=$with_build_sysroot; if test x"$withval" != x ; then
6488 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6490 else
6491 SYSROOT_CFLAGS_FOR_TARGET=
6497 # Check whether --with-debug-prefix-map was given.
6498 if test "${with_debug_prefix_map+set}" = set; then :
6499 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6500 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6501 for debug_map in $withval; do
6502 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6503 done
6505 else
6506 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6511 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6512 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6513 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6514 # We want to ensure that TARGET libraries (which we know are built with
6515 # gcc) are built with "-O2 -g", so include those options when setting
6516 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6517 if test "x$CFLAGS_FOR_TARGET" = x; then
6518 CFLAGS_FOR_TARGET=$CFLAGS
6519 case " $CFLAGS " in
6520 *" -O2 "*) ;;
6521 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6522 esac
6523 case " $CFLAGS " in
6524 *" -g "* | *" -g3 "*) ;;
6525 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6526 esac
6530 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6531 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6532 case " $CXXFLAGS " in
6533 *" -O2 "*) ;;
6534 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6535 esac
6536 case " $CXXFLAGS " in
6537 *" -g "* | *" -g3 "*) ;;
6538 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6539 esac
6543 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6544 # the named directory are copied to $(tooldir)/sys-include.
6545 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6546 if test x${is_cross_compiler} = xno ; then
6547 echo 1>&2 '***' --with-headers is only supported when cross compiling
6548 exit 1
6550 if test x"${with_headers}" != xyes ; then
6551 x=${gcc_cv_tool_prefix}
6552 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6556 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6557 # the name directories are copied to $(tooldir)/lib. Multiple directories
6558 # are permitted.
6559 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6560 if test x${is_cross_compiler} = xno ; then
6561 echo 1>&2 '***' --with-libs is only supported when cross compiling
6562 exit 1
6564 if test x"${with_libs}" != xyes ; then
6565 # Copy the libraries in reverse order, so that files in the first named
6566 # library override files in subsequent libraries.
6567 x=${gcc_cv_tool_prefix}
6568 for l in ${with_libs}; do
6569 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6570 done
6574 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6576 # This is done by determining whether or not the appropriate directory
6577 # is available, and by checking whether or not specific configurations
6578 # have requested that this magic not happen.
6580 # The command line options always override the explicit settings in
6581 # configure.in, and the settings in configure.in override this magic.
6583 # If the default for a toolchain is to use GNU as and ld, and you don't
6584 # want to do that, then you should use the --without-gnu-as and
6585 # --without-gnu-ld options for the configure script. Similarly, if
6586 # the default is to use the included zlib and you don't want to do that,
6587 # you should use the --with-system-zlib option for the configure script.
6589 if test x${use_gnu_as} = x &&
6590 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6591 with_gnu_as=yes
6592 extra_host_args="$extra_host_args --with-gnu-as"
6595 if test x${use_gnu_ld} = x &&
6596 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6597 with_gnu_ld=yes
6598 extra_host_args="$extra_host_args --with-gnu-ld"
6601 if test x${use_included_zlib} = x &&
6602 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6604 else
6605 with_system_zlib=yes
6606 extra_host_args="$extra_host_args --with-system-zlib"
6609 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6610 # can detect this case.
6612 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6613 with_newlib=yes
6614 extra_host_args="$extra_host_args --with-newlib"
6617 # Handle ${copy_dirs}
6618 set fnord ${copy_dirs}
6619 shift
6620 while test $# != 0 ; do
6621 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6623 else
6624 echo Copying $1 to $2
6626 # Use the install script to create the directory and all required
6627 # parent directories.
6628 if test -d $2 ; then
6630 else
6631 echo >config.temp
6632 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6635 # Copy the directory, assuming we have tar.
6636 # FIXME: Should we use B in the second tar? Not all systems support it.
6637 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6639 # It is the responsibility of the user to correctly adjust all
6640 # symlinks. If somebody can figure out how to handle them correctly
6641 # here, feel free to add the code.
6643 echo $1 > $2/COPIED
6645 shift; shift
6646 done
6648 # Determine a target-dependent exec_prefix that the installed
6649 # gcc will search in. Keep this list sorted by triplet, with
6650 # the *-*-osname triplets last.
6651 md_exec_prefix=
6652 case "${target}" in
6653 i[34567]86-pc-msdosdjgpp*)
6654 md_exec_prefix=/dev/env/DJDIR/bin
6656 *-*-hpux* | \
6657 *-*-nto-qnx* | \
6658 *-*-solaris2*)
6659 md_exec_prefix=/usr/ccs/bin
6661 esac
6663 extra_arflags_for_target=
6664 extra_nmflags_for_target=
6665 extra_ranlibflags_for_target=
6666 target_makefile_frag=/dev/null
6667 case "${target}" in
6668 spu-*-*)
6669 target_makefile_frag="config/mt-spu"
6671 mips*-sde-elf*)
6672 target_makefile_frag="config/mt-sde"
6674 mipsisa*-*-elfoabi*)
6675 target_makefile_frag="config/mt-mips-elfoabi"
6677 mips*-*-*linux* | mips*-*-gnu*)
6678 target_makefile_frag="config/mt-mips-gnu"
6680 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6681 target_makefile_frag="config/mt-gnu"
6683 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6684 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6685 # commands to handle both 32-bit and 64-bit objects. These flags are
6686 # harmless if we're using GNU nm or ar.
6687 extra_arflags_for_target=" -X32_64"
6688 extra_nmflags_for_target=" -B -X32_64"
6690 *-*-darwin[3-9]*)
6691 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6692 extra_ranlibflags_for_target=" -c"
6694 esac
6696 alphaieee_frag=/dev/null
6697 case $target in
6698 alpha*-*-*)
6699 # This just makes sure to use the -mieee option to build target libs.
6700 # This should probably be set individually by each library.
6701 alphaieee_frag="config/mt-alphaieee"
6703 esac
6705 # If --enable-target-optspace always use -Os instead of -O2 to build
6706 # the target libraries, similarly if it is not specified, use -Os
6707 # on selected platforms.
6708 ospace_frag=/dev/null
6709 case "${enable_target_optspace}:${target}" in
6710 yes:*)
6711 ospace_frag="config/mt-ospace"
6713 :d30v-*)
6714 ospace_frag="config/mt-d30v"
6716 :m32r-* | :d10v-* | :fr30-*)
6717 ospace_frag="config/mt-ospace"
6719 no:* | :*)
6722 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6724 esac
6726 # Default to using --with-stabs for certain targets.
6727 if test x${with_stabs} = x ; then
6728 case "${target}" in
6729 mips*-*-irix[56]*)
6731 mips*-*-* | alpha*-*-osf*)
6732 with_stabs=yes;
6733 extra_host_args="${extra_host_args} --with-stabs"
6735 esac
6738 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6739 # them automatically.
6740 case "${host}" in
6741 hppa*64*-*-hpux11*)
6742 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6744 esac
6746 # Some systems (e.g., one of the i386-aix systems the gas testers are
6747 # using) don't handle "\$" correctly, so don't use it here.
6748 tooldir='${exec_prefix}'/${target_noncanonical}
6749 build_tooldir=${tooldir}
6751 # Create a .gdbinit file which runs the one in srcdir
6752 # and tells GDB to look there for source files.
6754 if test -r ${srcdir}/.gdbinit ; then
6755 case ${srcdir} in
6756 .) ;;
6757 *) cat > ./.gdbinit <<EOF
6758 # ${NO_EDIT}
6759 dir ${srcdir}
6760 dir .
6761 source ${srcdir}/.gdbinit
6764 esac
6767 # Make sure that the compiler is able to generate an executable. If it
6768 # can't, we are probably in trouble. We don't care whether we can run the
6769 # executable--we might be using a cross compiler--we only care whether it
6770 # can be created. At this point the main configure script has set CC.
6771 we_are_ok=no
6772 echo "int main () { return 0; }" > conftest.c
6773 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6774 if test $? = 0 ; then
6775 if test -s conftest || test -s conftest.exe ; then
6776 we_are_ok=yes
6779 case $we_are_ok in
6781 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6782 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6783 rm -f conftest*
6784 exit 1
6786 esac
6787 rm -f conftest*
6789 # The Solaris /usr/ucb/cc compiler does not appear to work.
6790 case "${host}" in
6791 sparc-sun-solaris2*)
6792 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6793 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6794 could_use=
6795 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6796 if test -d /opt/cygnus/bin ; then
6797 if test "$could_use" = "" ; then
6798 could_use="/opt/cygnus/bin"
6799 else
6800 could_use="$could_use or /opt/cygnus/bin"
6803 if test "$could_use" = "" ; then
6804 echo "Warning: compilation may fail because you're using"
6805 echo "/usr/ucb/cc. You should change your PATH or CC "
6806 echo "variable and rerun configure."
6807 else
6808 echo "Warning: compilation may fail because you're using"
6809 echo "/usr/ucb/cc, when you should use the C compiler from"
6810 echo "$could_use. You should change your"
6811 echo "PATH or CC variable and rerun configure."
6815 esac
6817 # Decide which environment variable is used to find dynamic libraries.
6818 case "${host}" in
6819 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6820 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6821 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6822 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6823 esac
6825 # On systems where the dynamic library environment variable is PATH,
6826 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6827 # built executables to PATH.
6828 if test "$RPATH_ENVVAR" = PATH; then
6829 GCC_SHLIB_SUBDIR=/shlib
6830 else
6831 GCC_SHLIB_SUBDIR=
6834 # Record target_configdirs and the configure arguments for target and
6835 # build configuration in Makefile.
6836 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6837 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6839 # If we are building libgomp, bootstrap it.
6840 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6841 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6844 # Determine whether gdb needs tk/tcl or not.
6845 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6846 # and in that case we want gdb to be built without tk. Ugh!
6847 # In fact I believe gdb is the *only* package directly dependent on tk,
6848 # so we should be able to put the 'maybe's in unconditionally and
6849 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6850 # 100% sure that that's safe though.
6852 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6853 case "$enable_gdbtk" in
6855 GDB_TK="" ;;
6856 yes)
6857 GDB_TK="${gdb_tk}" ;;
6859 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6860 # distro. Eventually someone will fix this and move Insight, nee
6861 # gdbtk to a separate directory.
6862 if test -d ${srcdir}/gdb/gdbtk ; then
6863 GDB_TK="${gdb_tk}"
6864 else
6865 GDB_TK=""
6868 esac
6869 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6870 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6872 # Strip out unwanted targets.
6874 # While at that, we remove Makefiles if we were started for recursive
6875 # configuration, so that the top-level Makefile reconfigures them,
6876 # like we used to do when configure itself was recursive.
6878 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6879 # but now we're fixing up the Makefile ourselves with the additional
6880 # commands passed to AC_CONFIG_FILES. Use separate variables
6881 # extrasub-{build,host,target} not because there is any reason to split
6882 # the substitutions up that way, but only to remain below the limit of
6883 # 99 commands in a script, for HP-UX sed.
6884 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6886 # Check whether --enable-bootstrap was given.
6887 if test "${enable_bootstrap+set}" = set; then :
6888 enableval=$enable_bootstrap;
6889 else
6890 enable_bootstrap=default
6894 # Issue errors and warnings for invalid/strange bootstrap combinations.
6895 case "$configdirs" in
6896 *gcc*) have_compiler=yes ;;
6897 *) have_compiler=no ;;
6898 esac
6900 case "$have_compiler:$host:$target:$enable_bootstrap" in
6901 *:*:*:no) ;;
6903 # Default behavior. Enable bootstrap if we have a compiler
6904 # and we are in a native configuration.
6905 yes:$build:$build:default)
6906 enable_bootstrap=yes ;;
6908 *:*:*:default)
6909 enable_bootstrap=no ;;
6911 # We have a compiler and we are in a native configuration, bootstrap is ok
6912 yes:$build:$build:yes)
6915 # Other configurations, but we have a compiler. Assume the user knows
6916 # what he's doing.
6917 yes:*:*:yes)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6919 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6922 # No compiler: if they passed --enable-bootstrap explicitly, fail
6923 no:*:*:yes)
6924 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6926 # Fail if wrong command line
6928 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6930 esac
6932 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6933 *,c++,*:yes:yes) ;;
6934 *:yes:yes)
6935 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6937 esac
6939 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6940 yes:yes:*\ gold\ *:*,c++,*) ;;
6941 yes:yes:*\ gold\ *:*)
6942 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6944 esac
6946 # Adjust the toplevel makefile according to whether bootstrap was selected.
6947 case $enable_bootstrap in
6948 yes)
6949 bootstrap_suffix=bootstrap
6950 BUILD_CONFIG=bootstrap-debug
6953 bootstrap_suffix=no-bootstrap
6954 BUILD_CONFIG=
6956 esac
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6959 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6962 # Check whether --with-build-config was given.
6963 if test "${with_build_config+set}" = set; then :
6964 withval=$with_build_config; case $with_build_config in
6965 yes) with_build_config= ;;
6966 no) with_build_config= BUILD_CONFIG= ;;
6967 esac
6971 if test "x${with_build_config}" != x; then
6972 BUILD_CONFIG=$with_build_config
6973 else
6974 case $BUILD_CONFIG in
6975 bootstrap-debug)
6976 if echo "int f (void) { return 0; }" > conftest.c &&
6977 ${CC} -c conftest.c &&
6978 mv conftest.o conftest.o.g0 &&
6979 ${CC} -c -g conftest.c &&
6980 mv conftest.o conftest.o.g &&
6981 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6983 else
6984 BUILD_CONFIG=
6986 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6988 esac
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6991 $as_echo "$BUILD_CONFIG" >&6; }
6994 extrasub_build=
6995 for module in ${build_configdirs} ; do
6996 if test -z "${no_recursion}" \
6997 && test -f ${build_subdir}/${module}/Makefile; then
6998 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6999 rm -f ${build_subdir}/${module}/Makefile
7001 extrasub_build="$extrasub_build
7002 /^@if build-$module\$/d
7003 /^@endif build-$module\$/d
7004 /^@if build-$module-$bootstrap_suffix\$/d
7005 /^@endif build-$module-$bootstrap_suffix\$/d"
7006 done
7007 extrasub_host=
7008 for module in ${configdirs} ; do
7009 if test -z "${no_recursion}"; then
7010 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7011 if test -f ${file}; then
7012 echo 1>&2 "*** removing ${file} to force reconfigure"
7013 rm -f ${file}
7015 done
7017 extrasub_host="$extrasub_host
7018 /^@if $module\$/d
7019 /^@endif $module\$/d
7020 /^@if $module-$bootstrap_suffix\$/d
7021 /^@endif $module-$bootstrap_suffix\$/d"
7022 done
7023 extrasub_target=
7024 for module in ${target_configdirs} ; do
7025 if test -z "${no_recursion}" \
7026 && test -f ${target_subdir}/${module}/Makefile; then
7027 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7028 rm -f ${target_subdir}/${module}/Makefile
7031 # We only bootstrap target libraries listed in bootstrap_target_libs.
7032 case $bootstrap_target_libs in
7033 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7034 *) target_bootstrap_suffix=no-bootstrap ;;
7035 esac
7037 extrasub_target="$extrasub_target
7038 /^@if target-$module\$/d
7039 /^@endif target-$module\$/d
7040 /^@if target-$module-$target_bootstrap_suffix\$/d
7041 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7042 done
7044 # Do the final fixup along with target modules.
7045 extrasub_target="$extrasub_target
7046 /^@if /,/^@endif /d"
7048 # Create the serialization dependencies. This uses a temporary file.
7050 # Check whether --enable-serial-configure was given.
7051 if test "${enable_serial_configure+set}" = set; then :
7052 enableval=$enable_serial_configure;
7056 case ${enable_serial_configure} in
7057 yes)
7058 enable_serial_build_configure=yes
7059 enable_serial_host_configure=yes
7060 enable_serial_target_configure=yes
7062 esac
7064 # These force 'configure's to be done one at a time, to avoid problems
7065 # with contention over a shared config.cache.
7066 rm -f serdep.tmp
7067 echo '# serdep.tmp' > serdep.tmp
7068 olditem=
7069 test "x${enable_serial_build_configure}" = xyes &&
7070 for item in ${build_configdirs} ; do
7071 case ${olditem} in
7072 "") ;;
7073 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7074 esac
7075 olditem=${item}
7076 done
7077 olditem=
7078 test "x${enable_serial_host_configure}" = xyes &&
7079 for item in ${configdirs} ; do
7080 case ${olditem} in
7081 "") ;;
7082 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7083 esac
7084 olditem=${item}
7085 done
7086 olditem=
7087 test "x${enable_serial_target_configure}" = xyes &&
7088 for item in ${target_configdirs} ; do
7089 case ${olditem} in
7090 "") ;;
7091 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7092 esac
7093 olditem=${item}
7094 done
7095 serialization_dependencies=serdep.tmp
7098 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7099 # target, nonopt, and variable assignments. These are the ones we
7100 # might not want to pass down to subconfigures. The exception being
7101 # --cache-file=/dev/null, which is used to turn off the use of cache
7102 # files altogether, and which should be passed on to subconfigures.
7103 # Also strip program-prefix, program-suffix, and program-transform-name,
7104 # so that we can pass down a consistent program-transform-name.
7105 baseargs=
7106 tbaseargs=
7107 keep_next=no
7108 skip_next=no
7109 eval "set -- $ac_configure_args"
7110 for ac_arg
7112 if test X"$skip_next" = X"yes"; then
7113 skip_next=no
7114 continue
7116 if test X"$keep_next" = X"yes"; then
7117 case $ac_arg in
7118 *\'*)
7119 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7120 esac
7121 baseargs="$baseargs '$ac_arg'"
7122 tbaseargs="$tbaseargs '$ac_arg'"
7123 keep_next=no
7124 continue
7127 # Handle separated arguments. Based on the logic generated by
7128 # autoconf 2.59.
7129 case $ac_arg in
7130 *=* | --config-cache | -C | -disable-* | --disable-* \
7131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7133 | -with-* | --with-* | -without-* | --without-* | --x)
7134 separate_arg=no
7137 separate_arg=yes
7140 separate_arg=no
7142 esac
7144 skip_targ=no
7145 case $ac_arg in
7147 --with-* | --without-*)
7148 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7150 case $libopt in
7151 *[-_]include)
7152 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7154 *[-_]lib)
7155 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7158 lib=$libopt
7160 esac
7163 case $lib in
7164 mpc | mpfr | gmp | ppl | cloog)
7165 # If we're processing --with-$lib, --with-$lib-include or
7166 # --with-$lib-lib, for one of the libs above, and target is
7167 # different from host, don't pass the current argument to any
7168 # target library's configure.
7169 if test x$is_cross_compiler = xyes; then
7170 skip_targ=yes
7173 esac
7175 esac
7177 case "$ac_arg" in
7178 --cache-file=/dev/null | \
7179 -cache-file=/dev/null )
7180 # Handled here to avoid the test to skip args below.
7181 baseargs="$baseargs '$ac_arg'"
7182 tbaseargs="$tbaseargs '$ac_arg'"
7183 # Assert: $separate_arg should always be no.
7184 keep_next=$separate_arg
7186 --no*)
7187 continue
7189 --c* | \
7190 --sr* | \
7191 --ho* | \
7192 --bu* | \
7193 --t* | \
7194 --program-* | \
7195 -cache_file* | \
7196 -srcdir* | \
7197 -host* | \
7198 -build* | \
7199 -target* | \
7200 -program-prefix* | \
7201 -program-suffix* | \
7202 -program-transform-name* )
7203 skip_next=$separate_arg
7204 continue
7207 # An option. Add it.
7208 case $ac_arg in
7209 *\'*)
7210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7211 esac
7212 baseargs="$baseargs '$ac_arg'"
7213 if test X"$skip_targ" = Xno; then
7214 tbaseargs="$tbaseargs '$ac_arg'"
7216 keep_next=$separate_arg
7219 # Either a variable assignment, or a nonopt (triplet). Don't
7220 # pass it down; let the Makefile handle this.
7221 continue
7223 esac
7224 done
7225 # Remove the initial space we just introduced and, as these will be
7226 # expanded by make, quote '$'.
7227 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7229 # Add in --program-transform-name, after --program-prefix and
7230 # --program-suffix have been applied to it. Autoconf has already
7231 # doubled dollar signs and backslashes in program_transform_name; we want
7232 # the backslashes un-doubled, and then the entire thing wrapped in single
7233 # quotes, because this will be expanded first by make and then by the shell.
7234 # Also, because we want to override the logic in subdir configure scripts to
7235 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7236 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7237 ${program_transform_name}
7238 EOF_SED
7239 gcc_transform_name=`cat conftestsed.out`
7240 rm -f conftestsed.out
7241 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7242 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7243 if test "$silent" = yes; then
7244 baseargs="$baseargs --silent"
7245 tbaseargs="$tbaseargs --silent"
7247 baseargs="$baseargs --disable-option-checking"
7248 tbaseargs="$tbaseargs --disable-option-checking"
7250 # Record and document user additions to sub configure arguments.
7255 # For the build-side libraries, we just need to pretend we're native,
7256 # and not use the same cache file. Multilibs are neither needed nor
7257 # desired.
7258 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7260 # For host modules, accept cache file option, or specification as blank.
7261 case "${cache_file}" in
7262 "") # empty
7263 cache_file_option="" ;;
7264 /* | [A-Za-z]:[\\/]* ) # absolute path
7265 cache_file_option="--cache-file=${cache_file}" ;;
7266 *) # relative path
7267 cache_file_option="--cache-file=../${cache_file}" ;;
7268 esac
7270 # Host dirs don't like to share a cache file either, horribly enough.
7271 # This seems to be due to autoconf 2.5x stupidity.
7272 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7274 target_configargs="$target_configargs ${tbaseargs}"
7276 # Passing a --with-cross-host argument lets the target libraries know
7277 # whether they are being built with a cross-compiler or being built
7278 # native. However, it would be better to use other mechanisms to make the
7279 # sorts of decisions they want to make on this basis. Please consider
7280 # this option to be deprecated. FIXME.
7281 if test x${is_cross_compiler} = xyes ; then
7282 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7285 # Default to --enable-multilib.
7286 if test x${enable_multilib} = x ; then
7287 target_configargs="--enable-multilib ${target_configargs}"
7290 # Pass --with-newlib if appropriate. Note that target_configdirs has
7291 # changed from the earlier setting of with_newlib.
7292 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7293 target_configargs="--with-newlib ${target_configargs}"
7296 # Different target subdirs use different values of certain variables
7297 # (notably CXX). Worse, multilibs use *lots* of different values.
7298 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7299 # it doesn't automatically accept command-line overrides of them.
7300 # This means it's not safe for target subdirs to share a cache file,
7301 # which is disgusting, but there you have it. Hopefully this can be
7302 # fixed in future. It's still worthwhile to use a cache file for each
7303 # directory. I think.
7305 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7306 # We need to pass --target, as newer autoconf's requires consistency
7307 # for target_alias and gcc doesn't manage it consistently.
7308 target_configargs="--cache-file=./config.cache ${target_configargs}"
7310 FLAGS_FOR_TARGET=
7311 case " $target_configdirs " in
7312 *" newlib "*)
7313 case " $target_configargs " in
7314 *" --with-newlib "*)
7315 case "$target" in
7316 *-cygwin*)
7317 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'
7319 esac
7321 # If we're not building GCC, don't discard standard headers.
7322 if test -d ${srcdir}/gcc; then
7323 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7325 if test "${build}" != "${host}"; then
7326 # On Canadian crosses, CC_FOR_TARGET will have already been set
7327 # by `configure', so we won't have an opportunity to add -Bgcc/
7328 # to it. This is right: we don't want to search that directory
7329 # for binaries, but we want the header files in there, so add
7330 # them explicitly.
7331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7333 # Someone might think of using the pre-installed headers on
7334 # Canadian crosses, in case the installed compiler is not fully
7335 # compatible with the compiler being built. In this case, it
7336 # would be better to flag an error than risking having
7337 # incompatible object files being constructed. We can't
7338 # guarantee that an error will be flagged, but let's hope the
7339 # compiler will do it, when presented with incompatible header
7340 # files.
7344 case "${target}-${is_cross_compiler}" in
7345 i[3456789]86-*-linux*-no)
7346 # Here host == target, so we don't need to build gcc,
7347 # so we don't want to discard standard headers.
7348 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7351 # If we're building newlib, use its generic headers last, but search
7352 # for any libc-related directories first (so make it the last -B
7353 # switch).
7354 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7356 # If we're building libgloss, find the startup file, simulator library
7357 # and linker script.
7358 case " $target_configdirs " in
7359 *" libgloss "*)
7360 # Look for startup file, simulator library and maybe linker script.
7361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7362 # Look for libnosys.a in case the target needs it.
7363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7364 # Most targets have the linker script in the source directory.
7365 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7367 esac
7369 esac
7371 esac
7373 esac
7375 case "$target" in
7376 x86_64-*mingw* | *-w64-mingw*)
7377 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7378 # however, use a symlink named 'mingw' in ${prefix} .
7379 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7381 *-mingw*)
7382 # MinGW can't be handled as Cygwin above since it does not use newlib.
7383 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'
7385 esac
7387 # Allow the user to override the flags for
7388 # our build compiler if desired.
7389 if test x"${build}" = x"${host}" ; then
7390 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7391 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7392 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7395 # On Canadian crosses, we'll be searching the right directories for
7396 # the previously-installed cross compiler, so don't bother to add
7397 # flags for directories within the install tree of the compiler
7398 # being built; programs in there won't even run.
7399 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7400 # Search for pre-installed headers if nothing else fits.
7401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7404 if test "x${use_gnu_ld}" = x &&
7405 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7406 # Arrange for us to find uninstalled linker scripts.
7407 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7410 # Search for other target-specific linker scripts and such.
7411 case "${target}" in
7412 mep*)
7413 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7415 esac
7417 # Makefile fragments.
7418 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7420 eval fragval=\$$frag
7421 if test $fragval != /dev/null; then
7422 eval $frag=${srcdir}/$fragval
7424 done
7430 # Miscellanea: directories, flags, etc.
7439 # Build module lists & subconfigure args.
7443 # Host module lists & subconfigure args.
7448 # Target module lists & subconfigure args.
7452 # Build tools.
7470 # Generate default definitions for YACC, M4, LEX and other programs that run
7471 # on the build machine. These are used if the Makefile can't locate these
7472 # programs in objdir.
7473 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7475 for ac_prog in 'bison -y' byacc yacc
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_prog_YACC+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 if test -n "$YACC"; then
7485 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_YACC="$ac_prog"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7498 done
7499 done
7500 IFS=$as_save_IFS
7504 YACC=$ac_cv_prog_YACC
7505 if test -n "$YACC"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7507 $as_echo "$YACC" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7514 test -n "$YACC" && break
7515 done
7516 test -n "$YACC" || YACC="$MISSING bison -y"
7518 case " $build_configdirs " in
7519 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7520 esac
7522 for ac_prog in bison
7524 # Extract the first word of "$ac_prog", so it can be a program name with args.
7525 set dummy $ac_prog; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if test "${ac_cv_prog_BISON+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$BISON"; then
7532 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_BISON="$ac_prog"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7551 BISON=$ac_cv_prog_BISON
7552 if test -n "$BISON"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7554 $as_echo "$BISON" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7561 test -n "$BISON" && break
7562 done
7563 test -n "$BISON" || BISON="$MISSING bison"
7565 case " $build_configdirs " in
7566 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7567 esac
7569 for ac_prog in gm4 gnum4 m4
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_M4+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$M4"; then
7579 ac_cv_prog_M4="$M4" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_M4="$ac_prog"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7592 done
7593 done
7594 IFS=$as_save_IFS
7598 M4=$ac_cv_prog_M4
7599 if test -n "$M4"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7601 $as_echo "$M4" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7608 test -n "$M4" && break
7609 done
7610 test -n "$M4" || M4="$MISSING m4"
7612 case " $build_configdirs " in
7613 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7614 esac
7616 for ac_prog in flex lex
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619 set dummy $ac_prog; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_LEX+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$LEX"; then
7626 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_prog_LEX="$ac_prog"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7639 done
7640 done
7641 IFS=$as_save_IFS
7645 LEX=$ac_cv_prog_LEX
7646 if test -n "$LEX"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7648 $as_echo "$LEX" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7655 test -n "$LEX" && break
7656 done
7657 test -n "$LEX" || LEX="$MISSING flex"
7659 case " $build_configdirs " in
7660 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7661 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7662 esac
7664 for ac_prog in flex
7666 # Extract the first word of "$ac_prog", so it can be a program name with args.
7667 set dummy $ac_prog; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if test "${ac_cv_prog_FLEX+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$FLEX"; then
7674 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_prog_FLEX="$ac_prog"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7687 done
7688 done
7689 IFS=$as_save_IFS
7693 FLEX=$ac_cv_prog_FLEX
7694 if test -n "$FLEX"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7696 $as_echo "$FLEX" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7703 test -n "$FLEX" && break
7704 done
7705 test -n "$FLEX" || FLEX="$MISSING flex"
7707 case " $build_configdirs " in
7708 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7709 esac
7711 for ac_prog in makeinfo
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$MAKEINFO"; then
7721 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_MAKEINFO="$ac_prog"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 MAKEINFO=$ac_cv_prog_MAKEINFO
7741 if test -n "$MAKEINFO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7743 $as_echo "$MAKEINFO" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 test -n "$MAKEINFO" && break
7751 done
7752 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7754 case " $build_configdirs " in
7755 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7758 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7759 # higher, else we use the "missing" dummy.
7760 if ${MAKEINFO} --version \
7761 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7763 else
7764 MAKEINFO="$MISSING makeinfo"
7768 esac
7770 # FIXME: expect and dejagnu may become build tools?
7772 for ac_prog in expect
7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
7775 set dummy $ac_prog; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 if test -n "$EXPECT"; then
7782 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_prog_EXPECT="$ac_prog"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7797 IFS=$as_save_IFS
7801 EXPECT=$ac_cv_prog_EXPECT
7802 if test -n "$EXPECT"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7804 $as_echo "$EXPECT" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7811 test -n "$EXPECT" && break
7812 done
7813 test -n "$EXPECT" || EXPECT="expect"
7815 case " $configdirs " in
7816 *" expect "*)
7817 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7819 esac
7821 for ac_prog in runtest
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$RUNTEST"; then
7831 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_RUNTEST="$ac_prog"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7844 done
7845 done
7846 IFS=$as_save_IFS
7850 RUNTEST=$ac_cv_prog_RUNTEST
7851 if test -n "$RUNTEST"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7853 $as_echo "$RUNTEST" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7860 test -n "$RUNTEST" && break
7861 done
7862 test -n "$RUNTEST" || RUNTEST="runtest"
7864 case " $configdirs " in
7865 *" dejagnu "*)
7866 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7868 esac
7871 # Host tools.
7872 ncn_tool_prefix=
7873 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7874 ncn_target_tool_prefix=
7875 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7879 if test -n "$AR"; then
7880 ac_cv_prog_AR=$AR
7881 elif test -n "$ac_cv_prog_AR"; then
7882 AR=$ac_cv_prog_AR
7885 if test -n "$ac_cv_prog_AR"; then
7886 for ncn_progname in ar; do
7887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7888 set dummy ${ncn_progname}; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_AR+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$AR"; then
7895 ac_cv_prog_AR="$AR" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_AR="${ncn_progname}"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7908 done
7909 done
7910 IFS=$as_save_IFS
7914 AR=$ac_cv_prog_AR
7915 if test -n "$AR"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7917 $as_echo "$AR" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7924 done
7927 for ncn_progname in ar; do
7928 if test -n "$ncn_tool_prefix"; then
7929 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7930 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if test "${ac_cv_prog_AR+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 if test -n "$AR"; then
7937 ac_cv_prog_AR="$AR" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7950 done
7951 done
7952 IFS=$as_save_IFS
7956 AR=$ac_cv_prog_AR
7957 if test -n "$AR"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7959 $as_echo "$AR" >&6; }
7960 else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7967 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969 set dummy ${ncn_progname}; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_AR+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$AR"; then
7976 ac_cv_prog_AR="$AR" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_AR="${ncn_progname}"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 AR=$ac_cv_prog_AR
7996 if test -n "$AR"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7998 $as_echo "$AR" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 test -n "$ac_cv_prog_AR" && break
8007 done
8009 if test -z "$ac_cv_prog_AR" ; then
8010 set dummy ar
8011 if test $build = $host ; then
8012 AR="$2"
8013 else
8014 AR="${ncn_tool_prefix}$2"
8020 if test -n "$AS"; then
8021 ac_cv_prog_AS=$AS
8022 elif test -n "$ac_cv_prog_AS"; then
8023 AS=$ac_cv_prog_AS
8026 if test -n "$ac_cv_prog_AS"; then
8027 for ncn_progname in as; do
8028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8029 set dummy ${ncn_progname}; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_AS+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$AS"; then
8036 ac_cv_prog_AS="$AS" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_AS="${ncn_progname}"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8055 AS=$ac_cv_prog_AS
8056 if test -n "$AS"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8058 $as_echo "$AS" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8065 done
8068 for ncn_progname in as; do
8069 if test -n "$ncn_tool_prefix"; then
8070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_AS+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$AS"; then
8078 ac_cv_prog_AS="$AS" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8091 done
8092 done
8093 IFS=$as_save_IFS
8097 AS=$ac_cv_prog_AS
8098 if test -n "$AS"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8100 $as_echo "$AS" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8108 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8110 set dummy ${ncn_progname}; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if test "${ac_cv_prog_AS+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$AS"; then
8117 ac_cv_prog_AS="$AS" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_prog_AS="${ncn_progname}"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8136 AS=$ac_cv_prog_AS
8137 if test -n "$AS"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8139 $as_echo "$AS" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8147 test -n "$ac_cv_prog_AS" && break
8148 done
8150 if test -z "$ac_cv_prog_AS" ; then
8151 set dummy as
8152 if test $build = $host ; then
8153 AS="$2"
8154 else
8155 AS="${ncn_tool_prefix}$2"
8161 if test -n "$DLLTOOL"; then
8162 ac_cv_prog_DLLTOOL=$DLLTOOL
8163 elif test -n "$ac_cv_prog_DLLTOOL"; then
8164 DLLTOOL=$ac_cv_prog_DLLTOOL
8167 if test -n "$ac_cv_prog_DLLTOOL"; then
8168 for ncn_progname in dlltool; do
8169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_progname}; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$DLLTOOL"; then
8177 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_DLLTOOL="${ncn_progname}"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 DLLTOOL=$ac_cv_prog_DLLTOOL
8197 if test -n "$DLLTOOL"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8199 $as_echo "$DLLTOOL" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8206 done
8209 for ncn_progname in dlltool; do
8210 if test -n "$ncn_tool_prefix"; then
8211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$DLLTOOL"; then
8219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8234 IFS=$as_save_IFS
8238 DLLTOOL=$ac_cv_prog_DLLTOOL
8239 if test -n "$DLLTOOL"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8241 $as_echo "$DLLTOOL" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251 set dummy ${ncn_progname}; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$DLLTOOL"; then
8258 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_DLLTOOL="${ncn_progname}"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8277 DLLTOOL=$ac_cv_prog_DLLTOOL
8278 if test -n "$DLLTOOL"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8280 $as_echo "$DLLTOOL" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8288 test -n "$ac_cv_prog_DLLTOOL" && break
8289 done
8291 if test -z "$ac_cv_prog_DLLTOOL" ; then
8292 set dummy dlltool
8293 if test $build = $host ; then
8294 DLLTOOL="$2"
8295 else
8296 DLLTOOL="${ncn_tool_prefix}$2"
8302 if test -n "$LD"; then
8303 ac_cv_prog_LD=$LD
8304 elif test -n "$ac_cv_prog_LD"; then
8305 LD=$ac_cv_prog_LD
8308 if test -n "$ac_cv_prog_LD"; then
8309 for ncn_progname in ld; do
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_progname}; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_LD+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$LD"; then
8318 ac_cv_prog_LD="$LD" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_LD="${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8337 LD=$ac_cv_prog_LD
8338 if test -n "$LD"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8340 $as_echo "$LD" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8347 done
8350 for ncn_progname in ld; do
8351 if test -n "$ncn_tool_prefix"; then
8352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_LD+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$LD"; then
8360 ac_cv_prog_LD="$LD" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8379 LD=$ac_cv_prog_LD
8380 if test -n "$LD"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8382 $as_echo "$LD" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392 set dummy ${ncn_progname}; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_LD+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$LD"; then
8399 ac_cv_prog_LD="$LD" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_LD="${ncn_progname}"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 LD=$ac_cv_prog_LD
8419 if test -n "$LD"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8421 $as_echo "$LD" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 test -n "$ac_cv_prog_LD" && break
8430 done
8432 if test -z "$ac_cv_prog_LD" ; then
8433 set dummy ld
8434 if test $build = $host ; then
8435 LD="$2"
8436 else
8437 LD="${ncn_tool_prefix}$2"
8443 if test -n "$LIPO"; then
8444 ac_cv_prog_LIPO=$LIPO
8445 elif test -n "$ac_cv_prog_LIPO"; then
8446 LIPO=$ac_cv_prog_LIPO
8449 if test -n "$ac_cv_prog_LIPO"; then
8450 for ncn_progname in lipo; do
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_progname}; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_LIPO+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$LIPO"; then
8459 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_LIPO="${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 LIPO=$ac_cv_prog_LIPO
8479 if test -n "$LIPO"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8481 $as_echo "$LIPO" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 done
8491 for ncn_progname in lipo; do
8492 if test -n "$ncn_tool_prefix"; then
8493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_LIPO+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$LIPO"; then
8501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 LIPO=$ac_cv_prog_LIPO
8521 if test -n "$LIPO"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8523 $as_echo "$LIPO" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8533 set dummy ${ncn_progname}; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_prog_LIPO+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$LIPO"; then
8540 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_LIPO="${ncn_progname}"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8559 LIPO=$ac_cv_prog_LIPO
8560 if test -n "$LIPO"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8562 $as_echo "$LIPO" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8570 test -n "$ac_cv_prog_LIPO" && break
8571 done
8573 if test -z "$ac_cv_prog_LIPO" ; then
8574 set dummy lipo
8575 if test $build = $host ; then
8576 LIPO="$2"
8577 else
8578 LIPO="${ncn_tool_prefix}$2"
8584 if test -n "$NM"; then
8585 ac_cv_prog_NM=$NM
8586 elif test -n "$ac_cv_prog_NM"; then
8587 NM=$ac_cv_prog_NM
8590 if test -n "$ac_cv_prog_NM"; then
8591 for ncn_progname in nm; do
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_progname}; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_prog_NM+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$NM"; then
8600 ac_cv_prog_NM="$NM" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_NM="${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8619 NM=$ac_cv_prog_NM
8620 if test -n "$NM"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8622 $as_echo "$NM" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8629 done
8632 for ncn_progname in nm; do
8633 if test -n "$ncn_tool_prefix"; then
8634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_NM+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$NM"; then
8642 ac_cv_prog_NM="$NM" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8661 NM=$ac_cv_prog_NM
8662 if test -n "$NM"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8664 $as_echo "$NM" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674 set dummy ${ncn_progname}; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_prog_NM+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$NM"; then
8681 ac_cv_prog_NM="$NM" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_NM="${ncn_progname}"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8696 IFS=$as_save_IFS
8700 NM=$ac_cv_prog_NM
8701 if test -n "$NM"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8703 $as_echo "$NM" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 test -n "$ac_cv_prog_NM" && break
8712 done
8714 if test -z "$ac_cv_prog_NM" ; then
8715 set dummy nm
8716 if test $build = $host ; then
8717 NM="$2"
8718 else
8719 NM="${ncn_tool_prefix}$2"
8725 if test -n "$RANLIB"; then
8726 ac_cv_prog_RANLIB=$RANLIB
8727 elif test -n "$ac_cv_prog_RANLIB"; then
8728 RANLIB=$ac_cv_prog_RANLIB
8731 if test -n "$ac_cv_prog_RANLIB"; then
8732 for ncn_progname in ranlib; do
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$RANLIB"; then
8741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_RANLIB="${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8760 RANLIB=$ac_cv_prog_RANLIB
8761 if test -n "$RANLIB"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8763 $as_echo "$RANLIB" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8770 done
8773 for ncn_progname in ranlib; do
8774 if test -n "$ncn_tool_prefix"; then
8775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$RANLIB"; then
8783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8802 RANLIB=$ac_cv_prog_RANLIB
8803 if test -n "$RANLIB"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8805 $as_echo "$RANLIB" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8815 set dummy ${ncn_progname}; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$RANLIB"; then
8822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_RANLIB="${ncn_progname}"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 RANLIB=$ac_cv_prog_RANLIB
8842 if test -n "$RANLIB"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8844 $as_echo "$RANLIB" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 test -n "$ac_cv_prog_RANLIB" && break
8853 done
8855 if test -z "$ac_cv_prog_RANLIB" ; then
8856 RANLIB="true"
8861 if test -n "$STRIP"; then
8862 ac_cv_prog_STRIP=$STRIP
8863 elif test -n "$ac_cv_prog_STRIP"; then
8864 STRIP=$ac_cv_prog_STRIP
8867 if test -n "$ac_cv_prog_STRIP"; then
8868 for ncn_progname in strip; do
8869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8870 set dummy ${ncn_progname}; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if test "${ac_cv_prog_STRIP+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 if test -n "$STRIP"; then
8877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8878 else
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8886 ac_cv_prog_STRIP="${ncn_progname}"
8887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8892 IFS=$as_save_IFS
8896 STRIP=$ac_cv_prog_STRIP
8897 if test -n "$STRIP"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8899 $as_echo "$STRIP" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8906 done
8909 for ncn_progname in strip; do
8910 if test -n "$ncn_tool_prefix"; then
8911 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8912 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_STRIP+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 if test -n "$STRIP"; then
8919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8932 done
8933 done
8934 IFS=$as_save_IFS
8938 STRIP=$ac_cv_prog_STRIP
8939 if test -n "$STRIP"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8941 $as_echo "$STRIP" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8949 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8951 set dummy ${ncn_progname}; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_STRIP+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 if test -n "$STRIP"; then
8958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_prog_STRIP="${ncn_progname}"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8971 done
8972 done
8973 IFS=$as_save_IFS
8977 STRIP=$ac_cv_prog_STRIP
8978 if test -n "$STRIP"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8980 $as_echo "$STRIP" >&6; }
8981 else
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8988 test -n "$ac_cv_prog_STRIP" && break
8989 done
8991 if test -z "$ac_cv_prog_STRIP" ; then
8992 STRIP="true"
8997 if test -n "$WINDRES"; then
8998 ac_cv_prog_WINDRES=$WINDRES
8999 elif test -n "$ac_cv_prog_WINDRES"; then
9000 WINDRES=$ac_cv_prog_WINDRES
9003 if test -n "$ac_cv_prog_WINDRES"; then
9004 for ncn_progname in windres; do
9005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9006 set dummy ${ncn_progname}; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 if test -n "$WINDRES"; then
9013 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9014 else
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9022 ac_cv_prog_WINDRES="${ncn_progname}"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9026 done
9027 done
9028 IFS=$as_save_IFS
9032 WINDRES=$ac_cv_prog_WINDRES
9033 if test -n "$WINDRES"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9035 $as_echo "$WINDRES" >&6; }
9036 else
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9042 done
9045 for ncn_progname in windres; do
9046 if test -n "$ncn_tool_prefix"; then
9047 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9048 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050 $as_echo_n "checking for $ac_word... " >&6; }
9051 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 if test -n "$WINDRES"; then
9055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9056 else
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9064 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 break 2
9068 done
9069 done
9070 IFS=$as_save_IFS
9074 WINDRES=$ac_cv_prog_WINDRES
9075 if test -n "$WINDRES"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9077 $as_echo "$WINDRES" >&6; }
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9085 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9087 set dummy ${ncn_progname}; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 if test -n "$WINDRES"; then
9094 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_prog_WINDRES="${ncn_progname}"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9113 WINDRES=$ac_cv_prog_WINDRES
9114 if test -n "$WINDRES"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9116 $as_echo "$WINDRES" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 test -n "$ac_cv_prog_WINDRES" && break
9125 done
9127 if test -z "$ac_cv_prog_WINDRES" ; then
9128 set dummy windres
9129 if test $build = $host ; then
9130 WINDRES="$2"
9131 else
9132 WINDRES="${ncn_tool_prefix}$2"
9138 if test -n "$WINDMC"; then
9139 ac_cv_prog_WINDMC=$WINDMC
9140 elif test -n "$ac_cv_prog_WINDMC"; then
9141 WINDMC=$ac_cv_prog_WINDMC
9144 if test -n "$ac_cv_prog_WINDMC"; then
9145 for ncn_progname in windmc; do
9146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9147 set dummy ${ncn_progname}; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test -n "$WINDMC"; then
9154 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_prog_WINDMC="${ncn_progname}"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9167 done
9168 done
9169 IFS=$as_save_IFS
9173 WINDMC=$ac_cv_prog_WINDMC
9174 if test -n "$WINDMC"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9176 $as_echo "$WINDMC" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9183 done
9186 for ncn_progname in windmc; do
9187 if test -n "$ncn_tool_prefix"; then
9188 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9189 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 if test -n "$WINDMC"; then
9196 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9209 done
9210 done
9211 IFS=$as_save_IFS
9215 WINDMC=$ac_cv_prog_WINDMC
9216 if test -n "$WINDMC"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9218 $as_echo "$WINDMC" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9226 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9228 set dummy ${ncn_progname}; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 if test -n "$WINDMC"; then
9235 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9236 else
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_prog_WINDMC="${ncn_progname}"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9254 WINDMC=$ac_cv_prog_WINDMC
9255 if test -n "$WINDMC"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9257 $as_echo "$WINDMC" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9265 test -n "$ac_cv_prog_WINDMC" && break
9266 done
9268 if test -z "$ac_cv_prog_WINDMC" ; then
9269 set dummy windmc
9270 if test $build = $host ; then
9271 WINDMC="$2"
9272 else
9273 WINDMC="${ncn_tool_prefix}$2"
9279 if test -n "$OBJCOPY"; then
9280 ac_cv_prog_OBJCOPY=$OBJCOPY
9281 elif test -n "$ac_cv_prog_OBJCOPY"; then
9282 OBJCOPY=$ac_cv_prog_OBJCOPY
9285 if test -n "$ac_cv_prog_OBJCOPY"; then
9286 for ncn_progname in objcopy; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288 set dummy ${ncn_progname}; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$OBJCOPY"; then
9295 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_OBJCOPY="${ncn_progname}"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9314 OBJCOPY=$ac_cv_prog_OBJCOPY
9315 if test -n "$OBJCOPY"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9317 $as_echo "$OBJCOPY" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9324 done
9327 for ncn_progname in objcopy; do
9328 if test -n "$ncn_tool_prefix"; then
9329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9330 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test -n "$OBJCOPY"; then
9337 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9356 OBJCOPY=$ac_cv_prog_OBJCOPY
9357 if test -n "$OBJCOPY"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9359 $as_echo "$OBJCOPY" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369 set dummy ${ncn_progname}; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 if test -n "$OBJCOPY"; then
9376 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_prog_OBJCOPY="${ncn_progname}"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9395 OBJCOPY=$ac_cv_prog_OBJCOPY
9396 if test -n "$OBJCOPY"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9398 $as_echo "$OBJCOPY" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9406 test -n "$ac_cv_prog_OBJCOPY" && break
9407 done
9409 if test -z "$ac_cv_prog_OBJCOPY" ; then
9410 set dummy objcopy
9411 if test $build = $host ; then
9412 OBJCOPY="$2"
9413 else
9414 OBJCOPY="${ncn_tool_prefix}$2"
9420 if test -n "$OBJDUMP"; then
9421 ac_cv_prog_OBJDUMP=$OBJDUMP
9422 elif test -n "$ac_cv_prog_OBJDUMP"; then
9423 OBJDUMP=$ac_cv_prog_OBJDUMP
9426 if test -n "$ac_cv_prog_OBJDUMP"; then
9427 for ncn_progname in objdump; do
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_progname}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$OBJDUMP"; then
9436 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_OBJDUMP="${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9449 done
9450 done
9451 IFS=$as_save_IFS
9455 OBJDUMP=$ac_cv_prog_OBJDUMP
9456 if test -n "$OBJDUMP"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9458 $as_echo "$OBJDUMP" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9465 done
9468 for ncn_progname in objdump; do
9469 if test -n "$ncn_tool_prefix"; then
9470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$OBJDUMP"; then
9478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9497 OBJDUMP=$ac_cv_prog_OBJDUMP
9498 if test -n "$OBJDUMP"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9500 $as_echo "$OBJDUMP" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9510 set dummy ${ncn_progname}; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 if test -n "$OBJDUMP"; then
9517 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9518 else
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_prog_OBJDUMP="${ncn_progname}"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9536 OBJDUMP=$ac_cv_prog_OBJDUMP
9537 if test -n "$OBJDUMP"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9539 $as_echo "$OBJDUMP" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 test -n "$ac_cv_prog_OBJDUMP" && break
9548 done
9550 if test -z "$ac_cv_prog_OBJDUMP" ; then
9551 set dummy objdump
9552 if test $build = $host ; then
9553 OBJDUMP="$2"
9554 else
9555 OBJDUMP="${ncn_tool_prefix}$2"
9564 # Target tools.
9566 # Check whether --with-build-time-tools was given.
9567 if test "${with_build_time_tools+set}" = set; then :
9568 withval=$with_build_time_tools; case x"$withval" in
9569 x/*) ;;
9571 with_build_time_tools=
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9573 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9575 esac
9576 else
9577 with_build_time_tools=
9583 if test -n "$CC_FOR_TARGET"; then
9584 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9585 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9586 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9589 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9590 for ncn_progname in cc gcc; do
9591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9592 set dummy ${ncn_progname}; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 if test -n "$CC_FOR_TARGET"; then
9599 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9600 else
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9612 done
9613 done
9614 IFS=$as_save_IFS
9618 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9619 if test -n "$CC_FOR_TARGET"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9621 $as_echo "$CC_FOR_TARGET" >&6; }
9622 else
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9628 done
9631 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9632 for ncn_progname in cc gcc; do
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9634 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9635 if test -x $with_build_time_tools/${ncn_progname}; then
9636 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9638 $as_echo "yes" >&6; }
9639 break
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9644 done
9647 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9648 for ncn_progname in cc gcc; do
9649 if test -n "$ncn_target_tool_prefix"; then
9650 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9651 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -n "$CC_FOR_TARGET"; then
9658 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9673 IFS=$as_save_IFS
9677 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9678 if test -n "$CC_FOR_TARGET"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9680 $as_echo "$CC_FOR_TARGET" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690 set dummy ${ncn_progname}; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 if test -n "$CC_FOR_TARGET"; then
9697 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9710 done
9711 done
9712 IFS=$as_save_IFS
9716 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9717 if test -n "$CC_FOR_TARGET"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9719 $as_echo "$CC_FOR_TARGET" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9727 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9728 done
9731 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9732 set dummy cc gcc
9733 if test $build = $target ; then
9734 CC_FOR_TARGET="$2"
9735 else
9736 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9738 else
9739 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9744 if test -n "$CXX_FOR_TARGET"; then
9745 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9746 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9747 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9750 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9751 for ncn_progname in c++ g++ cxx gxx; do
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753 set dummy ${ncn_progname}; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 if test -n "$CXX_FOR_TARGET"; then
9760 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9761 else
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9779 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9780 if test -n "$CXX_FOR_TARGET"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9782 $as_echo "$CXX_FOR_TARGET" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9789 done
9792 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9793 for ncn_progname in c++ g++ cxx gxx; do
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9796 if test -x $with_build_time_tools/${ncn_progname}; then
9797 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799 $as_echo "yes" >&6; }
9800 break
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9805 done
9808 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9809 for ncn_progname in c++ g++ cxx gxx; do
9810 if test -n "$ncn_target_tool_prefix"; then
9811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 if test -n "$CXX_FOR_TARGET"; then
9819 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9832 done
9833 done
9834 IFS=$as_save_IFS
9838 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9839 if test -n "$CXX_FOR_TARGET"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9841 $as_echo "$CXX_FOR_TARGET" >&6; }
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9849 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9851 set dummy ${ncn_progname}; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 if test -n "$CXX_FOR_TARGET"; then
9858 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9859 else
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9871 done
9872 done
9873 IFS=$as_save_IFS
9877 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9878 if test -n "$CXX_FOR_TARGET"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9880 $as_echo "$CXX_FOR_TARGET" >&6; }
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9888 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9889 done
9892 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9893 set dummy c++ g++ cxx gxx
9894 if test $build = $target ; then
9895 CXX_FOR_TARGET="$2"
9896 else
9897 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9899 else
9900 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9905 if test -n "$GCC_FOR_TARGET"; then
9906 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9907 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9908 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9911 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9912 for ncn_progname in gcc; do
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914 set dummy ${ncn_progname}; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 if test -n "$GCC_FOR_TARGET"; then
9921 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9934 done
9935 done
9936 IFS=$as_save_IFS
9940 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9941 if test -n "$GCC_FOR_TARGET"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9943 $as_echo "$GCC_FOR_TARGET" >&6; }
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9950 done
9953 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9954 for ncn_progname in gcc; do
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9956 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9957 if test -x $with_build_time_tools/${ncn_progname}; then
9958 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9960 $as_echo "yes" >&6; }
9961 break
9962 else
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9966 done
9969 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9970 for ncn_progname in gcc; do
9971 if test -n "$ncn_target_tool_prefix"; then
9972 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 if test -n "$GCC_FOR_TARGET"; then
9980 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9989 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9993 done
9994 done
9995 IFS=$as_save_IFS
9999 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10000 if test -n "$GCC_FOR_TARGET"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10002 $as_echo "$GCC_FOR_TARGET" >&6; }
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10010 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10012 set dummy ${ncn_progname}; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 if test -n "$GCC_FOR_TARGET"; then
10019 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10020 else
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10038 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10039 if test -n "$GCC_FOR_TARGET"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10041 $as_echo "$GCC_FOR_TARGET" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10049 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10050 done
10053 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10054 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10055 else
10056 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10061 if test -n "$GCJ_FOR_TARGET"; then
10062 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10063 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10064 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10067 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10068 for ncn_progname in gcj; do
10069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10070 set dummy ${ncn_progname}; ac_word=$2
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072 $as_echo_n "checking for $ac_word... " >&6; }
10073 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 if test -n "$GCJ_FOR_TARGET"; then
10077 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10078 else
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10090 done
10091 done
10092 IFS=$as_save_IFS
10096 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10097 if test -n "$GCJ_FOR_TARGET"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10099 $as_echo "$GCJ_FOR_TARGET" >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10106 done
10109 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10110 for ncn_progname in gcj; do
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10112 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10113 if test -x $with_build_time_tools/${ncn_progname}; then
10114 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116 $as_echo "yes" >&6; }
10117 break
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10122 done
10125 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10126 for ncn_progname in gcj; do
10127 if test -n "$ncn_target_tool_prefix"; then
10128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10129 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 if test -n "$GCJ_FOR_TARGET"; then
10136 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10137 else
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10145 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10149 done
10150 done
10151 IFS=$as_save_IFS
10155 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10156 if test -n "$GCJ_FOR_TARGET"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10158 $as_echo "$GCJ_FOR_TARGET" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10166 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10168 set dummy ${ncn_progname}; ac_word=$2
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 $as_echo_n "checking for $ac_word... " >&6; }
10171 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 if test -n "$GCJ_FOR_TARGET"; then
10175 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10176 else
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10188 done
10189 done
10190 IFS=$as_save_IFS
10194 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10195 if test -n "$GCJ_FOR_TARGET"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10197 $as_echo "$GCJ_FOR_TARGET" >&6; }
10198 else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10205 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10206 done
10209 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10210 set dummy gcj
10211 if test $build = $target ; then
10212 GCJ_FOR_TARGET="$2"
10213 else
10214 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10216 else
10217 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10222 if test -n "$GFORTRAN_FOR_TARGET"; then
10223 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10224 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10225 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10228 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10229 for ncn_progname in gfortran; do
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231 set dummy ${ncn_progname}; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 if test -n "$GFORTRAN_FOR_TARGET"; then
10238 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10247 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10251 done
10252 done
10253 IFS=$as_save_IFS
10257 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10258 if test -n "$GFORTRAN_FOR_TARGET"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10260 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10267 done
10270 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10271 for ncn_progname in gfortran; do
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10273 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10274 if test -x $with_build_time_tools/${ncn_progname}; then
10275 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277 $as_echo "yes" >&6; }
10278 break
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10283 done
10286 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10287 for ncn_progname in gfortran; do
10288 if test -n "$ncn_target_tool_prefix"; then
10289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10290 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292 $as_echo_n "checking for $ac_word... " >&6; }
10293 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 if test -n "$GFORTRAN_FOR_TARGET"; then
10297 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10298 else
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $PATH
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10310 done
10311 done
10312 IFS=$as_save_IFS
10316 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10317 if test -n "$GFORTRAN_FOR_TARGET"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10319 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10327 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10329 set dummy ${ncn_progname}; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 if test -n "$GFORTRAN_FOR_TARGET"; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10337 else
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10345 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 break 2
10349 done
10350 done
10351 IFS=$as_save_IFS
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10356 if test -n "$GFORTRAN_FOR_TARGET"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10358 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10366 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10367 done
10370 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10371 set dummy gfortran
10372 if test $build = $target ; then
10373 GFORTRAN_FOR_TARGET="$2"
10374 else
10375 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10377 else
10378 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10383 if test -n "$GOC_FOR_TARGET"; then
10384 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10385 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10386 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10389 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10390 for ncn_progname in gccgo; do
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392 set dummy ${ncn_progname}; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 if test -n "$GOC_FOR_TARGET"; then
10399 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10400 else
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10412 done
10413 done
10414 IFS=$as_save_IFS
10418 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10419 if test -n "$GOC_FOR_TARGET"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10421 $as_echo "$GOC_FOR_TARGET" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10428 done
10431 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10432 for ncn_progname in gccgo; do
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10435 if test -x $with_build_time_tools/${ncn_progname}; then
10436 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10438 $as_echo "yes" >&6; }
10439 break
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10444 done
10447 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10448 for ncn_progname in gccgo; do
10449 if test -n "$ncn_target_tool_prefix"; then
10450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 if test -n "$GOC_FOR_TARGET"; then
10458 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10471 done
10472 done
10473 IFS=$as_save_IFS
10477 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10478 if test -n "$GOC_FOR_TARGET"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10480 $as_echo "$GOC_FOR_TARGET" >&6; }
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10488 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490 set dummy ${ncn_progname}; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 if test -n "$GOC_FOR_TARGET"; then
10497 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517 if test -n "$GOC_FOR_TARGET"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10519 $as_echo "$GOC_FOR_TARGET" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10527 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10528 done
10531 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10532 set dummy gccgo
10533 if test $build = $target ; then
10534 GOC_FOR_TARGET="$2"
10535 else
10536 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10538 else
10539 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10544 cat > conftest.c << \EOF
10545 #ifdef __GNUC__
10546 gcc_yay;
10547 #endif
10549 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10550 have_gcc_for_target=yes
10551 else
10552 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10553 have_gcc_for_target=no
10555 rm conftest.c
10560 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10561 if test -n "$with_build_time_tools"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10563 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10564 if test -x $with_build_time_tools/ar; then
10565 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10566 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10568 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10573 elif test $build != $host && test $have_gcc_for_target = yes; then
10574 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10575 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10576 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10579 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10580 # Extract the first word of "ar", so it can be a program name with args.
10581 set dummy ar; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 case $AR_FOR_TARGET in
10588 [\\/]* | ?:[\\/]*)
10589 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $gcc_cv_tool_dirs
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10599 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10603 done
10604 done
10605 IFS=$as_save_IFS
10608 esac
10610 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10611 if test -n "$AR_FOR_TARGET"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10613 $as_echo "$AR_FOR_TARGET" >&6; }
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10621 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10624 if test -n "$AR_FOR_TARGET"; then
10625 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10626 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10627 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10630 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10631 for ncn_progname in ar; do
10632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10633 set dummy ${ncn_progname}; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 if test -n "$AR_FOR_TARGET"; then
10640 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10641 else
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10649 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10653 done
10654 done
10655 IFS=$as_save_IFS
10659 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10660 if test -n "$AR_FOR_TARGET"; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10662 $as_echo "$AR_FOR_TARGET" >&6; }
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10669 done
10672 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10673 for ncn_progname in ar; do
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10675 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10676 if test -x $with_build_time_tools/${ncn_progname}; then
10677 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; }
10680 break
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10685 done
10688 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10689 for ncn_progname in ar; do
10690 if test -n "$ncn_target_tool_prefix"; then
10691 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10692 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 if test -n "$AR_FOR_TARGET"; then
10699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10712 done
10713 done
10714 IFS=$as_save_IFS
10718 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10719 if test -n "$AR_FOR_TARGET"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10721 $as_echo "$AR_FOR_TARGET" >&6; }
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10729 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10731 set dummy ${ncn_progname}; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 if test -n "$AR_FOR_TARGET"; then
10738 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10751 done
10752 done
10753 IFS=$as_save_IFS
10757 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10758 if test -n "$AR_FOR_TARGET"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10760 $as_echo "$AR_FOR_TARGET" >&6; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10768 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10769 done
10772 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10773 set dummy ar
10774 if test $build = $target ; then
10775 AR_FOR_TARGET="$2"
10776 else
10777 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10779 else
10780 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10783 else
10784 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10790 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10791 if test -n "$with_build_time_tools"; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10793 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10794 if test -x $with_build_time_tools/as; then
10795 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10796 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10798 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10803 elif test $build != $host && test $have_gcc_for_target = yes; then
10804 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10805 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10806 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10809 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10810 # Extract the first word of "as", so it can be a program name with args.
10811 set dummy as; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 case $AS_FOR_TARGET in
10818 [\\/]* | ?:[\\/]*)
10819 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $gcc_cv_tool_dirs
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10833 done
10834 done
10835 IFS=$as_save_IFS
10838 esac
10840 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10841 if test -n "$AS_FOR_TARGET"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10843 $as_echo "$AS_FOR_TARGET" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10851 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10854 if test -n "$AS_FOR_TARGET"; then
10855 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10856 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10857 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10860 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10861 for ncn_progname in as; do
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 if test -n "$AS_FOR_TARGET"; then
10870 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10883 done
10884 done
10885 IFS=$as_save_IFS
10889 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10890 if test -n "$AS_FOR_TARGET"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10892 $as_echo "$AS_FOR_TARGET" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10899 done
10902 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10903 for ncn_progname in as; do
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10905 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10906 if test -x $with_build_time_tools/${ncn_progname}; then
10907 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 break
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10915 done
10918 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10919 for ncn_progname in as; do
10920 if test -n "$ncn_target_tool_prefix"; then
10921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10922 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 if test -n "$AS_FOR_TARGET"; then
10929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10944 IFS=$as_save_IFS
10948 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10949 if test -n "$AS_FOR_TARGET"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10951 $as_echo "$AS_FOR_TARGET" >&6; }
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10959 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961 set dummy ${ncn_progname}; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 if test -n "$AS_FOR_TARGET"; then
10968 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10969 else
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10981 done
10982 done
10983 IFS=$as_save_IFS
10987 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10988 if test -n "$AS_FOR_TARGET"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10990 $as_echo "$AS_FOR_TARGET" >&6; }
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10998 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10999 done
11002 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11003 set dummy as
11004 if test $build = $target ; then
11005 AS_FOR_TARGET="$2"
11006 else
11007 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11009 else
11010 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11013 else
11014 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11020 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11021 if test -n "$with_build_time_tools"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11023 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11024 if test -x $with_build_time_tools/dlltool; then
11025 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11026 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11028 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11033 elif test $build != $host && test $have_gcc_for_target = yes; then
11034 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11035 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11036 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11039 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11040 # Extract the first word of "dlltool", so it can be a program name with args.
11041 set dummy dlltool; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $DLLTOOL_FOR_TARGET in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $gcc_cv_tool_dirs
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11063 done
11064 done
11065 IFS=$as_save_IFS
11068 esac
11070 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11071 if test -n "$DLLTOOL_FOR_TARGET"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11073 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11081 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11084 if test -n "$DLLTOOL_FOR_TARGET"; then
11085 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11086 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11087 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11090 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11091 for ncn_progname in dlltool; do
11092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11093 set dummy ${ncn_progname}; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$DLLTOOL_FOR_TARGET"; then
11100 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11113 done
11114 done
11115 IFS=$as_save_IFS
11119 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11120 if test -n "$DLLTOOL_FOR_TARGET"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11122 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11129 done
11132 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11133 for ncn_progname in dlltool; do
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11135 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11136 if test -x $with_build_time_tools/${ncn_progname}; then
11137 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139 $as_echo "yes" >&6; }
11140 break
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11145 done
11148 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11149 for ncn_progname in dlltool; do
11150 if test -n "$ncn_target_tool_prefix"; then
11151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11152 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 if test -n "$DLLTOOL_FOR_TARGET"; then
11159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11172 done
11173 done
11174 IFS=$as_save_IFS
11178 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11179 if test -n "$DLLTOOL_FOR_TARGET"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11181 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11189 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test -n "$DLLTOOL_FOR_TARGET"; then
11198 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11211 done
11212 done
11213 IFS=$as_save_IFS
11217 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11218 if test -n "$DLLTOOL_FOR_TARGET"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11220 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11228 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11229 done
11232 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11233 set dummy dlltool
11234 if test $build = $target ; then
11235 DLLTOOL_FOR_TARGET="$2"
11236 else
11237 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11239 else
11240 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11243 else
11244 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11250 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11251 if test -n "$with_build_time_tools"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11253 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11254 if test -x $with_build_time_tools/ld; then
11255 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11256 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11258 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11263 elif test $build != $host && test $have_gcc_for_target = yes; then
11264 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11265 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11266 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11269 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11270 # Extract the first word of "ld", so it can be a program name with args.
11271 set dummy ld; ac_word=$2
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 case $LD_FOR_TARGET in
11278 [\\/]* | ?:[\\/]*)
11279 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $gcc_cv_tool_dirs
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11293 done
11294 done
11295 IFS=$as_save_IFS
11298 esac
11300 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11301 if test -n "$LD_FOR_TARGET"; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11303 $as_echo "$LD_FOR_TARGET" >&6; }
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11311 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11314 if test -n "$LD_FOR_TARGET"; then
11315 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11316 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11317 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11320 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11321 for ncn_progname in ld; do
11322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11323 set dummy ${ncn_progname}; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$LD_FOR_TARGET"; then
11330 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11331 else
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11349 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11350 if test -n "$LD_FOR_TARGET"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11352 $as_echo "$LD_FOR_TARGET" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 done
11362 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11363 for ncn_progname in ld; do
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11365 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11366 if test -x $with_build_time_tools/${ncn_progname}; then
11367 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369 $as_echo "yes" >&6; }
11370 break
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11375 done
11378 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11379 for ncn_progname in ld; do
11380 if test -n "$ncn_target_tool_prefix"; then
11381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11382 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -n "$LD_FOR_TARGET"; then
11389 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11402 done
11403 done
11404 IFS=$as_save_IFS
11408 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11409 if test -n "$LD_FOR_TARGET"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11411 $as_echo "$LD_FOR_TARGET" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11419 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421 set dummy ${ncn_progname}; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 if test -n "$LD_FOR_TARGET"; then
11428 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11429 else
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11437 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11447 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11448 if test -n "$LD_FOR_TARGET"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11450 $as_echo "$LD_FOR_TARGET" >&6; }
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11458 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11459 done
11462 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11463 set dummy ld
11464 if test $build = $target ; then
11465 LD_FOR_TARGET="$2"
11466 else
11467 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11469 else
11470 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11473 else
11474 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11480 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11481 if test -n "$with_build_time_tools"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11483 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11484 if test -x $with_build_time_tools/lipo; then
11485 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11486 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11488 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11489 else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11493 elif test $build != $host && test $have_gcc_for_target = yes; then
11494 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11495 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11496 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11499 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11500 # Extract the first word of "lipo", so it can be a program name with args.
11501 set dummy lipo; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case $LIPO_FOR_TARGET in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $gcc_cv_tool_dirs
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11523 done
11524 done
11525 IFS=$as_save_IFS
11528 esac
11530 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11531 if test -n "$LIPO_FOR_TARGET"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11533 $as_echo "$LIPO_FOR_TARGET" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11541 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11544 if test -n "$LIPO_FOR_TARGET"; then
11545 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11546 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11547 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11550 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11551 for ncn_progname in lipo; do
11552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11553 set dummy ${ncn_progname}; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 if test -n "$LIPO_FOR_TARGET"; then
11560 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11573 done
11574 done
11575 IFS=$as_save_IFS
11579 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11580 if test -n "$LIPO_FOR_TARGET"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11582 $as_echo "$LIPO_FOR_TARGET" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11589 done
11592 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11593 for ncn_progname in lipo; do
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11595 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11596 if test -x $with_build_time_tools/${ncn_progname}; then
11597 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11600 break
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11605 done
11608 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11609 for ncn_progname in lipo; do
11610 if test -n "$ncn_target_tool_prefix"; then
11611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 if test -n "$LIPO_FOR_TARGET"; then
11619 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11632 done
11633 done
11634 IFS=$as_save_IFS
11638 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11639 if test -n "$LIPO_FOR_TARGET"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11641 $as_echo "$LIPO_FOR_TARGET" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11649 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651 set dummy ${ncn_progname}; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 if test -n "$LIPO_FOR_TARGET"; then
11658 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11673 IFS=$as_save_IFS
11677 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11678 if test -n "$LIPO_FOR_TARGET"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11680 $as_echo "$LIPO_FOR_TARGET" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11688 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11689 done
11692 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11693 set dummy lipo
11694 if test $build = $target ; then
11695 LIPO_FOR_TARGET="$2"
11696 else
11697 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11699 else
11700 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11703 else
11704 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11710 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11711 if test -n "$with_build_time_tools"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11713 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11714 if test -x $with_build_time_tools/nm; then
11715 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11716 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11718 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11723 elif test $build != $host && test $have_gcc_for_target = yes; then
11724 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11725 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11726 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11729 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11730 # Extract the first word of "nm", so it can be a program name with args.
11731 set dummy nm; ac_word=$2
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 case $NM_FOR_TARGET in
11738 [\\/]* | ?:[\\/]*)
11739 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $gcc_cv_tool_dirs
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11749 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11753 done
11754 done
11755 IFS=$as_save_IFS
11758 esac
11760 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11761 if test -n "$NM_FOR_TARGET"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11763 $as_echo "$NM_FOR_TARGET" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11771 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11774 if test -n "$NM_FOR_TARGET"; then
11775 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11776 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11777 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11780 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11781 for ncn_progname in nm; do
11782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11783 set dummy ${ncn_progname}; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test -n "$NM_FOR_TARGET"; then
11790 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11803 done
11804 done
11805 IFS=$as_save_IFS
11809 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11810 if test -n "$NM_FOR_TARGET"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11812 $as_echo "$NM_FOR_TARGET" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11819 done
11822 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11823 for ncn_progname in nm; do
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11825 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11826 if test -x $with_build_time_tools/${ncn_progname}; then
11827 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829 $as_echo "yes" >&6; }
11830 break
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11835 done
11838 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11839 for ncn_progname in nm; do
11840 if test -n "$ncn_target_tool_prefix"; then
11841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11842 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 if test -n "$NM_FOR_TARGET"; then
11849 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11850 else
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11862 done
11863 done
11864 IFS=$as_save_IFS
11868 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11869 if test -n "$NM_FOR_TARGET"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11871 $as_echo "$NM_FOR_TARGET" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11879 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test -n "$NM_FOR_TARGET"; then
11888 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11889 else
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11901 done
11902 done
11903 IFS=$as_save_IFS
11907 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11908 if test -n "$NM_FOR_TARGET"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11910 $as_echo "$NM_FOR_TARGET" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11918 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11919 done
11922 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11923 set dummy nm
11924 if test $build = $target ; then
11925 NM_FOR_TARGET="$2"
11926 else
11927 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11929 else
11930 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11933 else
11934 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11940 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11941 if test -n "$with_build_time_tools"; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11943 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11944 if test -x $with_build_time_tools/objdump; then
11945 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11946 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11948 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11953 elif test $build != $host && test $have_gcc_for_target = yes; then
11954 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11955 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11956 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11959 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11960 # Extract the first word of "objdump", so it can be a program name with args.
11961 set dummy objdump; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 case $OBJDUMP_FOR_TARGET in
11968 [\\/]* | ?:[\\/]*)
11969 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $gcc_cv_tool_dirs
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11983 done
11984 done
11985 IFS=$as_save_IFS
11988 esac
11990 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11991 if test -n "$OBJDUMP_FOR_TARGET"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11993 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12001 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12004 if test -n "$OBJDUMP_FOR_TARGET"; then
12005 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12006 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12007 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12010 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12011 for ncn_progname in objdump; do
12012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12013 set dummy ${ncn_progname}; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 if test -n "$OBJDUMP_FOR_TARGET"; then
12020 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12021 else
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12033 done
12034 done
12035 IFS=$as_save_IFS
12039 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12040 if test -n "$OBJDUMP_FOR_TARGET"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12042 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12049 done
12052 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12053 for ncn_progname in objdump; do
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12055 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12056 if test -x $with_build_time_tools/${ncn_progname}; then
12057 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12059 $as_echo "yes" >&6; }
12060 break
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12065 done
12068 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12069 for ncn_progname in objdump; do
12070 if test -n "$ncn_target_tool_prefix"; then
12071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12072 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test -n "$OBJDUMP_FOR_TARGET"; then
12079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12094 IFS=$as_save_IFS
12098 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12099 if test -n "$OBJDUMP_FOR_TARGET"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12101 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12109 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 if test -n "$OBJDUMP_FOR_TARGET"; then
12118 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12119 else
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12127 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12131 done
12132 done
12133 IFS=$as_save_IFS
12137 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12138 if test -n "$OBJDUMP_FOR_TARGET"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12140 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12148 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12149 done
12152 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12153 set dummy objdump
12154 if test $build = $target ; then
12155 OBJDUMP_FOR_TARGET="$2"
12156 else
12157 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12159 else
12160 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12163 else
12164 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12170 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12171 if test -n "$with_build_time_tools"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12173 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12174 if test -x $with_build_time_tools/ranlib; then
12175 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12176 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12178 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12183 elif test $build != $host && test $have_gcc_for_target = yes; then
12184 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12185 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12186 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12189 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12190 # Extract the first word of "ranlib", so it can be a program name with args.
12191 set dummy ranlib; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 case $RANLIB_FOR_TARGET in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $gcc_cv_tool_dirs
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12218 esac
12220 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12221 if test -n "$RANLIB_FOR_TARGET"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12223 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12231 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12234 if test -n "$RANLIB_FOR_TARGET"; then
12235 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12236 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12237 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12240 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12241 for ncn_progname in ranlib; do
12242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12243 set dummy ${ncn_progname}; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 if test -n "$RANLIB_FOR_TARGET"; then
12250 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12251 else
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12263 done
12264 done
12265 IFS=$as_save_IFS
12269 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12270 if test -n "$RANLIB_FOR_TARGET"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12272 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12279 done
12282 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12283 for ncn_progname in ranlib; do
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12285 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12286 if test -x $with_build_time_tools/${ncn_progname}; then
12287 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289 $as_echo "yes" >&6; }
12290 break
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12295 done
12298 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12299 for ncn_progname in ranlib; do
12300 if test -n "$ncn_target_tool_prefix"; then
12301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12302 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 if test -n "$RANLIB_FOR_TARGET"; then
12309 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12322 done
12323 done
12324 IFS=$as_save_IFS
12328 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12329 if test -n "$RANLIB_FOR_TARGET"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12331 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12339 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$RANLIB_FOR_TARGET"; then
12348 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12361 done
12362 done
12363 IFS=$as_save_IFS
12367 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12368 if test -n "$RANLIB_FOR_TARGET"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12370 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12378 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12379 done
12382 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12383 set dummy ranlib
12384 if test $build = $target ; then
12385 RANLIB_FOR_TARGET="$2"
12386 else
12387 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12389 else
12390 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12393 else
12394 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12400 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12401 if test -n "$with_build_time_tools"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12403 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12404 if test -x $with_build_time_tools/strip; then
12405 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12406 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12408 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12413 elif test $build != $host && test $have_gcc_for_target = yes; then
12414 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12415 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12416 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12419 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12420 # Extract the first word of "strip", so it can be a program name with args.
12421 set dummy strip; ac_word=$2
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423 $as_echo_n "checking for $ac_word... " >&6; }
12424 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 case $STRIP_FOR_TARGET in
12428 [\\/]* | ?:[\\/]*)
12429 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $gcc_cv_tool_dirs
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12439 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441 break 2
12443 done
12444 done
12445 IFS=$as_save_IFS
12448 esac
12450 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12451 if test -n "$STRIP_FOR_TARGET"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12453 $as_echo "$STRIP_FOR_TARGET" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12461 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12464 if test -n "$STRIP_FOR_TARGET"; then
12465 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12466 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12467 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12470 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12471 for ncn_progname in strip; do
12472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12473 set dummy ${ncn_progname}; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 if test -n "$STRIP_FOR_TARGET"; then
12480 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12499 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12500 if test -n "$STRIP_FOR_TARGET"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12502 $as_echo "$STRIP_FOR_TARGET" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12509 done
12512 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12513 for ncn_progname in strip; do
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12515 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12516 if test -x $with_build_time_tools/${ncn_progname}; then
12517 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12519 $as_echo "yes" >&6; }
12520 break
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12525 done
12528 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12529 for ncn_progname in strip; do
12530 if test -n "$ncn_target_tool_prefix"; then
12531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test -n "$STRIP_FOR_TARGET"; then
12539 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12552 done
12553 done
12554 IFS=$as_save_IFS
12558 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12559 if test -n "$STRIP_FOR_TARGET"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12561 $as_echo "$STRIP_FOR_TARGET" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12569 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12571 set dummy ${ncn_progname}; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 if test -n "$STRIP_FOR_TARGET"; then
12578 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12579 else
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12587 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589 break 2
12591 done
12592 done
12593 IFS=$as_save_IFS
12597 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12598 if test -n "$STRIP_FOR_TARGET"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12600 $as_echo "$STRIP_FOR_TARGET" >&6; }
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12608 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12609 done
12612 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12613 set dummy strip
12614 if test $build = $target ; then
12615 STRIP_FOR_TARGET="$2"
12616 else
12617 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12619 else
12620 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12623 else
12624 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12630 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12631 if test -n "$with_build_time_tools"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12633 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12634 if test -x $with_build_time_tools/windres; then
12635 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12636 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12638 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641 $as_echo "no" >&6; }
12643 elif test $build != $host && test $have_gcc_for_target = yes; then
12644 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12645 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12646 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12649 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12650 # Extract the first word of "windres", so it can be a program name with args.
12651 set dummy windres; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 case $WINDRES_FOR_TARGET in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $gcc_cv_tool_dirs
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12678 esac
12680 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12681 if test -n "$WINDRES_FOR_TARGET"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12683 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12691 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12694 if test -n "$WINDRES_FOR_TARGET"; then
12695 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12696 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12697 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12700 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12701 for ncn_progname in windres; do
12702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12703 set dummy ${ncn_progname}; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 if test -n "$WINDRES_FOR_TARGET"; then
12710 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12711 else
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 break 2
12723 done
12724 done
12725 IFS=$as_save_IFS
12729 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12730 if test -n "$WINDRES_FOR_TARGET"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12732 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12739 done
12742 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12743 for ncn_progname in windres; do
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12745 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12746 if test -x $with_build_time_tools/${ncn_progname}; then
12747 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749 $as_echo "yes" >&6; }
12750 break
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12755 done
12758 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12759 for ncn_progname in windres; do
12760 if test -n "$ncn_target_tool_prefix"; then
12761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12762 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -n "$WINDRES_FOR_TARGET"; then
12769 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12788 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12789 if test -n "$WINDRES_FOR_TARGET"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12791 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12799 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12801 set dummy ${ncn_progname}; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 $as_echo_n "checking for $ac_word... " >&6; }
12804 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 if test -n "$WINDRES_FOR_TARGET"; then
12808 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12809 else
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12817 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 break 2
12821 done
12822 done
12823 IFS=$as_save_IFS
12827 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12828 if test -n "$WINDRES_FOR_TARGET"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12830 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12831 else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12838 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12839 done
12842 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12843 set dummy windres
12844 if test $build = $target ; then
12845 WINDRES_FOR_TARGET="$2"
12846 else
12847 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12849 else
12850 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12853 else
12854 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12860 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12861 if test -n "$with_build_time_tools"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12863 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12864 if test -x $with_build_time_tools/windmc; then
12865 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12866 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12868 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12869 else
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12873 elif test $build != $host && test $have_gcc_for_target = yes; then
12874 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12875 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12876 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12879 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12880 # Extract the first word of "windmc", so it can be a program name with args.
12881 set dummy windmc; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 case $WINDMC_FOR_TARGET in
12888 [\\/]* | ?:[\\/]*)
12889 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $gcc_cv_tool_dirs
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12899 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12903 done
12904 done
12905 IFS=$as_save_IFS
12908 esac
12910 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12911 if test -n "$WINDMC_FOR_TARGET"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12913 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12921 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12924 if test -n "$WINDMC_FOR_TARGET"; then
12925 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12926 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12927 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12930 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12931 for ncn_progname in windmc; do
12932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12933 set dummy ${ncn_progname}; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 if test -n "$WINDMC_FOR_TARGET"; then
12940 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12953 done
12954 done
12955 IFS=$as_save_IFS
12959 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12960 if test -n "$WINDMC_FOR_TARGET"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12962 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12969 done
12972 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12973 for ncn_progname in windmc; do
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12975 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12976 if test -x $with_build_time_tools/${ncn_progname}; then
12977 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12979 $as_echo "yes" >&6; }
12980 break
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12985 done
12988 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12989 for ncn_progname in windmc; do
12990 if test -n "$ncn_target_tool_prefix"; then
12991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12992 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994 $as_echo_n "checking for $ac_word... " >&6; }
12995 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 if test -n "$WINDMC_FOR_TARGET"; then
12999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13000 else
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13012 done
13013 done
13014 IFS=$as_save_IFS
13018 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13019 if test -n "$WINDMC_FOR_TARGET"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13021 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13029 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13031 set dummy ${ncn_progname}; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 if test -n "$WINDMC_FOR_TARGET"; then
13038 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13039 else
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
13046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049 break 2
13051 done
13052 done
13053 IFS=$as_save_IFS
13057 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13058 if test -n "$WINDMC_FOR_TARGET"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13060 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13061 else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13068 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13069 done
13072 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13073 set dummy windmc
13074 if test $build = $target ; then
13075 WINDMC_FOR_TARGET="$2"
13076 else
13077 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13079 else
13080 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13083 else
13084 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13088 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13091 $as_echo_n "checking where to find the target ar... " >&6; }
13092 if test "x${build}" != "x${host}" ; then
13093 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13094 # We already found the complete path
13095 ac_dir=`dirname $AR_FOR_TARGET`
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13097 $as_echo "pre-installed in $ac_dir" >&6; }
13098 else
13099 # Canadian cross, just use what we found
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13101 $as_echo "pre-installed" >&6; }
13103 else
13104 ok=yes
13105 case " ${configdirs} " in
13106 *" binutils "*) ;;
13107 *) ok=no ;;
13108 esac
13110 if test $ok = yes; then
13111 # An in-tree tool is available and we can use it
13112 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13114 $as_echo "just compiled" >&6; }
13115 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13116 # We already found the complete path
13117 ac_dir=`dirname $AR_FOR_TARGET`
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13119 $as_echo "pre-installed in $ac_dir" >&6; }
13120 elif test "x$target" = "x$host"; then
13121 # We can use an host tool
13122 AR_FOR_TARGET='$(AR)'
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13124 $as_echo "host tool" >&6; }
13125 else
13126 # We need a cross tool
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13128 $as_echo "pre-installed" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13133 $as_echo_n "checking where to find the target as... " >&6; }
13134 if test "x${build}" != "x${host}" ; then
13135 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13136 # We already found the complete path
13137 ac_dir=`dirname $AS_FOR_TARGET`
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13139 $as_echo "pre-installed in $ac_dir" >&6; }
13140 else
13141 # Canadian cross, just use what we found
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13143 $as_echo "pre-installed" >&6; }
13145 else
13146 ok=yes
13147 case " ${configdirs} " in
13148 *" gas "*) ;;
13149 *) ok=no ;;
13150 esac
13152 if test $ok = yes; then
13153 # An in-tree tool is available and we can use it
13154 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13156 $as_echo "just compiled" >&6; }
13157 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13158 # We already found the complete path
13159 ac_dir=`dirname $AS_FOR_TARGET`
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13161 $as_echo "pre-installed in $ac_dir" >&6; }
13162 elif test "x$target" = "x$host"; then
13163 # We can use an host tool
13164 AS_FOR_TARGET='$(AS)'
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13166 $as_echo "host tool" >&6; }
13167 else
13168 # We need a cross tool
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13170 $as_echo "pre-installed" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13175 $as_echo_n "checking where to find the target cc... " >&6; }
13176 if test "x${build}" != "x${host}" ; then
13177 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13178 # We already found the complete path
13179 ac_dir=`dirname $CC_FOR_TARGET`
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13181 $as_echo "pre-installed in $ac_dir" >&6; }
13182 else
13183 # Canadian cross, just use what we found
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13185 $as_echo "pre-installed" >&6; }
13187 else
13188 ok=yes
13189 case " ${configdirs} " in
13190 *" gcc "*) ;;
13191 *) ok=no ;;
13192 esac
13194 if test $ok = yes; then
13195 # An in-tree tool is available and we can use it
13196 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13198 $as_echo "just compiled" >&6; }
13199 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13200 # We already found the complete path
13201 ac_dir=`dirname $CC_FOR_TARGET`
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13203 $as_echo "pre-installed in $ac_dir" >&6; }
13204 elif test "x$target" = "x$host"; then
13205 # We can use an host tool
13206 CC_FOR_TARGET='$(CC)'
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13208 $as_echo "host tool" >&6; }
13209 else
13210 # We need a cross tool
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13212 $as_echo "pre-installed" >&6; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13217 $as_echo_n "checking where to find the target c++... " >&6; }
13218 if test "x${build}" != "x${host}" ; then
13219 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13220 # We already found the complete path
13221 ac_dir=`dirname $CXX_FOR_TARGET`
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13223 $as_echo "pre-installed in $ac_dir" >&6; }
13224 else
13225 # Canadian cross, just use what we found
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13227 $as_echo "pre-installed" >&6; }
13229 else
13230 ok=yes
13231 case " ${configdirs} " in
13232 *" gcc "*) ;;
13233 *) ok=no ;;
13234 esac
13235 case ,${enable_languages}, in
13236 *,c++,*) ;;
13237 *) ok=no ;;
13238 esac
13239 if test $ok = yes; then
13240 # An in-tree tool is available and we can use it
13241 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13243 $as_echo "just compiled" >&6; }
13244 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13245 # We already found the complete path
13246 ac_dir=`dirname $CXX_FOR_TARGET`
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13248 $as_echo "pre-installed in $ac_dir" >&6; }
13249 elif test "x$target" = "x$host"; then
13250 # We can use an host tool
13251 CXX_FOR_TARGET='$(CXX)'
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13253 $as_echo "host tool" >&6; }
13254 else
13255 # We need a cross tool
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13257 $as_echo "pre-installed" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13262 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13263 if test "x${build}" != "x${host}" ; then
13264 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13265 # We already found the complete path
13266 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13268 $as_echo "pre-installed in $ac_dir" >&6; }
13269 else
13270 # Canadian cross, just use what we found
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13272 $as_echo "pre-installed" >&6; }
13274 else
13275 ok=yes
13276 case " ${configdirs} " in
13277 *" gcc "*) ;;
13278 *) ok=no ;;
13279 esac
13280 case ,${enable_languages}, in
13281 *,c++,*) ;;
13282 *) ok=no ;;
13283 esac
13284 if test $ok = yes; then
13285 # An in-tree tool is available and we can use it
13286 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'
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13288 $as_echo "just compiled" >&6; }
13289 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13290 # We already found the complete path
13291 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13293 $as_echo "pre-installed in $ac_dir" >&6; }
13294 elif test "x$target" = "x$host"; then
13295 # We can use an host tool
13296 RAW_CXX_FOR_TARGET='$(CXX)'
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13298 $as_echo "host tool" >&6; }
13299 else
13300 # We need a cross tool
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13302 $as_echo "pre-installed" >&6; }
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13307 $as_echo_n "checking where to find the target dlltool... " >&6; }
13308 if test "x${build}" != "x${host}" ; then
13309 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13310 # We already found the complete path
13311 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13313 $as_echo "pre-installed in $ac_dir" >&6; }
13314 else
13315 # Canadian cross, just use what we found
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13317 $as_echo "pre-installed" >&6; }
13319 else
13320 ok=yes
13321 case " ${configdirs} " in
13322 *" binutils "*) ;;
13323 *) ok=no ;;
13324 esac
13326 if test $ok = yes; then
13327 # An in-tree tool is available and we can use it
13328 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13330 $as_echo "just compiled" >&6; }
13331 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13332 # We already found the complete path
13333 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13335 $as_echo "pre-installed in $ac_dir" >&6; }
13336 elif test "x$target" = "x$host"; then
13337 # We can use an host tool
13338 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13340 $as_echo "host tool" >&6; }
13341 else
13342 # We need a cross tool
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344 $as_echo "pre-installed" >&6; }
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13349 $as_echo_n "checking where to find the target gcc... " >&6; }
13350 if test "x${build}" != "x${host}" ; then
13351 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13352 # We already found the complete path
13353 ac_dir=`dirname $GCC_FOR_TARGET`
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13355 $as_echo "pre-installed in $ac_dir" >&6; }
13356 else
13357 # Canadian cross, just use what we found
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13359 $as_echo "pre-installed" >&6; }
13361 else
13362 ok=yes
13363 case " ${configdirs} " in
13364 *" gcc "*) ;;
13365 *) ok=no ;;
13366 esac
13368 if test $ok = yes; then
13369 # An in-tree tool is available and we can use it
13370 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13372 $as_echo "just compiled" >&6; }
13373 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13374 # We already found the complete path
13375 ac_dir=`dirname $GCC_FOR_TARGET`
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13377 $as_echo "pre-installed in $ac_dir" >&6; }
13378 elif test "x$target" = "x$host"; then
13379 # We can use an host tool
13380 GCC_FOR_TARGET='$()'
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13382 $as_echo "host tool" >&6; }
13383 else
13384 # We need a cross tool
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13391 $as_echo_n "checking where to find the target gcj... " >&6; }
13392 if test "x${build}" != "x${host}" ; then
13393 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13394 # We already found the complete path
13395 ac_dir=`dirname $GCJ_FOR_TARGET`
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13397 $as_echo "pre-installed in $ac_dir" >&6; }
13398 else
13399 # Canadian cross, just use what we found
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13401 $as_echo "pre-installed" >&6; }
13403 else
13404 ok=yes
13405 case " ${configdirs} " in
13406 *" gcc "*) ;;
13407 *) ok=no ;;
13408 esac
13409 case ,${enable_languages}, in
13410 *,java,*) ;;
13411 *) ok=no ;;
13412 esac
13413 if test $ok = yes; then
13414 # An in-tree tool is available and we can use it
13415 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13417 $as_echo "just compiled" >&6; }
13418 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13419 # We already found the complete path
13420 ac_dir=`dirname $GCJ_FOR_TARGET`
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422 $as_echo "pre-installed in $ac_dir" >&6; }
13423 elif test "x$target" = "x$host"; then
13424 # We can use an host tool
13425 GCJ_FOR_TARGET='$(GCJ)'
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427 $as_echo "host tool" >&6; }
13428 else
13429 # We need a cross tool
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431 $as_echo "pre-installed" >&6; }
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13436 $as_echo_n "checking where to find the target gfortran... " >&6; }
13437 if test "x${build}" != "x${host}" ; then
13438 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13439 # We already found the complete path
13440 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442 $as_echo "pre-installed in $ac_dir" >&6; }
13443 else
13444 # Canadian cross, just use what we found
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446 $as_echo "pre-installed" >&6; }
13448 else
13449 ok=yes
13450 case " ${configdirs} " in
13451 *" gcc "*) ;;
13452 *) ok=no ;;
13453 esac
13454 case ,${enable_languages}, in
13455 *,fortran,*) ;;
13456 *) ok=no ;;
13457 esac
13458 if test $ok = yes; then
13459 # An in-tree tool is available and we can use it
13460 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13462 $as_echo "just compiled" >&6; }
13463 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
13465 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467 $as_echo "pre-installed in $ac_dir" >&6; }
13468 elif test "x$target" = "x$host"; then
13469 # We can use an host tool
13470 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13472 $as_echo "host tool" >&6; }
13473 else
13474 # We need a cross tool
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13476 $as_echo "pre-installed" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13481 $as_echo_n "checking where to find the target gccgo... " >&6; }
13482 if test "x${build}" != "x${host}" ; then
13483 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13484 # We already found the complete path
13485 ac_dir=`dirname $GOC_FOR_TARGET`
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13487 $as_echo "pre-installed in $ac_dir" >&6; }
13488 else
13489 # Canadian cross, just use what we found
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491 $as_echo "pre-installed" >&6; }
13493 else
13494 ok=yes
13495 case " ${configdirs} " in
13496 *" gcc "*) ;;
13497 *) ok=no ;;
13498 esac
13499 case ,${enable_languages}, in
13500 *,go,*) ;;
13501 *) ok=no ;;
13502 esac
13503 if test $ok = yes; then
13504 # An in-tree tool is available and we can use it
13505 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13507 $as_echo "just compiled" >&6; }
13508 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
13510 ac_dir=`dirname $GOC_FOR_TARGET`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512 $as_echo "pre-installed in $ac_dir" >&6; }
13513 elif test "x$target" = "x$host"; then
13514 # We can use an host tool
13515 GOC_FOR_TARGET='$(GOC)'
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13517 $as_echo "host tool" >&6; }
13518 else
13519 # We need a cross tool
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13521 $as_echo "pre-installed" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13526 $as_echo_n "checking where to find the target ld... " >&6; }
13527 if test "x${build}" != "x${host}" ; then
13528 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13529 # We already found the complete path
13530 ac_dir=`dirname $LD_FOR_TARGET`
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13532 $as_echo "pre-installed in $ac_dir" >&6; }
13533 else
13534 # Canadian cross, just use what we found
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13536 $as_echo "pre-installed" >&6; }
13538 else
13539 ok=yes
13540 case " ${configdirs} " in
13541 *" ld "*) ;;
13542 *) ok=no ;;
13543 esac
13545 if test $ok = yes; then
13546 # An in-tree tool is available and we can use it
13547 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13549 $as_echo "just compiled" >&6; }
13550 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13551 # We already found the complete path
13552 ac_dir=`dirname $LD_FOR_TARGET`
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13554 $as_echo "pre-installed in $ac_dir" >&6; }
13555 elif test "x$target" = "x$host"; then
13556 # We can use an host tool
13557 LD_FOR_TARGET='$(LD)'
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13559 $as_echo "host tool" >&6; }
13560 else
13561 # We need a cross tool
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563 $as_echo "pre-installed" >&6; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13568 $as_echo_n "checking where to find the target lipo... " >&6; }
13569 if test "x${build}" != "x${host}" ; then
13570 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13571 # We already found the complete path
13572 ac_dir=`dirname $LIPO_FOR_TARGET`
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13574 $as_echo "pre-installed in $ac_dir" >&6; }
13575 else
13576 # Canadian cross, just use what we found
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578 $as_echo "pre-installed" >&6; }
13580 else
13581 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13582 # We already found the complete path
13583 ac_dir=`dirname $LIPO_FOR_TARGET`
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13585 $as_echo "pre-installed in $ac_dir" >&6; }
13586 elif test "x$target" = "x$host"; then
13587 # We can use an host tool
13588 LIPO_FOR_TARGET='$(LIPO)'
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13590 $as_echo "host tool" >&6; }
13591 else
13592 # We need a cross tool
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13594 $as_echo "pre-installed" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13599 $as_echo_n "checking where to find the target nm... " >&6; }
13600 if test "x${build}" != "x${host}" ; then
13601 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13602 # We already found the complete path
13603 ac_dir=`dirname $NM_FOR_TARGET`
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13605 $as_echo "pre-installed in $ac_dir" >&6; }
13606 else
13607 # Canadian cross, just use what we found
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13609 $as_echo "pre-installed" >&6; }
13611 else
13612 ok=yes
13613 case " ${configdirs} " in
13614 *" binutils "*) ;;
13615 *) ok=no ;;
13616 esac
13618 if test $ok = yes; then
13619 # An in-tree tool is available and we can use it
13620 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13622 $as_echo "just compiled" >&6; }
13623 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
13625 ac_dir=`dirname $NM_FOR_TARGET`
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627 $as_echo "pre-installed in $ac_dir" >&6; }
13628 elif test "x$target" = "x$host"; then
13629 # We can use an host tool
13630 NM_FOR_TARGET='$(NM)'
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13632 $as_echo "host tool" >&6; }
13633 else
13634 # We need a cross tool
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13636 $as_echo "pre-installed" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13641 $as_echo_n "checking where to find the target objdump... " >&6; }
13642 if test "x${build}" != "x${host}" ; then
13643 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13644 # We already found the complete path
13645 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13647 $as_echo "pre-installed in $ac_dir" >&6; }
13648 else
13649 # Canadian cross, just use what we found
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13651 $as_echo "pre-installed" >&6; }
13653 else
13654 ok=yes
13655 case " ${configdirs} " in
13656 *" binutils "*) ;;
13657 *) ok=no ;;
13658 esac
13660 if test $ok = yes; then
13661 # An in-tree tool is available and we can use it
13662 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13664 $as_echo "just compiled" >&6; }
13665 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
13667 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13670 elif test "x$target" = "x$host"; then
13671 # We can use an host tool
13672 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13674 $as_echo "host tool" >&6; }
13675 else
13676 # We need a cross tool
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678 $as_echo "pre-installed" >&6; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13683 $as_echo_n "checking where to find the target ranlib... " >&6; }
13684 if test "x${build}" != "x${host}" ; then
13685 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13686 # We already found the complete path
13687 ac_dir=`dirname $RANLIB_FOR_TARGET`
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13689 $as_echo "pre-installed in $ac_dir" >&6; }
13690 else
13691 # Canadian cross, just use what we found
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693 $as_echo "pre-installed" >&6; }
13695 else
13696 ok=yes
13697 case " ${configdirs} " in
13698 *" binutils "*) ;;
13699 *) ok=no ;;
13700 esac
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706 $as_echo "just compiled" >&6; }
13707 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $RANLIB_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 RANLIB_FOR_TARGET='$(RANLIB)'
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716 $as_echo "host tool" >&6; }
13717 else
13718 # We need a cross tool
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720 $as_echo "pre-installed" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13725 $as_echo_n "checking where to find the target strip... " >&6; }
13726 if test "x${build}" != "x${host}" ; then
13727 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $STRIP_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731 $as_echo "pre-installed in $ac_dir" >&6; }
13732 else
13733 # Canadian cross, just use what we found
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13737 else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" binutils "*) ;;
13741 *) ok=no ;;
13742 esac
13744 if test $ok = yes; then
13745 # An in-tree tool is available and we can use it
13746 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13748 $as_echo "just compiled" >&6; }
13749 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
13751 ac_dir=`dirname $STRIP_FOR_TARGET`
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753 $as_echo "pre-installed in $ac_dir" >&6; }
13754 elif test "x$target" = "x$host"; then
13755 # We can use an host tool
13756 STRIP_FOR_TARGET='$(STRIP)'
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13758 $as_echo "host tool" >&6; }
13759 else
13760 # We need a cross tool
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762 $as_echo "pre-installed" >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13767 $as_echo_n "checking where to find the target windres... " >&6; }
13768 if test "x${build}" != "x${host}" ; then
13769 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
13771 ac_dir=`dirname $WINDRES_FOR_TARGET`
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773 $as_echo "pre-installed in $ac_dir" >&6; }
13774 else
13775 # Canadian cross, just use what we found
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777 $as_echo "pre-installed" >&6; }
13779 else
13780 ok=yes
13781 case " ${configdirs} " in
13782 *" binutils "*) ;;
13783 *) ok=no ;;
13784 esac
13786 if test $ok = yes; then
13787 # An in-tree tool is available and we can use it
13788 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13790 $as_echo "just compiled" >&6; }
13791 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13792 # We already found the complete path
13793 ac_dir=`dirname $WINDRES_FOR_TARGET`
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13795 $as_echo "pre-installed in $ac_dir" >&6; }
13796 elif test "x$target" = "x$host"; then
13797 # We can use an host tool
13798 WINDRES_FOR_TARGET='$(WINDRES)'
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13800 $as_echo "host tool" >&6; }
13801 else
13802 # We need a cross tool
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804 $as_echo "pre-installed" >&6; }
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13809 $as_echo_n "checking where to find the target windmc... " >&6; }
13810 if test "x${build}" != "x${host}" ; then
13811 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
13813 ac_dir=`dirname $WINDMC_FOR_TARGET`
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815 $as_echo "pre-installed in $ac_dir" >&6; }
13816 else
13817 # Canadian cross, just use what we found
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819 $as_echo "pre-installed" >&6; }
13821 else
13822 ok=yes
13823 case " ${configdirs} " in
13824 *" binutils "*) ;;
13825 *) ok=no ;;
13826 esac
13828 if test $ok = yes; then
13829 # An in-tree tool is available and we can use it
13830 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13832 $as_echo "just compiled" >&6; }
13833 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
13835 ac_dir=`dirname $WINDMC_FOR_TARGET`
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837 $as_echo "pre-installed in $ac_dir" >&6; }
13838 elif test "x$target" = "x$host"; then
13839 # We can use an host tool
13840 WINDMC_FOR_TARGET='$(WINDMC)'
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13842 $as_echo "host tool" >&6; }
13843 else
13844 # We need a cross tool
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846 $as_echo "pre-installed" >&6; }
13854 # Certain tools may need extra flags.
13855 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13856 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13857 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13859 # When building target libraries, except in a Canadian cross, we use
13860 # the same toolchain as the compiler we just built.
13861 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13862 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13863 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13864 if test $host = $build; then
13865 case " $configdirs " in
13866 *" gcc "*)
13867 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13868 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13869 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13871 esac
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13879 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13880 # Check whether --enable-maintainer-mode was given.
13881 if test "${enable_maintainer_mode+set}" = set; then :
13882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13883 else
13884 USE_MAINTAINER_MODE=no
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13888 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13891 if test "$USE_MAINTAINER_MODE" = yes; then
13892 MAINTAINER_MODE_TRUE=
13893 MAINTAINER_MODE_FALSE='#'
13894 else
13895 MAINTAINER_MODE_TRUE='#'
13896 MAINTAINER_MODE_FALSE=
13898 MAINT=$MAINTAINER_MODE_TRUE
13900 # ---------------------
13901 # GCC bootstrap support
13902 # ---------------------
13904 # Stage specific cflags for build.
13905 stage1_cflags="-g"
13906 case $build in
13907 vax-*-*)
13908 case ${GCC} in
13909 yes) stage1_cflags="-g -Wa,-J" ;;
13910 *) stage1_cflags="-g -J" ;;
13911 esac ;;
13912 esac
13914 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13915 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13916 saved_CFLAGS="$CFLAGS"
13918 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13919 CFLAGS="$CFLAGS -fkeep-inline-functions"
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13921 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13925 #if (__GNUC__ < 3) \
13926 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13927 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13928 #error http://gcc.gnu.org/PR29382
13929 #endif
13932 main ()
13936 return 0;
13938 _ACEOF
13939 if ac_fn_c_try_compile "$LINENO"; then :
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 CFLAGS="$saved_CFLAGS"
13953 # Enable --enable-checking in stage1 of the compiler.
13954 # Check whether --enable-stage1-checking was given.
13955 if test "${enable_stage1_checking+set}" = set; then :
13956 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13957 else
13958 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13959 stage1_checking=--enable-checking=yes,types
13960 else
13961 stage1_checking=--enable-checking=$enable_checking,types
13967 # Enable -Werror in bootstrap stage2 and later.
13968 # Check whether --enable-werror was given.
13969 if test "${enable_werror+set}" = set; then :
13970 enableval=$enable_werror;
13971 else
13972 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13973 enable_werror=yes
13974 else
13975 enable_werror=no
13979 case ${enable_werror} in
13980 yes) stage2_werror_flag="--enable-werror-always" ;;
13981 *) stage2_werror_flag="" ;;
13982 esac
13985 # Specify what files to not compare during bootstrap.
13987 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13988 case "$target" in
13989 hppa*64*-*-hpux*) ;;
13990 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13991 esac
13992 case " $configdirs " in
13993 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13994 esac
13997 ac_config_files="$ac_config_files Makefile"
13999 cat >confcache <<\_ACEOF
14000 # This file is a shell script that caches the results of configure
14001 # tests run on this system so they can be shared between configure
14002 # scripts and configure runs, see configure's option --config-cache.
14003 # It is not useful on other systems. If it contains results you don't
14004 # want to keep, you may remove or edit it.
14006 # config.status only pays attention to the cache file if you give it
14007 # the --recheck option to rerun configure.
14009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14011 # following values.
14013 _ACEOF
14015 # The following way of writing the cache mishandles newlines in values,
14016 # but we know of no workaround that is simple, portable, and efficient.
14017 # So, we kill variables containing newlines.
14018 # Ultrix sh set writes to stderr and can't be redirected directly,
14019 # and sets the high bit in the cache file unless we assign to the vars.
14021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14022 eval ac_val=\$$ac_var
14023 case $ac_val in #(
14024 *${as_nl}*)
14025 case $ac_var in #(
14026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14028 esac
14029 case $ac_var in #(
14030 _ | IFS | as_nl) ;; #(
14031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14032 *) { eval $ac_var=; unset $ac_var;} ;;
14033 esac ;;
14034 esac
14035 done
14037 (set) 2>&1 |
14038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14039 *${as_nl}ac_space=\ *)
14040 # `set' does not quote correctly, so add quotes: double-quote
14041 # substitution turns \\\\ into \\, and sed turns \\ into \.
14042 sed -n \
14043 "s/'/'\\\\''/g;
14044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14045 ;; #(
14047 # `set' quotes correctly as required by POSIX, so do not add quotes.
14048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14050 esac |
14051 sort
14053 sed '
14054 /^ac_cv_env_/b end
14055 t clear
14056 :clear
14057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14058 t end
14059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14060 :end' >>confcache
14061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14062 if test -w "$cache_file"; then
14063 test "x$cache_file" != "x/dev/null" &&
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14065 $as_echo "$as_me: updating cache $cache_file" >&6;}
14066 cat confcache >$cache_file
14067 else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14069 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14072 rm -f confcache
14074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14075 # Let make expand exec_prefix.
14076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14078 # Transform confdefs.h into DEFS.
14079 # Protect against shell expansion while executing Makefile rules.
14080 # Protect against Makefile macro expansion.
14082 # If the first sed substitution is executed (which looks for macros that
14083 # take arguments), then branch to the quote section. Otherwise,
14084 # look for a macro that doesn't take arguments.
14085 ac_script='
14086 :mline
14087 /\\$/{
14089 s,\\\n,,
14090 b mline
14092 t clear
14093 :clear
14094 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14095 t quote
14096 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14097 t quote
14098 b any
14099 :quote
14100 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14101 s/\[/\\&/g
14102 s/\]/\\&/g
14103 s/\$/$$/g
14105 :any
14108 s/^\n//
14109 s/\n/ /g
14113 DEFS=`sed -n "$ac_script" confdefs.h`
14116 ac_libobjs=
14117 ac_ltlibobjs=
14118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14119 # 1. Remove the extension, and $U if already installed.
14120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14123 # will be set to the directory where LIBOBJS objects are built.
14124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14126 done
14127 LIBOBJS=$ac_libobjs
14129 LTLIBOBJS=$ac_ltlibobjs
14133 : ${CONFIG_STATUS=./config.status}
14134 ac_write_fail=0
14135 ac_clean_files_save=$ac_clean_files
14136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14139 as_write_fail=0
14140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14141 #! $SHELL
14142 # Generated by $as_me.
14143 # Run this file to recreate the current configuration.
14144 # Compiler output produced by configure, useful for debugging
14145 # configure, is in config.log if it exists.
14147 debug=false
14148 ac_cs_recheck=false
14149 ac_cs_silent=false
14151 SHELL=\${CONFIG_SHELL-$SHELL}
14152 export SHELL
14153 _ASEOF
14154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14155 ## -------------------- ##
14156 ## M4sh Initialization. ##
14157 ## -------------------- ##
14159 # Be more Bourne compatible
14160 DUALCASE=1; export DUALCASE # for MKS sh
14161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14162 emulate sh
14163 NULLCMD=:
14164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14165 # is contrary to our usage. Disable this feature.
14166 alias -g '${1+"$@"}'='"$@"'
14167 setopt NO_GLOB_SUBST
14168 else
14169 case `(set -o) 2>/dev/null` in #(
14170 *posix*) :
14171 set -o posix ;; #(
14172 *) :
14174 esac
14178 as_nl='
14180 export as_nl
14181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14185 # Prefer a ksh shell builtin over an external printf program on Solaris,
14186 # but without wasting forks for bash or zsh.
14187 if test -z "$BASH_VERSION$ZSH_VERSION" \
14188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14189 as_echo='print -r --'
14190 as_echo_n='print -rn --'
14191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14192 as_echo='printf %s\n'
14193 as_echo_n='printf %s'
14194 else
14195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14197 as_echo_n='/usr/ucb/echo -n'
14198 else
14199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14200 as_echo_n_body='eval
14201 arg=$1;
14202 case $arg in #(
14203 *"$as_nl"*)
14204 expr "X$arg" : "X\\(.*\\)$as_nl";
14205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14206 esac;
14207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14209 export as_echo_n_body
14210 as_echo_n='sh -c $as_echo_n_body as_echo'
14212 export as_echo_body
14213 as_echo='sh -c $as_echo_body as_echo'
14216 # The user is always right.
14217 if test "${PATH_SEPARATOR+set}" != set; then
14218 PATH_SEPARATOR=:
14219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14221 PATH_SEPARATOR=';'
14226 # IFS
14227 # We need space, tab and new line, in precisely that order. Quoting is
14228 # there to prevent editors from complaining about space-tab.
14229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14230 # splitting by setting IFS to empty value.)
14231 IFS=" "" $as_nl"
14233 # Find who we are. Look in the path if we contain no directory separator.
14234 case $0 in #((
14235 *[\\/]* ) as_myself=$0 ;;
14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14239 IFS=$as_save_IFS
14240 test -z "$as_dir" && as_dir=.
14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14242 done
14243 IFS=$as_save_IFS
14246 esac
14247 # We did not find ourselves, most probably we were run as `sh COMMAND'
14248 # in which case we are not to be found in the path.
14249 if test "x$as_myself" = x; then
14250 as_myself=$0
14252 if test ! -f "$as_myself"; then
14253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14254 exit 1
14257 # Unset variables that we do not need and which cause bugs (e.g. in
14258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14259 # suppresses any "Segmentation fault" message there. '((' could
14260 # trigger a bug in pdksh 5.2.14.
14261 for as_var in BASH_ENV ENV MAIL MAILPATH
14262 do eval test x\${$as_var+set} = xset \
14263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14264 done
14265 PS1='$ '
14266 PS2='> '
14267 PS4='+ '
14269 # NLS nuisances.
14270 LC_ALL=C
14271 export LC_ALL
14272 LANGUAGE=C
14273 export LANGUAGE
14275 # CDPATH.
14276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14279 # as_fn_error ERROR [LINENO LOG_FD]
14280 # ---------------------------------
14281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14283 # script with status $?, using 1 if that was 0.
14284 as_fn_error ()
14286 as_status=$?; test $as_status -eq 0 && as_status=1
14287 if test "$3"; then
14288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14291 $as_echo "$as_me: error: $1" >&2
14292 as_fn_exit $as_status
14293 } # as_fn_error
14296 # as_fn_set_status STATUS
14297 # -----------------------
14298 # Set $? to STATUS, without forking.
14299 as_fn_set_status ()
14301 return $1
14302 } # as_fn_set_status
14304 # as_fn_exit STATUS
14305 # -----------------
14306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14307 as_fn_exit ()
14309 set +e
14310 as_fn_set_status $1
14311 exit $1
14312 } # as_fn_exit
14314 # as_fn_unset VAR
14315 # ---------------
14316 # Portably unset VAR.
14317 as_fn_unset ()
14319 { eval $1=; unset $1;}
14321 as_unset=as_fn_unset
14322 # as_fn_append VAR VALUE
14323 # ----------------------
14324 # Append the text in VALUE to the end of the definition contained in VAR. Take
14325 # advantage of any shell optimizations that allow amortized linear growth over
14326 # repeated appends, instead of the typical quadratic growth present in naive
14327 # implementations.
14328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14329 eval 'as_fn_append ()
14331 eval $1+=\$2
14333 else
14334 as_fn_append ()
14336 eval $1=\$$1\$2
14338 fi # as_fn_append
14340 # as_fn_arith ARG...
14341 # ------------------
14342 # Perform arithmetic evaluation on the ARGs, and store the result in the
14343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14344 # must be portable across $(()) and expr.
14345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14346 eval 'as_fn_arith ()
14348 as_val=$(( $* ))
14350 else
14351 as_fn_arith ()
14353 as_val=`expr "$@" || test $? -eq 1`
14355 fi # as_fn_arith
14358 if expr a : '\(a\)' >/dev/null 2>&1 &&
14359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14360 as_expr=expr
14361 else
14362 as_expr=false
14365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14366 as_basename=basename
14367 else
14368 as_basename=false
14371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14372 as_dirname=dirname
14373 else
14374 as_dirname=false
14377 as_me=`$as_basename -- "$0" ||
14378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14379 X"$0" : 'X\(//\)$' \| \
14380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14381 $as_echo X/"$0" |
14382 sed '/^.*\/\([^/][^/]*\)\/*$/{
14383 s//\1/
14386 /^X\/\(\/\/\)$/{
14387 s//\1/
14390 /^X\/\(\/\).*/{
14391 s//\1/
14394 s/.*/./; q'`
14396 # Avoid depending upon Character Ranges.
14397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14400 as_cr_digits='0123456789'
14401 as_cr_alnum=$as_cr_Letters$as_cr_digits
14403 ECHO_C= ECHO_N= ECHO_T=
14404 case `echo -n x` in #(((((
14405 -n*)
14406 case `echo 'xy\c'` in
14407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14408 xy) ECHO_C='\c';;
14409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14410 ECHO_T=' ';;
14411 esac;;
14413 ECHO_N='-n';;
14414 esac
14416 rm -f conf$$ conf$$.exe conf$$.file
14417 if test -d conf$$.dir; then
14418 rm -f conf$$.dir/conf$$.file
14419 else
14420 rm -f conf$$.dir
14421 mkdir conf$$.dir 2>/dev/null
14423 if (echo >conf$$.file) 2>/dev/null; then
14424 if ln -s conf$$.file conf$$ 2>/dev/null; then
14425 as_ln_s='ln -s'
14426 # ... but there are two gotchas:
14427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14429 # In both cases, we have to default to `cp -p'.
14430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14431 as_ln_s='cp -p'
14432 elif ln conf$$.file conf$$ 2>/dev/null; then
14433 as_ln_s=ln
14434 else
14435 as_ln_s='cp -p'
14437 else
14438 as_ln_s='cp -p'
14440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14441 rmdir conf$$.dir 2>/dev/null
14444 # as_fn_mkdir_p
14445 # -------------
14446 # Create "$as_dir" as a directory, including parents if necessary.
14447 as_fn_mkdir_p ()
14450 case $as_dir in #(
14451 -*) as_dir=./$as_dir;;
14452 esac
14453 test -d "$as_dir" || eval $as_mkdir_p || {
14454 as_dirs=
14455 while :; do
14456 case $as_dir in #(
14457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14458 *) as_qdir=$as_dir;;
14459 esac
14460 as_dirs="'$as_qdir' $as_dirs"
14461 as_dir=`$as_dirname -- "$as_dir" ||
14462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$as_dir" : 'X\(//\)[^/]' \| \
14464 X"$as_dir" : 'X\(//\)$' \| \
14465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14466 $as_echo X"$as_dir" |
14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468 s//\1/
14471 /^X\(\/\/\)[^/].*/{
14472 s//\1/
14475 /^X\(\/\/\)$/{
14476 s//\1/
14479 /^X\(\/\).*/{
14480 s//\1/
14483 s/.*/./; q'`
14484 test -d "$as_dir" && break
14485 done
14486 test -z "$as_dirs" || eval "mkdir $as_dirs"
14487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14490 } # as_fn_mkdir_p
14491 if mkdir -p . 2>/dev/null; then
14492 as_mkdir_p='mkdir -p "$as_dir"'
14493 else
14494 test -d ./-p && rmdir ./-p
14495 as_mkdir_p=false
14498 if test -x / >/dev/null 2>&1; then
14499 as_test_x='test -x'
14500 else
14501 if ls -dL / >/dev/null 2>&1; then
14502 as_ls_L_option=L
14503 else
14504 as_ls_L_option=
14506 as_test_x='
14507 eval sh -c '\''
14508 if test -d "$1"; then
14509 test -d "$1/.";
14510 else
14511 case $1 in #(
14512 -*)set "./$1";;
14513 esac;
14514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14515 ???[sx]*):;;*)false;;esac;fi
14516 '\'' sh
14519 as_executable_p=$as_test_x
14521 # Sed expression to map a string onto a valid CPP name.
14522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14524 # Sed expression to map a string onto a valid variable name.
14525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14528 exec 6>&1
14529 ## ----------------------------------- ##
14530 ## Main body of $CONFIG_STATUS script. ##
14531 ## ----------------------------------- ##
14532 _ASEOF
14533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14536 # Save the log message, to keep $0 and so on meaningful, and to
14537 # report actual input values of CONFIG_FILES etc. instead of their
14538 # values after options handling.
14539 ac_log="
14540 This file was extended by $as_me, which was
14541 generated by GNU Autoconf 2.64. Invocation command line was
14543 CONFIG_FILES = $CONFIG_FILES
14544 CONFIG_HEADERS = $CONFIG_HEADERS
14545 CONFIG_LINKS = $CONFIG_LINKS
14546 CONFIG_COMMANDS = $CONFIG_COMMANDS
14547 $ $0 $@
14549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14552 _ACEOF
14554 case $ac_config_files in *"
14555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14556 esac
14560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14561 # Files that config.status was made for.
14562 config_files="$ac_config_files"
14564 _ACEOF
14566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567 ac_cs_usage="\
14568 \`$as_me' instantiates files and other configuration actions
14569 from templates according to the current configuration. Unless the files
14570 and actions are specified as TAGs, all are instantiated by default.
14572 Usage: $0 [OPTION]... [TAG]...
14574 -h, --help print this help, then exit
14575 -V, --version print version number and configuration settings, then exit
14576 -q, --quiet, --silent
14577 do not print progress messages
14578 -d, --debug don't remove temporary files
14579 --recheck update $as_me by reconfiguring in the same conditions
14580 --file=FILE[:TEMPLATE]
14581 instantiate the configuration file FILE
14583 Configuration files:
14584 $config_files
14586 Report bugs to the package provider."
14588 _ACEOF
14589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590 ac_cs_version="\\
14591 config.status
14592 configured by $0, generated by GNU Autoconf 2.64,
14593 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14595 Copyright (C) 2009 Free Software Foundation, Inc.
14596 This config.status script is free software; the Free Software Foundation
14597 gives unlimited permission to copy, distribute and modify it."
14599 ac_pwd='$ac_pwd'
14600 srcdir='$srcdir'
14601 INSTALL='$INSTALL'
14602 AWK='$AWK'
14603 test -n "\$AWK" || AWK=awk
14604 _ACEOF
14606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14607 # The default lists apply if the user does not specify any file.
14608 ac_need_defaults=:
14609 while test $# != 0
14611 case $1 in
14612 --*=*)
14613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14615 ac_shift=:
14618 ac_option=$1
14619 ac_optarg=$2
14620 ac_shift=shift
14622 esac
14624 case $ac_option in
14625 # Handling of the options.
14626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14627 ac_cs_recheck=: ;;
14628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14629 $as_echo "$ac_cs_version"; exit ;;
14630 --debug | --debu | --deb | --de | --d | -d )
14631 debug=: ;;
14632 --file | --fil | --fi | --f )
14633 $ac_shift
14634 case $ac_optarg in
14635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14636 esac
14637 as_fn_append CONFIG_FILES " '$ac_optarg'"
14638 ac_need_defaults=false;;
14639 --he | --h | --help | --hel | -h )
14640 $as_echo "$ac_cs_usage"; exit ;;
14641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14643 ac_cs_silent=: ;;
14645 # This is an error.
14646 -*) as_fn_error "unrecognized option: \`$1'
14647 Try \`$0 --help' for more information." ;;
14649 *) as_fn_append ac_config_targets " $1"
14650 ac_need_defaults=false ;;
14652 esac
14653 shift
14654 done
14656 ac_configure_extra_args=
14658 if $ac_cs_silent; then
14659 exec 6>/dev/null
14660 ac_configure_extra_args="$ac_configure_extra_args --silent"
14663 _ACEOF
14664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14665 if \$ac_cs_recheck; then
14666 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14667 shift
14668 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14669 CONFIG_SHELL='$SHELL'
14670 export CONFIG_SHELL
14671 exec "\$@"
14674 _ACEOF
14675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676 exec 5>>config.log
14678 echo
14679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14680 ## Running $as_me. ##
14681 _ASBOX
14682 $as_echo "$ac_log"
14683 } >&5
14685 _ACEOF
14686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14688 # INIT-COMMANDS
14690 extrasub_build="$extrasub_build"
14691 extrasub_host="$extrasub_host"
14692 extrasub_target="$extrasub_target"
14694 _ACEOF
14696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14698 # Handling of arguments.
14699 for ac_config_target in $ac_config_targets
14701 case $ac_config_target in
14702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14704 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14705 esac
14706 done
14709 # If the user did not use the arguments to specify the items to instantiate,
14710 # then the envvar interface is used. Set only those that are not.
14711 # We use the long form for the default assignment because of an extremely
14712 # bizarre bug on SunOS 4.1.3.
14713 if $ac_need_defaults; then
14714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14717 # Have a temporary directory for convenience. Make it in the build tree
14718 # simply because there is no reason against having it here, and in addition,
14719 # creating and moving files from /tmp can sometimes cause problems.
14720 # Hook for its removal unless debugging.
14721 # Note that there is a small window in which the directory will not be cleaned:
14722 # after its creation but before its name has been assigned to `$tmp'.
14723 $debug ||
14725 tmp=
14726 trap 'exit_status=$?
14727 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14729 trap 'as_fn_exit 1' 1 2 13 15
14731 # Create a (secure) tmp directory for tmp files.
14734 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14735 test -n "$tmp" && test -d "$tmp"
14736 } ||
14738 tmp=./conf$$-$RANDOM
14739 (umask 077 && mkdir "$tmp")
14740 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14742 # Set up the scripts for CONFIG_FILES section.
14743 # No need to generate them if there are no CONFIG_FILES.
14744 # This happens for instance with `./config.status config.h'.
14745 if test -n "$CONFIG_FILES"; then
14747 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14748 ac_cs_awk_getline=:
14749 ac_cs_awk_pipe_init=
14750 ac_cs_awk_read_file='
14751 while ((getline aline < (F[key])) > 0)
14752 print(aline)
14753 close(F[key])'
14754 ac_cs_awk_pipe_fini=
14755 else
14756 ac_cs_awk_getline=false
14757 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14758 ac_cs_awk_read_file='
14759 print "|#_!!_#|"
14760 print "cat " F[key] " &&"
14761 '$ac_cs_awk_pipe_init
14762 # The final `:' finishes the AND list.
14763 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14765 ac_cr=`echo X | tr X '\015'`
14766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14767 # But we know of no other shell where ac_cr would be empty at this
14768 # point, so we can use a bashism as a fallback.
14769 if test "x$ac_cr" = x; then
14770 eval ac_cr=\$\'\\r\'
14772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14774 ac_cs_awk_cr='\r'
14775 else
14776 ac_cs_awk_cr=$ac_cr
14779 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14780 _ACEOF
14782 # Create commands to substitute file output variables.
14784 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14785 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14786 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14787 echo "_ACAWK" &&
14788 echo "_ACEOF"
14789 } >conf$$files.sh &&
14790 . ./conf$$files.sh ||
14791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14792 rm -f conf$$files.sh
14795 echo "cat >conf$$subs.awk <<_ACEOF" &&
14796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14797 echo "_ACEOF"
14798 } >conf$$subs.sh ||
14799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14800 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14801 ac_delim='%!_!# '
14802 for ac_last_try in false false false false false :; do
14803 . ./conf$$subs.sh ||
14804 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14807 if test $ac_delim_n = $ac_delim_num; then
14808 break
14809 elif $ac_last_try; then
14810 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14811 else
14812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14814 done
14815 rm -f conf$$subs.sh
14817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14819 _ACEOF
14820 sed -n '
14822 s/^/S["/; s/!.*/"]=/
14825 s/^[^!]*!//
14826 :repl
14827 t repl
14828 s/'"$ac_delim"'$//
14829 t delim
14832 s/\(.\{148\}\).*/\1/
14833 t more1
14834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14837 b repl
14838 :more1
14839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14842 s/.\{148\}//
14843 t nl
14844 :delim
14846 s/\(.\{148\}\).*/\1/
14847 t more2
14848 s/["\\]/\\&/g; s/^/"/; s/$/"/
14851 :more2
14852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14855 s/.\{148\}//
14856 t delim
14857 ' <conf$$subs.awk | sed '
14858 /^[^""]/{
14860 s/\n//
14862 ' >>$CONFIG_STATUS || ac_write_fail=1
14863 rm -f conf$$subs.awk
14864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14865 _ACAWK
14866 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14867 for (key in S) S_is_set[key] = 1
14868 FS = "\a"
14869 \$ac_cs_awk_pipe_init
14872 line = $ 0
14873 nfields = split(line, field, "@")
14874 substed = 0
14875 len = length(field[1])
14876 for (i = 2; i < nfields; i++) {
14877 key = field[i]
14878 keylen = length(key)
14879 if (S_is_set[key]) {
14880 value = S[key]
14881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14882 len += length(value) + length(field[++i])
14883 substed = 1
14884 } else
14885 len += 1 + keylen
14887 if (nfields == 3 && !substed) {
14888 key = field[2]
14889 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14890 \$ac_cs_awk_read_file
14891 next
14894 print line
14896 \$ac_cs_awk_pipe_fini
14897 _ACAWK
14898 _ACEOF
14899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14900 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14901 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14902 else
14904 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14905 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14906 _ACEOF
14908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14910 # trailing colons and then remove the whole line if VPATH becomes empty
14911 # (actually we leave an empty line to preserve line numbers).
14912 if test "x$srcdir" = x.; then
14913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14914 s/:*\$(srcdir):*/:/
14915 s/:*\${srcdir}:*/:/
14916 s/:*@srcdir@:*/:/
14917 s/^\([^=]*=[ ]*\):*/\1/
14918 s/:*$//
14919 s/^[^=]*=[ ]*$//
14923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924 fi # test -n "$CONFIG_FILES"
14927 eval set X " :F $CONFIG_FILES "
14928 shift
14929 for ac_tag
14931 case $ac_tag in
14932 :[FHLC]) ac_mode=$ac_tag; continue;;
14933 esac
14934 case $ac_mode$ac_tag in
14935 :[FHL]*:*);;
14936 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14937 :[FH]-) ac_tag=-:-;;
14938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14939 esac
14940 ac_save_IFS=$IFS
14941 IFS=:
14942 set x $ac_tag
14943 IFS=$ac_save_IFS
14944 shift
14945 ac_file=$1
14946 shift
14948 case $ac_mode in
14949 :L) ac_source=$1;;
14950 :[FH])
14951 ac_file_inputs=
14952 for ac_f
14954 case $ac_f in
14955 -) ac_f="$tmp/stdin";;
14956 *) # Look for the file first in the build tree, then in the source tree
14957 # (if the path is not absolute). The absolute path cannot be DOS-style,
14958 # because $ac_f cannot contain `:'.
14959 test -f "$ac_f" ||
14960 case $ac_f in
14961 [\\/$]*) false;;
14962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14963 esac ||
14964 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14965 esac
14966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14967 as_fn_append ac_file_inputs " '$ac_f'"
14968 done
14970 # Let's still pretend it is `configure' which instantiates (i.e., don't
14971 # use $as_me), people would be surprised to read:
14972 # /* config.h. Generated by config.status. */
14973 configure_input='Generated from '`
14974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14975 `' by configure.'
14976 if test x"$ac_file" != x-; then
14977 configure_input="$ac_file. $configure_input"
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14979 $as_echo "$as_me: creating $ac_file" >&6;}
14981 # Neutralize special characters interpreted by sed in replacement strings.
14982 case $configure_input in #(
14983 *\&* | *\|* | *\\* )
14984 ac_sed_conf_input=`$as_echo "$configure_input" |
14985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14986 *) ac_sed_conf_input=$configure_input;;
14987 esac
14989 case $ac_tag in
14990 *:-:* | *:-) cat >"$tmp/stdin" \
14991 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14992 esac
14994 esac
14996 ac_dir=`$as_dirname -- "$ac_file" ||
14997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14998 X"$ac_file" : 'X\(//\)[^/]' \| \
14999 X"$ac_file" : 'X\(//\)$' \| \
15000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15001 $as_echo X"$ac_file" |
15002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15003 s//\1/
15006 /^X\(\/\/\)[^/].*/{
15007 s//\1/
15010 /^X\(\/\/\)$/{
15011 s//\1/
15014 /^X\(\/\).*/{
15015 s//\1/
15018 s/.*/./; q'`
15019 as_dir="$ac_dir"; as_fn_mkdir_p
15020 ac_builddir=.
15022 case "$ac_dir" in
15023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15026 # A ".." for each directory in $ac_dir_suffix.
15027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15028 case $ac_top_builddir_sub in
15029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15031 esac ;;
15032 esac
15033 ac_abs_top_builddir=$ac_pwd
15034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15035 # for backward compatibility:
15036 ac_top_builddir=$ac_top_build_prefix
15038 case $srcdir in
15039 .) # We are building in place.
15040 ac_srcdir=.
15041 ac_top_srcdir=$ac_top_builddir_sub
15042 ac_abs_top_srcdir=$ac_pwd ;;
15043 [\\/]* | ?:[\\/]* ) # Absolute name.
15044 ac_srcdir=$srcdir$ac_dir_suffix;
15045 ac_top_srcdir=$srcdir
15046 ac_abs_top_srcdir=$srcdir ;;
15047 *) # Relative name.
15048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15049 ac_top_srcdir=$ac_top_build_prefix$srcdir
15050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15051 esac
15052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15055 case $ac_mode in
15058 # CONFIG_FILE
15061 case $INSTALL in
15062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15064 esac
15065 _ACEOF
15067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15068 # If the template does not know about datarootdir, expand it.
15069 # FIXME: This hack should be removed a few years after 2.60.
15070 ac_datarootdir_hack=; ac_datarootdir_seen=
15071 ac_sed_dataroot='
15072 /datarootdir/ {
15076 /@datadir@/p
15077 /@docdir@/p
15078 /@infodir@/p
15079 /@localedir@/p
15080 /@mandir@/p'
15081 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15082 *datarootdir*) ac_datarootdir_seen=yes;;
15083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15085 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15086 _ACEOF
15087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 ac_datarootdir_hack='
15089 s&@datadir@&$datadir&g
15090 s&@docdir@&$docdir&g
15091 s&@infodir@&$infodir&g
15092 s&@localedir@&$localedir&g
15093 s&@mandir@&$mandir&g
15094 s&\\\${datarootdir}&$datarootdir&g' ;;
15095 esac
15096 _ACEOF
15098 # Neutralize VPATH when `$srcdir' = `.'.
15099 # Shell code in configure.ac might set extrasub.
15100 # FIXME: do we really want to maintain this feature?
15101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102 ac_sed_extra="$ac_vpsub
15103 $extrasub
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15108 s|@configure_input@|$ac_sed_conf_input|;t t
15109 s&@top_builddir@&$ac_top_builddir_sub&;t t
15110 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15111 s&@srcdir@&$ac_srcdir&;t t
15112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15113 s&@top_srcdir@&$ac_top_srcdir&;t t
15114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15115 s&@builddir@&$ac_builddir&;t t
15116 s&@abs_builddir@&$ac_abs_builddir&;t t
15117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15118 s&@INSTALL@&$ac_INSTALL&;t t
15119 $ac_datarootdir_hack
15121 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15122 if $ac_cs_awk_getline; then
15123 $AWK -f "$tmp/subs.awk"
15124 else
15125 $AWK -f "$tmp/subs.awk" | $SHELL
15126 fi >$tmp/out \
15127 || as_fn_error "could not create $ac_file" "$LINENO" 5
15129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15133 which seems to be undefined. Please make sure it is defined." >&5
15134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15135 which seems to be undefined. Please make sure it is defined." >&2;}
15137 rm -f "$tmp/stdin"
15138 case $ac_file in
15139 -) cat "$tmp/out" && rm -f "$tmp/out";;
15140 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15141 esac \
15142 || as_fn_error "could not create $ac_file" "$LINENO" 5
15147 esac
15150 case $ac_file$ac_mode in
15151 "Makefile":F) sed "$extrasub_build" Makefile |
15152 sed "$extrasub_host" |
15153 sed "$extrasub_target" > mf$$
15154 mv -f mf$$ Makefile ;;
15156 esac
15157 done # for ac_tag
15160 as_fn_exit 0
15161 _ACEOF
15162 ac_clean_files=$ac_clean_files_save
15164 test $ac_write_fail = 0 ||
15165 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15168 # configure is writing to config.log, and then calls config.status.
15169 # config.status does its own redirection, appending to config.log.
15170 # Unfortunately, on DOS this fails, as config.log is still kept open
15171 # by configure, so config.status won't be able to write to it; its
15172 # output is simply discarded. So we exec the FD to /dev/null,
15173 # effectively closing config.log, so it can be properly (re)opened and
15174 # appended to by config.status. When coming back to configure, we
15175 # need to make the FD available again.
15176 if test "$no_create" != yes; then
15177 ac_cs_success=:
15178 ac_config_status_args=
15179 test "$silent" = yes &&
15180 ac_config_status_args="$ac_config_status_args --quiet"
15181 exec 5>/dev/null
15182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15183 exec 5>>config.log
15184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15185 # would make configure fail if this is the last instruction.
15186 $ac_cs_success || as_fn_exit $?
15188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}