Merge trunk version 193152 into gupc branch.
[official-gcc.git] / configure
blob239122cada02378025cdfb10a5f736349740a6b7
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 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GUPC_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GUPC_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 stage1_languages
647 extra_host_libiberty_configure_flags
648 clooginc
649 clooglibs
650 islinc
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
681 LN_S
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 target_noncanonical
695 host_noncanonical
696 build_noncanonical
697 build_os
698 build_vendor
699 build_cpu
700 build
701 TOPLEVEL_CONFIGURE_ARGUMENTS
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files='serialization_dependencies
741 host_makefile_frag
742 target_makefile_frag
743 alphaieee_frag
744 ospace_frag'
745 ac_user_opts='
746 enable_option_checking
747 with_build_libsubdir
748 enable_gold
749 enable_ld
750 enable_libquadmath
751 enable_libquadmath_support
752 enable_libada
753 enable_libssp
754 enable_libstdcxx
755 enable_static_libjava
756 enable_bootstrap
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_libs
770 with_stage1_ldflags
771 with_boot_libs
772 with_boot_ldflags
773 with_cloog
774 with_isl
775 with_isl_include
776 with_isl_lib
777 enable_isl_version_check
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_version_check
781 enable_lto
782 enable_stage1_languages
783 enable_objc_gc
784 with_upc_pts
785 with_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 enable_upc_link_script
790 with_build_time_tools
791 enable_maintainer_mode
792 enable_stage1_checking
793 enable_werror
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
804 CXXFLAGS
806 build_configargs
807 host_configargs
808 target_configargs
811 DLLTOOL
813 LIPO
815 RANLIB
816 STRIP
817 WINDRES
818 WINDMC
819 OBJCOPY
820 OBJDUMP
821 READELF
822 CC_FOR_TARGET
823 CXX_FOR_TARGET
824 GCC_FOR_TARGET
825 GCJ_FOR_TARGET
826 GFORTRAN_FOR_TARGET
827 GOC_FOR_TARGET
828 GUPC_FOR_TARGET
829 AR_FOR_TARGET
830 AS_FOR_TARGET
831 DLLTOOL_FOR_TARGET
832 LD_FOR_TARGET
833 LIPO_FOR_TARGET
834 NM_FOR_TARGET
835 OBJDUMP_FOR_TARGET
836 RANLIB_FOR_TARGET
837 READELF_FOR_TARGET
838 STRIP_FOR_TARGET
839 WINDRES_FOR_TARGET
840 WINDMC_FOR_TARGET'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 case $srcdir in
1369 *" "*)
1370 as_fn_error "path to source, $srcdir, contains spaces"
1372 esac
1373 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1444 cat <<\_ACEOF
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455 _ACEOF
1458 if test -n "$ac_init_help"; then
1460 cat <<\_ACEOF
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
1473 --disable-libstdcxx do not build libstdc++-v3 directory
1474 --enable-static-libjava[=ARG]
1475 build static libjava [default=no]
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --disable-isl-version-check
1478 disable check for ISL version
1479 --disable-cloog-version-check
1480 disable check for CLooG version
1481 --enable-lto enable link time optimization support
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1486 Objective-C runtime
1487 --enable-serial-[{host,target,build}-]configure
1488 force sequential configuration of sub-packages for
1489 the host, target or build machine, or all
1490 sub-packages
1491 --enable-upc-link-script
1492 enable UPC's use of a custom linker script; this
1493 will define the UPC shared section as a no load
1494 section on targets where this feature is supported
1495 (requires GNU LD)
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful (and
1498 sometimes confusing) to the casual installer
1499 --enable-stage1-checking[=all]
1500 choose additional checking for stage1 of the
1501 compiler
1502 --enable-werror enable -Werror in bootstrap stage2 and later
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-build-libsubdir=DIR Directory where to find libraries for build system
1508 --with-mpc=PATH specify prefix directory for installed MPC package.
1509 Equivalent to --with-mpc-include=PATH/include plus
1510 --with-mpc-lib=PATH/lib
1511 --with-mpc-include=PATH specify directory for installed MPC include files
1512 --with-mpc-lib=PATH specify directory for the installed MPC library
1513 --with-mpfr-dir=PATH this option has been REMOVED
1514 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1515 Equivalent to --with-mpfr-include=PATH/include plus
1516 --with-mpfr-lib=PATH/lib
1517 --with-mpfr-include=PATH
1518 specify directory for installed MPFR include files
1519 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1520 --with-gmp-dir=PATH this option has been REMOVED
1521 --with-gmp=PATH specify prefix directory for the installed GMP
1522 package. Equivalent to
1523 --with-gmp-include=PATH/include plus
1524 --with-gmp-lib=PATH/lib
1525 --with-gmp-include=PATH specify directory for installed GMP include files
1526 --with-gmp-lib=PATH specify directory for the installed GMP library
1527 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1528 linking with PPL
1529 --with-stage1-libs=LIBS libraries for stage1
1530 --with-stage1-ldflags=FLAGS
1531 linker flags for stage1
1532 --with-boot-libs=LIBS libraries for stage2 and later
1533 --with-boot-ldflags=FLAGS
1534 linker flags for stage2 and later
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-isl=PATH Specify prefix directory for the installed ISL
1540 package. Equivalent to
1541 --with-isl-include=PATH/include plus
1542 --with-isl-lib=PATH/lib
1543 --with-isl-include=PATH Specify directory for installed ISL include files
1544 --with-isl-lib=PATH Specify the directory for the installed ISL library
1545 --with-cloog-include=PATH
1546 Specify directory for installed CLooG include files
1547 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1548 library
1549 --with-upc-pts={struct,packed}
1550 choose the representation of a UPC pointer-to-shared
1551 --with-build-sysroot=SYSROOT
1552 use sysroot as the system root during the build
1553 --with-debug-prefix-map='A=B C=D ...'
1554 map A to B, C to D ... in debug information
1555 --with-build-config='NAME NAME2...'
1556 use config/NAME.mk build configuration
1557 --with-build-time-tools=PATH
1558 use given path to find target tools during the build
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 build_configargs
1571 additional configure arguments for build directories
1572 host_configargs
1573 additional configure arguments for host directories
1574 target_configargs
1575 additional configure arguments for target directories
1576 AR AR for the host
1577 AS AS for the host
1578 DLLTOOL DLLTOOL for the host
1579 LD LD for the host
1580 LIPO LIPO for the host
1581 NM NM for the host
1582 RANLIB RANLIB for the host
1583 STRIP STRIP for the host
1584 WINDRES WINDRES for the host
1585 WINDMC WINDMC for the host
1586 OBJCOPY OBJCOPY for the host
1587 OBJDUMP OBJDUMP for the host
1588 READELF READELF for the host
1589 CC_FOR_TARGET
1590 CC for the target
1591 CXX_FOR_TARGET
1592 CXX for the target
1593 GCC_FOR_TARGET
1594 GCC for the target
1595 GCJ_FOR_TARGET
1596 GCJ for the target
1597 GFORTRAN_FOR_TARGET
1598 GFORTRAN for the target
1599 GOC_FOR_TARGET
1600 GOC for the target
1601 GUPC_FOR_TARGET
1602 GUPC for the target
1603 AR_FOR_TARGET
1604 AR for the target
1605 AS_FOR_TARGET
1606 AS for the target
1607 DLLTOOL_FOR_TARGET
1608 DLLTOOL for the target
1609 LD_FOR_TARGET
1610 LD for the target
1611 LIPO_FOR_TARGET
1612 LIPO for the target
1613 NM_FOR_TARGET
1614 NM for the target
1615 OBJDUMP_FOR_TARGET
1616 OBJDUMP for the target
1617 RANLIB_FOR_TARGET
1618 RANLIB for the target
1619 READELF_FOR_TARGET
1620 READELF for the target
1621 STRIP_FOR_TARGET
1622 STRIP for the target
1623 WINDRES_FOR_TARGET
1624 WINDRES for the target
1625 WINDMC_FOR_TARGET
1626 WINDMC for the target
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1632 _ACEOF
1633 ac_status=$?
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 configure
1695 generated by GNU Autoconf 2.64
1697 Copyright (C) 2009 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 return $ac_retval
1744 } # ac_fn_c_try_compile
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 return $ac_retval
1782 } # ac_fn_cxx_try_compile
1784 # ac_fn_cxx_try_link LINENO
1785 # -------------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_cxx_try_link ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 $as_test_x conftest$ac_exeext
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 return $ac_retval
1828 } # ac_fn_cxx_try_link
1830 # ac_fn_c_try_link LINENO
1831 # -----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_link ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
1857 $as_test_x conftest$ac_exeext
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 return $ac_retval
1874 } # ac_fn_c_try_link
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1880 ac_fn_c_try_run ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=$ac_status
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1916 } # ac_fn_c_try_run
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1921 It was created by $as_me, which was
1922 generated by GNU Autoconf 2.64. Invocation command line was
1924 $ $0 $@
1926 _ACEOF
1927 exec 5>>config.log
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951 _ASUNAME
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1962 } >&5
1964 cat >&5 <<_ACEOF
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1971 _ACEOF
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1985 for ac_arg
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2014 as_fn_append ac_configure_args " '$ac_arg'"
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2030 echo
2032 cat <<\_ASBOX
2033 ## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##
2036 _ASBOX
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 esac |
2066 sort
2068 echo
2070 cat <<\_ASBOX
2071 ## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##
2074 _ASBOX
2075 echo
2076 for ac_var in $ac_subst_vars
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2086 if test -n "$ac_subst_files"; then
2087 cat <<\_ASBOX
2088 ## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_files
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2104 if test -s confdefs.h; then
2105 cat <<\_ASBOX
2106 ## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##
2109 _ASBOX
2110 echo
2111 cat confdefs.h
2112 echo
2114 test "$ac_signal" != 0 &&
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
2117 } >&5
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120 exit $exit_status
2122 for ac_signal in 1 2 13 15; do
2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 done
2125 ac_signal=0
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2130 $as_echo "/* confdefs.h */" > confdefs.h
2132 # Predefined preprocessor variables.
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 _ACEOF
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 _ACEOF
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2156 _ACEOF
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2161 ac_site_file1=NONE
2162 ac_site_file2=NONE
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_file1=$CONFIG_SITE
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174 test "x$ac_site_file" = xNONE && continue
2175 if test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file"
2181 done
2183 if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special
2185 # files actually), so we avoid doing that.
2186 if test -f "$cache_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 case $cache_file in
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
2192 esac
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196 $as_echo "$as_me: creating cache $cache_file" >&6;}
2197 >$cache_file
2200 # Check that the precious variables saved in the cache have kept the same
2201 # value.
2202 ac_cache_corrupted=false
2203 for ac_var in $ac_precious_vars; do
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
2208 case $ac_old_set,$ac_new_set in
2209 set,)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212 ac_cache_corrupted=: ;;
2213 ,set)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,);;
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247 esac
2249 done
2250 if $ac_cache_corrupted; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 ## -------------------- ##
2258 ## Main body of script. ##
2259 ## -------------------- ##
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 progname=$0
2276 # if PWD already has a value, it is probably wrong.
2277 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2279 # Export original configure arguments for use by sub-configures.
2280 # Quote arguments with shell meta charatcers.
2281 TOPLEVEL_CONFIGURE_ARGUMENTS=
2282 set -- "$progname" "$@"
2283 for ac_arg
2285 case "$ac_arg" in
2286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2288 # if the argument is of the form -foo=baz, quote the baz part only
2289 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2290 *) ;;
2291 esac
2292 # Add the quoted argument to the list.
2293 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2294 done
2295 if test "$silent" = yes; then
2296 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2298 # Remove the initial space we just introduced and, as these will be
2299 # expanded by make, quote '$'.
2300 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2303 # Find the build, host, and target systems.
2304 ac_aux_dir=
2305 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2306 for ac_t in install-sh install.sh shtool; do
2307 if test -f "$ac_dir/$ac_t"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/$ac_t -c"
2310 break 2
2312 done
2313 done
2314 if test -z "$ac_aux_dir"; then
2315 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2327 # Make sure we can run config.sub.
2328 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2329 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2332 $as_echo_n "checking build system type... " >&6; }
2333 if test "${ac_cv_build+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 ac_build_alias=$build_alias
2337 test "x$ac_build_alias" = x &&
2338 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2339 test "x$ac_build_alias" = x &&
2340 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2341 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2342 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2346 $as_echo "$ac_cv_build" >&6; }
2347 case $ac_cv_build in
2348 *-*-*) ;;
2349 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2350 esac
2351 build=$ac_cv_build
2352 ac_save_IFS=$IFS; IFS='-'
2353 set x $ac_cv_build
2354 shift
2355 build_cpu=$1
2356 build_vendor=$2
2357 shift; shift
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2360 build_os=$*
2361 IFS=$ac_save_IFS
2362 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2365 case ${build_alias} in
2366 "") build_noncanonical=${build} ;;
2367 *) build_noncanonical=${build_alias} ;;
2368 esac
2372 case ${host_alias} in
2373 "") host_noncanonical=${build_noncanonical} ;;
2374 *) host_noncanonical=${host_alias} ;;
2375 esac
2379 case ${target_alias} in
2380 "") target_noncanonical=${host_noncanonical} ;;
2381 *) target_noncanonical=${target_alias} ;;
2382 esac
2387 test "$host_noncanonical" = "$target_noncanonical" &&
2388 test "$program_prefix$program_suffix$program_transform_name" = \
2389 NONENONEs,x,x, &&
2390 program_transform_name=s,y,y,
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2393 $as_echo_n "checking host system type... " >&6; }
2394 if test "${ac_cv_host+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 if test "x$host_alias" = x; then
2398 ac_cv_host=$ac_cv_build
2399 else
2400 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2401 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2406 $as_echo "$ac_cv_host" >&6; }
2407 case $ac_cv_host in
2408 *-*-*) ;;
2409 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2410 esac
2411 host=$ac_cv_host
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_host
2414 shift
2415 host_cpu=$1
2416 host_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 host_os=$*
2421 IFS=$ac_save_IFS
2422 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2426 $as_echo_n "checking target system type... " >&6; }
2427 if test "${ac_cv_target+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test "x$target_alias" = x; then
2431 ac_cv_target=$ac_cv_host
2432 else
2433 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2434 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2439 $as_echo "$ac_cv_target" >&6; }
2440 case $ac_cv_target in
2441 *-*-*) ;;
2442 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2443 esac
2444 target=$ac_cv_target
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_target
2447 shift
2448 target_cpu=$1
2449 target_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 target_os=$*
2454 IFS=$ac_save_IFS
2455 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2458 # The aliases save the names the user supplied, while $host etc.
2459 # will get canonicalized.
2460 test -n "$target_alias" &&
2461 test "$program_prefix$program_suffix$program_transform_name" = \
2462 NONENONEs,x,x, &&
2463 program_prefix=${target_alias}-
2465 test "$program_prefix" != NONE &&
2466 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467 # Use a double $ so make ignores it.
2468 test "$program_suffix" != NONE &&
2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470 # Double any \ or $.
2471 # By default was `s,x,x', remove it if useless.
2472 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2477 # Get 'install' or 'install-sh' and its variants.
2478 # Find a good install program. We prefer a C program (faster),
2479 # so one script is as good as another. But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2484 # AIX /bin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # OS/2's system install, which has a completely different semantic
2490 # ./install, which can be erroneously created by make from ./install.sh.
2491 # Reject install programs that cannot install multiple files.
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2494 if test -z "$INSTALL"; then
2495 if test "${ac_cv_path_install+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 # Account for people who put trailing slashes in PATH elements.
2504 case $as_dir/ in #((
2505 ./ | .// | /[cC]/* | \
2506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2507 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2508 /usr/ucb/* ) ;;
2510 # OSF1 and SCO ODT 3.0 have their own names for install.
2511 # Don't use installbsd from OSF since it installs stuff as root
2512 # by default.
2513 for ac_prog in ginstall scoinst install; do
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2516 if test $ac_prog = install &&
2517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518 # AIX install. It has an incompatible calling convention.
2520 elif test $ac_prog = install &&
2521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # program-specific install script used by HP pwplus--don't use.
2524 else
2525 rm -rf conftest.one conftest.two conftest.dir
2526 echo one > conftest.one
2527 echo two > conftest.two
2528 mkdir conftest.dir
2529 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2530 test -s conftest.one && test -s conftest.two &&
2531 test -s conftest.dir/conftest.one &&
2532 test -s conftest.dir/conftest.two
2533 then
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
2539 done
2540 done
2542 esac
2544 done
2545 IFS=$as_save_IFS
2547 rm -rf conftest.one conftest.two conftest.dir
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2552 else
2553 # As a last resort, use the slow shell script. Don't cache a
2554 # value for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the value is a relative name.
2557 INSTALL=$ac_install_sh
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2561 $as_echo "$INSTALL" >&6; }
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2572 $as_echo_n "checking whether ln works... " >&6; }
2573 if test "${acx_cv_prog_LN+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 rm -f conftestdata_t
2577 echo >conftestdata_f
2578 if ln conftestdata_f conftestdata_t 2>/dev/null
2579 then
2580 acx_cv_prog_LN=ln
2581 else
2582 acx_cv_prog_LN=no
2584 rm -f conftestdata_f conftestdata_t
2587 if test $acx_cv_prog_LN = no; then
2588 LN="cp"
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2590 $as_echo "no, using $LN" >&6; }
2591 else
2592 LN="$acx_cv_prog_LN"
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2594 $as_echo "yes" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2598 $as_echo_n "checking whether ln -s works... " >&6; }
2599 LN_S=$as_ln_s
2600 if test "$LN_S" = "ln -s"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2602 $as_echo "yes" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2605 $as_echo "no, using $LN_S" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2609 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2610 if test "${ac_cv_path_SED+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2614 for ac_i in 1 2 3 4 5 6 7; do
2615 ac_script="$ac_script$as_nl$ac_script"
2616 done
2617 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2618 { ac_script=; unset ac_script;}
2619 if test -z "$SED"; then
2620 ac_path_SED_found=false
2621 # Loop through the user's path and test for each of PROGNAME-LIST
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_prog in sed gsed; do
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2630 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2631 # Check for GNU ac_path_SED and select it if it is found.
2632 # Check for GNU $ac_path_SED
2633 case `"$ac_path_SED" --version 2>&1` in
2634 *GNU*)
2635 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2637 ac_count=0
2638 $as_echo_n 0123456789 >"conftest.in"
2639 while :
2641 cat "conftest.in" "conftest.in" >"conftest.tmp"
2642 mv "conftest.tmp" "conftest.in"
2643 cp "conftest.in" "conftest.nl"
2644 $as_echo '' >> "conftest.nl"
2645 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2647 as_fn_arith $ac_count + 1 && ac_count=$as_val
2648 if test $ac_count -gt ${ac_path_SED_max-0}; then
2649 # Best one so far, save it but keep looking for a better one
2650 ac_cv_path_SED="$ac_path_SED"
2651 ac_path_SED_max=$ac_count
2653 # 10*(2^10) chars as input seems more than enough
2654 test $ac_count -gt 10 && break
2655 done
2656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2657 esac
2659 $ac_path_SED_found && break 3
2660 done
2661 done
2662 done
2663 IFS=$as_save_IFS
2664 if test -z "$ac_cv_path_SED"; then
2665 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2667 else
2668 ac_cv_path_SED=$SED
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2673 $as_echo "$ac_cv_path_SED" >&6; }
2674 SED="$ac_cv_path_SED"
2675 rm -f conftest.sed
2677 for ac_prog in gawk mawk nawk awk
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_AWK+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2702 IFS=$as_save_IFS
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2709 $as_echo "$AWK" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2716 test -n "$AWK" && break
2717 done
2720 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2722 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2723 # a relative path.
2724 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2725 INSTALL="${srcpwd}/install-sh -c"
2728 # Set srcdir to "." if that's what it is.
2729 # This is important for multilib support.
2730 pwd=`${PWDCMD-pwd}`
2731 if test "${pwd}" = "${srcpwd}" ; then
2732 srcdir=.
2735 topsrcdir=$srcpwd
2737 extra_host_args=
2739 ### To add a new directory to the tree, first choose whether it is a target
2740 ### or a host dependent tool. Then put it into the appropriate list
2741 ### (library or tools, host or target), doing a dependency sort.
2743 # Subdirs will be configured in the order listed in build_configdirs,
2744 # configdirs, or target_configdirs; see the serialization section below.
2746 # Dependency sorting is only needed when *configuration* must be done in
2747 # a particular order. In all cases a dependency should be specified in
2748 # the Makefile, whether or not it's implicitly specified here.
2750 # Double entries in build_configdirs, configdirs, or target_configdirs may
2751 # cause circular dependencies and break everything horribly.
2753 # these library is used by various programs built for the build
2754 # environment
2756 build_libs="build-libiberty"
2758 # these tools are built for the build environment
2759 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2761 # these libraries are used by various programs built for the host environment
2763 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2765 # these tools are built for the host environment
2766 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2767 # know that we are building the simulator.
2768 # binutils, gas and ld appear in that order because it makes sense to run
2769 # "make check" in that particular order.
2770 # If --enable-gold is used, "gold" may replace "ld".
2771 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2773 # libgcj represents the runtime libraries only used by gcj.
2774 libgcj="target-libffi \
2775 target-zlib \
2776 target-libjava"
2778 # these libraries are built for the target environment, and are built after
2779 # the host libraries and the host tools (which may be a cross compiler)
2780 # Note that libiberty is not a target library.
2781 target_libraries="target-libgcc \
2782 target-libbacktrace \
2783 target-libgloss \
2784 target-newlib \
2785 target-libgomp \
2786 target-libatomic \
2787 target-libitm \
2788 target-libstdc++-v3 \
2789 target-libmudflap \
2790 target-libssp \
2791 target-libquadmath \
2792 target-libgfortran \
2793 target-boehm-gc \
2794 ${libgcj} \
2795 target-libobjc \
2796 target-libgupc \
2797 target-libada \
2798 target-libgo"
2800 # these tools are built using the target libraries, and are intended to
2801 # run only in the target environment
2803 # note: any program that *uses* libraries that are in the "target_libraries"
2804 # list belongs in this list.
2806 target_tools="target-rda"
2808 ################################################################################
2810 ## All tools belong in one of the four categories, and are assigned above
2811 ## We assign ${configdirs} this way to remove all embedded newlines. This
2812 ## is important because configure will choke if they ever get through.
2813 ## ${configdirs} is directories we build using the host tools.
2814 ## ${target_configdirs} is directories we build using the target tools.
2815 configdirs=`echo ${host_libs} ${host_tools}`
2816 target_configdirs=`echo ${target_libraries} ${target_tools}`
2817 build_configdirs=`echo ${build_libs} ${build_tools}`
2821 ################################################################################
2823 srcname="gnu development package"
2825 # This gets set non-empty for some net releases of packages.
2826 appdirs=""
2828 # Define is_cross_compiler to save on calls to 'test'.
2829 is_cross_compiler=
2830 if test x"${host}" = x"${target}" ; then
2831 is_cross_compiler=no
2832 else
2833 is_cross_compiler=yes
2836 # Find the build and target subdir names.
2838 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2839 # have matching libraries, they should use host libraries: Makefile.tpl
2840 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2841 # However, they still use the build modules, because the corresponding
2842 # host modules (e.g. bison) are only built for the host when bootstrap
2843 # finishes. So:
2844 # - build_subdir is where we find build modules, and never changes.
2845 # - build_libsubdir is where we find build libraries, and can be overridden.
2847 # Prefix 'build-' so this never conflicts with target_subdir.
2848 build_subdir="build-${build_noncanonical}"
2850 # Check whether --with-build-libsubdir was given.
2851 if test "${with_build_libsubdir+set}" = set; then :
2852 withval=$with_build_libsubdir; build_libsubdir="$withval"
2853 else
2854 build_libsubdir="$build_subdir"
2857 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2858 if ( test $srcdir = . && test -d gcc ) \
2859 || test -d $srcdir/../host-${host_noncanonical}; then
2860 host_subdir="host-${host_noncanonical}"
2861 else
2862 host_subdir=.
2864 # No prefix.
2865 target_subdir=${target_noncanonical}
2867 # Be sure to cover against remnants of an in-tree build.
2868 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2869 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2870 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2873 # Skipdirs are removed silently.
2874 skipdirs=
2875 # Noconfigdirs are removed loudly.
2876 noconfigdirs=""
2878 use_gnu_ld=
2879 # Make sure we don't let GNU ld be added if we didn't want it.
2880 if test x$with_gnu_ld = xno ; then
2881 use_gnu_ld=no
2882 noconfigdirs="$noconfigdirs ld gold"
2885 use_gnu_as=
2886 # Make sure we don't let GNU as be added if we didn't want it.
2887 if test x$with_gnu_as = xno ; then
2888 use_gnu_as=no
2889 noconfigdirs="$noconfigdirs gas"
2892 use_included_zlib=
2893 # Make sure we don't let ZLIB be added if we didn't want it.
2894 if test x$with_system_zlib = xyes ; then
2895 use_included_zlib=no
2896 noconfigdirs="$noconfigdirs zlib"
2899 # some tools are so dependent upon X11 that if we're not building with X,
2900 # it's not even worth trying to configure, much less build, that tool.
2902 case ${with_x} in
2903 yes | "") ;; # the default value for this tree is that X11 is available
2905 skipdirs="${skipdirs} tk itcl libgui"
2906 # We won't be able to build gdbtk without X.
2907 enable_gdbtk=no
2909 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2910 esac
2912 # Some are only suitable for cross toolchains.
2913 # Remove these if host=target.
2914 cross_only="target-libgloss target-newlib target-opcodes"
2916 case $is_cross_compiler in
2917 no) skipdirs="${skipdirs} ${cross_only}" ;;
2918 esac
2920 # If both --with-headers and --with-libs are specified, default to
2921 # --without-newlib.
2922 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2923 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2924 if test x"${with_newlib}" = x ; then
2925 with_newlib=no
2929 # Recognize --with-newlib/--without-newlib.
2930 case ${with_newlib} in
2931 no) skipdirs="${skipdirs} target-newlib" ;;
2932 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2933 esac
2935 # Handle --enable-gold, --enable-ld.
2936 # --disable-gold [--enable-ld]
2937 # Build only ld. Default option.
2938 # --enable-gold [--enable-ld]
2939 # Build both gold and ld. Install gold as "ld.gold", install ld
2940 # as "ld.bfd" and "ld".
2941 # --enable-gold=default [--enable-ld]
2942 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2943 # install ld as "ld.bfd".
2944 # --enable-gold[=default] --disable-ld
2945 # Build only gold, which is then installed as both "ld.gold" and "ld".
2946 # --enable-gold --enable-ld=default
2947 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2948 # and ld.bfd).
2949 # In other words, ld is default
2950 # --enable-gold=default --enable-ld=default
2951 # Error.
2953 default_ld=
2954 # Check whether --enable-gold was given.
2955 if test "${enable_gold+set}" = set; then :
2956 enableval=$enable_gold; ENABLE_GOLD=$enableval
2957 else
2958 ENABLE_GOLD=no
2961 case "${ENABLE_GOLD}" in
2962 yes|default)
2963 # Check for ELF target.
2964 is_elf=no
2965 case "${target}" in
2966 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2967 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2968 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2969 | *-*-solaris2* | *-*-nto*)
2970 case "${target}" in
2971 *-*-linux*aout* | *-*-linux*oldld*)
2974 is_elf=yes
2976 esac
2977 esac
2979 if test "$is_elf" = "yes"; then
2980 # Check for target supported by gold.
2981 case "${target}" in
2982 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2983 configdirs="$configdirs gold"
2984 if test x${ENABLE_GOLD} = xdefault; then
2985 default_ld=gold
2987 ENABLE_GOLD=yes
2989 esac
2995 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2997 esac
2999 # Check whether --enable-ld was given.
3000 if test "${enable_ld+set}" = set; then :
3001 enableval=$enable_ld; ENABLE_LD=$enableval
3002 else
3003 ENABLE_LD=yes
3007 case "${ENABLE_LD}" in
3008 default)
3009 if test x${default_ld} != x; then
3010 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3013 yes)
3016 if test x${ENABLE_GOLD} != xyes; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3018 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3020 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3023 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3025 esac
3027 # Configure extra directories which are host specific
3029 case "${host}" in
3030 *-cygwin*)
3031 configdirs="$configdirs libtermcap" ;;
3032 esac
3034 # A target can indicate whether a language isn't supported for some reason.
3035 # Only spaces may be used in this macro; not newlines or tabs.
3036 unsupported_languages=
3038 # Remove more programs from consideration, based on the host or
3039 # target this usually means that a port of the program doesn't
3040 # exist yet.
3042 case "${host}" in
3043 i[3456789]86-*-msdosdjgpp*)
3044 noconfigdirs="$noconfigdirs tcl tk itcl"
3046 esac
3049 # Check whether --enable-libquadmath was given.
3050 if test "${enable_libquadmath+set}" = set; then :
3051 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3052 else
3053 ENABLE_LIBQUADMATH=yes
3056 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3057 noconfigdirs="$noconfigdirs target-libquadmath"
3061 # Check whether --enable-libquadmath-support was given.
3062 if test "${enable_libquadmath_support+set}" = set; then :
3063 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3064 else
3065 ENABLE_LIBQUADMATH_SUPPORT=yes
3068 enable_libquadmath_support=
3069 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3070 enable_libquadmath_support=no
3074 # Check whether --enable-libada was given.
3075 if test "${enable_libada+set}" = set; then :
3076 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3077 else
3078 ENABLE_LIBADA=yes
3081 if test "${ENABLE_LIBADA}" != "yes" ; then
3082 noconfigdirs="$noconfigdirs gnattools"
3085 # Check whether --enable-libssp was given.
3086 if test "${enable_libssp+set}" = set; then :
3087 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3088 else
3089 ENABLE_LIBSSP=yes
3093 # Check whether --enable-libstdcxx was given.
3094 if test "${enable_libstdcxx+set}" = set; then :
3095 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3096 else
3097 ENABLE_LIBSTDCXX=default
3100 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3101 noconfigdirs="$noconfigdirs libstdc++-v3"
3104 # Save it here so that, even in case of --enable-libgcj, if the Java
3105 # front-end isn't enabled, we still get libgcj disabled.
3106 libgcj_saved=$libgcj
3107 case $enable_libgcj in
3108 yes)
3109 # If we reset it here, it won't get added to noconfigdirs in the
3110 # target-specific build rules, so it will be forcibly enabled
3111 # (unless the Java language itself isn't enabled).
3112 libgcj=
3115 # Make sure we get it printed in the list of not supported target libs.
3116 # Don't disable libffi, though, other languages use it.
3117 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3118 # Clear libgcj_saved so that even if java is enabled libffi won't be
3119 # built.
3120 libgcj_saved=
3122 esac
3124 # Check whether --enable-static-libjava was given.
3125 if test "${enable_static_libjava+set}" = set; then :
3126 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3127 else
3128 ENABLE_STATIC_LIBJAVA=no
3131 enable_static_libjava=
3132 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3133 enable_static_libjava=yes
3136 if test x$enable_static_libjava != xyes ; then
3137 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3141 # Disable libmudflap on some systems.
3142 if test x$enable_libmudflap = x ; then
3143 case "${target}" in
3144 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3145 # Enable libmudflap by default in GNU and friends.
3147 *-*-freebsd*)
3148 # Enable libmudflap by default in FreeBSD.
3151 # Disable it by default everywhere else.
3152 noconfigdirs="$noconfigdirs target-libmudflap"
3154 esac
3157 posix_based_os="yes"
3158 case "${target}" in
3159 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3161 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3163 *-*-solaris2* | *-*-hpux11*)
3165 *-*-darwin* | *-*-aix*)
3168 posix_based_os="no"
3170 esac
3172 # Enable libgomp by default on POSIX hosted systems.
3173 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3174 # Disable libgomp on non POSIX hosted systems.
3175 noconfigdirs="$noconfigdirs target-libgomp"
3178 # Enable libgupc by default on POSIX hosted systems.
3179 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3180 # Disable libgupc on non POSIX hosted systems.
3181 noconfigdirs="$noconfigdirs target-libgupc"
3184 # Disable libatomic on unsupported systems.
3185 if test -d ${srcdir}/libatomic; then
3186 if test x$enable_libatomic = x; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3188 $as_echo_n "checking for libatomic support... " >&6; }
3189 if (srcdir=${srcdir}/libatomic; \
3190 . ${srcdir}/configure.tgt; \
3191 test -n "$UNSUPPORTED")
3192 then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 noconfigdirs="$noconfigdirs target-libatomic"
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 $as_echo "yes" >&6; }
3203 # Disable libitm on unsupported systems.
3204 if test -d ${srcdir}/libitm; then
3205 if test x$enable_libitm = x; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3207 $as_echo_n "checking for libitm support... " >&6; }
3208 if (srcdir=${srcdir}/libitm; \
3209 . ${srcdir}/configure.tgt; \
3210 test -n "$UNSUPPORTED")
3211 then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 noconfigdirs="$noconfigdirs target-libitm"
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3222 # Disable libquadmath for some systems.
3223 case "${target}" in
3224 # libquadmath is unused on AIX and libquadmath build process use of
3225 # LD_LIBRARY_PATH can break AIX bootstrap.
3226 powerpc-*-aix* | rs6000-*-aix*)
3227 noconfigdirs="$noconfigdirs target-libquadmath"
3229 esac
3231 # Disable libssp for some systems.
3232 case "${target}" in
3233 avr-*-*)
3234 # No hosted I/O support.
3235 noconfigdirs="$noconfigdirs target-libssp"
3237 powerpc-*-aix* | rs6000-*-aix*)
3238 noconfigdirs="$noconfigdirs target-libssp"
3240 rl78-*-*)
3241 # libssp uses a misaligned load to trigger a fault, but the RL78
3242 # doesn't fault for those - instead, it gives a build-time error
3243 # for explicit misaligned loads.
3244 noconfigdirs="$noconfigdirs target-libssp"
3246 esac
3248 # Disable libquadmath for some systems.
3249 case "${target}" in
3250 avr-*-*)
3251 noconfigdirs="$noconfigdirs target-libquadmath"
3253 esac
3255 # Disable libstdc++-v3 for some systems.
3256 # Allow user to override this if they pass --enable-libstdc++-v3
3257 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3258 case "${target}" in
3259 *-*-vxworks*)
3260 # VxWorks uses the Dinkumware C++ library.
3261 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3263 arm*-wince-pe*)
3264 # the C++ libraries don't build on top of CE's C libraries
3265 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3267 avr-*-*)
3268 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3270 esac
3273 # Disable Fortran for some systems.
3274 case "${target}" in
3275 mmix-*-*)
3276 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3277 unsupported_languages="$unsupported_languages fortran"
3279 esac
3281 # Disable Java if libffi is not supported.
3282 case "${target}" in
3283 alpha*-*-*)
3285 arm*-*-*)
3287 cris-*-*)
3289 frv-*-*)
3291 hppa*-*-linux*)
3293 hppa*-*-hpux*)
3295 i?86-*-*)
3297 ia64*-*-*)
3299 m32r*-*-*)
3301 m68k-*-*)
3303 mips*-*-rtems*)
3305 mips*-*-linux*)
3307 powerpc*-*-linux*)
3309 powerpc-*-darwin*)
3311 powerpc-*-aix* | rs6000-*-aix*)
3313 powerpc-*-freebsd*)
3315 powerpc64-*-freebsd*)
3317 powerpc*-*-rtems*)
3319 s390-*-* | s390x-*-*)
3321 sh-*-* | sh[34]*-*-*)
3323 sh64-*-* | sh5*-*-*)
3325 sparc*-*-*)
3327 x86_64-*-*)
3329 *-*-*)
3330 unsupported_languages="$unsupported_languages java"
3332 esac
3334 # Disable Java, libgcj or related libraries for some systems.
3335 case "${target}" in
3336 powerpc-*-darwin*)
3338 i[3456789]86-*-darwin*)
3340 x86_64-*-darwin[912]*)
3342 *-*-darwin*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3345 *-*-netware*)
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3348 *-*-rtems*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3351 *-*-tpf*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3354 *-*-uclinux*)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3357 *-*-vxworks*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3360 alpha*-*-*vms*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3363 arm-wince-pe)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3366 arm*-*-symbianelf*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3369 bfin-*-*)
3370 noconfigdirs="$noconfigdirs target-boehm-gc"
3372 cris-*-* | crisv32-*-*)
3373 unsupported_languages="$unsupported_languages java"
3374 case "${target}" in
3375 *-*-linux*)
3377 *) # See PR46792 regarding target-libffi.
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3379 esac
3381 hppa*64*-*-linux*)
3382 # In this case, it's because the hppa64-linux target is for
3383 # the kernel only at this point and has no libc, and thus no
3384 # headers, crt*.o, etc., all of which are needed by these.
3385 unsupported_languages="$unsupported_languages java"
3387 hppa*64*-*-hpux*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 hppa*-hp-hpux11*)
3392 hppa*-*-hpux*)
3393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3394 # build on HP-UX 10.20.
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3397 ia64*-*-*vms*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3400 i[3456789]86-w64-mingw*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3403 i[3456789]86-*-mingw*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3406 x86_64-*-mingw*)
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3409 mmix-*-*)
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3412 powerpc-*-aix*)
3413 # copied from rs6000-*-* entry
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3416 rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3419 *-*-lynxos*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3422 esac
3424 # Default libgloss CPU subdirectory.
3425 libgloss_dir="$target_cpu"
3427 case "${target}" in
3428 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3429 libgloss_dir=wince
3431 arm*-*-*)
3432 libgloss_dir=arm
3434 cris-*-* | crisv32-*-*)
3435 libgloss_dir=cris
3437 hppa*-*-*)
3438 libgloss_dir=pa
3440 i[3456789]86-*-*)
3441 libgloss_dir=i386
3443 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3444 libgloss_dir=m68hc11
3446 m68*-*-* | fido-*-*)
3447 libgloss_dir=m68k
3449 mips*-*-*)
3450 libgloss_dir=mips
3452 powerpc*-*-*)
3453 libgloss_dir=rs6000
3455 sparc*-*-*)
3456 libgloss_dir=sparc
3458 esac
3460 # Disable newlib and libgloss for various target OSes.
3461 case "${target}" in
3462 alpha*-dec-osf*)
3463 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3465 i[3456789]86-*-linux*)
3466 # This section makes it possible to build newlib natively on linux.
3467 # If we are using a cross compiler then don't configure newlib.
3468 if test x${is_cross_compiler} != xno ; then
3469 noconfigdirs="$noconfigdirs target-newlib"
3471 noconfigdirs="$noconfigdirs target-libgloss"
3472 # If we are not using a cross compiler, do configure newlib.
3473 # Note however, that newlib will only be configured in this situation
3474 # if the --with-newlib option has been given, because otherwise
3475 # 'target-newlib' will appear in skipdirs.
3477 i[3456789]86-*-rdos*)
3478 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3480 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3481 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3483 sparc-*-sunos4*)
3484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3486 *-*-aix*)
3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3489 *-*-beos*)
3490 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3492 *-*-chorusos)
3493 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3495 *-*-dragonfly*)
3496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3498 *-*-freebsd*)
3499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3501 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3504 *-*-lynxos*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3507 *-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3510 *-*-netbsd*)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3513 *-*-netware*)
3514 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3516 *-*-tpf*)
3517 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3519 *-*-uclinux*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3522 *-*-vxworks*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 esac
3527 case "${target}" in
3528 *-*-chorusos)
3530 powerpc-*-darwin*)
3531 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3532 noconfigdirs="$noconfigdirs sim target-rda"
3534 i[3456789]86-*-darwin*)
3535 noconfigdirs="$noconfigdirs ld gprof"
3536 noconfigdirs="$noconfigdirs sim target-rda"
3538 x86_64-*-darwin[912]*)
3539 noconfigdirs="$noconfigdirs ld gas gprof"
3540 noconfigdirs="$noconfigdirs sim target-rda"
3542 *-*-darwin*)
3543 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3544 noconfigdirs="$noconfigdirs sim target-rda"
3546 *-*-dragonfly*)
3548 *-*-freebsd*)
3549 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3550 && test -f /usr/local/include/gmp.h; then
3551 with_gmp=/usr/local
3554 *-*-kaos*)
3555 # Remove unsupported stuff on all kaOS configurations.
3556 noconfigdirs="$noconfigdirs target-libgloss"
3558 *-*-netbsd*)
3560 *-*-netware*)
3562 *-*-rtems*)
3563 noconfigdirs="$noconfigdirs target-libgloss"
3565 # The tpf target doesn't support gdb yet.
3566 *-*-tpf*)
3567 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3569 *-*-uclinux*)
3570 noconfigdirs="$noconfigdirs target-rda"
3572 *-*-vxworks*)
3574 alpha*-dec-osf*)
3575 # ld works, but does not support shared libraries.
3576 # gas doesn't generate exception information.
3577 noconfigdirs="$noconfigdirs gas ld"
3579 alpha*-*-*vms*)
3580 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3582 alpha*-*-*)
3583 # newlib is not 64 bit ready
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3587 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3589 arc-*-*)
3590 noconfigdirs="$noconfigdirs target-libgloss"
3592 arm-*-pe*)
3593 noconfigdirs="$noconfigdirs target-libgloss"
3595 arm-*-riscix*)
3596 noconfigdirs="$noconfigdirs ld target-libgloss"
3598 avr-*-rtems*)
3600 avr-*-*)
3601 if test x${with_avrlibc} != xno; then
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 c4x-*-* | tic4x-*-*)
3606 noconfigdirs="$noconfigdirs target-libgloss"
3608 tic54x-*-*)
3609 noconfigdirs="$noconfigdirs target-libgloss gdb"
3611 d10v-*-*)
3612 noconfigdirs="$noconfigdirs target-libgloss"
3614 d30v-*-*)
3615 noconfigdirs="$noconfigdirs gdb"
3617 fr30-*-elf*)
3618 noconfigdirs="$noconfigdirs gdb"
3620 moxie-*-*)
3621 noconfigdirs="$noconfigdirs gprof"
3623 h8300*-*-*)
3624 noconfigdirs="$noconfigdirs target-libgloss"
3626 h8500-*-*)
3627 noconfigdirs="$noconfigdirs target-libgloss"
3629 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3631 hppa*64*-*-linux*)
3633 hppa*-*-linux*)
3635 hppa*-*-*elf* | \
3636 hppa*-*-lites* | \
3637 hppa*-*-openbsd* | \
3638 hppa*64*-*-*)
3640 hppa*-hp-hpux11*)
3641 noconfigdirs="$noconfigdirs ld"
3643 hppa*-*-pro*)
3645 hppa*-*-*)
3646 noconfigdirs="$noconfigdirs ld"
3648 i960-*-*)
3649 noconfigdirs="$noconfigdirs gdb"
3651 ia64*-*-elf*)
3652 # No gdb support yet.
3653 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3655 ia64*-**-hpux*)
3656 # No ld support yet.
3657 noconfigdirs="$noconfigdirs libgui itcl ld"
3659 ia64*-*-*vms*)
3660 # No ld support yet.
3661 noconfigdirs="$noconfigdirs libgui itcl ld"
3663 i[3456789]86-w64-mingw*)
3665 i[3456789]86-*-mingw*)
3666 target_configdirs="$target_configdirs target-winsup"
3668 *-*-cygwin*)
3669 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 # always build newlib if winsup directory is present.
3672 if test -d "$srcdir/winsup/cygwin"; then
3673 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3674 elif test -d "$srcdir/newlib"; then
3675 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3678 i[3456789]86-*-pe)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3681 i[3456789]86-*-sco3.2v5*)
3682 # The linker does not yet know about weak symbols in COFF,
3683 # and is not configured to handle mixed ELF and COFF.
3684 noconfigdirs="$noconfigdirs ld target-libgloss"
3686 i[3456789]86-*-sco*)
3687 noconfigdirs="$noconfigdirs gprof target-libgloss"
3689 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3692 i[3456789]86-*-sysv4*)
3693 noconfigdirs="$noconfigdirs target-libgloss"
3695 i[3456789]86-*-beos*)
3696 noconfigdirs="$noconfigdirs gdb"
3698 i[3456789]86-*-rdos*)
3699 noconfigdirs="$noconfigdirs gdb"
3701 mmix-*-*)
3702 noconfigdirs="$noconfigdirs gdb"
3704 mt-*-*)
3705 noconfigdirs="$noconfigdirs sim"
3707 powerpc-*-aix*)
3708 # copied from rs6000-*-* entry
3709 noconfigdirs="$noconfigdirs gprof"
3711 powerpc*-*-winnt* | powerpc*-*-pe*)
3712 target_configdirs="$target_configdirs target-winsup"
3713 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3714 # always build newlib.
3715 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3717 # This is temporary until we can link against shared libraries
3718 powerpcle-*-solaris*)
3719 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3721 powerpc-*-beos*)
3722 noconfigdirs="$noconfigdirs gdb"
3724 rs6000-*-lynxos*)
3725 noconfigdirs="$noconfigdirs gprof"
3727 rs6000-*-aix*)
3728 noconfigdirs="$noconfigdirs gprof"
3730 rs6000-*-*)
3731 noconfigdirs="$noconfigdirs gprof"
3733 m68k-apollo-*)
3734 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3736 microblaze*)
3737 noconfigdirs="$noconfigdirs gprof"
3739 mips*-sde-elf* | mips*-mti-elf*)
3740 if test x$with_newlib = xyes; then
3741 noconfigdirs="$noconfigdirs gprof"
3744 mips*-*-irix5*)
3745 noconfigdirs="$noconfigdirs gprof target-libgloss"
3747 mips*-*-irix6*)
3748 noconfigdirs="$noconfigdirs gprof target-libgloss"
3750 mips*-*-bsd*)
3751 noconfigdirs="$noconfigdirs gprof target-libgloss"
3753 mips*-*-linux*)
3755 mips*-*-*)
3756 noconfigdirs="$noconfigdirs gprof"
3758 sh-*-* | sh64-*-*)
3759 case "${target}" in
3760 sh*-*-elf)
3763 noconfigdirs="$noconfigdirs target-libgloss" ;;
3764 esac
3766 sparc-*-sunos4*)
3767 if test x${is_cross_compiler} = xno ; then
3768 use_gnu_ld=no
3771 tic6x-*-*)
3772 noconfigdirs="$noconfigdirs sim"
3774 tilepro-*-* | tilegx-*-*)
3775 noconfigdirs="$noconfigdirs sim"
3777 v810-*-*)
3778 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3780 vax-*-*)
3781 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3783 esac
3785 # If we aren't building newlib, then don't build libgloss, since libgloss
3786 # depends upon some newlib header files.
3787 case "${noconfigdirs}" in
3788 *target-libgloss*) ;;
3789 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3790 esac
3792 # Work in distributions that contain no compiler tools, like Autoconf.
3793 host_makefile_frag=/dev/null
3794 if test -d ${srcdir}/config ; then
3795 case "${host}" in
3796 i[3456789]86-*-msdosdjgpp*)
3797 host_makefile_frag="config/mh-djgpp"
3799 *-cygwin*)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3802 $as_echo_n "checking to see if cat works as expected... " >&6; }
3803 echo a >cygwin-cat-check
3804 if test `cat cygwin-cat-check` = a ; then
3805 rm cygwin-cat-check
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3807 $as_echo "yes" >&6; }
3808 else
3809 rm cygwin-cat-check
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 as_fn_error "The cat command does not ignore carriage return characters.
3813 Please either mount the build directory in binary mode or run the following
3814 commands before running any configure script:
3815 set -o igncr
3816 export SHELLOPTS
3817 " "$LINENO" 5
3820 host_makefile_frag="config/mh-cygwin"
3822 *-mingw*)
3823 host_makefile_frag="config/mh-mingw"
3825 hppa*-hp-hpux10*)
3826 host_makefile_frag="config/mh-pa-hpux10"
3828 hppa*-hp-hpux*)
3829 host_makefile_frag="config/mh-pa"
3831 hppa*-*)
3832 host_makefile_frag="config/mh-pa"
3834 *-*-darwin*)
3835 host_makefile_frag="config/mh-darwin"
3837 powerpc-*-aix*)
3838 host_makefile_frag="config/mh-ppc-aix"
3840 rs6000-*-aix*)
3841 host_makefile_frag="config/mh-ppc-aix"
3843 esac
3846 if test "${build}" != "${host}" ; then
3847 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3848 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3849 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3850 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3851 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3852 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3853 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3854 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
3855 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3856 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3857 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3858 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3859 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3860 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3861 else
3862 AR_FOR_BUILD="\$(AR)"
3863 AS_FOR_BUILD="\$(AS)"
3864 CC_FOR_BUILD="\$(CC)"
3865 CXX_FOR_BUILD="\$(CXX)"
3866 GCJ_FOR_BUILD="\$(GCJ)"
3867 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3868 GOC_FOR_BUILD="\$(GOC)"
3869 GUPC_FOR_BUILD="\$(GUPC)"
3870 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3871 LD_FOR_BUILD="\$(LD)"
3872 NM_FOR_BUILD="\$(NM)"
3873 RANLIB_FOR_BUILD="\$(RANLIB)"
3874 WINDRES_FOR_BUILD="\$(WINDRES)"
3875 WINDMC_FOR_BUILD="\$(WINDMC)"
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if test "${ac_cv_prog_CC+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3905 done
3906 done
3907 IFS=$as_save_IFS
3911 CC=$ac_cv_prog_CC
3912 if test -n "$CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914 $as_echo "$CC" >&6; }
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3922 if test -z "$ac_cv_prog_CC"; then
3923 ac_ct_CC=$CC
3924 # Extract the first word of "gcc", so it can be a program name with args.
3925 set dummy gcc; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_prog_ac_ct_CC="gcc"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3947 IFS=$as_save_IFS
3951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3952 if test -n "$ac_ct_CC"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3954 $as_echo "$ac_ct_CC" >&6; }
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967 ac_tool_warned=yes ;;
3968 esac
3969 CC=$ac_ct_CC
3971 else
3972 CC="$ac_cv_prog_CC"
3975 if test -z "$CC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3978 set dummy ${ac_tool_prefix}cc; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_CC+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 ac_cv_prog_CC="${ac_tool_prefix}cc"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 CC=$ac_cv_prog_CC
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4016 if test -z "$CC"; then
4017 # Extract the first word of "cc", so it can be a program name with args.
4018 set dummy cc; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if test "${ac_cv_prog_CC+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 ac_prog_rejected=no
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4036 ac_prog_rejected=yes
4037 continue
4039 ac_cv_prog_CC="cc"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4047 if test $ac_prog_rejected = yes; then
4048 # We found a bogon in the path, so make sure we never use it.
4049 set dummy $ac_cv_prog_CC
4050 shift
4051 if test $# != 0; then
4052 # We chose a different compiler from the bogus one.
4053 # However, it has the same basename, so the bogon will be chosen
4054 # first if we set CC to just the basename; use the full file name.
4055 shift
4056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 CC=$ac_cv_prog_CC
4062 if test -n "$CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064 $as_echo "$CC" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4072 if test -z "$CC"; then
4073 if test -n "$ac_tool_prefix"; then
4074 for ac_prog in cl.exe
4076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$CC" && break
4114 done
4116 if test -z "$CC"; then
4117 ac_ct_CC=$CC
4118 for ac_prog in cl.exe
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_ac_ct_CC="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 $as_echo "$ac_ct_CC" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$ac_ct_CC" && break
4158 done
4160 if test "x$ac_ct_CC" = x; then
4161 CC=""
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned=yes ;;
4168 esac
4169 CC=$ac_ct_CC
4176 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4178 as_fn_error "no acceptable C compiler found in \$PATH
4179 See \`config.log' for more details." "$LINENO" 5; }
4181 # Provide some information about the compiler.
4182 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4183 set X $ac_compile
4184 ac_compiler=$2
4185 for ac_option in --version -v -V -qversion; do
4186 { { ac_try="$ac_compiler $ac_option >&5"
4187 case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4192 $as_echo "$ac_try_echo"; } >&5
4193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4194 ac_status=$?
4195 if test -s conftest.err; then
4196 sed '10a\
4197 ... rest of stderr output deleted ...
4198 10q' conftest.err >conftest.er1
4199 cat conftest.er1 >&5
4200 rm -f conftest.er1 conftest.err
4202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203 test $ac_status = 0; }
4204 done
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 ac_clean_files_save=$ac_clean_files
4218 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4219 # Try to create an executable without -o first, disregard a.out.
4220 # It will help us diagnose broken compilers, and finding out an intuition
4221 # of exeext.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4223 $as_echo_n "checking for C compiler default output file name... " >&6; }
4224 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4226 # The possible output files:
4227 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4229 ac_rmfiles=
4230 for ac_file in $ac_files
4232 case $ac_file in
4233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4234 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4235 esac
4236 done
4237 rm -f $ac_rmfiles
4239 if { { ac_try="$ac_link_default"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_link_default") 2>&5
4247 ac_status=$?
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; }; then :
4250 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4251 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4252 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4253 # so that the user can short-circuit this test for compilers unknown to
4254 # Autoconf.
4255 for ac_file in $ac_files ''
4257 test -f "$ac_file" || continue
4258 case $ac_file in
4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4261 [ab].out )
4262 # We found the default executable, but exeext='' is most
4263 # certainly right.
4264 break;;
4265 *.* )
4266 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4267 then :; else
4268 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4270 # We set ac_cv_exeext here because the later test for it is not
4271 # safe: cross compilers may not add the suffix if given an `-o'
4272 # argument, so we may need to know it at that point already.
4273 # Even if this section looks crufty: it has the advantage of
4274 # actually working.
4275 break;;
4277 break;;
4278 esac
4279 done
4280 test "$ac_cv_exeext" = no && ac_cv_exeext=
4282 else
4283 ac_file=''
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4286 $as_echo "$ac_file" >&6; }
4287 if test -z "$ac_file"; then :
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 { as_fn_set_status 77
4294 as_fn_error "C compiler cannot create executables
4295 See \`config.log' for more details." "$LINENO" 5; }; }
4297 ac_exeext=$ac_cv_exeext
4299 # Check that the compiler produces executables we can run. If not, either
4300 # the compiler is broken, or we cross compile.
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 $as_echo_n "checking whether the C compiler works... " >&6; }
4303 # If not cross compiling, check that we can run a simple program.
4304 if test "$cross_compiling" != yes; then
4305 if { ac_try='./$ac_file'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 cross_compiling=no
4317 else
4318 if test "$cross_compiling" = maybe; then
4319 cross_compiling=yes
4320 else
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "cannot run C compiled programs.
4324 If you meant to cross compile, use \`--host'.
4325 See \`config.log' for more details." "$LINENO" 5; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4330 $as_echo "yes" >&6; }
4332 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4333 ac_clean_files=$ac_clean_files_save
4334 # Check that the compiler produces executables we can run. If not, either
4335 # the compiler is broken, or we cross compile.
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4337 $as_echo_n "checking whether we are cross compiling... " >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4339 $as_echo "$cross_compiling" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4342 $as_echo_n "checking for suffix of executables... " >&6; }
4343 if { { ac_try="$ac_link"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_link") 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; then :
4354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4356 # work properly (i.e., refer to `conftest.exe'), while it won't with
4357 # `rm'.
4358 for ac_file in conftest.exe conftest conftest.*; do
4359 test -f "$ac_file" || continue
4360 case $ac_file in
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4363 break;;
4364 * ) break;;
4365 esac
4366 done
4367 else
4368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error "cannot compute suffix of executables: cannot compile and link
4371 See \`config.log' for more details." "$LINENO" 5; }
4373 rm -f conftest$ac_cv_exeext
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4375 $as_echo "$ac_cv_exeext" >&6; }
4377 rm -f conftest.$ac_ext
4378 EXEEXT=$ac_cv_exeext
4379 ac_exeext=$EXEEXT
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4381 $as_echo_n "checking for suffix of object files... " >&6; }
4382 if test "${ac_cv_objext+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4389 main ()
4393 return 0;
4395 _ACEOF
4396 rm -f conftest.o conftest.obj
4397 if { { ac_try="$ac_compile"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_compile") 2>&5
4405 ac_status=$?
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
4408 for ac_file in conftest.o conftest.obj conftest.*; do
4409 test -f "$ac_file" || continue;
4410 case $ac_file in
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4413 break;;
4414 esac
4415 done
4416 else
4417 $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error "cannot compute suffix of object files: cannot compile
4423 See \`config.log' for more details." "$LINENO" 5; }
4425 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4428 $as_echo "$ac_cv_objext" >&6; }
4429 OBJEXT=$ac_cv_objext
4430 ac_objext=$OBJEXT
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4433 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4442 #ifndef __GNUC__
4443 choke me
4444 #endif
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_compiler_gnu=yes
4452 else
4453 ac_compiler_gnu=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4460 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4462 GCC=yes
4463 else
4464 GCC=
4466 ac_test_CFLAGS=${CFLAGS+set}
4467 ac_save_CFLAGS=$CFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4469 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4470 if test "${ac_cv_prog_cc_g+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_save_c_werror_flag=$ac_c_werror_flag
4474 ac_c_werror_flag=yes
4475 ac_cv_prog_cc_g=no
4476 CFLAGS="-g"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_g=yes
4490 else
4491 CFLAGS=""
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4505 else
4506 ac_c_werror_flag=$ac_save_c_werror_flag
4507 CFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_prog_cc_g=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4530 $as_echo "$ac_cv_prog_cc_g" >&6; }
4531 if test "$ac_test_CFLAGS" = set; then
4532 CFLAGS=$ac_save_CFLAGS
4533 elif test $ac_cv_prog_cc_g = yes; then
4534 if test "$GCC" = yes; then
4535 CFLAGS="-g -O2"
4536 else
4537 CFLAGS="-g"
4539 else
4540 if test "$GCC" = yes; then
4541 CFLAGS="-O2"
4542 else
4543 CFLAGS=
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4547 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4548 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 ac_cv_prog_cc_c89=no
4552 ac_save_CC=$CC
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <stdarg.h>
4556 #include <stdio.h>
4557 #include <sys/types.h>
4558 #include <sys/stat.h>
4559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4560 struct buf { int x; };
4561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4562 static char *e (p, i)
4563 char **p;
4564 int i;
4566 return p[i];
4568 static char *f (char * (*g) (char **, int), char **p, ...)
4570 char *s;
4571 va_list v;
4572 va_start (v,p);
4573 s = g (p, va_arg (v,int));
4574 va_end (v);
4575 return s;
4578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4579 function prototypes and stuff, but not '\xHH' hex character constants.
4580 These don't provoke an error unfortunately, instead are silently treated
4581 as 'x'. The following induces an error, until -std is added to get
4582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4583 array size at least. It's necessary to write '\x00'==0 to get something
4584 that's true only with -std. */
4585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4587 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4588 inside strings and character constants. */
4589 #define FOO(x) 'x'
4590 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4592 int test (int i, double x);
4593 struct s1 {int (*f) (int a);};
4594 struct s2 {int (*f) (double a);};
4595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4596 int argc;
4597 char **argv;
4599 main ()
4601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4603 return 0;
4605 _ACEOF
4606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4609 CC="$ac_save_CC $ac_arg"
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_cv_prog_cc_c89=$ac_arg
4613 rm -f core conftest.err conftest.$ac_objext
4614 test "x$ac_cv_prog_cc_c89" != "xno" && break
4615 done
4616 rm -f conftest.$ac_ext
4617 CC=$ac_save_CC
4620 # AC_CACHE_VAL
4621 case "x$ac_cv_prog_cc_c89" in
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4624 $as_echo "none needed" >&6; } ;;
4625 xno)
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4627 $as_echo "unsupported" >&6; } ;;
4629 CC="$CC $ac_cv_prog_cc_c89"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4631 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4632 esac
4633 if test "x$ac_cv_prog_cc_c89" != xno; then :
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 ac_ext=cpp
4644 ac_cpp='$CXXCPP $CPPFLAGS'
4645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4648 if test -z "$CXX"; then
4649 if test -n "$CCC"; then
4650 CXX=$CCC
4651 else
4652 if test -n "$ac_tool_prefix"; then
4653 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_CXX+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$CXX"; then
4663 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 CXX=$ac_cv_prog_CXX
4683 if test -n "$CXX"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4685 $as_echo "$CXX" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4692 test -n "$CXX" && break
4693 done
4695 if test -z "$CXX"; then
4696 ac_ct_CXX=$CXX
4697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4699 # Extract the first word of "$ac_prog", so it can be a program name with args.
4700 set dummy $ac_prog; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_CXX"; then
4707 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_CXX="$ac_prog"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4727 if test -n "$ac_ct_CXX"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4729 $as_echo "$ac_ct_CXX" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4736 test -n "$ac_ct_CXX" && break
4737 done
4739 if test "x$ac_ct_CXX" = x; then
4740 CXX="g++"
4741 else
4742 case $cross_compiling:$ac_tool_warned in
4743 yes:)
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746 ac_tool_warned=yes ;;
4747 esac
4748 CXX=$ac_ct_CXX
4754 # Provide some information about the compiler.
4755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4756 set X $ac_compile
4757 ac_compiler=$2
4758 for ac_option in --version -v -V -qversion; do
4759 { { ac_try="$ac_compiler $ac_option >&5"
4760 case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763 esac
4764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4765 $as_echo "$ac_try_echo"; } >&5
4766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4767 ac_status=$?
4768 if test -s conftest.err; then
4769 sed '10a\
4770 ... rest of stderr output deleted ...
4771 10q' conftest.err >conftest.er1
4772 cat conftest.er1 >&5
4773 rm -f conftest.er1 conftest.err
4775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776 test $ac_status = 0; }
4777 done
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4780 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4788 main ()
4790 #ifndef __GNUC__
4791 choke me
4792 #endif
4795 return 0;
4797 _ACEOF
4798 if ac_fn_cxx_try_compile "$LINENO"; then :
4799 ac_compiler_gnu=yes
4800 else
4801 ac_compiler_gnu=no
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4808 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4809 if test $ac_compiler_gnu = yes; then
4810 GXX=yes
4811 else
4812 GXX=
4814 ac_test_CXXFLAGS=${CXXFLAGS+set}
4815 ac_save_CXXFLAGS=$CXXFLAGS
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4817 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4818 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4822 ac_cxx_werror_flag=yes
4823 ac_cv_prog_cxx_g=no
4824 CXXFLAGS="-g"
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4829 main ()
4833 return 0;
4835 _ACEOF
4836 if ac_fn_cxx_try_compile "$LINENO"; then :
4837 ac_cv_prog_cxx_g=yes
4838 else
4839 CXXFLAGS=""
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_cxx_try_compile "$LINENO"; then :
4853 else
4854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4855 CXXFLAGS="-g"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4860 main ()
4864 return 0;
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4868 ac_cv_prog_cxx_g=yes
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4878 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4879 if test "$ac_test_CXXFLAGS" = set; then
4880 CXXFLAGS=$ac_save_CXXFLAGS
4881 elif test $ac_cv_prog_cxx_g = yes; then
4882 if test "$GXX" = yes; then
4883 CXXFLAGS="-g -O2"
4884 else
4885 CXXFLAGS="-g"
4887 else
4888 if test "$GXX" = yes; then
4889 CXXFLAGS="-O2"
4890 else
4891 CXXFLAGS=
4894 ac_ext=c
4895 ac_cpp='$CPP $CPPFLAGS'
4896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 # We must set the default linker to the linker used by gcc for the correct
4902 # operation of libtool. If LD is not defined and we are using gcc, try to
4903 # set the LD default to the ld used by gcc.
4904 if test -z "$LD"; then
4905 if test "$GCC" = yes; then
4906 case $build in
4907 *-*-mingw*)
4908 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4910 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4911 esac
4912 case $gcc_prog_ld in
4913 # Accept absolute paths.
4914 [\\/]* | [A-Za-z]:[\\/]*)
4915 LD="$gcc_prog_ld" ;;
4916 esac
4920 # Check whether -static-libstdc++ -static-libgcc is supported.
4921 have_static_libs=no
4922 if test "$GCC" = yes; then
4923 saved_LDFLAGS="$LDFLAGS"
4925 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4927 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4928 ac_ext=cpp
4929 ac_cpp='$CXXCPP $CPPFLAGS'
4930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4938 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4939 #error -static-libstdc++ not implemented
4940 #endif
4941 int main() {}
4942 _ACEOF
4943 if ac_fn_cxx_try_link "$LINENO"; then :
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4945 $as_echo "yes" >&6; }; have_static_libs=yes
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4950 rm -f core conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 LDFLAGS="$saved_LDFLAGS"
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$GNATBIND"; then
4974 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 GNATBIND=$ac_cv_prog_GNATBIND
4994 if test -n "$GNATBIND"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4996 $as_echo "$GNATBIND" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5004 if test -z "$ac_cv_prog_GNATBIND"; then
5005 ac_ct_GNATBIND=$GNATBIND
5006 # Extract the first word of "gnatbind", so it can be a program name with args.
5007 set dummy gnatbind; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$ac_ct_GNATBIND"; then
5014 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5034 if test -n "$ac_ct_GNATBIND"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5036 $as_echo "$ac_ct_GNATBIND" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5042 if test "x$ac_ct_GNATBIND" = x; then
5043 GNATBIND="no"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 GNATBIND=$ac_ct_GNATBIND
5053 else
5054 GNATBIND="$ac_cv_prog_GNATBIND"
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$GNATMAKE"; then
5066 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 GNATMAKE=$ac_cv_prog_GNATMAKE
5086 if test -n "$GNATMAKE"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5088 $as_echo "$GNATMAKE" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5096 if test -z "$ac_cv_prog_GNATMAKE"; then
5097 ac_ct_GNATMAKE=$GNATMAKE
5098 # Extract the first word of "gnatmake", so it can be a program name with args.
5099 set dummy gnatmake; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$ac_ct_GNATMAKE"; then
5106 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5126 if test -n "$ac_ct_GNATMAKE"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5128 $as_echo "$ac_ct_GNATMAKE" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5134 if test "x$ac_ct_GNATMAKE" = x; then
5135 GNATMAKE="no"
5136 else
5137 case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143 GNATMAKE=$ac_ct_GNATMAKE
5145 else
5146 GNATMAKE="$ac_cv_prog_GNATMAKE"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5150 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5151 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat >conftest.adb <<EOF
5155 procedure conftest is begin null; end conftest;
5157 acx_cv_cc_gcc_supports_ada=no
5158 # There is a bug in old released versions of GCC which causes the
5159 # driver to exit successfully when the appropriate language module
5160 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5161 # Therefore we must check for the error message as well as an
5162 # unsuccessful exit.
5163 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5164 # given a .adb file, but produce no object file. So we must check
5165 # if an object file was really produced to guard against this.
5166 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5167 if test x"$errors" = x && test -f conftest.$ac_objext; then
5168 acx_cv_cc_gcc_supports_ada=yes
5170 rm -f conftest.*
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5173 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5175 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5176 have_gnat=yes
5177 else
5178 have_gnat=no
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5182 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5183 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 echo abfoo >t1
5187 echo cdfoo >t2
5188 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5189 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5190 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5192 else
5193 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5196 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5197 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5199 else
5200 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5203 rm t1 t2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5207 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5208 do_compare="$gcc_cv_prog_cmp_skip"
5212 # Check whether --enable-bootstrap was given.
5213 if test "${enable_bootstrap+set}" = set; then :
5214 enableval=$enable_bootstrap;
5215 else
5216 enable_bootstrap=default
5220 # Issue errors and warnings for invalid/strange bootstrap combinations.
5221 if test -r $srcdir/gcc/configure; then
5222 have_compiler=yes
5223 else
5224 have_compiler=no
5227 case "$have_compiler:$host:$target:$enable_bootstrap" in
5228 *:*:*:no) ;;
5230 # Default behavior. Enable bootstrap if we have a compiler
5231 # and we are in a native configuration.
5232 yes:$build:$build:default)
5233 enable_bootstrap=yes ;;
5235 *:*:*:default)
5236 enable_bootstrap=no ;;
5238 # We have a compiler and we are in a native configuration, bootstrap is ok
5239 yes:$build:$build:yes)
5242 # Other configurations, but we have a compiler. Assume the user knows
5243 # what he's doing.
5244 yes:*:*:yes)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5246 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5249 # No compiler: if they passed --enable-bootstrap explicitly, fail
5250 no:*:*:yes)
5251 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5253 # Fail if wrong command line
5255 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5257 esac
5259 # Used for setting $lt_cv_objdir
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5261 $as_echo_n "checking for objdir... " >&6; }
5262 if test "${lt_cv_objdir+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 rm -f .libs 2>/dev/null
5266 mkdir .libs 2>/dev/null
5267 if test -d .libs; then
5268 lt_cv_objdir=.libs
5269 else
5270 # MS-DOS does not allow filenames that begin with a dot.
5271 lt_cv_objdir=_libs
5273 rmdir .libs 2>/dev/null
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5276 $as_echo "$lt_cv_objdir" >&6; }
5277 objdir=$lt_cv_objdir
5283 cat >>confdefs.h <<_ACEOF
5284 #define LT_OBJDIR "$lt_cv_objdir/"
5285 _ACEOF
5289 # Check for GMP, MPFR and MPC
5290 gmplibs="-lmpc -lmpfr -lgmp"
5291 gmpinc=
5292 have_gmp=no
5294 # Specify a location for mpc
5295 # check for this first so it ends up on the link line before mpfr.
5297 # Check whether --with-mpc was given.
5298 if test "${with_mpc+set}" = set; then :
5299 withval=$with_mpc;
5303 # Check whether --with-mpc-include was given.
5304 if test "${with_mpc_include+set}" = set; then :
5305 withval=$with_mpc_include;
5309 # Check whether --with-mpc-lib was given.
5310 if test "${with_mpc_lib+set}" = set; then :
5311 withval=$with_mpc_lib;
5315 if test "x$with_mpc" != x; then
5316 gmplibs="-L$with_mpc/lib $gmplibs"
5317 gmpinc="-I$with_mpc/include $gmpinc"
5319 if test "x$with_mpc_include" != x; then
5320 gmpinc="-I$with_mpc_include $gmpinc"
5322 if test "x$with_mpc_lib" != x; then
5323 gmplibs="-L$with_mpc_lib $gmplibs"
5325 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5326 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5327 gmpinc='-I$$s/mpc/src '"$gmpinc"
5328 # Do not test the mpc version. Assume that it is sufficient, since
5329 # it is in the source tree, and the library has not been built yet
5330 # but it would be included on the link line in the version check below
5331 # hence making the test fail.
5332 have_gmp=yes
5335 # Specify a location for mpfr
5336 # check for this first so it ends up on the link line before gmp.
5338 # Check whether --with-mpfr-dir was given.
5339 if test "${with_mpfr_dir+set}" = set; then :
5340 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5341 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5346 # Check whether --with-mpfr was given.
5347 if test "${with_mpfr+set}" = set; then :
5348 withval=$with_mpfr;
5352 # Check whether --with-mpfr-include was given.
5353 if test "${with_mpfr_include+set}" = set; then :
5354 withval=$with_mpfr_include;
5358 # Check whether --with-mpfr-lib was given.
5359 if test "${with_mpfr_lib+set}" = set; then :
5360 withval=$with_mpfr_lib;
5364 if test "x$with_mpfr" != x; then
5365 gmplibs="-L$with_mpfr/lib $gmplibs"
5366 gmpinc="-I$with_mpfr/include $gmpinc"
5368 if test "x$with_mpfr_include" != x; then
5369 gmpinc="-I$with_mpfr_include $gmpinc"
5371 if test "x$with_mpfr_lib" != x; then
5372 gmplibs="-L$with_mpfr_lib $gmplibs"
5374 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5375 # MPFR v3.1.0 moved the sources into a src sub-directory.
5376 if test -d ${srcdir}/mpfr/src; then
5377 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5378 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5379 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5380 else
5381 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5382 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5383 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5385 # Do not test the mpfr version. Assume that it is sufficient, since
5386 # it is in the source tree, and the library has not been built yet
5387 # but it would be included on the link line in the version check below
5388 # hence making the test fail.
5389 have_gmp=yes
5392 # Specify a location for gmp
5394 # Check whether --with-gmp-dir was given.
5395 if test "${with_gmp_dir+set}" = set; then :
5396 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5397 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5402 # Check whether --with-gmp was given.
5403 if test "${with_gmp+set}" = set; then :
5404 withval=$with_gmp;
5408 # Check whether --with-gmp-include was given.
5409 if test "${with_gmp_include+set}" = set; then :
5410 withval=$with_gmp_include;
5414 # Check whether --with-gmp-lib was given.
5415 if test "${with_gmp_lib+set}" = set; then :
5416 withval=$with_gmp_lib;
5421 if test "x$with_gmp" != x; then
5422 gmplibs="-L$with_gmp/lib $gmplibs"
5423 gmpinc="-I$with_gmp/include $gmpinc"
5425 if test "x$with_gmp_include" != x; then
5426 gmpinc="-I$with_gmp_include $gmpinc"
5428 if test "x$with_gmp_lib" != x; then
5429 gmplibs="-L$with_gmp_lib $gmplibs"
5431 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5432 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5433 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5434 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5435 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5436 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5437 # Do not test the gmp version. Assume that it is sufficient, since
5438 # it is in the source tree, and the library has not been built yet
5439 # but it would be included on the link line in the version check below
5440 # hence making the test fail.
5441 have_gmp=yes
5444 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5445 have_gmp=yes
5446 saved_CFLAGS="$CFLAGS"
5447 CFLAGS="$CFLAGS $gmpinc"
5448 # Check for the recommended and required versions of GMP.
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5450 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #include "gmp.h"
5456 main ()
5459 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5460 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5461 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5462 choke me
5463 #endif
5466 return 0;
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <gmp.h>
5474 main ()
5477 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5478 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5479 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5480 choke me
5481 #endif
5484 return 0;
5486 _ACEOF
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5492 $as_echo "buggy but acceptable" >&6; }
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }; have_gmp=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 # If we have GMP, check the MPFR version.
5502 if test x"$have_gmp" = xyes; then
5503 # Check for the recommended and required versions of MPFR.
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5505 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <gmp.h>
5509 #include <mpfr.h>
5511 main ()
5514 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5515 choke me
5516 #endif
5519 return 0;
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #include <gmp.h>
5526 #include <mpfr.h>
5528 main ()
5531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5532 choke me
5533 #endif
5536 return 0;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"; then :
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541 $as_echo "yes" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5544 $as_echo "buggy but acceptable" >&6; }
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }; have_gmp=no
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 # Check for the MPC header version.
5555 if test x"$have_gmp" = xyes ; then
5556 # Check for the recommended and required versions of MPC.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5558 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <mpc.h>
5563 main ()
5566 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5567 choke me
5568 #endif
5571 return 0;
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <mpc.h>
5579 main ()
5582 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5583 choke me
5584 #endif
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592 $as_echo "yes" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5595 $as_echo "buggy but acceptable" >&6; }
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }; have_gmp=no
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 # Now check the MPFR library.
5606 if test x"$have_gmp" = xyes; then
5607 saved_LIBS="$LIBS"
5608 LIBS="$LIBS $gmplibs"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5610 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <mpc.h>
5615 main ()
5618 mpfr_t n;
5619 mpfr_t x;
5620 mpc_t c;
5621 int t;
5622 mpfr_init (n);
5623 mpfr_init (x);
5624 mpfr_atan2 (n, n, x, GMP_RNDN);
5625 mpfr_erfc (n, x, GMP_RNDN);
5626 mpfr_subnormalize (x, t, GMP_RNDN);
5627 mpfr_clear(n);
5628 mpfr_clear(x);
5629 mpc_init2 (c, 53);
5630 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5631 mpc_cosh (c, c, MPC_RNDNN);
5632 mpc_pow (c, c, c, MPC_RNDNN);
5633 mpc_acosh (c, c, MPC_RNDNN);
5634 mpc_clear (c);
5637 return 0;
5639 _ACEOF
5640 if ac_fn_c_try_link "$LINENO"; then :
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 $as_echo "yes" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }; have_gmp=no
5647 rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5649 LIBS="$saved_LIBS"
5652 CFLAGS="$saved_CFLAGS"
5654 # The library versions listed in the error message below should match
5655 # the HARD-minimums enforced above.
5656 if test x$have_gmp != xyes; then
5657 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5658 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5659 their locations. Source code for these libraries can be found at
5660 their respective hosting sites as well as at
5661 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5662 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5663 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5664 make sure that you have installed both the libraries and the header
5665 files. They may be located in separate packages." "$LINENO" 5
5669 # Flags needed for both GMP, MPFR and/or MPC.
5677 # Allow host libstdc++ to be specified for static linking with PPL.
5679 # Check whether --with-host-libstdcxx was given.
5680 if test "${with_host_libstdcxx+set}" = set; then :
5681 withval=$with_host_libstdcxx;
5685 case $with_host_libstdcxx in
5686 no|yes)
5687 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5689 esac
5691 # Libraries to use for stage1 or when not bootstrapping.
5693 # Check whether --with-stage1-libs was given.
5694 if test "${with_stage1_libs+set}" = set; then :
5695 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5696 stage1_libs=
5697 else
5698 stage1_libs=$withval
5700 else
5701 stage1_libs=$with_host_libstdcxx
5706 # Linker flags to use for stage1 or when not bootstrapping.
5708 # Check whether --with-stage1-ldflags was given.
5709 if test "${with_stage1_ldflags+set}" = set; then :
5710 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5711 stage1_ldflags=
5712 else
5713 stage1_ldflags=$withval
5715 else
5716 stage1_ldflags=
5717 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5718 # if supported. But if the user explicitly specified the libraries to use,
5719 # trust that they are doing what they want.
5720 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5721 stage1_ldflags="-static-libstdc++ -static-libgcc"
5727 # Libraries to use for stage2 and later builds. This defaults to the
5728 # argument passed to --with-host-libstdcxx.
5730 # Check whether --with-boot-libs was given.
5731 if test "${with_boot_libs+set}" = set; then :
5732 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5733 poststage1_libs=
5734 else
5735 poststage1_libs=$withval
5737 else
5738 poststage1_libs=$with_host_libstdcxx
5743 # Linker flags to use for stage2 and later builds.
5745 # Check whether --with-boot-ldflags was given.
5746 if test "${with_boot_ldflags+set}" = set; then :
5747 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5748 poststage1_ldflags=
5749 else
5750 poststage1_ldflags=$withval
5752 else
5753 poststage1_ldflags=
5754 # In stages 2 and 3, default to linking libstdc++ and libgcc
5755 # statically. But if the user explicitly specified the libraries to
5756 # use, trust that they are doing what they want.
5757 if test "$poststage1_libs" = ""; then
5758 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5764 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5765 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5766 # config/isl.m4
5769 # Check whether --with-cloog was given.
5770 if test "${with_cloog+set}" = set; then :
5771 withval=$with_cloog;
5775 # Check whether --with-isl was given.
5776 if test "${with_isl+set}" = set; then :
5777 withval=$with_isl;
5781 # Treat either --without-cloog or --without-isl as a request to disable
5782 # GRAPHITE support and skip all following checks.
5783 if test "x$with_isl" != "xno" &&
5784 test "x$with_cloog" != "xno"; then
5785 # Check for ISL
5788 # Check whether --with-isl-include was given.
5789 if test "${with_isl_include+set}" = set; then :
5790 withval=$with_isl_include;
5794 # Check whether --with-isl-lib was given.
5795 if test "${with_isl_lib+set}" = set; then :
5796 withval=$with_isl_lib;
5800 # Check whether --enable-isl-version-check was given.
5801 if test "${enable_isl_version_check+set}" = set; then :
5802 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5803 else
5804 ENABLE_ISL_CHECK=yes
5808 # Initialize isllibs and islinc.
5809 case $with_isl in
5811 isllibs=
5812 islinc=
5814 "" | yes)
5817 isllibs="-L$with_isl/lib"
5818 islinc="-I$with_isl/include"
5820 esac
5821 if test "x${with_isl_include}" != x ; then
5822 islinc="-I$with_isl_include"
5824 if test "x${with_isl_lib}" != x; then
5825 isllibs="-L$with_isl_lib"
5827 if test "x${islinc}" = x && test "x${isllibs}" = x \
5828 && test -d ${srcdir}/isl; then
5829 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5830 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5831 ENABLE_ISL_CHECK=no
5836 if test "${ENABLE_ISL_CHECK}" = yes ; then
5837 _isl_saved_CFLAGS=$CFLAGS
5838 _isl_saved_LDFLAGS=$LDFLAGS
5839 _isl_saved_LIBS=$LIBS
5841 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5842 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5843 LIBS="${_isl_saved_LIBS} -lisl"
5844 echo $CFLAGS
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5847 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5848 if test "${gcc_cv_isl+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test "$cross_compiling" = yes; then :
5852 gcc_cv_isl=yes
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <isl/version.h>
5857 #include <string.h>
5859 main ()
5861 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5862 return 1;
5865 return 0;
5867 _ACEOF
5868 if ac_fn_c_try_run "$LINENO"; then :
5869 gcc_cv_isl=yes
5870 else
5871 gcc_cv_isl=no
5873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5874 conftest.$ac_objext conftest.beam conftest.$ac_ext
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5879 $as_echo "$gcc_cv_isl" >&6; }
5881 CFLAGS=$_isl_saved_CFLAGS
5882 LDFLAGS=$_isl_saved_LDFLAGS
5883 LIBS=$_isl_saved_LIBS
5891 if test "x${with_isl}" = xno; then
5892 graphite_requested=no
5893 elif test "x${with_isl}" != x \
5894 || test "x${with_isl_include}" != x \
5895 || test "x${with_isl_lib}" != x ; then
5896 graphite_requested=yes
5897 else
5898 graphite_requested=no
5903 if test "${gcc_cv_isl}" = no ; then
5904 isllibs=
5905 islinc=
5908 if test "${graphite_requested}" = yes \
5909 && test "x${isllibs}" = x \
5910 && test "x${islinc}" = x ; then
5912 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5917 if test "x$gcc_cv_isl" != "xno"; then
5918 # Check for CLOOG
5921 # Check whether --with-cloog-include was given.
5922 if test "${with_cloog_include+set}" = set; then :
5923 withval=$with_cloog_include;
5927 # Check whether --with-cloog-lib was given.
5928 if test "${with_cloog_lib+set}" = set; then :
5929 withval=$with_cloog_lib;
5933 # Check whether --enable-cloog-version-check was given.
5934 if test "${enable_cloog_version_check+set}" = set; then :
5935 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5936 else
5937 ENABLE_CLOOG_CHECK=yes
5941 # Initialize clooglibs and clooginc.
5942 case $with_cloog in
5944 clooglibs=
5945 clooginc=
5947 "" | yes)
5950 clooglibs="-L$with_cloog/lib"
5951 clooginc="-I$with_cloog/include"
5953 esac
5954 if test "x${with_cloog_include}" != x ; then
5955 clooginc="-I$with_cloog_include"
5957 if test "x${with_cloog_lib}" != x; then
5958 clooglibs="-L$with_cloog_lib"
5960 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5961 && test -d ${srcdir}/cloog; then
5962 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5963 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5966 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5967 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
5973 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5974 _cloog_saved_CFLAGS=$CFLAGS
5975 _cloog_saved_LDFLAGS=$LDFLAGS
5977 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5978 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5981 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5982 if test "${gcc_cv_cloog+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include "cloog/version.h"
5989 main ()
5991 #if CLOOG_VERSION_MAJOR != 0 \
5992 || CLOOG_VERSION_MINOR != 17 \
5993 || CLOOG_VERSION_REVISION < 0
5994 choke me
5995 #endif
5997 return 0;
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 gcc_cv_cloog=yes
6002 else
6003 gcc_cv_cloog=no
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6008 $as_echo "$gcc_cv_cloog" >&6; }
6010 CFLAGS=$_cloog_saved_CFLAGS
6011 LDFLAGS=$_cloog_saved_LDFLAGS
6020 if test "x${with_cloog}" = xno; then
6021 graphite_requested=no
6022 elif test "x${with_cloog}" != x \
6023 || test "x${with_cloog_include}" != x \
6024 || test "x${with_cloog_lib}" != x ; then
6025 graphite_requested=yes
6026 else
6027 graphite_requested=no
6032 if test "${gcc_cv_cloog}" = no ; then
6033 clooglibs=
6034 clooginc=
6037 if test "${graphite_requested}" = yes \
6038 && test "x${clooglibs}" = x \
6039 && test "x${clooginc}" = x ; then
6041 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6048 # If either the ISL or the CLooG check failed, disable builds of in-tree
6049 # variants of both
6050 if test "x$with_isl" = xno ||
6051 test "x$with_cloog" = xno ||
6052 test "x$gcc_cv_cloog" = xno ||
6053 test "x$gcc_cv_isl" = xno; then
6054 noconfigdirs="$noconfigdirs cloog isl"
6055 islinc=
6056 clooginc=
6057 clooglibs=
6065 # Check for LTO support.
6066 # Check whether --enable-lto was given.
6067 if test "${enable_lto+set}" = set; then :
6068 enableval=$enable_lto; enable_lto=$enableval
6069 else
6070 enable_lto=yes; default_enable_lto=yes
6077 target_elf=no
6078 case $target in
6079 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6080 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6081 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6082 target_elf=no
6085 target_elf=yes
6087 esac
6089 if test $target_elf = yes; then :
6090 # ELF platforms build the lto-plugin always.
6091 build_lto_plugin=yes
6093 else
6094 if test x"$default_enable_lto" = x"yes" ; then
6095 case $target in
6096 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6097 # On other non-ELF platforms, LTO has yet to be validated.
6098 *) enable_lto=no ;;
6099 esac
6100 else
6101 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6102 # It would also be nice to check the binutils support, but we don't
6103 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6104 # warn during gcc/ subconfigure; unless you're bootstrapping with
6105 # -flto it won't be needed until after installation anyway.
6106 case $target in
6107 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6108 *) if test x"$enable_lto" = x"yes"; then
6109 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6112 esac
6114 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6115 # Build it unless LTO was explicitly disabled.
6116 case $target in
6117 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6118 *) ;;
6119 esac
6125 # By default, C and C++ are the only stage 1 languages.
6126 stage1_languages=,c,
6128 # Target libraries that we bootstrap.
6129 bootstrap_target_libs=,target-libgcc,
6131 # Figure out what language subdirectories are present.
6132 # Look if the user specified --enable-languages="..."; if not, use
6133 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6134 # go away some day.
6135 # NB: embedded tabs in this IF block -- do not untabify
6136 if test -d ${srcdir}/gcc; then
6137 if test x"${enable_languages+set}" != xset; then
6138 if test x"${LANGUAGES+set}" = xset; then
6139 enable_languages="${LANGUAGES}"
6140 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6141 else
6142 enable_languages=all
6144 else
6145 if test x"${enable_languages}" = x ||
6146 test x"${enable_languages}" = xyes;
6147 then
6148 echo configure.in: --enable-languages needs at least one language argument 1>&2
6149 exit 1
6152 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6154 # 'f95' is the old name for the 'fortran' language. We issue a warning
6155 # and make the substitution.
6156 case ,${enable_languages}, in
6157 *,f95,*)
6158 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6159 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6161 esac
6163 # If bootstrapping, C++ must be enabled.
6164 case ",$enable_languages,:$enable_bootstrap" in
6165 *,c++,*:*) ;;
6166 *:yes)
6167 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6168 enable_languages="${enable_languages},c++"
6169 else
6170 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6173 esac
6175 # First scan to see if an enabled language requires some other language.
6176 # We assume that a given config-lang.in will list all the language
6177 # front ends it requires, even if some are required indirectly.
6178 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6179 case ${lang_frag} in
6180 ..) ;;
6181 # The odd quoting in the next line works around
6182 # an apparent bug in bash 1.12 on linux.
6183 ${srcdir}/gcc/[*]/config-lang.in) ;;
6185 # From the config-lang.in, get $language, $lang_requires, and
6186 # $lang_requires_boot_languages.
6187 language=
6188 lang_requires=
6189 lang_requires_boot_languages=
6190 . ${lang_frag}
6191 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6192 case ,${enable_languages}, in
6193 *,$other,*) ;;
6194 *,all,*) ;;
6195 *,$language,*)
6196 echo " \`$other' language required by \`$language'; enabling" 1>&2
6197 enable_languages="${enable_languages},${other}"
6199 esac
6200 done
6201 for other in ${lang_requires_boot_languages} ; do
6202 if test "$other" != "c"; then
6203 case ,${enable_stage1_languages}, in
6204 *,$other,*) ;;
6205 *,all,*) ;;
6207 case ,${enable_languages}, in
6208 *,$language,*)
6209 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6210 enable_stage1_languages="$enable_stage1_languages,${other}"
6212 esac
6214 esac
6216 done
6218 esac
6219 done
6221 new_enable_languages=,c,
6223 # If LTO is enabled, add the LTO front end.
6224 extra_host_libiberty_configure_flags=
6225 if test "$enable_lto" = "yes" ; then
6226 case ,${enable_languages}, in
6227 *,lto,*) ;;
6228 *) enable_languages="${enable_languages},lto" ;;
6229 esac
6230 if test "${build_lto_plugin}" = "yes" ; then
6231 configdirs="$configdirs lto-plugin"
6232 extra_host_libiberty_configure_flags=--enable-shared
6237 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6238 potential_languages=,c,
6240 enabled_target_libs=
6241 disabled_target_libs=
6243 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6244 case ${lang_frag} in
6245 ..) ;;
6246 # The odd quoting in the next line works around
6247 # an apparent bug in bash 1.12 on linux.
6248 ${srcdir}/gcc/[*]/config-lang.in) ;;
6250 # From the config-lang.in, get $language, $target_libs,
6251 # $lang_dirs, $boot_language, and $build_by_default
6252 language=
6253 target_libs=
6254 lang_dirs=
6255 subdir_requires=
6256 boot_language=no
6257 build_by_default=yes
6258 . ${lang_frag}
6259 if test x${language} = x; then
6260 echo "${lang_frag} doesn't set \$language." 1>&2
6261 exit 1
6264 if test "$language" = "c++"; then
6265 boot_language=yes
6268 add_this_lang=no
6269 case ,${enable_languages}, in
6270 *,${language},*)
6271 # Language was explicitly selected; include it
6272 # unless it is C, which is enabled by default.
6273 if test "$language" != "c"; then
6274 add_this_lang=yes
6277 *,all,*)
6278 # 'all' was selected, select it if it is a default language
6279 if test "$language" != "c"; then
6280 add_this_lang=${build_by_default}
6283 esac
6285 # Disable languages that need other directories if these aren't available.
6286 for i in $subdir_requires; do
6287 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6288 case ,${enable_languages}, in
6289 *,${language},*)
6290 # Specifically requested language; tell them.
6291 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6294 # Silently disable.
6295 add_this_lang=unsupported
6297 esac
6298 done
6300 # Disable Ada if no preexisting GNAT is available.
6301 case ,${enable_languages},:${language}:${have_gnat} in
6302 *,${language},*:ada:no)
6303 # Specifically requested language; tell them.
6304 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6306 *:ada:no)
6307 # Silently disable.
6308 add_this_lang=unsupported
6310 esac
6312 # Disable a language that is unsupported by the target.
6313 case " $unsupported_languages " in
6314 *" $language "*)
6315 add_this_lang=unsupported
6317 esac
6319 case $add_this_lang in
6320 unsupported)
6321 # Remove language-dependent dirs.
6322 disabled_target_libs="$disabled_target_libs $target_libs"
6323 noconfigdirs="$noconfigdirs $lang_dirs"
6326 # Remove language-dependent dirs; still show language as supported.
6327 disabled_target_libs="$disabled_target_libs $target_libs"
6328 noconfigdirs="$noconfigdirs $lang_dirs"
6329 potential_languages="${potential_languages}${language},"
6331 yes)
6332 new_enable_languages="${new_enable_languages}${language},"
6333 potential_languages="${potential_languages}${language},"
6334 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6335 enabled_target_libs="$enabled_target_libs $target_libs"
6336 case "${boot_language}:,$enable_stage1_languages," in
6337 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6338 # Add to (comma-separated) list of stage 1 languages.
6339 case ",$stage1_languages," in
6340 *,$language,* | ,yes, | ,all,) ;;
6341 *) stage1_languages="${stage1_languages}${language}," ;;
6342 esac
6343 # We need to bootstrap any supporting libraries.
6344 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6346 esac
6348 esac
6350 esac
6351 done
6353 # Add target libraries which are only needed for disabled languages
6354 # to noconfigdirs.
6355 if test -n "$disabled_target_libs"; then
6356 for dir in $disabled_target_libs; do
6357 case " $enabled_target_libs " in
6358 *" ${dir} "*) ;;
6359 *) noconfigdirs="$noconfigdirs $dir" ;;
6360 esac
6361 done
6364 # Check whether --enable-stage1-languages was given.
6365 if test "${enable_stage1_languages+set}" = set; then :
6366 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6367 ,no,|,,)
6368 # Set it to something that will have no effect in the loop below
6369 enable_stage1_languages=c ;;
6370 ,yes,)
6371 enable_stage1_languages=`echo $new_enable_languages | \
6372 sed -e "s/^,//" -e "s/,$//" ` ;;
6373 *,all,*)
6374 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6375 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6376 esac
6378 # Add "good" languages from enable_stage1_languages to stage1_languages,
6379 # while "bad" languages go in missing_languages. Leave no duplicates.
6380 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6381 case $potential_languages in
6382 *,$i,*)
6383 case $stage1_languages in
6384 *,$i,*) ;;
6385 *) stage1_languages="$stage1_languages$i," ;;
6386 esac ;;
6388 case $missing_languages in
6389 *,$i,*) ;;
6390 *) missing_languages="$missing_languages$i," ;;
6391 esac ;;
6392 esac
6393 done
6397 # Remove leading/trailing commas that were added for simplicity
6398 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6399 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6400 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6401 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6403 if test "x$missing_languages" != x; then
6404 as_fn_error "
6405 The following requested languages could not be built: ${missing_languages}
6406 Supported languages are: ${potential_languages}" "$LINENO" 5
6408 if test "x$new_enable_languages" != "x$enable_languages"; then
6409 echo The following languages will be built: ${new_enable_languages}
6410 enable_languages="$new_enable_languages"
6414 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6417 # Handle --disable-<component> generically.
6418 for dir in $configdirs $build_configdirs $target_configdirs ; do
6419 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6420 varname=`echo $dirname | sed -e s/+/_/g`
6421 if eval test x\${enable_${varname}} "=" xno ; then
6422 noconfigdirs="$noconfigdirs $dir"
6424 done
6426 # Check for Boehm's garbage collector
6427 # Check whether --enable-objc-gc was given.
6428 if test "${enable_objc_gc+set}" = set; then :
6429 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6430 *,objc,*:*:yes:*target-boehm-gc*)
6431 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6433 esac
6437 # Make sure we only build Boehm's garbage collector if required.
6438 case ,${enable_languages},:${enable_objc_gc} in
6439 *,objc,*:yes)
6440 # Keep target-boehm-gc if requested for Objective-C.
6443 # Otherwise remove target-boehm-gc depending on target-libjava.
6444 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6445 noconfigdirs="$noconfigdirs target-boehm-gc"
6448 esac
6451 # Check whether --with-upc-pts was given.
6452 if test "${with_upc_pts+set}" = set; then :
6453 withval=$with_upc_pts;
6454 case ,${enable_languages}, in
6455 *,upc,)
6456 case "$withval" in
6457 struct|packed)
6458 true
6461 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6463 esac
6466 as_fn_error "--with-upc-pts supplied, but UPC language not enabled" "$LINENO" 5
6468 esac
6473 # Disable libitm if we're not building C++
6474 case ,${enable_languages}, in
6475 *,c++,*) ;;
6477 noconfigdirs="$noconfigdirs target-libitm"
6479 esac
6481 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6482 # $build_configdirs and $target_configdirs.
6483 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6485 notsupp=""
6486 for dir in . $skipdirs $noconfigdirs ; do
6487 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6488 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6489 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6490 if test -r $srcdir/$dirname/configure ; then
6491 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 true
6493 else
6494 notsupp="$notsupp $dir"
6498 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6500 if test -r $srcdir/$dirname/configure ; then
6501 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502 true
6503 else
6504 notsupp="$notsupp $dir"
6508 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6510 if test -r $srcdir/$dirname/configure ; then
6511 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6512 true
6513 else
6514 notsupp="$notsupp $dir"
6518 done
6520 # Quietly strip out all directories which aren't configurable in this tree.
6521 # This relies on all configurable subdirectories being autoconfiscated, which
6522 # is now the case.
6523 build_configdirs_all="$build_configdirs"
6524 build_configdirs=
6525 for i in ${build_configdirs_all} ; do
6526 j=`echo $i | sed -e s/build-//g`
6527 if test -f ${srcdir}/$j/configure ; then
6528 build_configdirs="${build_configdirs} $i"
6530 done
6532 configdirs_all="$configdirs"
6533 configdirs=
6534 for i in ${configdirs_all} ; do
6535 if test -f ${srcdir}/$i/configure ; then
6536 configdirs="${configdirs} $i"
6538 done
6540 target_configdirs_all="$target_configdirs"
6541 target_configdirs=
6542 for i in ${target_configdirs_all} ; do
6543 j=`echo $i | sed -e s/target-//g`
6544 if test -f ${srcdir}/$j/configure ; then
6545 target_configdirs="${target_configdirs} $i"
6547 done
6549 # Produce a warning message for the subdirs we can't configure.
6550 # This isn't especially interesting in the Cygnus tree, but in the individual
6551 # FSF releases, it's important to let people know when their machine isn't
6552 # supported by the one or two programs in a package.
6554 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6555 # If $appdirs is non-empty, at least one of those directories must still
6556 # be configured, or we error out. (E.g., if the gas release supports a
6557 # specified target in some subdirs but not the gas subdir, we shouldn't
6558 # pretend that all is well.)
6559 if test -n "$appdirs" ; then
6560 for dir in $appdirs ; do
6561 if test -r $dir/Makefile.in ; then
6562 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6563 appdirs=""
6564 break
6566 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6567 appdirs=""
6568 break
6571 done
6572 if test -n "$appdirs" ; then
6573 echo "*** This configuration is not supported by this package." 1>&2
6574 exit 1
6577 # Okay, some application will build, or we don't care to check. Still
6578 # notify of subdirs not getting built.
6579 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6580 echo " ${notsupp}" 1>&2
6581 echo " (Any other directories should still work fine.)" 1>&2
6584 case "$host" in
6585 *msdosdjgpp*)
6586 enable_gdbtk=no ;;
6587 esac
6589 # To find our prefix, in gcc_cv_tool_prefix.
6591 # The user is always right.
6592 if test "${PATH_SEPARATOR+set}" != set; then
6593 echo "#! /bin/sh" >conf$$.sh
6594 echo "exit 0" >>conf$$.sh
6595 chmod +x conf$$.sh
6596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6597 PATH_SEPARATOR=';'
6598 else
6599 PATH_SEPARATOR=:
6601 rm -f conf$$.sh
6606 if test "x$exec_prefix" = xNONE; then
6607 if test "x$prefix" = xNONE; then
6608 gcc_cv_tool_prefix=$ac_default_prefix
6609 else
6610 gcc_cv_tool_prefix=$prefix
6612 else
6613 gcc_cv_tool_prefix=$exec_prefix
6616 # If there is no compiler in the tree, use the PATH only. In any
6617 # case, if there is no compiler in the tree nobody should use
6618 # AS_FOR_TARGET and LD_FOR_TARGET.
6619 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6620 gcc_version=`cat $srcdir/gcc/BASE-VER`
6621 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6622 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6627 else
6628 gcc_cv_tool_dirs=
6631 if test x$build = x$target && test -n "$md_exec_prefix"; then
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6637 copy_dirs=
6640 # Check whether --with-build-sysroot was given.
6641 if test "${with_build_sysroot+set}" = set; then :
6642 withval=$with_build_sysroot; if test x"$withval" != x ; then
6643 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6645 else
6646 SYSROOT_CFLAGS_FOR_TARGET=
6652 # Check whether --with-debug-prefix-map was given.
6653 if test "${with_debug_prefix_map+set}" = set; then :
6654 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6655 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6656 for debug_map in $withval; do
6657 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6658 done
6660 else
6661 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6666 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6667 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6668 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6669 # We want to ensure that TARGET libraries (which we know are built with
6670 # gcc) are built with "-O2 -g", so include those options when setting
6671 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6672 if test "x$CFLAGS_FOR_TARGET" = x; then
6673 CFLAGS_FOR_TARGET=$CFLAGS
6674 case " $CFLAGS " in
6675 *" -O2 "*) ;;
6676 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6677 esac
6678 case " $CFLAGS " in
6679 *" -g "* | *" -g3 "*) ;;
6680 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6681 esac
6685 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6686 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6687 case " $CXXFLAGS " in
6688 *" -O2 "*) ;;
6689 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6690 esac
6691 case " $CXXFLAGS " in
6692 *" -g "* | *" -g3 "*) ;;
6693 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6694 esac
6700 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6701 # the named directory are copied to $(tooldir)/sys-include.
6702 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6703 if test x${is_cross_compiler} = xno ; then
6704 echo 1>&2 '***' --with-headers is only supported when cross compiling
6705 exit 1
6707 if test x"${with_headers}" != xyes ; then
6708 x=${gcc_cv_tool_prefix}
6709 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6713 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6714 # the name directories are copied to $(tooldir)/lib. Multiple directories
6715 # are permitted.
6716 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6717 if test x${is_cross_compiler} = xno ; then
6718 echo 1>&2 '***' --with-libs is only supported when cross compiling
6719 exit 1
6721 if test x"${with_libs}" != xyes ; then
6722 # Copy the libraries in reverse order, so that files in the first named
6723 # library override files in subsequent libraries.
6724 x=${gcc_cv_tool_prefix}
6725 for l in ${with_libs}; do
6726 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6727 done
6731 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6733 # This is done by determining whether or not the appropriate directory
6734 # is available, and by checking whether or not specific configurations
6735 # have requested that this magic not happen.
6737 # The command line options always override the explicit settings in
6738 # configure.in, and the settings in configure.in override this magic.
6740 # If the default for a toolchain is to use GNU as and ld, and you don't
6741 # want to do that, then you should use the --without-gnu-as and
6742 # --without-gnu-ld options for the configure script. Similarly, if
6743 # the default is to use the included zlib and you don't want to do that,
6744 # you should use the --with-system-zlib option for the configure script.
6746 if test x${use_gnu_as} = x &&
6747 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6748 with_gnu_as=yes
6749 extra_host_args="$extra_host_args --with-gnu-as"
6752 if test x${use_gnu_ld} = x &&
6753 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6754 with_gnu_ld=yes
6755 extra_host_args="$extra_host_args --with-gnu-ld"
6758 if test x${use_included_zlib} = x &&
6759 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6761 else
6762 with_system_zlib=yes
6763 extra_host_args="$extra_host_args --with-system-zlib"
6766 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6767 # can detect this case.
6769 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6770 with_newlib=yes
6771 extra_host_args="$extra_host_args --with-newlib"
6774 # Handle ${copy_dirs}
6775 set fnord ${copy_dirs}
6776 shift
6777 while test $# != 0 ; do
6778 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6780 else
6781 echo Copying $1 to $2
6783 # Use the install script to create the directory and all required
6784 # parent directories.
6785 if test -d $2 ; then
6787 else
6788 echo >config.temp
6789 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6792 # Copy the directory, assuming we have tar.
6793 # FIXME: Should we use B in the second tar? Not all systems support it.
6794 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6796 # It is the responsibility of the user to correctly adjust all
6797 # symlinks. If somebody can figure out how to handle them correctly
6798 # here, feel free to add the code.
6800 echo $1 > $2/COPIED
6802 shift; shift
6803 done
6805 # Determine a target-dependent exec_prefix that the installed
6806 # gcc will search in. Keep this list sorted by triplet, with
6807 # the *-*-osname triplets last.
6808 md_exec_prefix=
6809 case "${target}" in
6810 i[34567]86-pc-msdosdjgpp*)
6811 md_exec_prefix=/dev/env/DJDIR/bin
6813 *-*-hpux* | \
6814 *-*-nto-qnx* | \
6815 *-*-solaris2*)
6816 md_exec_prefix=/usr/ccs/bin
6818 esac
6820 extra_arflags_for_target=
6821 extra_nmflags_for_target=
6822 extra_ranlibflags_for_target=
6823 target_makefile_frag=/dev/null
6824 case "${target}" in
6825 spu-*-*)
6826 target_makefile_frag="config/mt-spu"
6828 mips*-sde-elf* | mips*-mti-elf*)
6829 target_makefile_frag="config/mt-sde"
6831 mipsisa*-*-elfoabi*)
6832 target_makefile_frag="config/mt-mips-elfoabi"
6834 mips*-*-*linux* | mips*-*-gnu*)
6835 target_makefile_frag="config/mt-mips-gnu"
6837 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6838 target_makefile_frag="config/mt-gnu"
6840 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6841 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6842 # commands to handle both 32-bit and 64-bit objects. These flags are
6843 # harmless if we're using GNU nm or ar.
6844 extra_arflags_for_target=" -X32_64"
6845 extra_nmflags_for_target=" -B -X32_64"
6847 esac
6849 alphaieee_frag=/dev/null
6850 case $target in
6851 alpha*-*-*)
6852 # This just makes sure to use the -mieee option to build target libs.
6853 # This should probably be set individually by each library.
6854 alphaieee_frag="config/mt-alphaieee"
6856 esac
6858 # If --enable-target-optspace always use -Os instead of -O2 to build
6859 # the target libraries, similarly if it is not specified, use -Os
6860 # on selected platforms.
6861 ospace_frag=/dev/null
6862 case "${enable_target_optspace}:${target}" in
6863 yes:*)
6864 ospace_frag="config/mt-ospace"
6866 :d30v-*)
6867 ospace_frag="config/mt-d30v"
6869 :m32r-* | :d10v-* | :fr30-*)
6870 ospace_frag="config/mt-ospace"
6872 no:* | :*)
6875 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6877 esac
6879 # Some systems (e.g., one of the i386-aix systems the gas testers are
6880 # using) don't handle "\$" correctly, so don't use it here.
6881 tooldir='${exec_prefix}'/${target_noncanonical}
6882 build_tooldir=${tooldir}
6884 # Create a .gdbinit file which runs the one in srcdir
6885 # and tells GDB to look there for source files.
6887 if test -r ${srcdir}/.gdbinit ; then
6888 case ${srcdir} in
6889 .) ;;
6890 *) cat > ./.gdbinit <<EOF
6891 # ${NO_EDIT}
6892 dir ${srcdir}
6893 dir .
6894 source ${srcdir}/.gdbinit
6897 esac
6900 # Make sure that the compiler is able to generate an executable. If it
6901 # can't, we are probably in trouble. We don't care whether we can run the
6902 # executable--we might be using a cross compiler--we only care whether it
6903 # can be created. At this point the main configure script has set CC.
6904 we_are_ok=no
6905 echo "int main () { return 0; }" > conftest.c
6906 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6907 if test $? = 0 ; then
6908 if test -s conftest || test -s conftest.exe ; then
6909 we_are_ok=yes
6912 case $we_are_ok in
6914 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6915 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6916 rm -f conftest*
6917 exit 1
6919 esac
6920 rm -f conftest*
6922 # Decide which environment variable is used to find dynamic libraries.
6923 case "${host}" in
6924 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6925 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6926 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6927 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6928 esac
6930 # On systems where the dynamic library environment variable is PATH,
6931 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6932 # built executables to PATH.
6933 if test "$RPATH_ENVVAR" = PATH; then
6934 GCC_SHLIB_SUBDIR=/shlib
6935 else
6936 GCC_SHLIB_SUBDIR=
6939 # Record target_configdirs and the configure arguments for target and
6940 # build configuration in Makefile.
6941 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6942 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6944 # If we are building libgomp, bootstrap it.
6945 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6946 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6949 # Determine whether gdb needs tk/tcl or not.
6950 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6951 # and in that case we want gdb to be built without tk. Ugh!
6952 # In fact I believe gdb is the *only* package directly dependent on tk,
6953 # so we should be able to put the 'maybe's in unconditionally and
6954 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6955 # 100% sure that that's safe though.
6957 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6958 case "$enable_gdbtk" in
6960 GDB_TK="" ;;
6961 yes)
6962 GDB_TK="${gdb_tk}" ;;
6964 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6965 # distro. Eventually someone will fix this and move Insight, nee
6966 # gdbtk to a separate directory.
6967 if test -d ${srcdir}/gdb/gdbtk ; then
6968 GDB_TK="${gdb_tk}"
6969 else
6970 GDB_TK=""
6973 esac
6974 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6975 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6977 # Strip out unwanted targets.
6979 # While at that, we remove Makefiles if we were started for recursive
6980 # configuration, so that the top-level Makefile reconfigures them,
6981 # like we used to do when configure itself was recursive.
6983 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6984 # but now we're fixing up the Makefile ourselves with the additional
6985 # commands passed to AC_CONFIG_FILES. Use separate variables
6986 # extrasub-{build,host,target} not because there is any reason to split
6987 # the substitutions up that way, but only to remain below the limit of
6988 # 99 commands in a script, for HP-UX sed.
6989 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6991 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6992 yes:yes:*\ gold\ *:*,c++,*) ;;
6993 yes:yes:*\ gold\ *:*)
6994 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6996 esac
6998 # Adjust the toplevel makefile according to whether bootstrap was selected.
6999 case $enable_bootstrap in
7000 yes)
7001 bootstrap_suffix=bootstrap
7002 BUILD_CONFIG=bootstrap-debug
7005 bootstrap_suffix=no-bootstrap
7006 BUILD_CONFIG=
7008 esac
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7011 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7014 # Check whether --with-build-config was given.
7015 if test "${with_build_config+set}" = set; then :
7016 withval=$with_build_config; case $with_build_config in
7017 yes) with_build_config= ;;
7018 no) with_build_config= BUILD_CONFIG= ;;
7019 esac
7023 if test "x${with_build_config}" != x; then
7024 BUILD_CONFIG=$with_build_config
7025 else
7026 case $BUILD_CONFIG in
7027 bootstrap-debug)
7028 if echo "int f (void) { return 0; }" > conftest.c &&
7029 ${CC} -c conftest.c &&
7030 mv conftest.o conftest.o.g0 &&
7031 ${CC} -c -g conftest.c &&
7032 mv conftest.o conftest.o.g &&
7033 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7035 else
7036 BUILD_CONFIG=
7038 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7040 esac
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7043 $as_echo "$BUILD_CONFIG" >&6; }
7046 extrasub_build=
7047 for module in ${build_configdirs} ; do
7048 if test -z "${no_recursion}" \
7049 && test -f ${build_subdir}/${module}/Makefile; then
7050 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7051 rm -f ${build_subdir}/${module}/Makefile
7053 extrasub_build="$extrasub_build
7054 /^@if build-$module\$/d
7055 /^@endif build-$module\$/d
7056 /^@if build-$module-$bootstrap_suffix\$/d
7057 /^@endif build-$module-$bootstrap_suffix\$/d"
7058 done
7059 extrasub_host=
7060 for module in ${configdirs} ; do
7061 if test -z "${no_recursion}"; then
7062 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7063 if test -f ${file}; then
7064 echo 1>&2 "*** removing ${file} to force reconfigure"
7065 rm -f ${file}
7067 done
7069 extrasub_host="$extrasub_host
7070 /^@if $module\$/d
7071 /^@endif $module\$/d
7072 /^@if $module-$bootstrap_suffix\$/d
7073 /^@endif $module-$bootstrap_suffix\$/d"
7074 done
7075 extrasub_target=
7076 for module in ${target_configdirs} ; do
7077 if test -z "${no_recursion}" \
7078 && test -f ${target_subdir}/${module}/Makefile; then
7079 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7080 rm -f ${target_subdir}/${module}/Makefile
7083 # We only bootstrap target libraries listed in bootstrap_target_libs.
7084 case $bootstrap_target_libs in
7085 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7086 *) target_bootstrap_suffix=no-bootstrap ;;
7087 esac
7089 extrasub_target="$extrasub_target
7090 /^@if target-$module\$/d
7091 /^@endif target-$module\$/d
7092 /^@if target-$module-$target_bootstrap_suffix\$/d
7093 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7094 done
7096 # Do the final fixup along with target modules.
7097 extrasub_target="$extrasub_target
7098 /^@if /,/^@endif /d"
7100 # Create the serialization dependencies. This uses a temporary file.
7102 # Check whether --enable-serial-configure was given.
7103 if test "${enable_serial_configure+set}" = set; then :
7104 enableval=$enable_serial_configure;
7108 case ${enable_serial_configure} in
7109 yes)
7110 enable_serial_build_configure=yes
7111 enable_serial_host_configure=yes
7112 enable_serial_target_configure=yes
7114 esac
7116 # These force 'configure's to be done one at a time, to avoid problems
7117 # with contention over a shared config.cache.
7118 rm -f serdep.tmp
7119 echo '# serdep.tmp' > serdep.tmp
7120 olditem=
7121 test "x${enable_serial_build_configure}" = xyes &&
7122 for item in ${build_configdirs} ; do
7123 case ${olditem} in
7124 "") ;;
7125 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7126 esac
7127 olditem=${item}
7128 done
7129 olditem=
7130 test "x${enable_serial_host_configure}" = xyes &&
7131 for item in ${configdirs} ; do
7132 case ${olditem} in
7133 "") ;;
7134 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7135 esac
7136 olditem=${item}
7137 done
7138 olditem=
7139 test "x${enable_serial_target_configure}" = xyes &&
7140 for item in ${target_configdirs} ; do
7141 case ${olditem} in
7142 "") ;;
7143 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7144 esac
7145 olditem=${item}
7146 done
7147 serialization_dependencies=serdep.tmp
7150 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7151 # target, nonopt, and variable assignments. These are the ones we
7152 # might not want to pass down to subconfigures. The exception being
7153 # --cache-file=/dev/null, which is used to turn off the use of cache
7154 # files altogether, and which should be passed on to subconfigures.
7155 # Also strip program-prefix, program-suffix, and program-transform-name,
7156 # so that we can pass down a consistent program-transform-name.
7157 baseargs=
7158 tbaseargs=
7159 keep_next=no
7160 skip_next=no
7161 eval "set -- $ac_configure_args"
7162 for ac_arg
7164 if test X"$skip_next" = X"yes"; then
7165 skip_next=no
7166 continue
7168 if test X"$keep_next" = X"yes"; then
7169 case $ac_arg in
7170 *\'*)
7171 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7172 esac
7173 baseargs="$baseargs '$ac_arg'"
7174 tbaseargs="$tbaseargs '$ac_arg'"
7175 keep_next=no
7176 continue
7179 # Handle separated arguments. Based on the logic generated by
7180 # autoconf 2.59.
7181 case $ac_arg in
7182 *=* | --config-cache | -C | -disable-* | --disable-* \
7183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7185 | -with-* | --with-* | -without-* | --without-* | --x)
7186 separate_arg=no
7189 separate_arg=yes
7192 separate_arg=no
7194 esac
7196 skip_targ=no
7197 case $ac_arg in
7199 --with-* | --without-*)
7200 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7202 case $libopt in
7203 *[-_]include)
7204 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7206 *[-_]lib)
7207 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7210 lib=$libopt
7212 esac
7215 case $lib in
7216 mpc | mpfr | gmp | cloog)
7217 # If we're processing --with-$lib, --with-$lib-include or
7218 # --with-$lib-lib, for one of the libs above, and target is
7219 # different from host, don't pass the current argument to any
7220 # target library's configure.
7221 if test x$is_cross_compiler = xyes; then
7222 skip_targ=yes
7225 esac
7227 esac
7229 case "$ac_arg" in
7230 --cache-file=/dev/null | \
7231 -cache-file=/dev/null )
7232 # Handled here to avoid the test to skip args below.
7233 baseargs="$baseargs '$ac_arg'"
7234 tbaseargs="$tbaseargs '$ac_arg'"
7235 # Assert: $separate_arg should always be no.
7236 keep_next=$separate_arg
7238 --no*)
7239 continue
7241 --c* | \
7242 --sr* | \
7243 --ho* | \
7244 --bu* | \
7245 --t* | \
7246 --program-* | \
7247 -cache_file* | \
7248 -srcdir* | \
7249 -host* | \
7250 -build* | \
7251 -target* | \
7252 -program-prefix* | \
7253 -program-suffix* | \
7254 -program-transform-name* )
7255 skip_next=$separate_arg
7256 continue
7259 # An option. Add it.
7260 case $ac_arg in
7261 *\'*)
7262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7263 esac
7264 baseargs="$baseargs '$ac_arg'"
7265 if test X"$skip_targ" = Xno; then
7266 tbaseargs="$tbaseargs '$ac_arg'"
7268 keep_next=$separate_arg
7271 # Either a variable assignment, or a nonopt (triplet). Don't
7272 # pass it down; let the Makefile handle this.
7273 continue
7275 esac
7276 done
7277 # Remove the initial space we just introduced and, as these will be
7278 # expanded by make, quote '$'.
7279 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7281 # Add in --program-transform-name, after --program-prefix and
7282 # --program-suffix have been applied to it. Autoconf has already
7283 # doubled dollar signs and backslashes in program_transform_name; we want
7284 # the backslashes un-doubled, and then the entire thing wrapped in single
7285 # quotes, because this will be expanded first by make and then by the shell.
7286 # Also, because we want to override the logic in subdir configure scripts to
7287 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7288 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7289 ${program_transform_name}
7290 EOF_SED
7291 gcc_transform_name=`cat conftestsed.out`
7292 rm -f conftestsed.out
7293 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7294 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7295 if test "$silent" = yes; then
7296 baseargs="$baseargs --silent"
7297 tbaseargs="$tbaseargs --silent"
7299 baseargs="$baseargs --disable-option-checking"
7300 tbaseargs="$tbaseargs --disable-option-checking"
7302 # Record and document user additions to sub configure arguments.
7307 # For the build-side libraries, we just need to pretend we're native,
7308 # and not use the same cache file. Multilibs are neither needed nor
7309 # desired.
7310 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7312 # For host modules, accept cache file option, or specification as blank.
7313 case "${cache_file}" in
7314 "") # empty
7315 cache_file_option="" ;;
7316 /* | [A-Za-z]:[\\/]* ) # absolute path
7317 cache_file_option="--cache-file=${cache_file}" ;;
7318 *) # relative path
7319 cache_file_option="--cache-file=../${cache_file}" ;;
7320 esac
7322 # Host dirs don't like to share a cache file either, horribly enough.
7323 # This seems to be due to autoconf 2.5x stupidity.
7324 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7326 target_configargs="$target_configargs ${tbaseargs}"
7328 # Passing a --with-cross-host argument lets the target libraries know
7329 # whether they are being built with a cross-compiler or being built
7330 # native. However, it would be better to use other mechanisms to make the
7331 # sorts of decisions they want to make on this basis. Please consider
7332 # this option to be deprecated. FIXME.
7333 if test x${is_cross_compiler} = xyes ; then
7334 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7337 # Default to --enable-multilib.
7338 if test x${enable_multilib} = x ; then
7339 target_configargs="--enable-multilib ${target_configargs}"
7342 # Pass --with-newlib if appropriate. Note that target_configdirs has
7343 # changed from the earlier setting of with_newlib.
7344 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7345 target_configargs="--with-newlib ${target_configargs}"
7348 # Different target subdirs use different values of certain variables
7349 # (notably CXX). Worse, multilibs use *lots* of different values.
7350 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7351 # it doesn't automatically accept command-line overrides of them.
7352 # This means it's not safe for target subdirs to share a cache file,
7353 # which is disgusting, but there you have it. Hopefully this can be
7354 # fixed in future. It's still worthwhile to use a cache file for each
7355 # directory. I think.
7357 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7358 # We need to pass --target, as newer autoconf's requires consistency
7359 # for target_alias and gcc doesn't manage it consistently.
7360 target_configargs="--cache-file=./config.cache ${target_configargs}"
7362 FLAGS_FOR_TARGET=
7363 case " $target_configdirs " in
7364 *" newlib "*)
7365 case " $target_configargs " in
7366 *" --with-newlib "*)
7367 case "$target" in
7368 *-cygwin*)
7369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7371 esac
7373 # If we're not building GCC, don't discard standard headers.
7374 if test -d ${srcdir}/gcc; then
7375 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7377 if test "${build}" != "${host}"; then
7378 # On Canadian crosses, CC_FOR_TARGET will have already been set
7379 # by `configure', so we won't have an opportunity to add -Bgcc/
7380 # to it. This is right: we don't want to search that directory
7381 # for binaries, but we want the header files in there, so add
7382 # them explicitly.
7383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7385 # Someone might think of using the pre-installed headers on
7386 # Canadian crosses, in case the installed compiler is not fully
7387 # compatible with the compiler being built. In this case, it
7388 # would be better to flag an error than risking having
7389 # incompatible object files being constructed. We can't
7390 # guarantee that an error will be flagged, but let's hope the
7391 # compiler will do it, when presented with incompatible header
7392 # files.
7396 case "${target}-${is_cross_compiler}" in
7397 i[3456789]86-*-linux*-no)
7398 # Here host == target, so we don't need to build gcc,
7399 # so we don't want to discard standard headers.
7400 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7403 # If we're building newlib, use its generic headers last, but search
7404 # for any libc-related directories first (so make it the last -B
7405 # switch).
7406 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7408 # If we're building libgloss, find the startup file, simulator library
7409 # and linker script.
7410 case " $target_configdirs " in
7411 *" libgloss "*)
7412 # Look for startup file, simulator library and maybe linker script.
7413 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7414 # Look for libnosys.a in case the target needs it.
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7416 # Most targets have the linker script in the source directory.
7417 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7419 esac
7421 esac
7423 esac
7425 esac
7427 case "$target" in
7428 x86_64-*mingw* | *-w64-mingw*)
7429 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7430 # however, use a symlink named 'mingw' in ${prefix} .
7431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7433 *-mingw*)
7434 # MinGW can't be handled as Cygwin above since it does not use newlib.
7435 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'
7437 esac
7439 # Allow the user to override the flags for
7440 # our build compiler if desired.
7441 if test x"${build}" = x"${host}" ; then
7442 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7443 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7444 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7447 # On Canadian crosses, we'll be searching the right directories for
7448 # the previously-installed cross compiler, so don't bother to add
7449 # flags for directories within the install tree of the compiler
7450 # being built; programs in there won't even run.
7451 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7452 # Search for pre-installed headers if nothing else fits.
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7456 if test "x${use_gnu_ld}" = x &&
7457 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7458 # Arrange for us to find uninstalled linker scripts.
7459 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7462 # Search for other target-specific linker scripts and such.
7463 case "${target}" in
7464 mep*)
7465 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7467 esac
7469 # UPC linker script check
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7471 $as_echo_n "checking for UPC link script support... " >&6; }
7472 # Check whether --enable-upc-link-script was given.
7473 if test "${enable_upc_link_script+set}" = set; then :
7474 enableval=$enable_upc_link_script;
7475 case $enableval in
7476 yes | no) ;;
7478 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7480 esac
7482 else
7484 if test x${use_gnu_ld} != xno ; then
7485 case "$target" in
7486 # disable linker script for Apple Mac OS X
7487 *-*-darwin*)
7488 enable_upc_link_script=no
7491 enable_upc_link_script=yes
7493 esac
7494 else
7495 enable_upc_link_script=no
7497 if test "$enable_upc_link_script" = yes; then
7498 target_configargs="${target_configargs} --enable-upc-link-script"
7499 host_configargs="${host_configargs} --enable-upc-link-script"
7504 if test "$enable_upc_link_script" = yes; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7506 $as_echo "yes" >&6; };
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; };
7513 # Makefile fragments.
7514 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7516 eval fragval=\$$frag
7517 if test $fragval != /dev/null; then
7518 eval $frag=${srcdir}/$fragval
7520 done
7526 # Miscellanea: directories, flags, etc.
7535 # Build module lists & subconfigure args.
7539 # Host module lists & subconfigure args.
7544 # Target module lists & subconfigure args.
7548 # Build tools.
7567 # Generate default definitions for YACC, M4, LEX and other programs that run
7568 # on the build machine. These are used if the Makefile can't locate these
7569 # programs in objdir.
7570 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7572 for ac_prog in 'bison -y' byacc yacc
7574 # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_YACC+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$YACC"; then
7582 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_YACC="$ac_prog"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7601 YACC=$ac_cv_prog_YACC
7602 if test -n "$YACC"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7604 $as_echo "$YACC" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7611 test -n "$YACC" && break
7612 done
7613 test -n "$YACC" || YACC="$MISSING bison -y"
7615 case " $build_configdirs " in
7616 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7617 esac
7619 for ac_prog in bison
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_BISON+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$BISON"; then
7629 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_BISON="$ac_prog"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 BISON=$ac_cv_prog_BISON
7649 if test -n "$BISON"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7651 $as_echo "$BISON" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7658 test -n "$BISON" && break
7659 done
7660 test -n "$BISON" || BISON="$MISSING bison"
7662 case " $build_configdirs " in
7663 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7664 esac
7666 for ac_prog in gm4 gnum4 m4
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_M4+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 if test -n "$M4"; then
7676 ac_cv_prog_M4="$M4" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_M4="$ac_prog"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7689 done
7690 done
7691 IFS=$as_save_IFS
7695 M4=$ac_cv_prog_M4
7696 if test -n "$M4"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7698 $as_echo "$M4" >&6; }
7699 else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7705 test -n "$M4" && break
7706 done
7707 test -n "$M4" || M4="$MISSING m4"
7709 case " $build_configdirs " in
7710 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7711 esac
7713 for ac_prog in flex lex
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_LEX+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$LEX"; then
7723 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_LEX="$ac_prog"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7736 done
7737 done
7738 IFS=$as_save_IFS
7742 LEX=$ac_cv_prog_LEX
7743 if test -n "$LEX"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7745 $as_echo "$LEX" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7752 test -n "$LEX" && break
7753 done
7754 test -n "$LEX" || LEX="$MISSING flex"
7756 case " $build_configdirs " in
7757 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7758 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7759 esac
7761 for ac_prog in flex
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_prog_FLEX+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$FLEX"; then
7771 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_prog_FLEX="$ac_prog"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7784 done
7785 done
7786 IFS=$as_save_IFS
7790 FLEX=$ac_cv_prog_FLEX
7791 if test -n "$FLEX"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7793 $as_echo "$FLEX" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7800 test -n "$FLEX" && break
7801 done
7802 test -n "$FLEX" || FLEX="$MISSING flex"
7804 case " $build_configdirs " in
7805 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7806 esac
7808 for ac_prog in makeinfo
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$MAKEINFO"; then
7818 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_MAKEINFO="$ac_prog"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7831 done
7832 done
7833 IFS=$as_save_IFS
7837 MAKEINFO=$ac_cv_prog_MAKEINFO
7838 if test -n "$MAKEINFO"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7840 $as_echo "$MAKEINFO" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7847 test -n "$MAKEINFO" && break
7848 done
7849 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7851 case " $build_configdirs " in
7852 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7855 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7856 # higher, else we use the "missing" dummy.
7857 if ${MAKEINFO} --version \
7858 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7860 else
7861 MAKEINFO="$MISSING makeinfo"
7865 esac
7867 # FIXME: expect and dejagnu may become build tools?
7869 for ac_prog in expect
7871 # Extract the first word of "$ac_prog", so it can be a program name with args.
7872 set dummy $ac_prog; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$EXPECT"; then
7879 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_EXPECT="$ac_prog"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7892 done
7893 done
7894 IFS=$as_save_IFS
7898 EXPECT=$ac_cv_prog_EXPECT
7899 if test -n "$EXPECT"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7901 $as_echo "$EXPECT" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7908 test -n "$EXPECT" && break
7909 done
7910 test -n "$EXPECT" || EXPECT="expect"
7912 case " $configdirs " in
7913 *" expect "*)
7914 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7916 esac
7918 for ac_prog in runtest
7920 # Extract the first word of "$ac_prog", so it can be a program name with args.
7921 set dummy $ac_prog; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 if test -n "$RUNTEST"; then
7928 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_prog_RUNTEST="$ac_prog"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7943 IFS=$as_save_IFS
7947 RUNTEST=$ac_cv_prog_RUNTEST
7948 if test -n "$RUNTEST"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7950 $as_echo "$RUNTEST" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7957 test -n "$RUNTEST" && break
7958 done
7959 test -n "$RUNTEST" || RUNTEST="runtest"
7961 case " $configdirs " in
7962 *" dejagnu "*)
7963 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7965 esac
7968 # Host tools.
7969 ncn_tool_prefix=
7970 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7971 ncn_target_tool_prefix=
7972 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7976 if test -n "$AR"; then
7977 ac_cv_prog_AR=$AR
7978 elif test -n "$ac_cv_prog_AR"; then
7979 AR=$ac_cv_prog_AR
7982 if test -n "$ac_cv_prog_AR"; then
7983 for ncn_progname in ar; do
7984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7985 set dummy ${ncn_progname}; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_AR+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 if test -n "$AR"; then
7992 ac_cv_prog_AR="$AR" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_AR="${ncn_progname}"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8005 done
8006 done
8007 IFS=$as_save_IFS
8011 AR=$ac_cv_prog_AR
8012 if test -n "$AR"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8014 $as_echo "$AR" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8021 done
8024 for ncn_progname in ar; do
8025 if test -n "$ncn_tool_prefix"; then
8026 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8027 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR="$AR" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8053 AR=$ac_cv_prog_AR
8054 if test -n "$AR"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8056 $as_echo "$AR" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8064 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8066 set dummy ${ncn_progname}; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_AR+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR="$AR" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_AR="${ncn_progname}"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8092 AR=$ac_cv_prog_AR
8093 if test -n "$AR"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8095 $as_echo "$AR" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8103 test -n "$ac_cv_prog_AR" && break
8104 done
8106 if test -z "$ac_cv_prog_AR" ; then
8107 set dummy ar
8108 if test $build = $host ; then
8109 AR="$2"
8110 else
8111 AR="${ncn_tool_prefix}$2"
8117 if test -n "$AS"; then
8118 ac_cv_prog_AS=$AS
8119 elif test -n "$ac_cv_prog_AS"; then
8120 AS=$ac_cv_prog_AS
8123 if test -n "$ac_cv_prog_AS"; then
8124 for ncn_progname in as; do
8125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8126 set dummy ${ncn_progname}; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if test "${ac_cv_prog_AS+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$AS"; then
8133 ac_cv_prog_AS="$AS" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142 ac_cv_prog_AS="${ncn_progname}"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8146 done
8147 done
8148 IFS=$as_save_IFS
8152 AS=$ac_cv_prog_AS
8153 if test -n "$AS"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8155 $as_echo "$AS" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8162 done
8165 for ncn_progname in as; do
8166 if test -n "$ncn_tool_prefix"; then
8167 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8168 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_AS+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$AS"; then
8175 ac_cv_prog_AS="$AS" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 AS=$ac_cv_prog_AS
8195 if test -n "$AS"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8197 $as_echo "$AS" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8205 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8207 set dummy ${ncn_progname}; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_AS+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 if test -n "$AS"; then
8214 ac_cv_prog_AS="$AS" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223 ac_cv_prog_AS="${ncn_progname}"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8227 done
8228 done
8229 IFS=$as_save_IFS
8233 AS=$ac_cv_prog_AS
8234 if test -n "$AS"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8236 $as_echo "$AS" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8244 test -n "$ac_cv_prog_AS" && break
8245 done
8247 if test -z "$ac_cv_prog_AS" ; then
8248 set dummy as
8249 if test $build = $host ; then
8250 AS="$2"
8251 else
8252 AS="${ncn_tool_prefix}$2"
8258 if test -n "$DLLTOOL"; then
8259 ac_cv_prog_DLLTOOL=$DLLTOOL
8260 elif test -n "$ac_cv_prog_DLLTOOL"; then
8261 DLLTOOL=$ac_cv_prog_DLLTOOL
8264 if test -n "$ac_cv_prog_DLLTOOL"; then
8265 for ncn_progname in dlltool; do
8266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8267 set dummy ${ncn_progname}; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$DLLTOOL"; then
8274 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_prog_DLLTOOL="${ncn_progname}"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8293 DLLTOOL=$ac_cv_prog_DLLTOOL
8294 if test -n "$DLLTOOL"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8296 $as_echo "$DLLTOOL" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8303 done
8306 for ncn_progname in dlltool; do
8307 if test -n "$ncn_tool_prefix"; then
8308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8309 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$DLLTOOL"; then
8316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8329 done
8330 done
8331 IFS=$as_save_IFS
8335 DLLTOOL=$ac_cv_prog_DLLTOOL
8336 if test -n "$DLLTOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8338 $as_echo "$DLLTOOL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8348 set dummy ${ncn_progname}; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$DLLTOOL"; then
8355 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_DLLTOOL="${ncn_progname}"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8370 IFS=$as_save_IFS
8374 DLLTOOL=$ac_cv_prog_DLLTOOL
8375 if test -n "$DLLTOOL"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8377 $as_echo "$DLLTOOL" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8385 test -n "$ac_cv_prog_DLLTOOL" && break
8386 done
8388 if test -z "$ac_cv_prog_DLLTOOL" ; then
8389 set dummy dlltool
8390 if test $build = $host ; then
8391 DLLTOOL="$2"
8392 else
8393 DLLTOOL="${ncn_tool_prefix}$2"
8399 if test -n "$LD"; then
8400 ac_cv_prog_LD=$LD
8401 elif test -n "$ac_cv_prog_LD"; then
8402 LD=$ac_cv_prog_LD
8405 if test -n "$ac_cv_prog_LD"; then
8406 for ncn_progname in ld; do
8407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8408 set dummy ${ncn_progname}; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_LD+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$LD"; then
8415 ac_cv_prog_LD="$LD" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_LD="${ncn_progname}"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8434 LD=$ac_cv_prog_LD
8435 if test -n "$LD"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8437 $as_echo "$LD" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8444 done
8447 for ncn_progname in ld; do
8448 if test -n "$ncn_tool_prefix"; then
8449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_LD+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$LD"; then
8457 ac_cv_prog_LD="$LD" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8476 LD=$ac_cv_prog_LD
8477 if test -n "$LD"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8479 $as_echo "$LD" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8487 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8489 set dummy ${ncn_progname}; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_prog_LD+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 if test -n "$LD"; then
8496 ac_cv_prog_LD="$LD" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505 ac_cv_prog_LD="${ncn_progname}"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8509 done
8510 done
8511 IFS=$as_save_IFS
8515 LD=$ac_cv_prog_LD
8516 if test -n "$LD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8518 $as_echo "$LD" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 test -n "$ac_cv_prog_LD" && break
8527 done
8529 if test -z "$ac_cv_prog_LD" ; then
8530 set dummy ld
8531 if test $build = $host ; then
8532 LD="$2"
8533 else
8534 LD="${ncn_tool_prefix}$2"
8540 if test -n "$LIPO"; then
8541 ac_cv_prog_LIPO=$LIPO
8542 elif test -n "$ac_cv_prog_LIPO"; then
8543 LIPO=$ac_cv_prog_LIPO
8546 if test -n "$ac_cv_prog_LIPO"; then
8547 for ncn_progname in lipo; do
8548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8549 set dummy ${ncn_progname}; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if test "${ac_cv_prog_LIPO+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 if test -n "$LIPO"; then
8556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_prog_LIPO="${ncn_progname}"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8569 done
8570 done
8571 IFS=$as_save_IFS
8575 LIPO=$ac_cv_prog_LIPO
8576 if test -n "$LIPO"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8578 $as_echo "$LIPO" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8585 done
8588 for ncn_progname in lipo; do
8589 if test -n "$ncn_tool_prefix"; then
8590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_LIPO+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$LIPO"; then
8598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8613 IFS=$as_save_IFS
8617 LIPO=$ac_cv_prog_LIPO
8618 if test -n "$LIPO"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8620 $as_echo "$LIPO" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8630 set dummy ${ncn_progname}; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if test "${ac_cv_prog_LIPO+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$LIPO"; then
8637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646 ac_cv_prog_LIPO="${ncn_progname}"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8656 LIPO=$ac_cv_prog_LIPO
8657 if test -n "$LIPO"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8659 $as_echo "$LIPO" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 test -n "$ac_cv_prog_LIPO" && break
8668 done
8670 if test -z "$ac_cv_prog_LIPO" ; then
8671 set dummy lipo
8672 if test $build = $host ; then
8673 LIPO="$2"
8674 else
8675 LIPO="${ncn_tool_prefix}$2"
8681 if test -n "$NM"; then
8682 ac_cv_prog_NM=$NM
8683 elif test -n "$ac_cv_prog_NM"; then
8684 NM=$ac_cv_prog_NM
8687 if test -n "$ac_cv_prog_NM"; then
8688 for ncn_progname in nm; do
8689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8690 set dummy ${ncn_progname}; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if test "${ac_cv_prog_NM+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 if test -n "$NM"; then
8697 ac_cv_prog_NM="$NM" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8706 ac_cv_prog_NM="${ncn_progname}"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8710 done
8711 done
8712 IFS=$as_save_IFS
8716 NM=$ac_cv_prog_NM
8717 if test -n "$NM"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8719 $as_echo "$NM" >&6; }
8720 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8726 done
8729 for ncn_progname in nm; do
8730 if test -n "$ncn_tool_prefix"; then
8731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_prog_NM+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 if test -n "$NM"; then
8739 ac_cv_prog_NM="$NM" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8748 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8752 done
8753 done
8754 IFS=$as_save_IFS
8758 NM=$ac_cv_prog_NM
8759 if test -n "$NM"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8761 $as_echo "$NM" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8771 set dummy ${ncn_progname}; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_prog_NM+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 if test -n "$NM"; then
8778 ac_cv_prog_NM="$NM" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_prog_NM="${ncn_progname}"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8791 done
8792 done
8793 IFS=$as_save_IFS
8797 NM=$ac_cv_prog_NM
8798 if test -n "$NM"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8800 $as_echo "$NM" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8808 test -n "$ac_cv_prog_NM" && break
8809 done
8811 if test -z "$ac_cv_prog_NM" ; then
8812 set dummy nm
8813 if test $build = $host ; then
8814 NM="$2"
8815 else
8816 NM="${ncn_tool_prefix}$2"
8822 if test -n "$RANLIB"; then
8823 ac_cv_prog_RANLIB=$RANLIB
8824 elif test -n "$ac_cv_prog_RANLIB"; then
8825 RANLIB=$ac_cv_prog_RANLIB
8828 if test -n "$ac_cv_prog_RANLIB"; then
8829 for ncn_progname in ranlib; do
8830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8831 set dummy ${ncn_progname}; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 if test -n "$RANLIB"; then
8838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8847 ac_cv_prog_RANLIB="${ncn_progname}"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8851 done
8852 done
8853 IFS=$as_save_IFS
8857 RANLIB=$ac_cv_prog_RANLIB
8858 if test -n "$RANLIB"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8860 $as_echo "$RANLIB" >&6; }
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8867 done
8870 for ncn_progname in ranlib; do
8871 if test -n "$ncn_tool_prefix"; then
8872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$RANLIB"; then
8880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8899 RANLIB=$ac_cv_prog_RANLIB
8900 if test -n "$RANLIB"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8902 $as_echo "$RANLIB" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8910 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8912 set dummy ${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_RANLIB+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 if test -n "$RANLIB"; then
8919 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
8939 if test -n "$RANLIB"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8941 $as_echo "$RANLIB" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8949 test -n "$ac_cv_prog_RANLIB" && break
8950 done
8952 if test -z "$ac_cv_prog_RANLIB" ; then
8953 RANLIB="true"
8958 if test -n "$STRIP"; then
8959 ac_cv_prog_STRIP=$STRIP
8960 elif test -n "$ac_cv_prog_STRIP"; then
8961 STRIP=$ac_cv_prog_STRIP
8964 if test -n "$ac_cv_prog_STRIP"; then
8965 for ncn_progname in strip; do
8966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8967 set dummy ${ncn_progname}; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if test "${ac_cv_prog_STRIP+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$STRIP"; then
8974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_STRIP="${ncn_progname}"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8993 STRIP=$ac_cv_prog_STRIP
8994 if test -n "$STRIP"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8996 $as_echo "$STRIP" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9003 done
9006 for ncn_progname in strip; do
9007 if test -n "$ncn_tool_prefix"; then
9008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if test "${ac_cv_prog_STRIP+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 if test -n "$STRIP"; then
9016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9035 STRIP=$ac_cv_prog_STRIP
9036 if test -n "$STRIP"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9038 $as_echo "$STRIP" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9046 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9048 set dummy ${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_STRIP+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 if test -n "$STRIP"; then
9055 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${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 STRIP=$ac_cv_prog_STRIP
9075 if test -n "$STRIP"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9077 $as_echo "$STRIP" >&6; }
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9085 test -n "$ac_cv_prog_STRIP" && break
9086 done
9088 if test -z "$ac_cv_prog_STRIP" ; then
9089 STRIP="true"
9094 if test -n "$WINDRES"; then
9095 ac_cv_prog_WINDRES=$WINDRES
9096 elif test -n "$ac_cv_prog_WINDRES"; then
9097 WINDRES=$ac_cv_prog_WINDRES
9100 if test -n "$ac_cv_prog_WINDRES"; then
9101 for ncn_progname in windres; do
9102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9103 set dummy ${ncn_progname}; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 if test -n "$WINDRES"; then
9110 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9119 ac_cv_prog_WINDRES="${ncn_progname}"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9123 done
9124 done
9125 IFS=$as_save_IFS
9129 WINDRES=$ac_cv_prog_WINDRES
9130 if test -n "$WINDRES"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9132 $as_echo "$WINDRES" >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9139 done
9142 for ncn_progname in windres; do
9143 if test -n "$ncn_tool_prefix"; then
9144 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9145 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 if test -n "$WINDRES"; then
9152 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9153 else
9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 for as_dir in $PATH
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9161 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9165 done
9166 done
9167 IFS=$as_save_IFS
9171 WINDRES=$ac_cv_prog_WINDRES
9172 if test -n "$WINDRES"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9174 $as_echo "$WINDRES" >&6; }
9175 else
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9182 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9184 set dummy ${ncn_progname}; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 if test -n "$WINDRES"; then
9191 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9192 else
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 for as_dir in $PATH
9196 IFS=$as_save_IFS
9197 test -z "$as_dir" && as_dir=.
9198 for ac_exec_ext in '' $ac_executable_extensions; do
9199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9200 ac_cv_prog_WINDRES="${ncn_progname}"
9201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 break 2
9204 done
9205 done
9206 IFS=$as_save_IFS
9210 WINDRES=$ac_cv_prog_WINDRES
9211 if test -n "$WINDRES"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9213 $as_echo "$WINDRES" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9221 test -n "$ac_cv_prog_WINDRES" && break
9222 done
9224 if test -z "$ac_cv_prog_WINDRES" ; then
9225 set dummy windres
9226 if test $build = $host ; then
9227 WINDRES="$2"
9228 else
9229 WINDRES="${ncn_tool_prefix}$2"
9235 if test -n "$WINDMC"; then
9236 ac_cv_prog_WINDMC=$WINDMC
9237 elif test -n "$ac_cv_prog_WINDMC"; then
9238 WINDMC=$ac_cv_prog_WINDMC
9241 if test -n "$ac_cv_prog_WINDMC"; then
9242 for ncn_progname in windmc; do
9243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9244 set dummy ${ncn_progname}; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 if test -n "$WINDMC"; then
9251 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_prog_WINDMC="${ncn_progname}"
9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9264 done
9265 done
9266 IFS=$as_save_IFS
9270 WINDMC=$ac_cv_prog_WINDMC
9271 if test -n "$WINDMC"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9273 $as_echo "$WINDMC" >&6; }
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9280 done
9283 for ncn_progname in windmc; do
9284 if test -n "$ncn_tool_prefix"; then
9285 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9286 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 if test -n "$WINDMC"; then
9293 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9294 else
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9312 WINDMC=$ac_cv_prog_WINDMC
9313 if test -n "$WINDMC"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9315 $as_echo "$WINDMC" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9323 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9325 set dummy ${ncn_progname}; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 if test -n "$WINDMC"; then
9332 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_prog_WINDMC="${ncn_progname}"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9351 WINDMC=$ac_cv_prog_WINDMC
9352 if test -n "$WINDMC"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9354 $as_echo "$WINDMC" >&6; }
9355 else
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9362 test -n "$ac_cv_prog_WINDMC" && break
9363 done
9365 if test -z "$ac_cv_prog_WINDMC" ; then
9366 set dummy windmc
9367 if test $build = $host ; then
9368 WINDMC="$2"
9369 else
9370 WINDMC="${ncn_tool_prefix}$2"
9376 if test -n "$OBJCOPY"; then
9377 ac_cv_prog_OBJCOPY=$OBJCOPY
9378 elif test -n "$ac_cv_prog_OBJCOPY"; then
9379 OBJCOPY=$ac_cv_prog_OBJCOPY
9382 if test -n "$ac_cv_prog_OBJCOPY"; then
9383 for ncn_progname in objcopy; do
9384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9385 set dummy ${ncn_progname}; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 if test -n "$OBJCOPY"; then
9392 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9393 else
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9397 IFS=$as_save_IFS
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9401 ac_cv_prog_OBJCOPY="${ncn_progname}"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403 break 2
9405 done
9406 done
9407 IFS=$as_save_IFS
9411 OBJCOPY=$ac_cv_prog_OBJCOPY
9412 if test -n "$OBJCOPY"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9414 $as_echo "$OBJCOPY" >&6; }
9415 else
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9421 done
9424 for ncn_progname in objcopy; do
9425 if test -n "$ncn_tool_prefix"; then
9426 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9427 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 if test -n "$OBJCOPY"; then
9434 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9453 OBJCOPY=$ac_cv_prog_OBJCOPY
9454 if test -n "$OBJCOPY"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9456 $as_echo "$OBJCOPY" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9464 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9466 set dummy ${ncn_progname}; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 if test -n "$OBJCOPY"; then
9473 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9474 else
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9482 ac_cv_prog_OBJCOPY="${ncn_progname}"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9486 done
9487 done
9488 IFS=$as_save_IFS
9492 OBJCOPY=$ac_cv_prog_OBJCOPY
9493 if test -n "$OBJCOPY"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9495 $as_echo "$OBJCOPY" >&6; }
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9503 test -n "$ac_cv_prog_OBJCOPY" && break
9504 done
9506 if test -z "$ac_cv_prog_OBJCOPY" ; then
9507 set dummy objcopy
9508 if test $build = $host ; then
9509 OBJCOPY="$2"
9510 else
9511 OBJCOPY="${ncn_tool_prefix}$2"
9517 if test -n "$OBJDUMP"; then
9518 ac_cv_prog_OBJDUMP=$OBJDUMP
9519 elif test -n "$ac_cv_prog_OBJDUMP"; then
9520 OBJDUMP=$ac_cv_prog_OBJDUMP
9523 if test -n "$ac_cv_prog_OBJDUMP"; then
9524 for ncn_progname in objdump; do
9525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9526 set dummy ${ncn_progname}; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 if test -n "$OBJDUMP"; then
9533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9534 else
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9542 ac_cv_prog_OBJDUMP="${ncn_progname}"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9546 done
9547 done
9548 IFS=$as_save_IFS
9552 OBJDUMP=$ac_cv_prog_OBJDUMP
9553 if test -n "$OBJDUMP"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9555 $as_echo "$OBJDUMP" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9562 done
9565 for ncn_progname in objdump; do
9566 if test -n "$ncn_tool_prefix"; then
9567 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9568 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$OBJDUMP"; then
9575 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9588 done
9589 done
9590 IFS=$as_save_IFS
9594 OBJDUMP=$ac_cv_prog_OBJDUMP
9595 if test -n "$OBJDUMP"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9597 $as_echo "$OBJDUMP" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9605 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9607 set dummy ${ncn_progname}; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 if test -n "$OBJDUMP"; then
9614 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9615 else
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $PATH
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
9622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9623 ac_cv_prog_OBJDUMP="${ncn_progname}"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9627 done
9628 done
9629 IFS=$as_save_IFS
9633 OBJDUMP=$ac_cv_prog_OBJDUMP
9634 if test -n "$OBJDUMP"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9636 $as_echo "$OBJDUMP" >&6; }
9637 else
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9644 test -n "$ac_cv_prog_OBJDUMP" && break
9645 done
9647 if test -z "$ac_cv_prog_OBJDUMP" ; then
9648 set dummy objdump
9649 if test $build = $host ; then
9650 OBJDUMP="$2"
9651 else
9652 OBJDUMP="${ncn_tool_prefix}$2"
9658 if test -n "$READELF"; then
9659 ac_cv_prog_READELF=$READELF
9660 elif test -n "$ac_cv_prog_READELF"; then
9661 READELF=$ac_cv_prog_READELF
9664 if test -n "$ac_cv_prog_READELF"; then
9665 for ncn_progname in readelf; do
9666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9667 set dummy ${ncn_progname}; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if test "${ac_cv_prog_READELF+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 if test -n "$READELF"; then
9674 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9675 else
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9683 ac_cv_prog_READELF="${ncn_progname}"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9687 done
9688 done
9689 IFS=$as_save_IFS
9693 READELF=$ac_cv_prog_READELF
9694 if test -n "$READELF"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9696 $as_echo "$READELF" >&6; }
9697 else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9703 done
9706 for ncn_progname in readelf; do
9707 if test -n "$ncn_tool_prefix"; then
9708 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9709 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if test "${ac_cv_prog_READELF+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test -n "$READELF"; then
9716 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9725 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9729 done
9730 done
9731 IFS=$as_save_IFS
9735 READELF=$ac_cv_prog_READELF
9736 if test -n "$READELF"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9738 $as_echo "$READELF" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9746 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9748 set dummy ${ncn_progname}; ac_word=$2
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 $as_echo_n "checking for $ac_word... " >&6; }
9751 if test "${ac_cv_prog_READELF+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 if test -n "$READELF"; then
9755 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9756 else
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758 for as_dir in $PATH
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9764 ac_cv_prog_READELF="${ncn_progname}"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9768 done
9769 done
9770 IFS=$as_save_IFS
9774 READELF=$ac_cv_prog_READELF
9775 if test -n "$READELF"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9777 $as_echo "$READELF" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9785 test -n "$ac_cv_prog_READELF" && break
9786 done
9788 if test -z "$ac_cv_prog_READELF" ; then
9789 set dummy readelf
9790 if test $build = $host ; then
9791 READELF="$2"
9792 else
9793 READELF="${ncn_tool_prefix}$2"
9802 # Target tools.
9804 # Check whether --with-build-time-tools was given.
9805 if test "${with_build_time_tools+set}" = set; then :
9806 withval=$with_build_time_tools; case x"$withval" in
9807 x/*) ;;
9809 with_build_time_tools=
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9811 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9813 esac
9814 else
9815 with_build_time_tools=
9821 if test -n "$CC_FOR_TARGET"; then
9822 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9823 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9824 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9827 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9828 for ncn_progname in cc gcc; do
9829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9830 set dummy ${ncn_progname}; ac_word=$2
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9832 $as_echo_n "checking for $ac_word... " >&6; }
9833 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 if test -n "$CC_FOR_TARGET"; then
9837 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9838 else
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 for as_dir in $PATH
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
9845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9846 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 break 2
9850 done
9851 done
9852 IFS=$as_save_IFS
9856 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9857 if test -n "$CC_FOR_TARGET"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9859 $as_echo "$CC_FOR_TARGET" >&6; }
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9866 done
9869 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9870 for ncn_progname in cc gcc; do
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9872 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9873 if test -x $with_build_time_tools/${ncn_progname}; then
9874 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9876 $as_echo "yes" >&6; }
9877 break
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9882 done
9885 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9886 for ncn_progname in cc gcc; do
9887 if test -n "$ncn_target_tool_prefix"; then
9888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9889 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 if test -n "$CC_FOR_TARGET"; then
9896 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9897 else
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9901 IFS=$as_save_IFS
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907 break 2
9909 done
9910 done
9911 IFS=$as_save_IFS
9915 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9916 if test -n "$CC_FOR_TARGET"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9918 $as_echo "$CC_FOR_TARGET" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9926 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9928 set dummy ${ncn_progname}; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 if test -n "$CC_FOR_TARGET"; then
9935 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9936 else
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9948 done
9949 done
9950 IFS=$as_save_IFS
9954 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9955 if test -n "$CC_FOR_TARGET"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9957 $as_echo "$CC_FOR_TARGET" >&6; }
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9965 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9966 done
9969 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9970 set dummy cc gcc
9971 if test $build = $target ; then
9972 CC_FOR_TARGET="$2"
9973 else
9974 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9976 else
9977 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9982 if test -n "$CXX_FOR_TARGET"; then
9983 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9984 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9985 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9988 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9989 for ncn_progname in c++ g++ cxx gxx; do
9990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9991 set dummy ${ncn_progname}; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 if test -n "$CXX_FOR_TARGET"; then
9998 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9999 else
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10011 done
10012 done
10013 IFS=$as_save_IFS
10017 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10018 if test -n "$CXX_FOR_TARGET"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10020 $as_echo "$CXX_FOR_TARGET" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10027 done
10030 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10031 for ncn_progname in c++ g++ cxx gxx; do
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10034 if test -x $with_build_time_tools/${ncn_progname}; then
10035 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10038 break
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10043 done
10046 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10047 for ncn_progname in c++ g++ cxx gxx; do
10048 if test -n "$ncn_target_tool_prefix"; then
10049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 if test -n "$CXX_FOR_TARGET"; then
10057 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10070 done
10071 done
10072 IFS=$as_save_IFS
10076 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10077 if test -n "$CXX_FOR_TARGET"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10079 $as_echo "$CXX_FOR_TARGET" >&6; }
10080 else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10087 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10089 set dummy ${ncn_progname}; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 if test -n "$CXX_FOR_TARGET"; then
10096 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10097 else
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10109 done
10110 done
10111 IFS=$as_save_IFS
10115 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10116 if test -n "$CXX_FOR_TARGET"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10118 $as_echo "$CXX_FOR_TARGET" >&6; }
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10126 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10127 done
10130 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10131 set dummy c++ g++ cxx gxx
10132 if test $build = $target ; then
10133 CXX_FOR_TARGET="$2"
10134 else
10135 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10137 else
10138 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10143 if test -n "$GCC_FOR_TARGET"; then
10144 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10145 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10146 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10149 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10150 for ncn_progname in gcc; do
10151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10152 set dummy ${ncn_progname}; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 if test -n "$GCC_FOR_TARGET"; then
10159 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10178 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10179 if test -n "$GCC_FOR_TARGET"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10181 $as_echo "$GCC_FOR_TARGET" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10188 done
10191 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10192 for ncn_progname in gcc; do
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10195 if test -x $with_build_time_tools/${ncn_progname}; then
10196 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10198 $as_echo "yes" >&6; }
10199 break
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10204 done
10207 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10208 for ncn_progname in gcc; do
10209 if test -n "$ncn_target_tool_prefix"; then
10210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 if test -n "$GCC_FOR_TARGET"; then
10218 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10231 done
10232 done
10233 IFS=$as_save_IFS
10237 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10238 if test -n "$GCC_FOR_TARGET"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10240 $as_echo "$GCC_FOR_TARGET" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10248 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10250 set dummy ${ncn_progname}; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 if test -n "$GCC_FOR_TARGET"; then
10257 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10258 else
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10270 done
10271 done
10272 IFS=$as_save_IFS
10276 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10277 if test -n "$GCC_FOR_TARGET"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10279 $as_echo "$GCC_FOR_TARGET" >&6; }
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10287 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10288 done
10291 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10292 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10293 else
10294 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10299 if test -n "$GCJ_FOR_TARGET"; then
10300 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10301 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10302 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10305 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10306 for ncn_progname in gcj; do
10307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10308 set dummy ${ncn_progname}; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 if test -n "$GCJ_FOR_TARGET"; then
10315 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10334 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10335 if test -n "$GCJ_FOR_TARGET"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10337 $as_echo "$GCJ_FOR_TARGET" >&6; }
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10344 done
10347 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10348 for ncn_progname in gcj; do
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10350 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10351 if test -x $with_build_time_tools/${ncn_progname}; then
10352 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354 $as_echo "yes" >&6; }
10355 break
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10360 done
10363 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10364 for ncn_progname in gcj; do
10365 if test -n "$ncn_target_tool_prefix"; then
10366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10367 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 if test -n "$GCJ_FOR_TARGET"; then
10374 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10375 else
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10393 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10394 if test -n "$GCJ_FOR_TARGET"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10396 $as_echo "$GCJ_FOR_TARGET" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10404 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10406 set dummy ${ncn_progname}; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 $as_echo_n "checking for $ac_word... " >&6; }
10409 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 if test -n "$GCJ_FOR_TARGET"; then
10413 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10414 else
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10422 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10426 done
10427 done
10428 IFS=$as_save_IFS
10432 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10433 if test -n "$GCJ_FOR_TARGET"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10435 $as_echo "$GCJ_FOR_TARGET" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10443 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10444 done
10447 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10448 set dummy gcj
10449 if test $build = $target ; then
10450 GCJ_FOR_TARGET="$2"
10451 else
10452 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10454 else
10455 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10462 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10463 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10466 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10467 for ncn_progname in gfortran; do
10468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10469 set dummy ${ncn_progname}; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 if test -n "$GFORTRAN_FOR_TARGET"; then
10476 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10495 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10496 if test -n "$GFORTRAN_FOR_TARGET"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10498 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10505 done
10508 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10509 for ncn_progname in gfortran; do
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10511 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10512 if test -x $with_build_time_tools/${ncn_progname}; then
10513 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515 $as_echo "yes" >&6; }
10516 break
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10521 done
10524 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10525 for ncn_progname in gfortran; do
10526 if test -n "$ncn_target_tool_prefix"; then
10527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 if test -n "$GFORTRAN_FOR_TARGET"; then
10535 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10548 done
10549 done
10550 IFS=$as_save_IFS
10554 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10555 if test -n "$GFORTRAN_FOR_TARGET"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10557 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10565 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10567 set dummy ${ncn_progname}; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 if test -n "$GFORTRAN_FOR_TARGET"; then
10574 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10575 else
10576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10583 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 break 2
10587 done
10588 done
10589 IFS=$as_save_IFS
10593 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10594 if test -n "$GFORTRAN_FOR_TARGET"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10596 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10604 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10605 done
10608 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10609 set dummy gfortran
10610 if test $build = $target ; then
10611 GFORTRAN_FOR_TARGET="$2"
10612 else
10613 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10615 else
10616 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10623 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10624 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10627 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10628 for ncn_progname in gccgo; do
10629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10630 set dummy ${ncn_progname}; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 if test -n "$GOC_FOR_TARGET"; then
10637 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10650 done
10651 done
10652 IFS=$as_save_IFS
10656 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10657 if test -n "$GOC_FOR_TARGET"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10659 $as_echo "$GOC_FOR_TARGET" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10666 done
10669 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10670 for ncn_progname in gccgo; do
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10672 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10673 if test -x $with_build_time_tools/${ncn_progname}; then
10674 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677 break
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10682 done
10685 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10686 for ncn_progname in gccgo; do
10687 if test -n "$ncn_target_tool_prefix"; then
10688 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if test -n "$GOC_FOR_TARGET"; then
10696 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 break 2
10709 done
10710 done
10711 IFS=$as_save_IFS
10715 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10716 if test -n "$GOC_FOR_TARGET"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10718 $as_echo "$GOC_FOR_TARGET" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10726 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test -n "$GOC_FOR_TARGET"; then
10735 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10748 done
10749 done
10750 IFS=$as_save_IFS
10754 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10755 if test -n "$GOC_FOR_TARGET"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10757 $as_echo "$GOC_FOR_TARGET" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10765 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10766 done
10769 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10770 set dummy gccgo
10771 if test $build = $target ; then
10772 GOC_FOR_TARGET="$2"
10773 else
10774 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10776 else
10777 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10782 if test -n "$GUPC_FOR_TARGET"; then
10783 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
10784 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10785 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10788 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10789 for ncn_progname in gupc; do
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 if test -n "$GUPC_FOR_TARGET"; then
10798 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10817 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10818 if test -n "$GUPC_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10820 $as_echo "$GUPC_FOR_TARGET" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10827 done
10830 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10831 for ncn_progname in gupc; do
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10834 if test -x $with_build_time_tools/${ncn_progname}; then
10835 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837 $as_echo "yes" >&6; }
10838 break
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10843 done
10846 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
10847 for ncn_progname in gupc; do
10848 if test -n "$ncn_target_tool_prefix"; then
10849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 if test -n "$GUPC_FOR_TARGET"; then
10857 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10858 else
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10876 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10877 if test -n "$GUPC_FOR_TARGET"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10879 $as_echo "$GUPC_FOR_TARGET" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
10888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10889 set dummy ${ncn_progname}; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 if test -n "$GUPC_FOR_TARGET"; then
10896 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10897 else
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10909 done
10910 done
10911 IFS=$as_save_IFS
10915 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10916 if test -n "$GUPC_FOR_TARGET"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10918 $as_echo "$GUPC_FOR_TARGET" >&6; }
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10926 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
10927 done
10930 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
10931 set dummy gupc
10932 if test $build = $target ; then
10933 GUPC_FOR_TARGET="$2"
10934 else
10935 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10937 else
10938 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
10943 cat > conftest.c << \EOF
10944 #ifdef __GNUC__
10945 gcc_yay;
10946 #endif
10948 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10949 have_gcc_for_target=yes
10950 else
10951 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10952 have_gcc_for_target=no
10954 rm conftest.c
10959 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10960 if test -n "$with_build_time_tools"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10962 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10963 if test -x $with_build_time_tools/ar; then
10964 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10965 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10967 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10972 elif test $build != $host && test $have_gcc_for_target = yes; then
10973 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10974 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10975 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10978 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10979 # Extract the first word of "ar", so it can be a program name with args.
10980 set dummy ar; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 case $AR_FOR_TARGET in
10987 [\\/]* | ?:[\\/]*)
10988 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $gcc_cv_tool_dirs
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 break 2
11002 done
11003 done
11004 IFS=$as_save_IFS
11007 esac
11009 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11010 if test -n "$AR_FOR_TARGET"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11012 $as_echo "$AR_FOR_TARGET" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11025 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11026 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11029 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11030 for ncn_progname in ar; do
11031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$AR_FOR_TARGET"; then
11039 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11052 done
11053 done
11054 IFS=$as_save_IFS
11058 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11059 if test -n "$AR_FOR_TARGET"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11061 $as_echo "$AR_FOR_TARGET" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11068 done
11071 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11072 for ncn_progname in ar; do
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11075 if test -x $with_build_time_tools/${ncn_progname}; then
11076 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; }
11079 break
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11084 done
11087 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11088 for ncn_progname in ar; do
11089 if test -n "$ncn_target_tool_prefix"; then
11090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test -n "$AR_FOR_TARGET"; then
11098 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11111 done
11112 done
11113 IFS=$as_save_IFS
11117 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11118 if test -n "$AR_FOR_TARGET"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11120 $as_echo "$AR_FOR_TARGET" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11128 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11130 set dummy ${ncn_progname}; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 if test -n "$AR_FOR_TARGET"; then
11137 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11138 else
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11150 done
11151 done
11152 IFS=$as_save_IFS
11156 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11157 if test -n "$AR_FOR_TARGET"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11159 $as_echo "$AR_FOR_TARGET" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11167 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11168 done
11171 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11172 set dummy ar
11173 if test $build = $target ; then
11174 AR_FOR_TARGET="$2"
11175 else
11176 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11178 else
11179 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11182 else
11183 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11189 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11190 if test -n "$with_build_time_tools"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11192 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11193 if test -x $with_build_time_tools/as; then
11194 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11195 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11197 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11202 elif test $build != $host && test $have_gcc_for_target = yes; then
11203 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11204 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11205 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11208 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11209 # Extract the first word of "as", so it can be a program name with args.
11210 set dummy as; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 case $AS_FOR_TARGET in
11217 [\\/]* | ?:[\\/]*)
11218 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $gcc_cv_tool_dirs
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11232 done
11233 done
11234 IFS=$as_save_IFS
11237 esac
11239 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11240 if test -n "$AS_FOR_TARGET"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11242 $as_echo "$AS_FOR_TARGET" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11250 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11255 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11256 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11259 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11260 for ncn_progname in as; do
11261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11262 set dummy ${ncn_progname}; ac_word=$2
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 $as_echo_n "checking for $ac_word... " >&6; }
11265 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 if test -n "$AS_FOR_TARGET"; then
11269 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11270 else
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11282 done
11283 done
11284 IFS=$as_save_IFS
11288 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11289 if test -n "$AS_FOR_TARGET"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11291 $as_echo "$AS_FOR_TARGET" >&6; }
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11298 done
11301 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11302 for ncn_progname in as; do
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11304 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11305 if test -x $with_build_time_tools/${ncn_progname}; then
11306 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308 $as_echo "yes" >&6; }
11309 break
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11314 done
11317 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11318 for ncn_progname in as; do
11319 if test -n "$ncn_target_tool_prefix"; then
11320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -n "$AS_FOR_TARGET"; then
11328 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11347 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11348 if test -n "$AS_FOR_TARGET"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11350 $as_echo "$AS_FOR_TARGET" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11358 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11360 set dummy ${ncn_progname}; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 if test -n "$AS_FOR_TARGET"; then
11367 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11368 else
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11376 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378 break 2
11380 done
11381 done
11382 IFS=$as_save_IFS
11386 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11387 if test -n "$AS_FOR_TARGET"; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11389 $as_echo "$AS_FOR_TARGET" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11397 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11398 done
11401 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11402 set dummy as
11403 if test $build = $target ; then
11404 AS_FOR_TARGET="$2"
11405 else
11406 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11408 else
11409 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11412 else
11413 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11419 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11420 if test -n "$with_build_time_tools"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11422 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11423 if test -x $with_build_time_tools/dlltool; then
11424 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11425 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11427 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11432 elif test $build != $host && test $have_gcc_for_target = yes; then
11433 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11434 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11435 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11438 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11439 # Extract the first word of "dlltool", so it can be a program name with args.
11440 set dummy dlltool; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 case $DLLTOOL_FOR_TARGET in
11447 [\\/]* | ?:[\\/]*)
11448 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $gcc_cv_tool_dirs
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 break 2
11462 done
11463 done
11464 IFS=$as_save_IFS
11467 esac
11469 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11470 if test -n "$DLLTOOL_FOR_TARGET"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11472 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11480 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11485 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11486 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11489 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11490 for ncn_progname in dlltool; do
11491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11492 set dummy ${ncn_progname}; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 if test -n "$DLLTOOL_FOR_TARGET"; then
11499 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11512 done
11513 done
11514 IFS=$as_save_IFS
11518 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11519 if test -n "$DLLTOOL_FOR_TARGET"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11521 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11528 done
11531 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11532 for ncn_progname in dlltool; do
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11534 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11535 if test -x $with_build_time_tools/${ncn_progname}; then
11536 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11539 break
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11544 done
11547 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11548 for ncn_progname in dlltool; do
11549 if test -n "$ncn_target_tool_prefix"; then
11550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 if test -n "$DLLTOOL_FOR_TARGET"; then
11558 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11573 IFS=$as_save_IFS
11577 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11578 if test -n "$DLLTOOL_FOR_TARGET"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11580 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11588 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11590 set dummy ${ncn_progname}; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 if test -n "$DLLTOOL_FOR_TARGET"; then
11597 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11598 else
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11616 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11617 if test -n "$DLLTOOL_FOR_TARGET"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11619 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11620 else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11627 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11628 done
11631 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11632 set dummy dlltool
11633 if test $build = $target ; then
11634 DLLTOOL_FOR_TARGET="$2"
11635 else
11636 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11638 else
11639 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11642 else
11643 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11649 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11650 if test -n "$with_build_time_tools"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11652 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11653 if test -x $with_build_time_tools/ld; then
11654 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11655 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11657 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11662 elif test $build != $host && test $have_gcc_for_target = yes; then
11663 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11664 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11665 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11668 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11669 # Extract the first word of "ld", so it can be a program name with args.
11670 set dummy ld; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $LD_FOR_TARGET in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $gcc_cv_tool_dirs
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11697 esac
11699 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11700 if test -n "$LD_FOR_TARGET"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11702 $as_echo "$LD_FOR_TARGET" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11710 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11715 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11716 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11719 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11720 for ncn_progname in ld; do
11721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 if test -n "$LD_FOR_TARGET"; then
11729 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11730 else
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11734 IFS=$as_save_IFS
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11738 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 break 2
11742 done
11743 done
11744 IFS=$as_save_IFS
11748 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11749 if test -n "$LD_FOR_TARGET"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11751 $as_echo "$LD_FOR_TARGET" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11758 done
11761 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11762 for ncn_progname in ld; do
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11764 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11765 if test -x $with_build_time_tools/${ncn_progname}; then
11766 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 break
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11774 done
11777 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11778 for ncn_progname in ld; do
11779 if test -n "$ncn_target_tool_prefix"; then
11780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$LD_FOR_TARGET"; then
11788 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11801 done
11802 done
11803 IFS=$as_save_IFS
11807 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11808 if test -n "$LD_FOR_TARGET"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11810 $as_echo "$LD_FOR_TARGET" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11818 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11820 set dummy ${ncn_progname}; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 if test -n "$LD_FOR_TARGET"; then
11827 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11828 else
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 break 2
11840 done
11841 done
11842 IFS=$as_save_IFS
11846 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11847 if test -n "$LD_FOR_TARGET"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11849 $as_echo "$LD_FOR_TARGET" >&6; }
11850 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11857 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11858 done
11861 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11862 set dummy ld
11863 if test $build = $target ; then
11864 LD_FOR_TARGET="$2"
11865 else
11866 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11868 else
11869 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11872 else
11873 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11879 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11880 if test -n "$with_build_time_tools"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11882 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11883 if test -x $with_build_time_tools/lipo; then
11884 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11885 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11887 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11892 elif test $build != $host && test $have_gcc_for_target = yes; then
11893 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11894 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11895 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11898 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11899 # Extract the first word of "lipo", so it can be a program name with args.
11900 set dummy lipo; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 case $LIPO_FOR_TARGET in
11907 [\\/]* | ?:[\\/]*)
11908 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $gcc_cv_tool_dirs
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11922 done
11923 done
11924 IFS=$as_save_IFS
11927 esac
11929 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11930 if test -n "$LIPO_FOR_TARGET"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11932 $as_echo "$LIPO_FOR_TARGET" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11940 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11945 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11946 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11949 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11950 for ncn_progname in lipo; do
11951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11952 set dummy ${ncn_progname}; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 if test -n "$LIPO_FOR_TARGET"; then
11959 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11960 else
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11972 done
11973 done
11974 IFS=$as_save_IFS
11978 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11979 if test -n "$LIPO_FOR_TARGET"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11981 $as_echo "$LIPO_FOR_TARGET" >&6; }
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11988 done
11991 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11992 for ncn_progname in lipo; do
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11994 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11995 if test -x $with_build_time_tools/${ncn_progname}; then
11996 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999 break
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12004 done
12007 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12008 for ncn_progname in lipo; do
12009 if test -n "$ncn_target_tool_prefix"; then
12010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$LIPO_FOR_TARGET"; then
12018 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12031 done
12032 done
12033 IFS=$as_save_IFS
12037 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12038 if test -n "$LIPO_FOR_TARGET"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12040 $as_echo "$LIPO_FOR_TARGET" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12048 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$LIPO_FOR_TARGET"; then
12057 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12070 done
12071 done
12072 IFS=$as_save_IFS
12076 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12077 if test -n "$LIPO_FOR_TARGET"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12079 $as_echo "$LIPO_FOR_TARGET" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12088 done
12091 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12092 set dummy lipo
12093 if test $build = $target ; then
12094 LIPO_FOR_TARGET="$2"
12095 else
12096 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12098 else
12099 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12102 else
12103 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12109 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12110 if test -n "$with_build_time_tools"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12112 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12113 if test -x $with_build_time_tools/nm; then
12114 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12115 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12117 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12122 elif test $build != $host && test $have_gcc_for_target = yes; then
12123 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12124 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12125 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12128 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12129 # Extract the first word of "nm", so it can be a program name with args.
12130 set dummy nm; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 case $NM_FOR_TARGET in
12137 [\\/]* | ?:[\\/]*)
12138 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $gcc_cv_tool_dirs
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12152 done
12153 done
12154 IFS=$as_save_IFS
12157 esac
12159 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12160 if test -n "$NM_FOR_TARGET"; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12162 $as_echo "$NM_FOR_TARGET" >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12170 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12175 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12176 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12179 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12180 for ncn_progname in nm; do
12181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 if test -n "$NM_FOR_TARGET"; then
12189 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12190 else
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12198 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12202 done
12203 done
12204 IFS=$as_save_IFS
12208 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12209 if test -n "$NM_FOR_TARGET"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12211 $as_echo "$NM_FOR_TARGET" >&6; }
12212 else
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12218 done
12221 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12222 for ncn_progname in nm; do
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12225 if test -x $with_build_time_tools/${ncn_progname}; then
12226 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 $as_echo "yes" >&6; }
12229 break
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12234 done
12237 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12238 for ncn_progname in nm; do
12239 if test -n "$ncn_target_tool_prefix"; then
12240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test -n "$NM_FOR_TARGET"; then
12248 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12261 done
12262 done
12263 IFS=$as_save_IFS
12267 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12268 if test -n "$NM_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12270 $as_echo "$NM_FOR_TARGET" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12278 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12280 set dummy ${ncn_progname}; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 if test -n "$NM_FOR_TARGET"; then
12287 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12288 else
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12306 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12307 if test -n "$NM_FOR_TARGET"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12309 $as_echo "$NM_FOR_TARGET" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12317 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12318 done
12321 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12322 set dummy nm
12323 if test $build = $target ; then
12324 NM_FOR_TARGET="$2"
12325 else
12326 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12328 else
12329 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12332 else
12333 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12339 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12340 if test -n "$with_build_time_tools"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12342 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12343 if test -x $with_build_time_tools/objdump; then
12344 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12345 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12347 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12352 elif test $build != $host && test $have_gcc_for_target = yes; then
12353 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12354 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12355 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12358 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12359 # Extract the first word of "objdump", so it can be a program name with args.
12360 set dummy objdump; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 case $OBJDUMP_FOR_TARGET in
12367 [\\/]* | ?:[\\/]*)
12368 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $gcc_cv_tool_dirs
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12382 done
12383 done
12384 IFS=$as_save_IFS
12387 esac
12389 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12390 if test -n "$OBJDUMP_FOR_TARGET"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12392 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12400 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12403 if test -n "$OBJDUMP_FOR_TARGET"; then
12404 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12405 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12406 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12409 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12410 for ncn_progname in objdump; do
12411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test -n "$OBJDUMP_FOR_TARGET"; then
12419 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12432 done
12433 done
12434 IFS=$as_save_IFS
12438 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12439 if test -n "$OBJDUMP_FOR_TARGET"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12441 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12448 done
12451 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12452 for ncn_progname in objdump; do
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12455 if test -x $with_build_time_tools/${ncn_progname}; then
12456 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
12459 break
12460 else
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12464 done
12467 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12468 for ncn_progname in objdump; do
12469 if test -n "$ncn_target_tool_prefix"; then
12470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12497 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12498 if test -n "$OBJDUMP_FOR_TARGET"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12500 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12508 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12510 set dummy ${ncn_progname}; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 if test -n "$OBJDUMP_FOR_TARGET"; then
12517 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12530 done
12531 done
12532 IFS=$as_save_IFS
12536 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12537 if test -n "$OBJDUMP_FOR_TARGET"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12539 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12547 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12548 done
12551 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12552 set dummy objdump
12553 if test $build = $target ; then
12554 OBJDUMP_FOR_TARGET="$2"
12555 else
12556 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12558 else
12559 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12562 else
12563 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12569 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12570 if test -n "$with_build_time_tools"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12572 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12573 if test -x $with_build_time_tools/ranlib; then
12574 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12575 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12577 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12578 else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12582 elif test $build != $host && test $have_gcc_for_target = yes; then
12583 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12584 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12585 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12588 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12589 # Extract the first word of "ranlib", so it can be a program name with args.
12590 set dummy ranlib; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 case $RANLIB_FOR_TARGET in
12597 [\\/]* | ?:[\\/]*)
12598 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $gcc_cv_tool_dirs
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12612 done
12613 done
12614 IFS=$as_save_IFS
12617 esac
12619 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12620 if test -n "$RANLIB_FOR_TARGET"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12622 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12630 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12633 if test -n "$RANLIB_FOR_TARGET"; then
12634 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12635 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12636 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12639 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12640 for ncn_progname in ranlib; do
12641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12642 set dummy ${ncn_progname}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 if test -n "$RANLIB_FOR_TARGET"; then
12649 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12662 done
12663 done
12664 IFS=$as_save_IFS
12668 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12669 if test -n "$RANLIB_FOR_TARGET"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12671 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12678 done
12681 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12682 for ncn_progname in ranlib; do
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12685 if test -x $with_build_time_tools/${ncn_progname}; then
12686 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12689 break
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12694 done
12697 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12698 for ncn_progname in ranlib; do
12699 if test -n "$ncn_target_tool_prefix"; then
12700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12721 done
12722 done
12723 IFS=$as_save_IFS
12727 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12728 if test -n "$RANLIB_FOR_TARGET"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12730 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12738 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12740 set dummy ${ncn_progname}; ac_word=$2
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12742 $as_echo_n "checking for $ac_word... " >&6; }
12743 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 if test -n "$RANLIB_FOR_TARGET"; then
12747 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12748 else
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12752 IFS=$as_save_IFS
12753 test -z "$as_dir" && as_dir=.
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758 break 2
12760 done
12761 done
12762 IFS=$as_save_IFS
12766 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12767 if test -n "$RANLIB_FOR_TARGET"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12769 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12777 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12778 done
12781 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12782 set dummy ranlib
12783 if test $build = $target ; then
12784 RANLIB_FOR_TARGET="$2"
12785 else
12786 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12788 else
12789 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12792 else
12793 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12799 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12800 if test -n "$with_build_time_tools"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12802 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12803 if test -x $with_build_time_tools/readelf; then
12804 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12805 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12807 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12812 elif test $build != $host && test $have_gcc_for_target = yes; then
12813 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12814 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12815 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12818 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12819 # Extract the first word of "readelf", so it can be a program name with args.
12820 set dummy readelf; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 case $READELF_FOR_TARGET in
12827 [\\/]* | ?:[\\/]*)
12828 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $gcc_cv_tool_dirs
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 break 2
12842 done
12843 done
12844 IFS=$as_save_IFS
12847 esac
12849 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12850 if test -n "$READELF_FOR_TARGET"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12852 $as_echo "$READELF_FOR_TARGET" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12860 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12863 if test -n "$READELF_FOR_TARGET"; then
12864 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12865 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12866 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12869 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12870 for ncn_progname in readelf; do
12871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12872 set dummy ${ncn_progname}; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 if test -n "$READELF_FOR_TARGET"; then
12879 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12880 else
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12884 IFS=$as_save_IFS
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12890 break 2
12892 done
12893 done
12894 IFS=$as_save_IFS
12898 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12899 if test -n "$READELF_FOR_TARGET"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12901 $as_echo "$READELF_FOR_TARGET" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12908 done
12911 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12912 for ncn_progname in readelf; do
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12915 if test -x $with_build_time_tools/${ncn_progname}; then
12916 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919 break
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12924 done
12927 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12928 for ncn_progname in readelf; do
12929 if test -n "$ncn_target_tool_prefix"; then
12930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 if test -n "$READELF_FOR_TARGET"; then
12938 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12953 IFS=$as_save_IFS
12957 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958 if test -n "$READELF_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12960 $as_echo "$READELF_FOR_TARGET" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12968 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 if test -n "$READELF_FOR_TARGET"; then
12977 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12978 else
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12986 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 break 2
12990 done
12991 done
12992 IFS=$as_save_IFS
12996 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12997 if test -n "$READELF_FOR_TARGET"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12999 $as_echo "$READELF_FOR_TARGET" >&6; }
13000 else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13007 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13008 done
13011 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13012 set dummy readelf
13013 if test $build = $target ; then
13014 READELF_FOR_TARGET="$2"
13015 else
13016 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13018 else
13019 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13022 else
13023 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13029 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13030 if test -n "$with_build_time_tools"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13032 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13033 if test -x $with_build_time_tools/strip; then
13034 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13035 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13037 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13038 else
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13042 elif test $build != $host && test $have_gcc_for_target = yes; then
13043 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13044 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13045 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13048 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13049 # Extract the first word of "strip", so it can be a program name with args.
13050 set dummy strip; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 case $STRIP_FOR_TARGET in
13057 [\\/]* | ?:[\\/]*)
13058 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $gcc_cv_tool_dirs
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13072 done
13073 done
13074 IFS=$as_save_IFS
13077 esac
13079 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13080 if test -n "$STRIP_FOR_TARGET"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13082 $as_echo "$STRIP_FOR_TARGET" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13090 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13093 if test -n "$STRIP_FOR_TARGET"; then
13094 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13095 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13096 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13099 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13100 for ncn_progname in strip; do
13101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13102 set dummy ${ncn_progname}; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 if test -n "$STRIP_FOR_TARGET"; then
13109 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13110 else
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13118 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 break 2
13122 done
13123 done
13124 IFS=$as_save_IFS
13128 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13129 if test -n "$STRIP_FOR_TARGET"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13131 $as_echo "$STRIP_FOR_TARGET" >&6; }
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13138 done
13141 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13142 for ncn_progname in strip; do
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13145 if test -x $with_build_time_tools/${ncn_progname}; then
13146 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; }
13149 break
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13154 done
13157 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13158 for ncn_progname in strip; do
13159 if test -n "$ncn_target_tool_prefix"; then
13160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13181 done
13182 done
13183 IFS=$as_save_IFS
13187 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13188 if test -n "$STRIP_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13190 $as_echo "$STRIP_FOR_TARGET" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13198 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 if test -n "$STRIP_FOR_TARGET"; then
13207 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13220 done
13221 done
13222 IFS=$as_save_IFS
13226 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13227 if test -n "$STRIP_FOR_TARGET"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13229 $as_echo "$STRIP_FOR_TARGET" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13238 done
13241 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13242 set dummy strip
13243 if test $build = $target ; then
13244 STRIP_FOR_TARGET="$2"
13245 else
13246 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13248 else
13249 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13252 else
13253 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13259 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13260 if test -n "$with_build_time_tools"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13262 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13263 if test -x $with_build_time_tools/windres; then
13264 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13265 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13267 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13272 elif test $build != $host && test $have_gcc_for_target = yes; then
13273 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13274 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13275 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13278 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13279 # Extract the first word of "windres", so it can be a program name with args.
13280 set dummy windres; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 case $WINDRES_FOR_TARGET in
13287 [\\/]* | ?:[\\/]*)
13288 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $gcc_cv_tool_dirs
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13298 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300 break 2
13302 done
13303 done
13304 IFS=$as_save_IFS
13307 esac
13309 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13310 if test -n "$WINDRES_FOR_TARGET"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13312 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13320 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13323 if test -n "$WINDRES_FOR_TARGET"; then
13324 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13325 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13326 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13329 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13330 for ncn_progname in windres; do
13331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13332 set dummy ${ncn_progname}; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 if test -n "$WINDRES_FOR_TARGET"; then
13339 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13340 else
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 break 2
13352 done
13353 done
13354 IFS=$as_save_IFS
13358 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13359 if test -n "$WINDRES_FOR_TARGET"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13361 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13362 else
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13368 done
13371 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13372 for ncn_progname in windres; do
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13374 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13375 if test -x $with_build_time_tools/${ncn_progname}; then
13376 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378 $as_echo "yes" >&6; }
13379 break
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13384 done
13387 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13388 for ncn_progname in windres; do
13389 if test -n "$ncn_target_tool_prefix"; then
13390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13411 done
13412 done
13413 IFS=$as_save_IFS
13417 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13418 if test -n "$WINDRES_FOR_TARGET"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13420 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13428 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13430 set dummy ${ncn_progname}; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 if test -n "$WINDRES_FOR_TARGET"; then
13437 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13438 else
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13446 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 break 2
13450 done
13451 done
13452 IFS=$as_save_IFS
13456 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13457 if test -n "$WINDRES_FOR_TARGET"; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13459 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13460 else
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13467 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13468 done
13471 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13472 set dummy windres
13473 if test $build = $target ; then
13474 WINDRES_FOR_TARGET="$2"
13475 else
13476 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13478 else
13479 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13482 else
13483 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13489 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13490 if test -n "$with_build_time_tools"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13492 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13493 if test -x $with_build_time_tools/windmc; then
13494 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13495 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13497 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13498 else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13502 elif test $build != $host && test $have_gcc_for_target = yes; then
13503 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13504 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13505 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13508 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13509 # Extract the first word of "windmc", so it can be a program name with args.
13510 set dummy windmc; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 case $WINDMC_FOR_TARGET in
13517 [\\/]* | ?:[\\/]*)
13518 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $gcc_cv_tool_dirs
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13532 done
13533 done
13534 IFS=$as_save_IFS
13537 esac
13539 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13540 if test -n "$WINDMC_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13542 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13550 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13553 if test -n "$WINDMC_FOR_TARGET"; then
13554 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13555 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13556 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13559 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13560 for ncn_progname in windmc; do
13561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13562 set dummy ${ncn_progname}; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 if test -n "$WINDMC_FOR_TARGET"; then
13569 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580 break 2
13582 done
13583 done
13584 IFS=$as_save_IFS
13588 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13589 if test -n "$WINDMC_FOR_TARGET"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13591 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13592 else
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 done
13601 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13602 for ncn_progname in windmc; do
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13605 if test -x $with_build_time_tools/${ncn_progname}; then
13606 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609 break
13610 else
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13614 done
13617 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13618 for ncn_progname in windmc; do
13619 if test -n "$ncn_target_tool_prefix"; then
13620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13641 done
13642 done
13643 IFS=$as_save_IFS
13647 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648 if test -n "$WINDMC_FOR_TARGET"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13650 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13658 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13660 set dummy ${ncn_progname}; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13665 else
13666 if test -n "$WINDMC_FOR_TARGET"; then
13667 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13668 else
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13672 IFS=$as_save_IFS
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678 break 2
13680 done
13681 done
13682 IFS=$as_save_IFS
13686 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13687 if test -n "$WINDMC_FOR_TARGET"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13689 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13690 else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13697 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13698 done
13701 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13702 set dummy windmc
13703 if test $build = $target ; then
13704 WINDMC_FOR_TARGET="$2"
13705 else
13706 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13708 else
13709 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13712 else
13713 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13717 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13720 $as_echo_n "checking where to find the target ar... " >&6; }
13721 if test "x${build}" != "x${host}" ; then
13722 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
13724 ac_dir=`dirname $AR_FOR_TARGET`
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727 else
13728 # Canadian cross, just use what we found
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730 $as_echo "pre-installed" >&6; }
13732 else
13733 ok=yes
13734 case " ${configdirs} " in
13735 *" binutils "*) ;;
13736 *) ok=no ;;
13737 esac
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
13741 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743 $as_echo "just compiled" >&6; }
13744 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
13746 ac_dir=`dirname $AR_FOR_TARGET`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748 $as_echo "pre-installed in $ac_dir" >&6; }
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 AR_FOR_TARGET='$(AR)'
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753 $as_echo "host tool" >&6; }
13754 else
13755 # We need a cross tool
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13762 $as_echo_n "checking where to find the target as... " >&6; }
13763 if test "x${build}" != "x${host}" ; then
13764 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $AS_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 else
13770 # Canadian cross, just use what we found
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13774 else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" gas "*) ;;
13778 *) ok=no ;;
13779 esac
13781 if test $ok = yes; then
13782 # An in-tree tool is available and we can use it
13783 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13785 $as_echo "just compiled" >&6; }
13786 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
13788 ac_dir=`dirname $AS_FOR_TARGET`
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790 $as_echo "pre-installed in $ac_dir" >&6; }
13791 elif test "x$target" = "x$host"; then
13792 # We can use an host tool
13793 AS_FOR_TARGET='$(AS)'
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13795 $as_echo "host tool" >&6; }
13796 else
13797 # We need a cross tool
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13799 $as_echo "pre-installed" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13804 $as_echo_n "checking where to find the target cc... " >&6; }
13805 if test "x${build}" != "x${host}" ; then
13806 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
13808 ac_dir=`dirname $CC_FOR_TARGET`
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810 $as_echo "pre-installed in $ac_dir" >&6; }
13811 else
13812 # Canadian cross, just use what we found
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814 $as_echo "pre-installed" >&6; }
13816 else
13817 ok=yes
13818 case " ${configdirs} " in
13819 *" gcc "*) ;;
13820 *) ok=no ;;
13821 esac
13823 if test $ok = yes; then
13824 # An in-tree tool is available and we can use it
13825 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13827 $as_echo "just compiled" >&6; }
13828 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13829 # We already found the complete path
13830 ac_dir=`dirname $CC_FOR_TARGET`
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832 $as_echo "pre-installed in $ac_dir" >&6; }
13833 elif test "x$target" = "x$host"; then
13834 # We can use an host tool
13835 CC_FOR_TARGET='$(CC)'
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13837 $as_echo "host tool" >&6; }
13838 else
13839 # We need a cross tool
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841 $as_echo "pre-installed" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13846 $as_echo_n "checking where to find the target c++... " >&6; }
13847 if test "x${build}" != "x${host}" ; then
13848 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13849 # We already found the complete path
13850 ac_dir=`dirname $CXX_FOR_TARGET`
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13852 $as_echo "pre-installed in $ac_dir" >&6; }
13853 else
13854 # Canadian cross, just use what we found
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856 $as_echo "pre-installed" >&6; }
13858 else
13859 ok=yes
13860 case " ${configdirs} " in
13861 *" gcc "*) ;;
13862 *) ok=no ;;
13863 esac
13864 case ,${enable_languages}, in
13865 *,c++,*) ;;
13866 *) ok=no ;;
13867 esac
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 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'
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872 $as_echo "just compiled" >&6; }
13873 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
13875 ac_dir=`dirname $CXX_FOR_TARGET`
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877 $as_echo "pre-installed in $ac_dir" >&6; }
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 CXX_FOR_TARGET='$(CXX)'
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882 $as_echo "host tool" >&6; }
13883 else
13884 # We need a cross tool
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886 $as_echo "pre-installed" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13891 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13892 if test "x${build}" != "x${host}" ; then
13893 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898 else
13899 # Canadian cross, just use what we found
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13903 else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,c++,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 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'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917 $as_echo "just compiled" >&6; }
13918 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
13920 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922 $as_echo "pre-installed in $ac_dir" >&6; }
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 RAW_CXX_FOR_TARGET='$(CXX)'
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927 $as_echo "host tool" >&6; }
13928 else
13929 # We need a cross tool
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13936 $as_echo_n "checking where to find the target dlltool... " >&6; }
13937 if test "x${build}" != "x${host}" ; then
13938 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
13940 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943 else
13944 # Canadian cross, just use what we found
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13948 else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" binutils "*) ;;
13952 *) ok=no ;;
13953 esac
13955 if test $ok = yes; then
13956 # An in-tree tool is available and we can use it
13957 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13959 $as_echo "just compiled" >&6; }
13960 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13961 # We already found the complete path
13962 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13964 $as_echo "pre-installed in $ac_dir" >&6; }
13965 elif test "x$target" = "x$host"; then
13966 # We can use an host tool
13967 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13969 $as_echo "host tool" >&6; }
13970 else
13971 # We need a cross tool
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973 $as_echo "pre-installed" >&6; }
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13978 $as_echo_n "checking where to find the target gcc... " >&6; }
13979 if test "x${build}" != "x${host}" ; then
13980 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $GCC_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985 else
13986 # Canadian cross, just use what we found
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13988 $as_echo "pre-installed" >&6; }
13990 else
13991 ok=yes
13992 case " ${configdirs} " in
13993 *" gcc "*) ;;
13994 *) ok=no ;;
13995 esac
13997 if test $ok = yes; then
13998 # An in-tree tool is available and we can use it
13999 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14001 $as_echo "just compiled" >&6; }
14002 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
14004 ac_dir=`dirname $GCC_FOR_TARGET`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007 elif test "x$target" = "x$host"; then
14008 # We can use an host tool
14009 GCC_FOR_TARGET='$()'
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14011 $as_echo "host tool" >&6; }
14012 else
14013 # We need a cross tool
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14020 $as_echo_n "checking where to find the target gcj... " >&6; }
14021 if test "x${build}" != "x${host}" ; then
14022 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14023 # We already found the complete path
14024 ac_dir=`dirname $GCJ_FOR_TARGET`
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026 $as_echo "pre-installed in $ac_dir" >&6; }
14027 else
14028 # Canadian cross, just use what we found
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14030 $as_echo "pre-installed" >&6; }
14032 else
14033 ok=yes
14034 case " ${configdirs} " in
14035 *" gcc "*) ;;
14036 *) ok=no ;;
14037 esac
14038 case ,${enable_languages}, in
14039 *,java,*) ;;
14040 *) ok=no ;;
14041 esac
14042 if test $ok = yes; then
14043 # An in-tree tool is available and we can use it
14044 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14046 $as_echo "just compiled" >&6; }
14047 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14048 # We already found the complete path
14049 ac_dir=`dirname $GCJ_FOR_TARGET`
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14051 $as_echo "pre-installed in $ac_dir" >&6; }
14052 elif test "x$target" = "x$host"; then
14053 # We can use an host tool
14054 GCJ_FOR_TARGET='$(GCJ)'
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14056 $as_echo "host tool" >&6; }
14057 else
14058 # We need a cross tool
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14065 $as_echo_n "checking where to find the target gfortran... " >&6; }
14066 if test "x${build}" != "x${host}" ; then
14067 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
14069 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071 $as_echo "pre-installed in $ac_dir" >&6; }
14072 else
14073 # Canadian cross, just use what we found
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14075 $as_echo "pre-installed" >&6; }
14077 else
14078 ok=yes
14079 case " ${configdirs} " in
14080 *" gcc "*) ;;
14081 *) ok=no ;;
14082 esac
14083 case ,${enable_languages}, in
14084 *,fortran,*) ;;
14085 *) ok=no ;;
14086 esac
14087 if test $ok = yes; then
14088 # An in-tree tool is available and we can use it
14089 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14091 $as_echo "just compiled" >&6; }
14092 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14093 # We already found the complete path
14094 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14096 $as_echo "pre-installed in $ac_dir" >&6; }
14097 elif test "x$target" = "x$host"; then
14098 # We can use an host tool
14099 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14101 $as_echo "host tool" >&6; }
14102 else
14103 # We need a cross tool
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14110 $as_echo_n "checking where to find the target gccgo... " >&6; }
14111 if test "x${build}" != "x${host}" ; then
14112 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14113 # We already found the complete path
14114 ac_dir=`dirname $GOC_FOR_TARGET`
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14116 $as_echo "pre-installed in $ac_dir" >&6; }
14117 else
14118 # Canadian cross, just use what we found
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14120 $as_echo "pre-installed" >&6; }
14122 else
14123 ok=yes
14124 case " ${configdirs} " in
14125 *" gcc "*) ;;
14126 *) ok=no ;;
14127 esac
14128 case ,${enable_languages}, in
14129 *,go,*) ;;
14130 *) ok=no ;;
14131 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $GOC_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 GOC_FOR_TARGET='$(GOC)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14155 $as_echo_n "checking where to find the target gupc... " >&6; }
14156 if test "x${build}" != "x${host}" ; then
14157 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $GUPC_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 else
14163 # Canadian cross, just use what we found
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165 $as_echo "pre-installed" >&6; }
14167 else
14168 ok=yes
14169 case " ${configdirs} " in
14170 *" gcc "*) ;;
14171 *) ok=no ;;
14172 esac
14173 case ,${enable_languages}, in
14174 *,upc,*) ;;
14175 *) ok=no ;;
14176 esac
14177 if test $ok = yes; then
14178 # An in-tree tool is available and we can use it
14179 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14181 $as_echo "just compiled" >&6; }
14182 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14183 # We already found the complete path
14184 ac_dir=`dirname $GUPC_FOR_TARGET`
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187 elif test "x$target" = "x$host"; then
14188 # We can use an host tool
14189 GUPC_FOR_TARGET='$(GUPC)'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14191 $as_echo "host tool" >&6; }
14192 else
14193 # We need a cross tool
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14195 $as_echo "pre-installed" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14200 $as_echo_n "checking where to find the target ld... " >&6; }
14201 if test "x${build}" != "x${host}" ; then
14202 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14203 # We already found the complete path
14204 ac_dir=`dirname $LD_FOR_TARGET`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14206 $as_echo "pre-installed in $ac_dir" >&6; }
14207 else
14208 # Canadian cross, just use what we found
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14210 $as_echo "pre-installed" >&6; }
14212 else
14213 ok=yes
14214 case " ${configdirs} " in
14215 *" ld "*) ;;
14216 *) ok=no ;;
14217 esac
14219 if test $ok = yes; then
14220 # An in-tree tool is available and we can use it
14221 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14223 $as_echo "just compiled" >&6; }
14224 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14225 # We already found the complete path
14226 ac_dir=`dirname $LD_FOR_TARGET`
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14228 $as_echo "pre-installed in $ac_dir" >&6; }
14229 elif test "x$target" = "x$host"; then
14230 # We can use an host tool
14231 LD_FOR_TARGET='$(LD)'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14233 $as_echo "host tool" >&6; }
14234 else
14235 # We need a cross tool
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237 $as_echo "pre-installed" >&6; }
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14242 $as_echo_n "checking where to find the target lipo... " >&6; }
14243 if test "x${build}" != "x${host}" ; then
14244 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14245 # We already found the complete path
14246 ac_dir=`dirname $LIPO_FOR_TARGET`
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14248 $as_echo "pre-installed in $ac_dir" >&6; }
14249 else
14250 # Canadian cross, just use what we found
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14252 $as_echo "pre-installed" >&6; }
14254 else
14255 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14256 # We already found the complete path
14257 ac_dir=`dirname $LIPO_FOR_TARGET`
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259 $as_echo "pre-installed in $ac_dir" >&6; }
14260 elif test "x$target" = "x$host"; then
14261 # We can use an host tool
14262 LIPO_FOR_TARGET='$(LIPO)'
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14264 $as_echo "host tool" >&6; }
14265 else
14266 # We need a cross tool
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268 $as_echo "pre-installed" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14273 $as_echo_n "checking where to find the target nm... " >&6; }
14274 if test "x${build}" != "x${host}" ; then
14275 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14276 # We already found the complete path
14277 ac_dir=`dirname $NM_FOR_TARGET`
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14279 $as_echo "pre-installed in $ac_dir" >&6; }
14280 else
14281 # Canadian cross, just use what we found
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283 $as_echo "pre-installed" >&6; }
14285 else
14286 ok=yes
14287 case " ${configdirs} " in
14288 *" binutils "*) ;;
14289 *) ok=no ;;
14290 esac
14292 if test $ok = yes; then
14293 # An in-tree tool is available and we can use it
14294 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14296 $as_echo "just compiled" >&6; }
14297 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14298 # We already found the complete path
14299 ac_dir=`dirname $NM_FOR_TARGET`
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14301 $as_echo "pre-installed in $ac_dir" >&6; }
14302 elif test "x$target" = "x$host"; then
14303 # We can use an host tool
14304 NM_FOR_TARGET='$(NM)'
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14306 $as_echo "host tool" >&6; }
14307 else
14308 # We need a cross tool
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14310 $as_echo "pre-installed" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14315 $as_echo_n "checking where to find the target objdump... " >&6; }
14316 if test "x${build}" != "x${host}" ; then
14317 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14318 # We already found the complete path
14319 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14321 $as_echo "pre-installed in $ac_dir" >&6; }
14322 else
14323 # Canadian cross, just use what we found
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14325 $as_echo "pre-installed" >&6; }
14327 else
14328 ok=yes
14329 case " ${configdirs} " in
14330 *" binutils "*) ;;
14331 *) ok=no ;;
14332 esac
14334 if test $ok = yes; then
14335 # An in-tree tool is available and we can use it
14336 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14338 $as_echo "just compiled" >&6; }
14339 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14340 # We already found the complete path
14341 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14343 $as_echo "pre-installed in $ac_dir" >&6; }
14344 elif test "x$target" = "x$host"; then
14345 # We can use an host tool
14346 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14348 $as_echo "host tool" >&6; }
14349 else
14350 # We need a cross tool
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14352 $as_echo "pre-installed" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14357 $as_echo_n "checking where to find the target ranlib... " >&6; }
14358 if test "x${build}" != "x${host}" ; then
14359 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14360 # We already found the complete path
14361 ac_dir=`dirname $RANLIB_FOR_TARGET`
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14363 $as_echo "pre-installed in $ac_dir" >&6; }
14364 else
14365 # Canadian cross, just use what we found
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14367 $as_echo "pre-installed" >&6; }
14369 else
14370 ok=yes
14371 case " ${configdirs} " in
14372 *" binutils "*) ;;
14373 *) ok=no ;;
14374 esac
14376 if test $ok = yes; then
14377 # An in-tree tool is available and we can use it
14378 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14380 $as_echo "just compiled" >&6; }
14381 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14382 # We already found the complete path
14383 ac_dir=`dirname $RANLIB_FOR_TARGET`
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14385 $as_echo "pre-installed in $ac_dir" >&6; }
14386 elif test "x$target" = "x$host"; then
14387 # We can use an host tool
14388 RANLIB_FOR_TARGET='$(RANLIB)'
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14390 $as_echo "host tool" >&6; }
14391 else
14392 # We need a cross tool
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14394 $as_echo "pre-installed" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14399 $as_echo_n "checking where to find the target readelf... " >&6; }
14400 if test "x${build}" != "x${host}" ; then
14401 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14402 # We already found the complete path
14403 ac_dir=`dirname $READELF_FOR_TARGET`
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14405 $as_echo "pre-installed in $ac_dir" >&6; }
14406 else
14407 # Canadian cross, just use what we found
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409 $as_echo "pre-installed" >&6; }
14411 else
14412 ok=yes
14413 case " ${configdirs} " in
14414 *" binutils "*) ;;
14415 *) ok=no ;;
14416 esac
14418 if test $ok = yes; then
14419 # An in-tree tool is available and we can use it
14420 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14422 $as_echo "just compiled" >&6; }
14423 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14424 # We already found the complete path
14425 ac_dir=`dirname $READELF_FOR_TARGET`
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14427 $as_echo "pre-installed in $ac_dir" >&6; }
14428 elif test "x$target" = "x$host"; then
14429 # We can use an host tool
14430 READELF_FOR_TARGET='$(READELF)'
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14432 $as_echo "host tool" >&6; }
14433 else
14434 # We need a cross tool
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14436 $as_echo "pre-installed" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14441 $as_echo_n "checking where to find the target strip... " >&6; }
14442 if test "x${build}" != "x${host}" ; then
14443 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14444 # We already found the complete path
14445 ac_dir=`dirname $STRIP_FOR_TARGET`
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14447 $as_echo "pre-installed in $ac_dir" >&6; }
14448 else
14449 # Canadian cross, just use what we found
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451 $as_echo "pre-installed" >&6; }
14453 else
14454 ok=yes
14455 case " ${configdirs} " in
14456 *" binutils "*) ;;
14457 *) ok=no ;;
14458 esac
14460 if test $ok = yes; then
14461 # An in-tree tool is available and we can use it
14462 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14464 $as_echo "just compiled" >&6; }
14465 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14466 # We already found the complete path
14467 ac_dir=`dirname $STRIP_FOR_TARGET`
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14469 $as_echo "pre-installed in $ac_dir" >&6; }
14470 elif test "x$target" = "x$host"; then
14471 # We can use an host tool
14472 STRIP_FOR_TARGET='$(STRIP)'
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14474 $as_echo "host tool" >&6; }
14475 else
14476 # We need a cross tool
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14478 $as_echo "pre-installed" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14483 $as_echo_n "checking where to find the target windres... " >&6; }
14484 if test "x${build}" != "x${host}" ; then
14485 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14486 # We already found the complete path
14487 ac_dir=`dirname $WINDRES_FOR_TARGET`
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14489 $as_echo "pre-installed in $ac_dir" >&6; }
14490 else
14491 # Canadian cross, just use what we found
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14493 $as_echo "pre-installed" >&6; }
14495 else
14496 ok=yes
14497 case " ${configdirs} " in
14498 *" binutils "*) ;;
14499 *) ok=no ;;
14500 esac
14502 if test $ok = yes; then
14503 # An in-tree tool is available and we can use it
14504 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14506 $as_echo "just compiled" >&6; }
14507 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14508 # We already found the complete path
14509 ac_dir=`dirname $WINDRES_FOR_TARGET`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14511 $as_echo "pre-installed in $ac_dir" >&6; }
14512 elif test "x$target" = "x$host"; then
14513 # We can use an host tool
14514 WINDRES_FOR_TARGET='$(WINDRES)'
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14516 $as_echo "host tool" >&6; }
14517 else
14518 # We need a cross tool
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14520 $as_echo "pre-installed" >&6; }
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14525 $as_echo_n "checking where to find the target windmc... " >&6; }
14526 if test "x${build}" != "x${host}" ; then
14527 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14528 # We already found the complete path
14529 ac_dir=`dirname $WINDMC_FOR_TARGET`
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14531 $as_echo "pre-installed in $ac_dir" >&6; }
14532 else
14533 # Canadian cross, just use what we found
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535 $as_echo "pre-installed" >&6; }
14537 else
14538 ok=yes
14539 case " ${configdirs} " in
14540 *" binutils "*) ;;
14541 *) ok=no ;;
14542 esac
14544 if test $ok = yes; then
14545 # An in-tree tool is available and we can use it
14546 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14548 $as_echo "just compiled" >&6; }
14549 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14550 # We already found the complete path
14551 ac_dir=`dirname $WINDMC_FOR_TARGET`
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14553 $as_echo "pre-installed in $ac_dir" >&6; }
14554 elif test "x$target" = "x$host"; then
14555 # We can use an host tool
14556 WINDMC_FOR_TARGET='$(WINDMC)'
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14558 $as_echo "host tool" >&6; }
14559 else
14560 # We need a cross tool
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14562 $as_echo "pre-installed" >&6; }
14570 # Certain tools may need extra flags.
14571 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14572 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14573 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14575 # When building target libraries, except in a Canadian cross, we use
14576 # the same toolchain as the compiler we just built.
14577 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14578 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14579 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14580 if test $host = $build; then
14581 case " $configdirs " in
14582 *" gcc "*)
14583 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14584 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14585 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14587 esac
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14595 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14596 # Check whether --enable-maintainer-mode was given.
14597 if test "${enable_maintainer_mode+set}" = set; then :
14598 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14599 else
14600 USE_MAINTAINER_MODE=no
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14604 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14607 if test "$USE_MAINTAINER_MODE" = yes; then
14608 MAINTAINER_MODE_TRUE=
14609 MAINTAINER_MODE_FALSE='#'
14610 else
14611 MAINTAINER_MODE_TRUE='#'
14612 MAINTAINER_MODE_FALSE=
14614 MAINT=$MAINTAINER_MODE_TRUE
14616 # ---------------------
14617 # GCC bootstrap support
14618 # ---------------------
14620 # Stage specific cflags for build.
14621 stage1_cflags="-g"
14622 case $build in
14623 vax-*-*)
14624 case ${GCC} in
14625 yes) stage1_cflags="-g -Wa,-J" ;;
14626 *) stage1_cflags="-g -J" ;;
14627 esac ;;
14628 esac
14632 # Enable --enable-checking in stage1 of the compiler.
14633 # Check whether --enable-stage1-checking was given.
14634 if test "${enable_stage1_checking+set}" = set; then :
14635 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14636 else
14637 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14638 stage1_checking=--enable-checking=yes,types
14639 else
14640 stage1_checking=--enable-checking=$enable_checking,types
14646 # Enable -Werror in bootstrap stage2 and later.
14647 # Check whether --enable-werror was given.
14648 if test "${enable_werror+set}" = set; then :
14649 enableval=$enable_werror;
14650 else
14651 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14652 enable_werror=yes
14653 else
14654 enable_werror=no
14658 case ${enable_werror} in
14659 yes) stage2_werror_flag="--enable-werror-always" ;;
14660 *) stage2_werror_flag="" ;;
14661 esac
14664 # Specify what files to not compare during bootstrap.
14666 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14667 case "$target" in
14668 hppa*64*-*-hpux*) ;;
14669 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14670 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14671 esac
14674 ac_config_files="$ac_config_files Makefile"
14676 cat >confcache <<\_ACEOF
14677 # This file is a shell script that caches the results of configure
14678 # tests run on this system so they can be shared between configure
14679 # scripts and configure runs, see configure's option --config-cache.
14680 # It is not useful on other systems. If it contains results you don't
14681 # want to keep, you may remove or edit it.
14683 # config.status only pays attention to the cache file if you give it
14684 # the --recheck option to rerun configure.
14686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14688 # following values.
14690 _ACEOF
14692 # The following way of writing the cache mishandles newlines in values,
14693 # but we know of no workaround that is simple, portable, and efficient.
14694 # So, we kill variables containing newlines.
14695 # Ultrix sh set writes to stderr and can't be redirected directly,
14696 # and sets the high bit in the cache file unless we assign to the vars.
14698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14699 eval ac_val=\$$ac_var
14700 case $ac_val in #(
14701 *${as_nl}*)
14702 case $ac_var in #(
14703 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14705 esac
14706 case $ac_var in #(
14707 _ | IFS | as_nl) ;; #(
14708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14709 *) { eval $ac_var=; unset $ac_var;} ;;
14710 esac ;;
14711 esac
14712 done
14714 (set) 2>&1 |
14715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14716 *${as_nl}ac_space=\ *)
14717 # `set' does not quote correctly, so add quotes: double-quote
14718 # substitution turns \\\\ into \\, and sed turns \\ into \.
14719 sed -n \
14720 "s/'/'\\\\''/g;
14721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14722 ;; #(
14724 # `set' quotes correctly as required by POSIX, so do not add quotes.
14725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14727 esac |
14728 sort
14730 sed '
14731 /^ac_cv_env_/b end
14732 t clear
14733 :clear
14734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14735 t end
14736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14737 :end' >>confcache
14738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14739 if test -w "$cache_file"; then
14740 test "x$cache_file" != "x/dev/null" &&
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14742 $as_echo "$as_me: updating cache $cache_file" >&6;}
14743 cat confcache >$cache_file
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14749 rm -f confcache
14751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14752 # Let make expand exec_prefix.
14753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14755 # Transform confdefs.h into DEFS.
14756 # Protect against shell expansion while executing Makefile rules.
14757 # Protect against Makefile macro expansion.
14759 # If the first sed substitution is executed (which looks for macros that
14760 # take arguments), then branch to the quote section. Otherwise,
14761 # look for a macro that doesn't take arguments.
14762 ac_script='
14763 :mline
14764 /\\$/{
14766 s,\\\n,,
14767 b mline
14769 t clear
14770 :clear
14771 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14772 t quote
14773 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14774 t quote
14775 b any
14776 :quote
14777 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14778 s/\[/\\&/g
14779 s/\]/\\&/g
14780 s/\$/$$/g
14782 :any
14785 s/^\n//
14786 s/\n/ /g
14790 DEFS=`sed -n "$ac_script" confdefs.h`
14793 ac_libobjs=
14794 ac_ltlibobjs=
14795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14796 # 1. Remove the extension, and $U if already installed.
14797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14800 # will be set to the directory where LIBOBJS objects are built.
14801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14803 done
14804 LIBOBJS=$ac_libobjs
14806 LTLIBOBJS=$ac_ltlibobjs
14810 : ${CONFIG_STATUS=./config.status}
14811 ac_write_fail=0
14812 ac_clean_files_save=$ac_clean_files
14813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14816 as_write_fail=0
14817 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14818 #! $SHELL
14819 # Generated by $as_me.
14820 # Run this file to recreate the current configuration.
14821 # Compiler output produced by configure, useful for debugging
14822 # configure, is in config.log if it exists.
14824 debug=false
14825 ac_cs_recheck=false
14826 ac_cs_silent=false
14828 SHELL=\${CONFIG_SHELL-$SHELL}
14829 export SHELL
14830 _ASEOF
14831 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14832 ## -------------------- ##
14833 ## M4sh Initialization. ##
14834 ## -------------------- ##
14836 # Be more Bourne compatible
14837 DUALCASE=1; export DUALCASE # for MKS sh
14838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14839 emulate sh
14840 NULLCMD=:
14841 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14842 # is contrary to our usage. Disable this feature.
14843 alias -g '${1+"$@"}'='"$@"'
14844 setopt NO_GLOB_SUBST
14845 else
14846 case `(set -o) 2>/dev/null` in #(
14847 *posix*) :
14848 set -o posix ;; #(
14849 *) :
14851 esac
14855 as_nl='
14857 export as_nl
14858 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14859 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14862 # Prefer a ksh shell builtin over an external printf program on Solaris,
14863 # but without wasting forks for bash or zsh.
14864 if test -z "$BASH_VERSION$ZSH_VERSION" \
14865 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14866 as_echo='print -r --'
14867 as_echo_n='print -rn --'
14868 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='printf %s\n'
14870 as_echo_n='printf %s'
14871 else
14872 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14873 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14874 as_echo_n='/usr/ucb/echo -n'
14875 else
14876 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14877 as_echo_n_body='eval
14878 arg=$1;
14879 case $arg in #(
14880 *"$as_nl"*)
14881 expr "X$arg" : "X\\(.*\\)$as_nl";
14882 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14883 esac;
14884 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14886 export as_echo_n_body
14887 as_echo_n='sh -c $as_echo_n_body as_echo'
14889 export as_echo_body
14890 as_echo='sh -c $as_echo_body as_echo'
14893 # The user is always right.
14894 if test "${PATH_SEPARATOR+set}" != set; then
14895 PATH_SEPARATOR=:
14896 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14897 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14898 PATH_SEPARATOR=';'
14903 # IFS
14904 # We need space, tab and new line, in precisely that order. Quoting is
14905 # there to prevent editors from complaining about space-tab.
14906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14907 # splitting by setting IFS to empty value.)
14908 IFS=" "" $as_nl"
14910 # Find who we are. Look in the path if we contain no directory separator.
14911 case $0 in #((
14912 *[\\/]* ) as_myself=$0 ;;
14913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
14918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14919 done
14920 IFS=$as_save_IFS
14923 esac
14924 # We did not find ourselves, most probably we were run as `sh COMMAND'
14925 # in which case we are not to be found in the path.
14926 if test "x$as_myself" = x; then
14927 as_myself=$0
14929 if test ! -f "$as_myself"; then
14930 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14931 exit 1
14934 # Unset variables that we do not need and which cause bugs (e.g. in
14935 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14936 # suppresses any "Segmentation fault" message there. '((' could
14937 # trigger a bug in pdksh 5.2.14.
14938 for as_var in BASH_ENV ENV MAIL MAILPATH
14939 do eval test x\${$as_var+set} = xset \
14940 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14941 done
14942 PS1='$ '
14943 PS2='> '
14944 PS4='+ '
14946 # NLS nuisances.
14947 LC_ALL=C
14948 export LC_ALL
14949 LANGUAGE=C
14950 export LANGUAGE
14952 # CDPATH.
14953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14956 # as_fn_error ERROR [LINENO LOG_FD]
14957 # ---------------------------------
14958 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14959 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14960 # script with status $?, using 1 if that was 0.
14961 as_fn_error ()
14963 as_status=$?; test $as_status -eq 0 && as_status=1
14964 if test "$3"; then
14965 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14966 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14968 $as_echo "$as_me: error: $1" >&2
14969 as_fn_exit $as_status
14970 } # as_fn_error
14973 # as_fn_set_status STATUS
14974 # -----------------------
14975 # Set $? to STATUS, without forking.
14976 as_fn_set_status ()
14978 return $1
14979 } # as_fn_set_status
14981 # as_fn_exit STATUS
14982 # -----------------
14983 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14984 as_fn_exit ()
14986 set +e
14987 as_fn_set_status $1
14988 exit $1
14989 } # as_fn_exit
14991 # as_fn_unset VAR
14992 # ---------------
14993 # Portably unset VAR.
14994 as_fn_unset ()
14996 { eval $1=; unset $1;}
14998 as_unset=as_fn_unset
14999 # as_fn_append VAR VALUE
15000 # ----------------------
15001 # Append the text in VALUE to the end of the definition contained in VAR. Take
15002 # advantage of any shell optimizations that allow amortized linear growth over
15003 # repeated appends, instead of the typical quadratic growth present in naive
15004 # implementations.
15005 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15006 eval 'as_fn_append ()
15008 eval $1+=\$2
15010 else
15011 as_fn_append ()
15013 eval $1=\$$1\$2
15015 fi # as_fn_append
15017 # as_fn_arith ARG...
15018 # ------------------
15019 # Perform arithmetic evaluation on the ARGs, and store the result in the
15020 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15021 # must be portable across $(()) and expr.
15022 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15023 eval 'as_fn_arith ()
15025 as_val=$(( $* ))
15027 else
15028 as_fn_arith ()
15030 as_val=`expr "$@" || test $? -eq 1`
15032 fi # as_fn_arith
15035 if expr a : '\(a\)' >/dev/null 2>&1 &&
15036 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15037 as_expr=expr
15038 else
15039 as_expr=false
15042 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15043 as_basename=basename
15044 else
15045 as_basename=false
15048 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15049 as_dirname=dirname
15050 else
15051 as_dirname=false
15054 as_me=`$as_basename -- "$0" ||
15055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15056 X"$0" : 'X\(//\)$' \| \
15057 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15058 $as_echo X/"$0" |
15059 sed '/^.*\/\([^/][^/]*\)\/*$/{
15060 s//\1/
15063 /^X\/\(\/\/\)$/{
15064 s//\1/
15067 /^X\/\(\/\).*/{
15068 s//\1/
15071 s/.*/./; q'`
15073 # Avoid depending upon Character Ranges.
15074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15077 as_cr_digits='0123456789'
15078 as_cr_alnum=$as_cr_Letters$as_cr_digits
15080 ECHO_C= ECHO_N= ECHO_T=
15081 case `echo -n x` in #(((((
15082 -n*)
15083 case `echo 'xy\c'` in
15084 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15085 xy) ECHO_C='\c';;
15086 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15087 ECHO_T=' ';;
15088 esac;;
15090 ECHO_N='-n';;
15091 esac
15093 rm -f conf$$ conf$$.exe conf$$.file
15094 if test -d conf$$.dir; then
15095 rm -f conf$$.dir/conf$$.file
15096 else
15097 rm -f conf$$.dir
15098 mkdir conf$$.dir 2>/dev/null
15100 if (echo >conf$$.file) 2>/dev/null; then
15101 if ln -s conf$$.file conf$$ 2>/dev/null; then
15102 as_ln_s='ln -s'
15103 # ... but there are two gotchas:
15104 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15105 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15106 # In both cases, we have to default to `cp -p'.
15107 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15108 as_ln_s='cp -p'
15109 elif ln conf$$.file conf$$ 2>/dev/null; then
15110 as_ln_s=ln
15111 else
15112 as_ln_s='cp -p'
15114 else
15115 as_ln_s='cp -p'
15117 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15118 rmdir conf$$.dir 2>/dev/null
15121 # as_fn_mkdir_p
15122 # -------------
15123 # Create "$as_dir" as a directory, including parents if necessary.
15124 as_fn_mkdir_p ()
15127 case $as_dir in #(
15128 -*) as_dir=./$as_dir;;
15129 esac
15130 test -d "$as_dir" || eval $as_mkdir_p || {
15131 as_dirs=
15132 while :; do
15133 case $as_dir in #(
15134 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15135 *) as_qdir=$as_dir;;
15136 esac
15137 as_dirs="'$as_qdir' $as_dirs"
15138 as_dir=`$as_dirname -- "$as_dir" ||
15139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15140 X"$as_dir" : 'X\(//\)[^/]' \| \
15141 X"$as_dir" : 'X\(//\)$' \| \
15142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15143 $as_echo X"$as_dir" |
15144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15145 s//\1/
15148 /^X\(\/\/\)[^/].*/{
15149 s//\1/
15152 /^X\(\/\/\)$/{
15153 s//\1/
15156 /^X\(\/\).*/{
15157 s//\1/
15160 s/.*/./; q'`
15161 test -d "$as_dir" && break
15162 done
15163 test -z "$as_dirs" || eval "mkdir $as_dirs"
15164 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15167 } # as_fn_mkdir_p
15168 if mkdir -p . 2>/dev/null; then
15169 as_mkdir_p='mkdir -p "$as_dir"'
15170 else
15171 test -d ./-p && rmdir ./-p
15172 as_mkdir_p=false
15175 if test -x / >/dev/null 2>&1; then
15176 as_test_x='test -x'
15177 else
15178 if ls -dL / >/dev/null 2>&1; then
15179 as_ls_L_option=L
15180 else
15181 as_ls_L_option=
15183 as_test_x='
15184 eval sh -c '\''
15185 if test -d "$1"; then
15186 test -d "$1/.";
15187 else
15188 case $1 in #(
15189 -*)set "./$1";;
15190 esac;
15191 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15192 ???[sx]*):;;*)false;;esac;fi
15193 '\'' sh
15196 as_executable_p=$as_test_x
15198 # Sed expression to map a string onto a valid CPP name.
15199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15201 # Sed expression to map a string onto a valid variable name.
15202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15205 exec 6>&1
15206 ## ----------------------------------- ##
15207 ## Main body of $CONFIG_STATUS script. ##
15208 ## ----------------------------------- ##
15209 _ASEOF
15210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15213 # Save the log message, to keep $0 and so on meaningful, and to
15214 # report actual input values of CONFIG_FILES etc. instead of their
15215 # values after options handling.
15216 ac_log="
15217 This file was extended by $as_me, which was
15218 generated by GNU Autoconf 2.64. Invocation command line was
15220 CONFIG_FILES = $CONFIG_FILES
15221 CONFIG_HEADERS = $CONFIG_HEADERS
15222 CONFIG_LINKS = $CONFIG_LINKS
15223 CONFIG_COMMANDS = $CONFIG_COMMANDS
15224 $ $0 $@
15226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15229 _ACEOF
15231 case $ac_config_files in *"
15232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15233 esac
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238 # Files that config.status was made for.
15239 config_files="$ac_config_files"
15241 _ACEOF
15243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244 ac_cs_usage="\
15245 \`$as_me' instantiates files and other configuration actions
15246 from templates according to the current configuration. Unless the files
15247 and actions are specified as TAGs, all are instantiated by default.
15249 Usage: $0 [OPTION]... [TAG]...
15251 -h, --help print this help, then exit
15252 -V, --version print version number and configuration settings, then exit
15253 -q, --quiet, --silent
15254 do not print progress messages
15255 -d, --debug don't remove temporary files
15256 --recheck update $as_me by reconfiguring in the same conditions
15257 --file=FILE[:TEMPLATE]
15258 instantiate the configuration file FILE
15260 Configuration files:
15261 $config_files
15263 Report bugs to the package provider."
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15267 ac_cs_version="\\
15268 config.status
15269 configured by $0, generated by GNU Autoconf 2.64,
15270 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15272 Copyright (C) 2009 Free Software Foundation, Inc.
15273 This config.status script is free software; the Free Software Foundation
15274 gives unlimited permission to copy, distribute and modify it."
15276 ac_pwd='$ac_pwd'
15277 srcdir='$srcdir'
15278 INSTALL='$INSTALL'
15279 AWK='$AWK'
15280 test -n "\$AWK" || AWK=awk
15281 _ACEOF
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284 # The default lists apply if the user does not specify any file.
15285 ac_need_defaults=:
15286 while test $# != 0
15288 case $1 in
15289 --*=*)
15290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15292 ac_shift=:
15295 ac_option=$1
15296 ac_optarg=$2
15297 ac_shift=shift
15299 esac
15301 case $ac_option in
15302 # Handling of the options.
15303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15304 ac_cs_recheck=: ;;
15305 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15306 $as_echo "$ac_cs_version"; exit ;;
15307 --debug | --debu | --deb | --de | --d | -d )
15308 debug=: ;;
15309 --file | --fil | --fi | --f )
15310 $ac_shift
15311 case $ac_optarg in
15312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15313 esac
15314 as_fn_append CONFIG_FILES " '$ac_optarg'"
15315 ac_need_defaults=false;;
15316 --he | --h | --help | --hel | -h )
15317 $as_echo "$ac_cs_usage"; exit ;;
15318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15320 ac_cs_silent=: ;;
15322 # This is an error.
15323 -*) as_fn_error "unrecognized option: \`$1'
15324 Try \`$0 --help' for more information." ;;
15326 *) as_fn_append ac_config_targets " $1"
15327 ac_need_defaults=false ;;
15329 esac
15330 shift
15331 done
15333 ac_configure_extra_args=
15335 if $ac_cs_silent; then
15336 exec 6>/dev/null
15337 ac_configure_extra_args="$ac_configure_extra_args --silent"
15340 _ACEOF
15341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342 if \$ac_cs_recheck; then
15343 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15344 shift
15345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15346 CONFIG_SHELL='$SHELL'
15347 export CONFIG_SHELL
15348 exec "\$@"
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 exec 5>>config.log
15355 echo
15356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15357 ## Running $as_me. ##
15358 _ASBOX
15359 $as_echo "$ac_log"
15360 } >&5
15362 _ACEOF
15363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15365 # INIT-COMMANDS
15367 extrasub_build="$extrasub_build"
15368 extrasub_host="$extrasub_host"
15369 extrasub_target="$extrasub_target"
15371 _ACEOF
15373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15375 # Handling of arguments.
15376 for ac_config_target in $ac_config_targets
15378 case $ac_config_target in
15379 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15381 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15382 esac
15383 done
15386 # If the user did not use the arguments to specify the items to instantiate,
15387 # then the envvar interface is used. Set only those that are not.
15388 # We use the long form for the default assignment because of an extremely
15389 # bizarre bug on SunOS 4.1.3.
15390 if $ac_need_defaults; then
15391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15394 # Have a temporary directory for convenience. Make it in the build tree
15395 # simply because there is no reason against having it here, and in addition,
15396 # creating and moving files from /tmp can sometimes cause problems.
15397 # Hook for its removal unless debugging.
15398 # Note that there is a small window in which the directory will not be cleaned:
15399 # after its creation but before its name has been assigned to `$tmp'.
15400 $debug ||
15402 tmp=
15403 trap 'exit_status=$?
15404 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15406 trap 'as_fn_exit 1' 1 2 13 15
15408 # Create a (secure) tmp directory for tmp files.
15411 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15412 test -n "$tmp" && test -d "$tmp"
15413 } ||
15415 tmp=./conf$$-$RANDOM
15416 (umask 077 && mkdir "$tmp")
15417 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15419 # Set up the scripts for CONFIG_FILES section.
15420 # No need to generate them if there are no CONFIG_FILES.
15421 # This happens for instance with `./config.status config.h'.
15422 if test -n "$CONFIG_FILES"; then
15424 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15425 ac_cs_awk_getline=:
15426 ac_cs_awk_pipe_init=
15427 ac_cs_awk_read_file='
15428 while ((getline aline < (F[key])) > 0)
15429 print(aline)
15430 close(F[key])'
15431 ac_cs_awk_pipe_fini=
15432 else
15433 ac_cs_awk_getline=false
15434 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15435 ac_cs_awk_read_file='
15436 print "|#_!!_#|"
15437 print "cat " F[key] " &&"
15438 '$ac_cs_awk_pipe_init
15439 # The final `:' finishes the AND list.
15440 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15442 ac_cr=`echo X | tr X '\015'`
15443 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15444 # But we know of no other shell where ac_cr would be empty at this
15445 # point, so we can use a bashism as a fallback.
15446 if test "x$ac_cr" = x; then
15447 eval ac_cr=\$\'\\r\'
15449 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15450 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15451 ac_cs_awk_cr='\r'
15452 else
15453 ac_cs_awk_cr=$ac_cr
15456 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15457 _ACEOF
15459 # Create commands to substitute file output variables.
15461 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15462 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15463 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15464 echo "_ACAWK" &&
15465 echo "_ACEOF"
15466 } >conf$$files.sh &&
15467 . ./conf$$files.sh ||
15468 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15469 rm -f conf$$files.sh
15472 echo "cat >conf$$subs.awk <<_ACEOF" &&
15473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15474 echo "_ACEOF"
15475 } >conf$$subs.sh ||
15476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15478 ac_delim='%!_!# '
15479 for ac_last_try in false false false false false :; do
15480 . ./conf$$subs.sh ||
15481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15484 if test $ac_delim_n = $ac_delim_num; then
15485 break
15486 elif $ac_last_try; then
15487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15488 else
15489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15491 done
15492 rm -f conf$$subs.sh
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15496 _ACEOF
15497 sed -n '
15499 s/^/S["/; s/!.*/"]=/
15502 s/^[^!]*!//
15503 :repl
15504 t repl
15505 s/'"$ac_delim"'$//
15506 t delim
15509 s/\(.\{148\}\).*/\1/
15510 t more1
15511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15514 b repl
15515 :more1
15516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15519 s/.\{148\}//
15520 t nl
15521 :delim
15523 s/\(.\{148\}\).*/\1/
15524 t more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"/
15528 :more2
15529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15532 s/.\{148\}//
15533 t delim
15534 ' <conf$$subs.awk | sed '
15535 /^[^""]/{
15537 s/\n//
15539 ' >>$CONFIG_STATUS || ac_write_fail=1
15540 rm -f conf$$subs.awk
15541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15542 _ACAWK
15543 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15544 for (key in S) S_is_set[key] = 1
15545 FS = "\a"
15546 \$ac_cs_awk_pipe_init
15549 line = $ 0
15550 nfields = split(line, field, "@")
15551 substed = 0
15552 len = length(field[1])
15553 for (i = 2; i < nfields; i++) {
15554 key = field[i]
15555 keylen = length(key)
15556 if (S_is_set[key]) {
15557 value = S[key]
15558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15559 len += length(value) + length(field[++i])
15560 substed = 1
15561 } else
15562 len += 1 + keylen
15564 if (nfields == 3 && !substed) {
15565 key = field[2]
15566 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15567 \$ac_cs_awk_read_file
15568 next
15571 print line
15573 \$ac_cs_awk_pipe_fini
15574 _ACAWK
15575 _ACEOF
15576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15579 else
15581 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15582 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15583 _ACEOF
15585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15587 # trailing colons and then remove the whole line if VPATH becomes empty
15588 # (actually we leave an empty line to preserve line numbers).
15589 if test "x$srcdir" = x.; then
15590 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15591 s/:*\$(srcdir):*/:/
15592 s/:*\${srcdir}:*/:/
15593 s/:*@srcdir@:*/:/
15594 s/^\([^=]*=[ ]*\):*/\1/
15595 s/:*$//
15596 s/^[^=]*=[ ]*$//
15600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601 fi # test -n "$CONFIG_FILES"
15604 eval set X " :F $CONFIG_FILES "
15605 shift
15606 for ac_tag
15608 case $ac_tag in
15609 :[FHLC]) ac_mode=$ac_tag; continue;;
15610 esac
15611 case $ac_mode$ac_tag in
15612 :[FHL]*:*);;
15613 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15614 :[FH]-) ac_tag=-:-;;
15615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15616 esac
15617 ac_save_IFS=$IFS
15618 IFS=:
15619 set x $ac_tag
15620 IFS=$ac_save_IFS
15621 shift
15622 ac_file=$1
15623 shift
15625 case $ac_mode in
15626 :L) ac_source=$1;;
15627 :[FH])
15628 ac_file_inputs=
15629 for ac_f
15631 case $ac_f in
15632 -) ac_f="$tmp/stdin";;
15633 *) # Look for the file first in the build tree, then in the source tree
15634 # (if the path is not absolute). The absolute path cannot be DOS-style,
15635 # because $ac_f cannot contain `:'.
15636 test -f "$ac_f" ||
15637 case $ac_f in
15638 [\\/$]*) false;;
15639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15640 esac ||
15641 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15642 esac
15643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15644 as_fn_append ac_file_inputs " '$ac_f'"
15645 done
15647 # Let's still pretend it is `configure' which instantiates (i.e., don't
15648 # use $as_me), people would be surprised to read:
15649 # /* config.h. Generated by config.status. */
15650 configure_input='Generated from '`
15651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15652 `' by configure.'
15653 if test x"$ac_file" != x-; then
15654 configure_input="$ac_file. $configure_input"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15656 $as_echo "$as_me: creating $ac_file" >&6;}
15658 # Neutralize special characters interpreted by sed in replacement strings.
15659 case $configure_input in #(
15660 *\&* | *\|* | *\\* )
15661 ac_sed_conf_input=`$as_echo "$configure_input" |
15662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15663 *) ac_sed_conf_input=$configure_input;;
15664 esac
15666 case $ac_tag in
15667 *:-:* | *:-) cat >"$tmp/stdin" \
15668 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15669 esac
15671 esac
15673 ac_dir=`$as_dirname -- "$ac_file" ||
15674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15675 X"$ac_file" : 'X\(//\)[^/]' \| \
15676 X"$ac_file" : 'X\(//\)$' \| \
15677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15678 $as_echo X"$ac_file" |
15679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15680 s//\1/
15683 /^X\(\/\/\)[^/].*/{
15684 s//\1/
15687 /^X\(\/\/\)$/{
15688 s//\1/
15691 /^X\(\/\).*/{
15692 s//\1/
15695 s/.*/./; q'`
15696 as_dir="$ac_dir"; as_fn_mkdir_p
15697 ac_builddir=.
15699 case "$ac_dir" in
15700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15703 # A ".." for each directory in $ac_dir_suffix.
15704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15705 case $ac_top_builddir_sub in
15706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15708 esac ;;
15709 esac
15710 ac_abs_top_builddir=$ac_pwd
15711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15712 # for backward compatibility:
15713 ac_top_builddir=$ac_top_build_prefix
15715 case $srcdir in
15716 .) # We are building in place.
15717 ac_srcdir=.
15718 ac_top_srcdir=$ac_top_builddir_sub
15719 ac_abs_top_srcdir=$ac_pwd ;;
15720 [\\/]* | ?:[\\/]* ) # Absolute name.
15721 ac_srcdir=$srcdir$ac_dir_suffix;
15722 ac_top_srcdir=$srcdir
15723 ac_abs_top_srcdir=$srcdir ;;
15724 *) # Relative name.
15725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15726 ac_top_srcdir=$ac_top_build_prefix$srcdir
15727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15728 esac
15729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15732 case $ac_mode in
15735 # CONFIG_FILE
15738 case $INSTALL in
15739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15741 esac
15742 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 # If the template does not know about datarootdir, expand it.
15746 # FIXME: This hack should be removed a few years after 2.60.
15747 ac_datarootdir_hack=; ac_datarootdir_seen=
15748 ac_sed_dataroot='
15749 /datarootdir/ {
15753 /@datadir@/p
15754 /@docdir@/p
15755 /@infodir@/p
15756 /@localedir@/p
15757 /@mandir@/p'
15758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15759 *datarootdir*) ac_datarootdir_seen=yes;;
15760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15765 ac_datarootdir_hack='
15766 s&@datadir@&$datadir&g
15767 s&@docdir@&$docdir&g
15768 s&@infodir@&$infodir&g
15769 s&@localedir@&$localedir&g
15770 s&@mandir@&$mandir&g
15771 s&\\\${datarootdir}&$datarootdir&g' ;;
15772 esac
15773 _ACEOF
15775 # Neutralize VPATH when `$srcdir' = `.'.
15776 # Shell code in configure.ac might set extrasub.
15777 # FIXME: do we really want to maintain this feature?
15778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15779 ac_sed_extra="$ac_vpsub
15780 $extrasub
15781 _ACEOF
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15785 s|@configure_input@|$ac_sed_conf_input|;t t
15786 s&@top_builddir@&$ac_top_builddir_sub&;t t
15787 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15788 s&@srcdir@&$ac_srcdir&;t t
15789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15790 s&@top_srcdir@&$ac_top_srcdir&;t t
15791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15792 s&@builddir@&$ac_builddir&;t t
15793 s&@abs_builddir@&$ac_abs_builddir&;t t
15794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15795 s&@INSTALL@&$ac_INSTALL&;t t
15796 $ac_datarootdir_hack
15798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15799 if $ac_cs_awk_getline; then
15800 $AWK -f "$tmp/subs.awk"
15801 else
15802 $AWK -f "$tmp/subs.awk" | $SHELL
15803 fi >$tmp/out \
15804 || as_fn_error "could not create $ac_file" "$LINENO" 5
15806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15810 which seems to be undefined. Please make sure it is defined." >&5
15811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15812 which seems to be undefined. Please make sure it is defined." >&2;}
15814 rm -f "$tmp/stdin"
15815 case $ac_file in
15816 -) cat "$tmp/out" && rm -f "$tmp/out";;
15817 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15818 esac \
15819 || as_fn_error "could not create $ac_file" "$LINENO" 5
15824 esac
15827 case $ac_file$ac_mode in
15828 "Makefile":F) sed "$extrasub_build" Makefile |
15829 sed "$extrasub_host" |
15830 sed "$extrasub_target" > mf$$
15831 mv -f mf$$ Makefile ;;
15833 esac
15834 done # for ac_tag
15837 as_fn_exit 0
15838 _ACEOF
15839 ac_clean_files=$ac_clean_files_save
15841 test $ac_write_fail = 0 ||
15842 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15845 # configure is writing to config.log, and then calls config.status.
15846 # config.status does its own redirection, appending to config.log.
15847 # Unfortunately, on DOS this fails, as config.log is still kept open
15848 # by configure, so config.status won't be able to write to it; its
15849 # output is simply discarded. So we exec the FD to /dev/null,
15850 # effectively closing config.log, so it can be properly (re)opened and
15851 # appended to by config.status. When coming back to configure, we
15852 # need to make the FD available again.
15853 if test "$no_create" != yes; then
15854 ac_cs_success=:
15855 ac_config_status_args=
15856 test "$silent" = yes &&
15857 ac_config_status_args="$ac_config_status_args --quiet"
15858 exec 5>/dev/null
15859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15860 exec 5>>config.log
15861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15862 # would make configure fail if this is the last instruction.
15863 $ac_cs_success || as_fn_exit $?
15865 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15867 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}