Merge trunk version 222452 into gupc branch.
[official-gcc.git] / configure
blob7bbb4dda93965d576f3123bdf133d5d79e6ba339
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 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GUPC_FOR_TARGET
585 GOC_FOR_TARGET
586 GFORTRAN_FOR_TARGET
587 GCJ_FOR_TARGET
588 GCC_FOR_TARGET
589 CXX_FOR_TARGET
590 CC_FOR_TARGET
591 READELF
592 OBJDUMP
593 OBJCOPY
594 WINDMC
595 WINDRES
596 STRIP
597 RANLIB
599 LIPO
601 DLLTOOL
604 RUNTEST
605 EXPECT
606 MAKEINFO
607 FLEX
610 BISON
611 YACC
612 WINDRES_FOR_BUILD
613 WINDMC_FOR_BUILD
614 RANLIB_FOR_BUILD
615 NM_FOR_BUILD
616 LD_FOR_BUILD
617 LDFLAGS_FOR_BUILD
618 GUPC_FOR_BUILD
619 GOC_FOR_BUILD
620 GFORTRAN_FOR_BUILD
621 GCJ_FOR_BUILD
622 DLLTOOL_FOR_BUILD
623 CXX_FOR_BUILD
624 CXXFLAGS_FOR_BUILD
625 CFLAGS_FOR_BUILD
626 CC_FOR_BUILD
627 AS_FOR_BUILD
628 AR_FOR_BUILD
629 target_configdirs
630 configdirs
631 build_configdirs
632 INSTALL_GDB_TK
633 GDB_TK
634 CONFIGURE_GDB_TK
635 build_tooldir
636 tooldir
637 GCC_SHLIB_SUBDIR
638 RPATH_ENVVAR
639 target_configargs
640 host_configargs
641 build_configargs
642 BUILD_CONFIG
643 LDFLAGS_FOR_TARGET
644 CXXFLAGS_FOR_TARGET
645 CFLAGS_FOR_TARGET
646 DEBUG_PREFIX_CFLAGS_FOR_TARGET
647 SYSROOT_CFLAGS_FOR_TARGET
648 extra_host_libiberty_configure_flags
649 stage1_languages
650 extra_linker_plugin_flags
651 extra_linker_plugin_configure_flags
652 islinc
653 isllibs
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
685 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_upc_pts
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 enable_upc_link_script
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXFLAGS
813 build_configargs
814 host_configargs
815 target_configargs
818 DLLTOOL
820 LIPO
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GCJ_FOR_TARGET
833 GFORTRAN_FOR_TARGET
834 GOC_FOR_TARGET
835 GUPC_FOR_TARGET
836 AR_FOR_TARGET
837 AS_FOR_TARGET
838 DLLTOOL_FOR_TARGET
839 LD_FOR_TARGET
840 LIPO_FOR_TARGET
841 NM_FOR_TARGET
842 OBJCOPY_FOR_TARGET
843 OBJDUMP_FOR_TARGET
844 RANLIB_FOR_TARGET
845 READELF_FOR_TARGET
846 STRIP_FOR_TARGET
847 WINDRES_FOR_TARGET
848 WINDMC_FOR_TARGET'
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
899 ac_prev=
900 ac_dashdash=
901 for ac_option
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
910 case $ac_option in
911 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *) ac_optarg=yes ;;
913 esac
915 # Accept the important Cygnus configure options, so we can diagnose typos.
917 case $ac_dashdash$ac_option in
919 ac_dashdash=yes ;;
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
938 --config-cache | -C)
939 cache_file=config.cache ;;
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) as_fn_error "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information."
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error "missing argument to $ac_option"
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error "pwd does not report name of working directory"
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 case $srcdir in
1377 *" "*)
1378 as_fn_error "path to source, $srcdir, contains spaces"
1380 esac
1381 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1468 cat <<\_ACEOF
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-as-accelerator-for=ARG
1475 build as offload target compiler. Specify offload
1476 host triple by ARG
1477 --enable-offload-targets=LIST
1478 enable offloading to devices from comma-separated
1479 LIST of TARGET[=DIR]. Use optional path to find
1480 offload target compiler during the build
1481 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1482 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-static-libjava[=ARG]
1492 build static libjava [default=no]
1493 --enable-bootstrap enable bootstrapping [yes if native build]
1494 --disable-isl-version-check
1495 disable check for ISL version
1496 --enable-lto enable link time optimization support
1497 --enable-linker-plugin-configure-flags=FLAGS
1498 additional flags for configuring linker plugins
1499 [none]
1500 --enable-linker-plugin-flags=FLAGS
1501 additional flags for configuring and building linker
1502 plugins [none]
1503 --enable-stage1-languages[=all]
1504 choose additional languages to build during stage1.
1505 Mostly useful for compiler development
1506 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1507 Objective-C runtime
1508 --enable-vtable-verify Enable vtable verification feature
1509 --enable-serial-[{host,target,build}-]configure
1510 force sequential configuration of sub-packages for
1511 the host, target or build machine, or all
1512 sub-packages
1513 --enable-upc-link-script
1514 enable UPC's use of a custom linker script; this
1515 will define the UPC shared section as a no load
1516 section on targets where this feature is supported
1517 (requires GNU LD)
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-stage1-checking[=all]
1522 choose additional checking for stage1 of the
1523 compiler
1524 --enable-werror enable -Werror in bootstrap stage2 and later
1525 --enable-host-shared build host code as shared libraries
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-build-libsubdir=DIR Directory where to find libraries for build system
1531 --with-mpc=PATH specify prefix directory for installed MPC package.
1532 Equivalent to --with-mpc-include=PATH/include plus
1533 --with-mpc-lib=PATH/lib
1534 --with-mpc-include=PATH specify directory for installed MPC include files
1535 --with-mpc-lib=PATH specify directory for the installed MPC library
1536 --with-mpfr-dir=PATH this option has been REMOVED
1537 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1538 Equivalent to --with-mpfr-include=PATH/include plus
1539 --with-mpfr-lib=PATH/lib
1540 --with-mpfr-include=PATH
1541 specify directory for installed MPFR include files
1542 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1543 --with-gmp-dir=PATH this option has been REMOVED
1544 --with-gmp=PATH specify prefix directory for the installed GMP
1545 package. Equivalent to
1546 --with-gmp-include=PATH/include plus
1547 --with-gmp-lib=PATH/lib
1548 --with-gmp-include=PATH specify directory for installed GMP include files
1549 --with-gmp-lib=PATH specify directory for the installed GMP library
1550 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1551 linking with PPL
1552 --with-stage1-libs=LIBS libraries for stage1
1553 --with-stage1-ldflags=FLAGS
1554 linker flags for stage1
1555 --with-boot-libs=LIBS libraries for stage2 and later
1556 --with-boot-ldflags=FLAGS
1557 linker flags for stage2 and later
1558 --with-isl=PATH Specify prefix directory for the installed ISL
1559 package. Equivalent to
1560 --with-isl-include=PATH/include plus
1561 --with-isl-lib=PATH/lib
1562 --with-isl-include=PATH Specify directory for installed ISL include files
1563 --with-isl-lib=PATH Specify the directory for the installed ISL library
1564 --with-upc-pts={struct,packed}
1565 choose the default representation of a UPC
1566 pointer-to-shared
1567 --with-build-sysroot=SYSROOT
1568 use sysroot as the system root during the build
1569 --with-debug-prefix-map='A=B C=D ...'
1570 map A to B, C to D ... in debug information
1571 --with-build-config='NAME NAME2...'
1572 use config/NAME.mk build configuration
1573 --with-build-time-tools=PATH
1574 use given path to find target tools during the build
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 build_configargs
1587 additional configure arguments for build directories
1588 host_configargs
1589 additional configure arguments for host directories
1590 target_configargs
1591 additional configure arguments for target directories
1592 AR AR for the host
1593 AS AS for the host
1594 DLLTOOL DLLTOOL for the host
1595 LD LD for the host
1596 LIPO LIPO for the host
1597 NM NM for the host
1598 RANLIB RANLIB for the host
1599 STRIP STRIP for the host
1600 WINDRES WINDRES for the host
1601 WINDMC WINDMC for the host
1602 OBJCOPY OBJCOPY for the host
1603 OBJDUMP OBJDUMP for the host
1604 READELF READELF for the host
1605 CC_FOR_TARGET
1606 CC for the target
1607 CXX_FOR_TARGET
1608 CXX for the target
1609 GCC_FOR_TARGET
1610 GCC for the target
1611 GCJ_FOR_TARGET
1612 GCJ for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 GUPC_FOR_TARGET
1618 GUPC for the target
1619 AR_FOR_TARGET
1620 AR for the target
1621 AS_FOR_TARGET
1622 AS for the target
1623 DLLTOOL_FOR_TARGET
1624 DLLTOOL for the target
1625 LD_FOR_TARGET
1626 LD for the target
1627 LIPO_FOR_TARGET
1628 LIPO for the target
1629 NM_FOR_TARGET
1630 NM for the target
1631 OBJCOPY_FOR_TARGET
1632 OBJCOPY for the target
1633 OBJDUMP_FOR_TARGET
1634 OBJDUMP for the target
1635 RANLIB_FOR_TARGET
1636 RANLIB for the target
1637 READELF_FOR_TARGET
1638 READELF for the target
1639 STRIP_FOR_TARGET
1640 STRIP for the target
1641 WINDRES_FOR_TARGET
1642 WINDRES for the target
1643 WINDMC_FOR_TARGET
1644 WINDMC for the target
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 Report bugs to the package provider.
1650 _ACEOF
1651 ac_status=$?
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" ||
1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 continue
1660 ac_builddir=.
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1678 case $srcdir in
1679 .) # We are building in place.
1680 ac_srcdir=.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1687 *) # Relative name.
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1702 else
1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 fi || ac_status=$?
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1706 done
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711 cat <<\_ACEOF
1712 configure
1713 generated by GNU Autoconf 2.64
1715 Copyright (C) 2009 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719 exit
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 ac_retval=1
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_cxx_try_link LINENO
1803 # -------------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_link ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1836 ac_retval=1
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1846 } # ac_fn_cxx_try_link
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 $as_test_x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1892 } # ac_fn_c_try_link
1893 cat >config.log <<_ACEOF
1894 This file contains any messages produced by compilers while
1895 running configure, to aid debugging if configure makes a mistake.
1897 It was created by $as_me, which was
1898 generated by GNU Autoconf 2.64. Invocation command line was
1900 $ $0 $@
1902 _ACEOF
1903 exec 5>>config.log
1905 cat <<_ASUNAME
1906 ## --------- ##
1907 ## Platform. ##
1908 ## --------- ##
1910 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1911 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1912 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1913 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1914 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1916 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1917 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1919 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1920 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1921 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1922 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1923 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1924 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1925 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1927 _ASUNAME
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 $as_echo "PATH: $as_dir"
1935 done
1936 IFS=$as_save_IFS
1938 } >&5
1940 cat >&5 <<_ACEOF
1943 ## ----------- ##
1944 ## Core tests. ##
1945 ## ----------- ##
1947 _ACEOF
1950 # Keep a trace of the command line.
1951 # Strip out --no-create and --no-recursion so they do not pile up.
1952 # Strip out --silent because we don't want to record it for future runs.
1953 # Also quote any args containing shell meta-characters.
1954 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_configure_args=
1956 ac_configure_args0=
1957 ac_configure_args1=
1958 ac_must_keep_next=false
1959 for ac_pass in 1 2
1961 for ac_arg
1963 case $ac_arg in
1964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966 | -silent | --silent | --silen | --sile | --sil)
1967 continue ;;
1968 *\'*)
1969 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970 esac
1971 case $ac_pass in
1972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1974 as_fn_append ac_configure_args1 " '$ac_arg'"
1975 if test $ac_must_keep_next = true; then
1976 ac_must_keep_next=false # Got value, back to normal.
1977 else
1978 case $ac_arg in
1979 *=* | --config-cache | -C | -disable-* | --disable-* \
1980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982 | -with-* | --with-* | -without-* | --without-* | --x)
1983 case "$ac_configure_args0 " in
1984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985 esac
1987 -* ) ac_must_keep_next=true ;;
1988 esac
1990 as_fn_append ac_configure_args " '$ac_arg'"
1992 esac
1993 done
1994 done
1995 { ac_configure_args0=; unset ac_configure_args0;}
1996 { ac_configure_args1=; unset ac_configure_args1;}
1998 # When interrupted or exit'd, cleanup temporary files, and complete
1999 # config.log. We remove comments because anyway the quotes in there
2000 # would cause problems or look ugly.
2001 # WARNING: Use '\'' to represent an apostrophe within the trap.
2002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003 trap 'exit_status=$?
2004 # Save into config.log some information that might help in debugging.
2006 echo
2008 cat <<\_ASBOX
2009 ## ---------------- ##
2010 ## Cache variables. ##
2011 ## ---------------- ##
2012 _ASBOX
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2041 esac |
2042 sort
2044 echo
2046 cat <<\_ASBOX
2047 ## ----------------- ##
2048 ## Output variables. ##
2049 ## ----------------- ##
2050 _ASBOX
2051 echo
2052 for ac_var in $ac_subst_vars
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2062 if test -n "$ac_subst_files"; then
2063 cat <<\_ASBOX
2064 ## ------------------- ##
2065 ## File substitutions. ##
2066 ## ------------------- ##
2067 _ASBOX
2068 echo
2069 for ac_var in $ac_subst_files
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2080 if test -s confdefs.h; then
2081 cat <<\_ASBOX
2082 ## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##
2085 _ASBOX
2086 echo
2087 cat confdefs.h
2088 echo
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 ac_site_file1=$CONFIG_SITE
2141 elif test "x$prefix" != xNONE; then
2142 ac_site_file1=$prefix/share/config.site
2143 ac_site_file2=$prefix/etc/config.site
2144 else
2145 ac_site_file1=$ac_default_prefix/share/config.site
2146 ac_site_file2=$ac_default_prefix/etc/config.site
2148 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 test "x$ac_site_file" = xNONE && continue
2151 if test -r "$ac_site_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2153 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2154 sed 's/^/| /' "$ac_site_file" >&5
2155 . "$ac_site_file"
2157 done
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special
2161 # files actually), so we avoid doing that.
2162 if test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2176 # Check that the precious variables saved in the cache have kept the same
2177 # value.
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2185 set,)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,set)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,);;
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2203 else
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 fi;;
2213 esac
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2216 case $ac_new_val in
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2219 esac
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 esac
2225 done
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 progname=$0
2252 # if PWD already has a value, it is probably wrong.
2253 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2255 # Export original configure arguments for use by sub-configures.
2256 # Quote arguments with shell meta charatcers.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=
2258 set -- "$progname" "$@"
2259 for ac_arg
2261 case "$ac_arg" in
2262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2264 # if the argument is of the form -foo=baz, quote the baz part only
2265 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2266 *) ;;
2267 esac
2268 # Add the quoted argument to the list.
2269 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2270 done
2271 if test "$silent" = yes; then
2272 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2274 # Remove the initial space we just introduced and, as these will be
2275 # expanded by make, quote '$'.
2276 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2279 # Find the build, host, and target systems.
2280 ac_aux_dir=
2281 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2282 for ac_t in install-sh install.sh shtool; do
2283 if test -f "$ac_dir/$ac_t"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/$ac_t -c"
2286 break 2
2288 done
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if test "${ac_cv_build+set}" = set; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341 case ${build_alias} in
2342 "") build_noncanonical=${build} ;;
2343 *) build_noncanonical=${build_alias} ;;
2344 esac
2348 case ${host_alias} in
2349 "") host_noncanonical=${build_noncanonical} ;;
2350 *) host_noncanonical=${host_alias} ;;
2351 esac
2355 case ${target_alias} in
2356 "") target_noncanonical=${host_noncanonical} ;;
2357 *) target_noncanonical=${target_alias} ;;
2358 esac
2363 test "$host_noncanonical" = "$target_noncanonical" &&
2364 test "$program_prefix$program_suffix$program_transform_name" = \
2365 NONENONEs,x,x, &&
2366 program_transform_name=s,y,y,
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2369 $as_echo_n "checking host system type... " >&6; }
2370 if test "${ac_cv_host+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$host_alias" = x; then
2374 ac_cv_host=$ac_cv_build
2375 else
2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2382 $as_echo "$ac_cv_host" >&6; }
2383 case $ac_cv_host in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2386 esac
2387 host=$ac_cv_host
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_host
2390 shift
2391 host_cpu=$1
2392 host_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 host_os=$*
2397 IFS=$ac_save_IFS
2398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2402 $as_echo_n "checking target system type... " >&6; }
2403 if test "${ac_cv_target+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$target_alias" = x; then
2407 ac_cv_target=$ac_cv_host
2408 else
2409 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2410 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2415 $as_echo "$ac_cv_target" >&6; }
2416 case $ac_cv_target in
2417 *-*-*) ;;
2418 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2419 esac
2420 target=$ac_cv_target
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_target
2423 shift
2424 target_cpu=$1
2425 target_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 target_os=$*
2430 IFS=$ac_save_IFS
2431 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2441 test "$program_prefix" != NONE &&
2442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453 # Get 'install' or 'install-sh' and its variants.
2454 # Find a good install program. We prefer a C program (faster),
2455 # so one script is as good as another. But avoid the broken or
2456 # incompatible versions:
2457 # SysV /etc/install, /usr/sbin/install
2458 # SunOS /usr/etc/install
2459 # IRIX /sbin/install
2460 # AIX /bin/install
2461 # AmigaOS /C/install, which installs bootblocks on floppy discs
2462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2465 # OS/2's system install, which has a completely different semantic
2466 # ./install, which can be erroneously created by make from ./install.sh.
2467 # Reject install programs that cannot install multiple files.
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2469 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2470 if test -z "$INSTALL"; then
2471 if test "${ac_cv_path_install+set}" = set; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 # Account for people who put trailing slashes in PATH elements.
2480 case $as_dir/ in #((
2481 ./ | .// | /[cC]/* | \
2482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2483 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2484 /usr/ucb/* ) ;;
2486 # OSF1 and SCO ODT 3.0 have their own names for install.
2487 # Don't use installbsd from OSF since it installs stuff as root
2488 # by default.
2489 for ac_prog in ginstall scoinst install; do
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2492 if test $ac_prog = install &&
2493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # AIX install. It has an incompatible calling convention.
2496 elif test $ac_prog = install &&
2497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # program-specific install script used by HP pwplus--don't use.
2500 else
2501 rm -rf conftest.one conftest.two conftest.dir
2502 echo one > conftest.one
2503 echo two > conftest.two
2504 mkdir conftest.dir
2505 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2506 test -s conftest.one && test -s conftest.two &&
2507 test -s conftest.dir/conftest.one &&
2508 test -s conftest.dir/conftest.two
2509 then
2510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511 break 3
2515 done
2516 done
2518 esac
2520 done
2521 IFS=$as_save_IFS
2523 rm -rf conftest.one conftest.two conftest.dir
2526 if test "${ac_cv_path_install+set}" = set; then
2527 INSTALL=$ac_cv_path_install
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for INSTALL within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 INSTALL=$ac_install_sh
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2537 $as_echo "$INSTALL" >&6; }
2539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2540 # It thinks the first close brace ends the variable substitution.
2541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2548 $as_echo_n "checking whether ln works... " >&6; }
2549 if test "${acx_cv_prog_LN+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 rm -f conftestdata_t
2553 echo >conftestdata_f
2554 if ln conftestdata_f conftestdata_t 2>/dev/null
2555 then
2556 acx_cv_prog_LN=ln
2557 else
2558 acx_cv_prog_LN=no
2560 rm -f conftestdata_f conftestdata_t
2563 if test $acx_cv_prog_LN = no; then
2564 LN="cp"
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2566 $as_echo "no, using $LN" >&6; }
2567 else
2568 LN="$acx_cv_prog_LN"
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2574 $as_echo_n "checking whether ln -s works... " >&6; }
2575 LN_S=$as_ln_s
2576 if test "$LN_S" = "ln -s"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2581 $as_echo "no, using $LN_S" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2585 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2586 if test "${ac_cv_path_SED+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2590 for ac_i in 1 2 3 4 5 6 7; do
2591 ac_script="$ac_script$as_nl$ac_script"
2592 done
2593 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2594 { ac_script=; unset ac_script;}
2595 if test -z "$SED"; then
2596 ac_path_SED_found=false
2597 # Loop through the user's path and test for each of PROGNAME-LIST
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in sed gsed; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2606 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2607 # Check for GNU ac_path_SED and select it if it is found.
2608 # Check for GNU $ac_path_SED
2609 case `"$ac_path_SED" --version 2>&1` in
2610 *GNU*)
2611 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2613 ac_count=0
2614 $as_echo_n 0123456789 >"conftest.in"
2615 while :
2617 cat "conftest.in" "conftest.in" >"conftest.tmp"
2618 mv "conftest.tmp" "conftest.in"
2619 cp "conftest.in" "conftest.nl"
2620 $as_echo '' >> "conftest.nl"
2621 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2623 as_fn_arith $ac_count + 1 && ac_count=$as_val
2624 if test $ac_count -gt ${ac_path_SED_max-0}; then
2625 # Best one so far, save it but keep looking for a better one
2626 ac_cv_path_SED="$ac_path_SED"
2627 ac_path_SED_max=$ac_count
2629 # 10*(2^10) chars as input seems more than enough
2630 test $ac_count -gt 10 && break
2631 done
2632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2633 esac
2635 $ac_path_SED_found && break 3
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640 if test -z "$ac_cv_path_SED"; then
2641 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2643 else
2644 ac_cv_path_SED=$SED
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2649 $as_echo "$ac_cv_path_SED" >&6; }
2650 SED="$ac_cv_path_SED"
2651 rm -f conftest.sed
2653 for ac_prog in gawk mawk nawk awk
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_AWK+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$AWK"; then
2663 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_AWK="$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 AWK=$ac_cv_prog_AWK
2683 if test -n "$AWK"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685 $as_echo "$AWK" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2692 test -n "$AWK" && break
2693 done
2696 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2698 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2699 # a relative path.
2700 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2701 INSTALL="${srcpwd}/install-sh -c"
2704 # Set srcdir to "." if that's what it is.
2705 # This is important for multilib support.
2706 pwd=`${PWDCMD-pwd}`
2707 if test "${pwd}" = "${srcpwd}" ; then
2708 srcdir=.
2711 topsrcdir=$srcpwd
2713 extra_host_args=
2715 ### To add a new directory to the tree, first choose whether it is a target
2716 ### or a host dependent tool. Then put it into the appropriate list
2717 ### (library or tools, host or target), doing a dependency sort.
2719 # Subdirs will be configured in the order listed in build_configdirs,
2720 # configdirs, or target_configdirs; see the serialization section below.
2722 # Dependency sorting is only needed when *configuration* must be done in
2723 # a particular order. In all cases a dependency should be specified in
2724 # the Makefile, whether or not it's implicitly specified here.
2726 # Double entries in build_configdirs, configdirs, or target_configdirs may
2727 # cause circular dependencies and break everything horribly.
2729 # these library is used by various programs built for the build
2730 # environment
2732 build_libs="build-libiberty build-libcpp"
2734 # these tools are built for the build environment
2735 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2737 # these libraries are used by various programs built for the host environment
2739 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2741 # these tools are built for the host environment
2742 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2743 # know that we are building the simulator.
2744 # binutils, gas and ld appear in that order because it makes sense to run
2745 # "make check" in that particular order.
2746 # If --enable-gold is used, "gold" may replace "ld".
2747 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2749 # libgcj represents the runtime libraries only used by gcj.
2750 libgcj="target-libffi \
2751 target-zlib \
2752 target-libjava"
2754 # these libraries are built for the target environment, and are built after
2755 # the host libraries and the host tools (which may be a cross compiler)
2756 # Note that libiberty is not a target library.
2757 target_libraries="target-libgcc \
2758 target-libbacktrace \
2759 target-libgloss \
2760 target-newlib \
2761 target-libgomp \
2762 target-libcilkrts \
2763 target-liboffloadmic \
2764 target-libatomic \
2765 target-libitm \
2766 target-libstdc++-v3 \
2767 target-libsanitizer \
2768 target-libvtv \
2769 target-libmpx \
2770 target-libssp \
2771 target-libquadmath \
2772 target-libgfortran \
2773 target-boehm-gc \
2774 ${libgcj} \
2775 target-libobjc \
2776 target-libgupc \
2777 target-libada \
2778 target-libgo"
2780 # these tools are built using the target libraries, and are intended to
2781 # run only in the target environment
2783 # note: any program that *uses* libraries that are in the "target_libraries"
2784 # list belongs in this list.
2786 target_tools="target-rda"
2788 ################################################################################
2790 ## All tools belong in one of the four categories, and are assigned above
2791 ## We assign ${configdirs} this way to remove all embedded newlines. This
2792 ## is important because configure will choke if they ever get through.
2793 ## ${configdirs} is directories we build using the host tools.
2794 ## ${target_configdirs} is directories we build using the target tools.
2795 configdirs=`echo ${host_libs} ${host_tools}`
2796 target_configdirs=`echo ${target_libraries} ${target_tools}`
2797 build_configdirs=`echo ${build_libs} ${build_tools}`
2801 ################################################################################
2803 srcname="gnu development package"
2805 # This gets set non-empty for some net releases of packages.
2806 appdirs=""
2808 # Define is_cross_compiler to save on calls to 'test'.
2809 is_cross_compiler=
2810 if test x"${host}" = x"${target}" ; then
2811 is_cross_compiler=no
2812 else
2813 is_cross_compiler=yes
2816 # Find the build and target subdir names.
2818 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2819 # have matching libraries, they should use host libraries: Makefile.tpl
2820 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2821 # However, they still use the build modules, because the corresponding
2822 # host modules (e.g. bison) are only built for the host when bootstrap
2823 # finishes. So:
2824 # - build_subdir is where we find build modules, and never changes.
2825 # - build_libsubdir is where we find build libraries, and can be overridden.
2827 # Prefix 'build-' so this never conflicts with target_subdir.
2828 build_subdir="build-${build_noncanonical}"
2830 # Check whether --with-build-libsubdir was given.
2831 if test "${with_build_libsubdir+set}" = set; then :
2832 withval=$with_build_libsubdir; build_libsubdir="$withval"
2833 else
2834 build_libsubdir="$build_subdir"
2837 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2838 if ( test $srcdir = . && test -d gcc ) \
2839 || test -d $srcdir/../host-${host_noncanonical}; then
2840 host_subdir="host-${host_noncanonical}"
2841 else
2842 host_subdir=.
2844 # No prefix.
2845 target_subdir=${target_noncanonical}
2847 # Be sure to cover against remnants of an in-tree build.
2848 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2849 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2850 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2853 # Skipdirs are removed silently.
2854 skipdirs=
2855 # Noconfigdirs are removed loudly.
2856 noconfigdirs=""
2858 use_gnu_ld=
2859 # Make sure we don't let GNU ld be added if we didn't want it.
2860 if test x$with_gnu_ld = xno ; then
2861 use_gnu_ld=no
2862 noconfigdirs="$noconfigdirs ld gold"
2865 use_gnu_as=
2866 # Make sure we don't let GNU as be added if we didn't want it.
2867 if test x$with_gnu_as = xno ; then
2868 use_gnu_as=no
2869 noconfigdirs="$noconfigdirs gas"
2872 use_included_zlib=
2873 # Make sure we don't let ZLIB be added if we didn't want it.
2874 if test x$with_system_zlib = xyes ; then
2875 use_included_zlib=no
2876 noconfigdirs="$noconfigdirs zlib"
2879 # some tools are so dependent upon X11 that if we're not building with X,
2880 # it's not even worth trying to configure, much less build, that tool.
2882 case ${with_x} in
2883 yes | "") ;; # the default value for this tree is that X11 is available
2885 skipdirs="${skipdirs} tk itcl libgui"
2886 # We won't be able to build gdbtk without X.
2887 enable_gdbtk=no
2889 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2890 esac
2892 # Some are only suitable for cross toolchains.
2893 # Remove these if host=target.
2894 cross_only="target-libgloss target-newlib target-opcodes"
2896 case $is_cross_compiler in
2897 no) skipdirs="${skipdirs} ${cross_only}" ;;
2898 esac
2900 # If both --with-headers and --with-libs are specified, default to
2901 # --without-newlib.
2902 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2903 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2904 if test x"${with_newlib}" = x ; then
2905 with_newlib=no
2909 # Recognize --with-newlib/--without-newlib.
2910 case ${with_newlib} in
2911 no) skipdirs="${skipdirs} target-newlib" ;;
2912 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2913 esac
2915 # Check whether --enable-as-accelerator-for was given.
2916 if test "${enable_as_accelerator_for+set}" = set; then :
2917 enableval=$enable_as_accelerator_for;
2921 # Check whether --enable-offload-targets was given.
2922 if test "${enable_offload_targets+set}" = set; then :
2923 enableval=$enable_offload_targets;
2924 if test x"$enable_offload_targets" = x; then
2925 as_fn_error "no offload targets specified" "$LINENO" 5
2928 else
2929 enable_offload_targets=
2933 # Handle --enable-gold, --enable-ld.
2934 # --disable-gold [--enable-ld]
2935 # Build only ld. Default option.
2936 # --enable-gold [--enable-ld]
2937 # Build both gold and ld. Install gold as "ld.gold", install ld
2938 # as "ld.bfd" and "ld".
2939 # --enable-gold=default [--enable-ld]
2940 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2941 # install ld as "ld.bfd".
2942 # --enable-gold[=default] --disable-ld
2943 # Build only gold, which is then installed as both "ld.gold" and "ld".
2944 # --enable-gold --enable-ld=default
2945 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2946 # and ld.bfd).
2947 # In other words, ld is default
2948 # --enable-gold=default --enable-ld=default
2949 # Error.
2951 default_ld=
2952 # Check whether --enable-gold was given.
2953 if test "${enable_gold+set}" = set; then :
2954 enableval=$enable_gold; ENABLE_GOLD=$enableval
2955 else
2956 ENABLE_GOLD=no
2959 case "${ENABLE_GOLD}" in
2960 yes|default)
2961 # Check for ELF target.
2962 is_elf=no
2963 case "${target}" in
2964 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2965 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2966 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2967 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2968 case "${target}" in
2969 *-*-linux*aout* | *-*-linux*oldld*)
2972 is_elf=yes
2974 esac
2975 esac
2977 if test "$is_elf" = "yes"; then
2978 # Check for target supported by gold.
2979 case "${target}" in
2980 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2981 | aarch64*-*-* | tilegx*-*-*)
2982 configdirs="$configdirs gold"
2983 if test x${ENABLE_GOLD} = xdefault; then
2984 default_ld=gold
2986 ENABLE_GOLD=yes
2988 esac
2994 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2996 esac
2998 # Check whether --enable-ld was given.
2999 if test "${enable_ld+set}" = set; then :
3000 enableval=$enable_ld; ENABLE_LD=$enableval
3001 else
3002 ENABLE_LD=yes
3006 case "${ENABLE_LD}" in
3007 default)
3008 if test x${default_ld} != x; then
3009 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3012 yes)
3015 if test x${ENABLE_GOLD} != xyes; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3017 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3019 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3022 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3024 esac
3026 # Configure extra directories which are host specific
3028 case "${host}" in
3029 *-cygwin*)
3030 configdirs="$configdirs libtermcap" ;;
3031 esac
3033 # A target can indicate whether a language isn't supported for some reason.
3034 # Only spaces may be used in this macro; not newlines or tabs.
3035 unsupported_languages=
3037 # Remove more programs from consideration, based on the host or
3038 # target this usually means that a port of the program doesn't
3039 # exist yet.
3041 case "${host}" in
3042 i[3456789]86-*-msdosdjgpp*)
3043 noconfigdirs="$noconfigdirs tcl tk itcl"
3045 esac
3048 # Check whether --enable-libquadmath was given.
3049 if test "${enable_libquadmath+set}" = set; then :
3050 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3051 else
3052 ENABLE_LIBQUADMATH=yes
3055 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3056 noconfigdirs="$noconfigdirs target-libquadmath"
3060 # Check whether --enable-libquadmath-support was given.
3061 if test "${enable_libquadmath_support+set}" = set; then :
3062 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3063 else
3064 ENABLE_LIBQUADMATH_SUPPORT=yes
3067 enable_libquadmath_support=
3068 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3069 enable_libquadmath_support=no
3073 # Check whether --enable-libada was given.
3074 if test "${enable_libada+set}" = set; then :
3075 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3076 else
3077 ENABLE_LIBADA=yes
3080 if test "${ENABLE_LIBADA}" != "yes" ; then
3081 noconfigdirs="$noconfigdirs gnattools"
3084 # Check whether --enable-libssp was given.
3085 if test "${enable_libssp+set}" = set; then :
3086 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3087 else
3088 ENABLE_LIBSSP=yes
3092 # Check whether --enable-libstdcxx was given.
3093 if test "${enable_libstdcxx+set}" = set; then :
3094 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3095 else
3096 ENABLE_LIBSTDCXX=default
3099 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3100 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 # If this is accelerator compiler and its target is intelmic we enable
3104 # target liboffloadmic by default. If this is compiler with offloading
3105 # for intelmic we enable host liboffloadmic by default. Otherwise
3106 # liboffloadmic is disabled by default.
3107 # Check whether --enable-liboffloadmic was given.
3108 if test "${enable_liboffloadmic+set}" = set; then :
3109 enableval=$enable_liboffloadmic; case "$enableval" in
3110 no | host | target)
3111 enable_liboffloadmic=$enableval ;;
3113 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3114 esac
3115 else
3116 if test x"$enable_as_accelerator_for" != x; then
3117 case "${target}" in
3118 *-intelmic-* | *-intelmicemul-*)
3119 enable_liboffloadmic=target
3120 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3123 enable_liboffloadmic=no
3125 esac
3126 else
3127 case "${enable_offload_targets}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=host
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3133 enable_liboffloadmic=no
3135 esac
3141 # Save it here so that, even in case of --enable-libgcj, if the Java
3142 # front-end isn't enabled, we still get libgcj disabled.
3143 libgcj_saved=$libgcj
3144 case $enable_libgcj in
3145 yes)
3146 # If we reset it here, it won't get added to noconfigdirs in the
3147 # target-specific build rules, so it will be forcibly enabled
3148 # (unless the Java language itself isn't enabled).
3149 libgcj=
3152 # Make sure we get it printed in the list of not supported target libs.
3153 # Don't disable libffi, though, other languages use it.
3154 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3155 # Clear libgcj_saved so that even if java is enabled libffi won't be
3156 # built.
3157 libgcj_saved=
3159 esac
3161 # Check whether --enable-static-libjava was given.
3162 if test "${enable_static_libjava+set}" = set; then :
3163 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3164 else
3165 ENABLE_STATIC_LIBJAVA=no
3168 enable_static_libjava=
3169 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3170 enable_static_libjava=yes
3173 if test x$enable_static_libjava != xyes ; then
3174 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3178 posix_based_os="yes"
3179 case "${target}" in
3180 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3182 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3184 *-*-solaris2* | *-*-hpux11*)
3186 *-*-darwin* | *-*-aix*)
3189 posix_based_os="no"
3191 esac
3193 # Enable libgomp by default on POSIX hosted systems.
3194 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3195 # Disable libgomp on non POSIX hosted systems.
3196 noconfigdirs="$noconfigdirs target-libgomp"
3199 # Enable libgupc by default on POSIX hosted systems.
3200 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3201 # Disable libgupc on non POSIX hosted systems.
3202 noconfigdirs="$noconfigdirs target-libgupc"
3205 # Disable libatomic on unsupported systems.
3206 if test -d ${srcdir}/libatomic; then
3207 if test x$enable_libatomic = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3209 $as_echo_n "checking for libatomic support... " >&6; }
3210 if (srcdir=${srcdir}/libatomic; \
3211 . ${srcdir}/configure.tgt; \
3212 test -n "$UNSUPPORTED")
3213 then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libatomic"
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3224 # Disable libcilkrts on unsupported systems.
3225 if test -d ${srcdir}/libcilkrts; then
3226 if test x$enable_libcilkrts = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3228 $as_echo_n "checking for libcilkrts support... " >&6; }
3229 if (srcdir=${srcdir}/libcilkrts; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libcilkrts"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3243 # Disable liboffloadmic on unsupported systems.
3244 if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247 $as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3262 # Disable libitm on unsupported systems.
3263 if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266 $as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3281 # Disable libsanitizer on unsupported systems.
3282 if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285 $as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3300 # Disable libvtv on unsupported systems.
3301 if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304 $as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3320 # Enable libmpx on supported systems by request.
3321 if test -d ${srcdir}/libmpx; then
3322 if test x$enable_libmpx = xyes; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3324 $as_echo_n "checking for libmpx support... " >&6; }
3325 if (srcdir=${srcdir}/libmpx; \
3326 . ${srcdir}/configure.tgt; \
3327 test "$LIBMPX_SUPPORTED" != "yes")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 noconfigdirs="$noconfigdirs target-libmpx"
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3336 else
3337 noconfigdirs="$noconfigdirs target-libmpx"
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3353 esac
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357 avr-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3364 rl78-*-*)
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
3368 noconfigdirs="$noconfigdirs target-libssp"
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3374 esac
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 esac
3394 # Disable Fortran for some systems.
3395 case "${target}" in
3396 mmix-*-*)
3397 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3398 unsupported_languages="$unsupported_languages fortran"
3400 esac
3402 # Disable Java if libffi is not supported.
3403 case "${target}" in
3404 aarch64-*-*)
3406 alpha*-*-*)
3408 arm*-*-*)
3410 cris-*-*)
3412 frv-*-*)
3414 hppa*-*-linux*)
3416 hppa*-*-hpux*)
3418 i?86-*-*)
3420 ia64*-*-*)
3422 m32r*-*-*)
3424 m68k-*-*)
3426 mips*-*-rtems*)
3428 mips*-*-linux*)
3430 powerpc*-*-linux*)
3432 powerpc-*-darwin*)
3434 powerpc-*-aix* | rs6000-*-aix*)
3436 powerpc-*-freebsd*)
3438 powerpc64-*-freebsd*)
3440 powerpc*-*-rtems*)
3442 s390-*-* | s390x-*-*)
3444 sh-*-* | sh[34]*-*-*)
3446 sh64-*-* | sh5*-*-*)
3448 sparc*-*-*)
3450 x86_64-*-*)
3452 *-*-*)
3453 unsupported_languages="$unsupported_languages java"
3455 esac
3457 # Disable Java, libgcj or related libraries for some systems.
3458 case "${target}" in
3459 powerpc-*-darwin*)
3461 i[3456789]86-*-darwin*)
3463 x86_64-*-darwin[912]*)
3465 *-*-darwin*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3468 *-*-netware*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3471 *-*-rtems*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3474 *-*-tpf*)
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3477 *-*-uclinux*)
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3480 *-*-vxworks*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3483 alpha*-*-*vms*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3486 arm*-*-freebsd*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3489 arm-wince-pe)
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3492 arm*-*-symbianelf*)
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3495 bfin-*-*)
3496 noconfigdirs="$noconfigdirs target-boehm-gc"
3498 cris-*-* | crisv32-*-*)
3499 unsupported_languages="$unsupported_languages java"
3500 case "${target}" in
3501 *-*-linux*)
3503 *) # See PR46792 regarding target-libffi.
3504 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3505 esac
3507 hppa*64*-*-linux*)
3508 # In this case, it's because the hppa64-linux target is for
3509 # the kernel only at this point and has no libc, and thus no
3510 # headers, crt*.o, etc., all of which are needed by these.
3511 unsupported_languages="$unsupported_languages java"
3513 hppa*64*-*-hpux*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3516 hppa*-hp-hpux11*)
3518 hppa*-*-hpux*)
3519 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3520 # build on HP-UX 10.20.
3521 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ia64*-*-*vms*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3526 i[3456789]86-w64-mingw*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3529 i[3456789]86-*-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3532 x86_64-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3535 mmix-*-*)
3536 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3538 powerpc-*-aix*)
3539 # copied from rs6000-*-* entry
3540 noconfigdirs="$noconfigdirs ${libgcj}"
3542 rs6000-*-aix*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 *-*-lynxos*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3548 esac
3550 # Disable the go frontend on systems where it is known to not work. Please keep
3551 # this in sync with contrib/config-list.mk.
3552 case "${target}" in
3553 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3554 unsupported_languages="$unsupported_languages go"
3556 esac
3558 # Disable libgo for some systems where it is known to not work.
3559 # For testing, you can easily override this with --enable-libgo.
3560 if test x$enable_libgo = x; then
3561 case "${target}" in
3562 *-*-darwin*)
3563 # PR 46986
3564 noconfigdirs="$noconfigdirs target-libgo"
3566 *-*-cygwin* | *-*-mingw*)
3567 noconfigdirs="$noconfigdirs target-libgo"
3569 *-*-aix*)
3570 noconfigdirs="$noconfigdirs target-libgo"
3572 esac
3575 # Default libgloss CPU subdirectory.
3576 libgloss_dir="$target_cpu"
3578 case "${target}" in
3579 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3580 libgloss_dir=wince
3582 aarch64*-*-* )
3583 libgloss_dir=aarch64
3585 arm*-*-*)
3586 libgloss_dir=arm
3588 cris-*-* | crisv32-*-*)
3589 libgloss_dir=cris
3591 hppa*-*-*)
3592 libgloss_dir=pa
3594 i[3456789]86-*-*)
3595 libgloss_dir=i386
3597 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3598 libgloss_dir=m68hc11
3600 m68*-*-* | fido-*-*)
3601 libgloss_dir=m68k
3603 mips*-*-*)
3604 libgloss_dir=mips
3606 powerpc*-*-*)
3607 libgloss_dir=rs6000
3609 sparc*-*-*)
3610 libgloss_dir=sparc
3612 esac
3614 # Disable newlib and libgloss for various target OSes.
3615 case "${target}" in
3616 alpha*-dec-osf*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 i[3456789]86-*-linux*)
3620 # This section makes it possible to build newlib natively on linux.
3621 # If we are using a cross compiler then don't configure newlib.
3622 if test x${is_cross_compiler} != xno ; then
3623 noconfigdirs="$noconfigdirs target-newlib"
3625 noconfigdirs="$noconfigdirs target-libgloss"
3626 # If we are not using a cross compiler, do configure newlib.
3627 # Note however, that newlib will only be configured in this situation
3628 # if the --with-newlib option has been given, because otherwise
3629 # 'target-newlib' will appear in skipdirs.
3631 i[3456789]86-*-rdos*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 sparc-*-sunos4*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 *-*-aix*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 *-*-beos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 *-*-chorusos)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 *-*-dragonfly*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 *-*-freebsd*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 *-*-lynxos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 *-*-mingw*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 *-*-netbsd*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 *-*-netware*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 *-*-tpf*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 *-*-uclinux*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 *-*-vxworks*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 esac
3681 case "${target}" in
3682 *-*-chorusos)
3684 powerpc-*-darwin*)
3685 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3686 noconfigdirs="$noconfigdirs sim target-rda"
3688 i[3456789]86-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3692 x86_64-*-darwin[912]*)
3693 noconfigdirs="$noconfigdirs ld gas gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3696 *-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3700 *-*-dragonfly*)
3702 *-*-freebsd*)
3703 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3704 && test -f /usr/local/include/gmp.h; then
3705 with_gmp=/usr/local
3708 *-*-kaos*)
3709 # Remove unsupported stuff on all kaOS configurations.
3710 noconfigdirs="$noconfigdirs target-libgloss"
3712 *-*-netbsd*)
3714 *-*-netware*)
3716 *-*-rtems*)
3717 noconfigdirs="$noconfigdirs target-libgloss"
3718 # this is not caught below because this stanza matches earlier
3719 case $target in
3720 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3721 esac
3723 # The tpf target doesn't support gdb yet.
3724 *-*-tpf*)
3725 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3727 *-*-uclinux*)
3728 noconfigdirs="$noconfigdirs target-rda"
3730 *-*-vxworks*)
3732 alpha*-dec-osf*)
3733 # ld works, but does not support shared libraries.
3734 # gas doesn't generate exception information.
3735 noconfigdirs="$noconfigdirs gas ld"
3737 alpha*-*-*vms*)
3738 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3740 alpha*-*-*)
3741 # newlib is not 64 bit ready
3742 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3744 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3745 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3747 arc-*-*|arceb-*-*)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3750 arm-*-pe*)
3751 noconfigdirs="$noconfigdirs target-libgloss"
3753 arm-*-riscix*)
3754 noconfigdirs="$noconfigdirs ld target-libgloss"
3756 avr-*-rtems*)
3758 avr-*-*)
3759 if test x${with_avrlibc} != xno; then
3760 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 c4x-*-* | tic4x-*-*)
3764 noconfigdirs="$noconfigdirs target-libgloss"
3766 tic54x-*-*)
3767 noconfigdirs="$noconfigdirs target-libgloss gdb"
3769 d10v-*-*)
3770 noconfigdirs="$noconfigdirs target-libgloss"
3772 d30v-*-*)
3773 noconfigdirs="$noconfigdirs gdb"
3775 fr30-*-elf*)
3776 noconfigdirs="$noconfigdirs gdb"
3778 moxie-*-*)
3779 noconfigdirs="$noconfigdirs gprof"
3781 h8300*-*-*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3784 h8500-*-*)
3785 noconfigdirs="$noconfigdirs target-libgloss"
3787 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3789 hppa*64*-*-linux*)
3791 hppa*-*-linux*)
3793 hppa*-*-*elf* | \
3794 hppa*-*-lites* | \
3795 hppa*-*-openbsd* | \
3796 hppa*64*-*-*)
3798 hppa*-hp-hpux11*)
3799 noconfigdirs="$noconfigdirs ld"
3801 hppa*-*-pro*)
3803 hppa*-*-*)
3804 noconfigdirs="$noconfigdirs ld"
3806 i960-*-*)
3807 noconfigdirs="$noconfigdirs gdb"
3809 ia64*-*-elf*)
3810 # No gdb support yet.
3811 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3813 ia64*-**-hpux*)
3814 # No ld support yet.
3815 noconfigdirs="$noconfigdirs libgui itcl ld"
3817 ia64*-*-*vms*)
3818 # No ld support yet.
3819 noconfigdirs="$noconfigdirs libgui itcl ld"
3821 i[3456789]86-w64-mingw*)
3823 i[3456789]86-*-mingw*)
3824 target_configdirs="$target_configdirs target-winsup"
3826 *-*-cygwin*)
3827 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3828 noconfigdirs="$noconfigdirs target-libgloss"
3829 # always build newlib if winsup directory is present.
3830 if test -d "$srcdir/winsup/cygwin"; then
3831 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3832 elif test -d "$srcdir/newlib"; then
3833 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3836 i[3456789]86-*-pe)
3837 noconfigdirs="$noconfigdirs target-libgloss"
3839 i[3456789]86-*-sco3.2v5*)
3840 # The linker does not yet know about weak symbols in COFF,
3841 # and is not configured to handle mixed ELF and COFF.
3842 noconfigdirs="$noconfigdirs ld target-libgloss"
3844 i[3456789]86-*-sco*)
3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
3847 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 i[3456789]86-*-sysv4*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3853 i[3456789]86-*-beos*)
3854 noconfigdirs="$noconfigdirs gdb"
3856 i[3456789]86-*-rdos*)
3857 noconfigdirs="$noconfigdirs gdb"
3859 mmix-*-*)
3860 noconfigdirs="$noconfigdirs gdb"
3862 mt-*-*)
3863 noconfigdirs="$noconfigdirs sim"
3865 powerpc-*-aix*)
3866 # copied from rs6000-*-* entry
3867 noconfigdirs="$noconfigdirs gprof"
3869 powerpc*-*-winnt* | powerpc*-*-pe*)
3870 target_configdirs="$target_configdirs target-winsup"
3871 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3872 # always build newlib.
3873 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3875 # This is temporary until we can link against shared libraries
3876 powerpcle-*-solaris*)
3877 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3879 powerpc-*-beos*)
3880 noconfigdirs="$noconfigdirs gdb"
3882 rs6000-*-lynxos*)
3883 noconfigdirs="$noconfigdirs gprof"
3885 rs6000-*-aix*)
3886 noconfigdirs="$noconfigdirs gprof"
3888 rs6000-*-*)
3889 noconfigdirs="$noconfigdirs gprof"
3891 m68k-apollo-*)
3892 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3894 microblaze*)
3895 noconfigdirs="$noconfigdirs gprof"
3897 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3898 if test x$with_newlib = xyes; then
3899 noconfigdirs="$noconfigdirs gprof"
3902 mips*-*-irix5*)
3903 noconfigdirs="$noconfigdirs gprof target-libgloss"
3905 mips*-*-irix6*)
3906 noconfigdirs="$noconfigdirs gprof target-libgloss"
3908 mips*-*-bsd*)
3909 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3911 mips*-*-linux*)
3913 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3914 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3915 noconfigdirs="$noconfigdirs ld gas gprof"
3917 mips*-*-*)
3918 noconfigdirs="$noconfigdirs gprof"
3920 nds32*-*-*)
3921 noconfigdirs="$noconfigdirs gdb"
3923 nvptx*-*-*)
3924 # nvptx is just a compiler
3925 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3927 or1k*-*-*)
3928 noconfigdirs="$noconfigdirs gdb"
3930 sh-*-* | sh64-*-*)
3931 case "${target}" in
3932 sh*-*-elf)
3935 noconfigdirs="$noconfigdirs target-libgloss" ;;
3936 esac
3938 sparc-*-sunos4*)
3939 if test x${is_cross_compiler} = xno ; then
3940 use_gnu_ld=no
3943 tic6x-*-*)
3944 noconfigdirs="$noconfigdirs sim"
3946 tilepro*-*-* | tilegx*-*-*)
3947 noconfigdirs="$noconfigdirs sim"
3949 v810-*-*)
3950 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3952 vax-*-*)
3953 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3955 esac
3957 # If we aren't building newlib, then don't build libgloss, since libgloss
3958 # depends upon some newlib header files.
3959 case "${noconfigdirs}" in
3960 *target-libgloss*) ;;
3961 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3962 esac
3964 # Work in distributions that contain no compiler tools, like Autoconf.
3965 host_makefile_frag=/dev/null
3966 if test -d ${srcdir}/config ; then
3967 case "${host}" in
3968 i[3456789]86-*-msdosdjgpp*)
3969 host_makefile_frag="config/mh-djgpp"
3971 *-cygwin*)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3974 $as_echo_n "checking to see if cat works as expected... " >&6; }
3975 echo a >cygwin-cat-check
3976 if test `cat cygwin-cat-check` = a ; then
3977 rm cygwin-cat-check
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3980 else
3981 rm cygwin-cat-check
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3984 as_fn_error "The cat command does not ignore carriage return characters.
3985 Please either mount the build directory in binary mode or run the following
3986 commands before running any configure script:
3987 set -o igncr
3988 export SHELLOPTS
3989 " "$LINENO" 5
3992 host_makefile_frag="config/mh-cygwin"
3994 *-mingw*)
3995 host_makefile_frag="config/mh-mingw"
3997 alpha*-*-linux*)
3998 host_makefile_frag="config/mh-alpha-linux"
4000 hppa*-hp-hpux10*)
4001 host_makefile_frag="config/mh-pa-hpux10"
4003 hppa*-hp-hpux*)
4004 host_makefile_frag="config/mh-pa"
4006 hppa*-*)
4007 host_makefile_frag="config/mh-pa"
4009 *-*-darwin*)
4010 host_makefile_frag="config/mh-darwin"
4012 powerpc-*-aix*)
4013 host_makefile_frag="config/mh-ppc-aix"
4015 rs6000-*-aix*)
4016 host_makefile_frag="config/mh-ppc-aix"
4018 esac
4021 if test "${build}" != "${host}" ; then
4022 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4023 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4024 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4025 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4026 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4027 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4028 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4029 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
4030 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4031 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4032 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4033 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4034 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4035 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4036 else
4037 AR_FOR_BUILD="\$(AR)"
4038 AS_FOR_BUILD="\$(AS)"
4039 CC_FOR_BUILD="\$(CC)"
4040 CXX_FOR_BUILD="\$(CXX)"
4041 GCJ_FOR_BUILD="\$(GCJ)"
4042 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4043 GOC_FOR_BUILD="\$(GOC)"
4044 GUPC_FOR_BUILD="\$(GUPC)"
4045 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4046 LD_FOR_BUILD="\$(LD)"
4047 NM_FOR_BUILD="\$(NM)"
4048 RANLIB_FOR_BUILD="\$(RANLIB)"
4049 WINDRES_FOR_BUILD="\$(WINDRES)"
4050 WINDMC_FOR_BUILD="\$(WINDMC)"
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_prog_CC+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4086 CC=$ac_cv_prog_CC
4087 if test -n "$CC"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089 $as_echo "$CC" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4097 if test -z "$ac_cv_prog_CC"; then
4098 ac_ct_CC=$CC
4099 # Extract the first word of "gcc", so it can be a program name with args.
4100 set dummy gcc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_ac_ct_CC="gcc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4127 if test -n "$ac_ct_CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4129 $as_echo "$ac_ct_CC" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4135 if test "x$ac_ct_CC" = x; then
4136 CC=""
4137 else
4138 case $cross_compiling:$ac_tool_warned in
4139 yes:)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144 CC=$ac_ct_CC
4146 else
4147 CC="$ac_cv_prog_CC"
4150 if test -z "$CC"; then
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}cc; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_CC+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_CC="${ac_tool_prefix}cc"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4191 if test -z "$CC"; then
4192 # Extract the first word of "cc", so it can be a program name with args.
4193 set dummy cc; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if test "${ac_cv_prog_CC+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201 else
4202 ac_prog_rejected=no
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4211 ac_prog_rejected=yes
4212 continue
4214 ac_cv_prog_CC="cc"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4222 if test $ac_prog_rejected = yes; then
4223 # We found a bogon in the path, so make sure we never use it.
4224 set dummy $ac_cv_prog_CC
4225 shift
4226 if test $# != 0; then
4227 # We chose a different compiler from the bogus one.
4228 # However, it has the same basename, so the bogon will be chosen
4229 # first if we set CC to just the basename; use the full file name.
4230 shift
4231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4236 CC=$ac_cv_prog_CC
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4247 if test -z "$CC"; then
4248 if test -n "$ac_tool_prefix"; then
4249 for ac_prog in cl.exe
4251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if test "${ac_cv_prog_CC+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -n "$CC"; then
4259 ac_cv_prog_CC="$CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4272 done
4273 done
4274 IFS=$as_save_IFS
4278 CC=$ac_cv_prog_CC
4279 if test -n "$CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4288 test -n "$CC" && break
4289 done
4291 if test -z "$CC"; then
4292 ac_ct_CC=$CC
4293 for ac_prog in cl.exe
4295 # Extract the first word of "$ac_prog", so it can be a program name with args.
4296 set dummy $ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$ac_ct_CC"; then
4303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_ac_ct_CC="$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4316 done
4317 done
4318 IFS=$as_save_IFS
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4325 $as_echo "$ac_ct_CC" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4332 test -n "$ac_ct_CC" && break
4333 done
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339 yes:)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344 CC=$ac_ct_CC
4351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4353 as_fn_error "no acceptable C compiler found in \$PATH
4354 See \`config.log' for more details." "$LINENO" 5; }
4356 # Provide some information about the compiler.
4357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4358 set X $ac_compile
4359 ac_compiler=$2
4360 for ac_option in --version -v -V -qversion; do
4361 { { ac_try="$ac_compiler $ac_option >&5"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4369 ac_status=$?
4370 if test -s conftest.err; then
4371 sed '10a\
4372 ... rest of stderr output deleted ...
4373 10q' conftest.err >conftest.er1
4374 cat conftest.er1 >&5
4375 rm -f conftest.er1 conftest.err
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }
4379 done
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 ac_clean_files_save=$ac_clean_files
4393 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4394 # Try to create an executable without -o first, disregard a.out.
4395 # It will help us diagnose broken compilers, and finding out an intuition
4396 # of exeext.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4398 $as_echo_n "checking for C compiler default output file name... " >&6; }
4399 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4401 # The possible output files:
4402 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4404 ac_rmfiles=
4405 for ac_file in $ac_files
4407 case $ac_file in
4408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4410 esac
4411 done
4412 rm -f $ac_rmfiles
4414 if { { ac_try="$ac_link_default"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_link_default") 2>&5
4422 ac_status=$?
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; }; then :
4425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4428 # so that the user can short-circuit this test for compilers unknown to
4429 # Autoconf.
4430 for ac_file in $ac_files ''
4432 test -f "$ac_file" || continue
4433 case $ac_file in
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4436 [ab].out )
4437 # We found the default executable, but exeext='' is most
4438 # certainly right.
4439 break;;
4440 *.* )
4441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4442 then :; else
4443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4445 # We set ac_cv_exeext here because the later test for it is not
4446 # safe: cross compilers may not add the suffix if given an `-o'
4447 # argument, so we may need to know it at that point already.
4448 # Even if this section looks crufty: it has the advantage of
4449 # actually working.
4450 break;;
4452 break;;
4453 esac
4454 done
4455 test "$ac_cv_exeext" = no && ac_cv_exeext=
4457 else
4458 ac_file=''
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4461 $as_echo "$ac_file" >&6; }
4462 if test -z "$ac_file"; then :
4463 $as_echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4468 { as_fn_set_status 77
4469 as_fn_error "C compiler cannot create executables
4470 See \`config.log' for more details." "$LINENO" 5; }; }
4472 ac_exeext=$ac_cv_exeext
4474 # Check that the compiler produces executables we can run. If not, either
4475 # the compiler is broken, or we cross compile.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 $as_echo_n "checking whether the C compiler works... " >&6; }
4478 # If not cross compiling, check that we can run a simple program.
4479 if test "$cross_compiling" != yes; then
4480 if { ac_try='./$ac_file'
4481 { { case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }; }; then
4491 cross_compiling=no
4492 else
4493 if test "$cross_compiling" = maybe; then
4494 cross_compiling=yes
4495 else
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error "cannot run C compiled programs.
4499 If you meant to cross compile, use \`--host'.
4500 See \`config.log' for more details." "$LINENO" 5; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505 $as_echo "yes" >&6; }
4507 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4508 ac_clean_files=$ac_clean_files_save
4509 # Check that the compiler produces executables we can run. If not, either
4510 # the compiler is broken, or we cross compile.
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4512 $as_echo_n "checking whether we are cross compiling... " >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4514 $as_echo "$cross_compiling" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4517 $as_echo_n "checking for suffix of executables... " >&6; }
4518 if { { ac_try="$ac_link"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_link") 2>&5
4526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then :
4529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4531 # work properly (i.e., refer to `conftest.exe'), while it won't with
4532 # `rm'.
4533 for ac_file in conftest.exe conftest conftest.*; do
4534 test -f "$ac_file" || continue
4535 case $ac_file in
4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4538 break;;
4539 * ) break;;
4540 esac
4541 done
4542 else
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error "cannot compute suffix of executables: cannot compile and link
4546 See \`config.log' for more details." "$LINENO" 5; }
4548 rm -f conftest$ac_cv_exeext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4550 $as_echo "$ac_cv_exeext" >&6; }
4552 rm -f conftest.$ac_ext
4553 EXEEXT=$ac_cv_exeext
4554 ac_exeext=$EXEEXT
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4556 $as_echo_n "checking for suffix of object files... " >&6; }
4557 if test "${ac_cv_objext+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4564 main ()
4568 return 0;
4570 _ACEOF
4571 rm -f conftest.o conftest.obj
4572 if { { ac_try="$ac_compile"
4573 case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578 $as_echo "$ac_try_echo"; } >&5
4579 (eval "$ac_compile") 2>&5
4580 ac_status=$?
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }; then :
4583 for ac_file in conftest.o conftest.obj conftest.*; do
4584 test -f "$ac_file" || continue;
4585 case $ac_file in
4586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4588 break;;
4589 esac
4590 done
4591 else
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error "cannot compute suffix of object files: cannot compile
4598 See \`config.log' for more details." "$LINENO" 5; }
4600 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4603 $as_echo "$ac_cv_objext" >&6; }
4604 OBJEXT=$ac_cv_objext
4605 ac_objext=$OBJEXT
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4607 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4608 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4617 #ifndef __GNUC__
4618 choke me
4619 #endif
4622 return 0;
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_compiler_gnu=yes
4627 else
4628 ac_compiler_gnu=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4637 GCC=yes
4638 else
4639 GCC=
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4645 if test "${ac_cv_prog_cc_g+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_save_c_werror_flag=$ac_c_werror_flag
4649 ac_c_werror_flag=yes
4650 ac_cv_prog_cc_g=no
4651 CFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_g=yes
4665 else
4666 CFLAGS=""
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4675 return 0;
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4680 else
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682 CFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4687 main ()
4691 return 0;
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_prog_cc_g=yes
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_c_werror_flag=$ac_save_c_werror_flag
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4705 $as_echo "$ac_cv_prog_cc_g" >&6; }
4706 if test "$ac_test_CFLAGS" = set; then
4707 CFLAGS=$ac_save_CFLAGS
4708 elif test $ac_cv_prog_cc_g = yes; then
4709 if test "$GCC" = yes; then
4710 CFLAGS="-g -O2"
4711 else
4712 CFLAGS="-g"
4714 else
4715 if test "$GCC" = yes; then
4716 CFLAGS="-O2"
4717 else
4718 CFLAGS=
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4723 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 ac_cv_prog_cc_c89=no
4727 ac_save_CC=$CC
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #include <stdarg.h>
4731 #include <stdio.h>
4732 #include <sys/types.h>
4733 #include <sys/stat.h>
4734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4735 struct buf { int x; };
4736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737 static char *e (p, i)
4738 char **p;
4739 int i;
4741 return p[i];
4743 static char *f (char * (*g) (char **, int), char **p, ...)
4745 char *s;
4746 va_list v;
4747 va_start (v,p);
4748 s = g (p, va_arg (v,int));
4749 va_end (v);
4750 return s;
4753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4754 function prototypes and stuff, but not '\xHH' hex character constants.
4755 These don't provoke an error unfortunately, instead are silently treated
4756 as 'x'. The following induces an error, until -std is added to get
4757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4758 array size at least. It's necessary to write '\x00'==0 to get something
4759 that's true only with -std. */
4760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4763 inside strings and character constants. */
4764 #define FOO(x) 'x'
4765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4767 int test (int i, double x);
4768 struct s1 {int (*f) (int a);};
4769 struct s2 {int (*f) (double a);};
4770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4771 int argc;
4772 char **argv;
4774 main ()
4776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4778 return 0;
4780 _ACEOF
4781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4784 CC="$ac_save_CC $ac_arg"
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_prog_cc_c89=$ac_arg
4788 rm -f core conftest.err conftest.$ac_objext
4789 test "x$ac_cv_prog_cc_c89" != "xno" && break
4790 done
4791 rm -f conftest.$ac_ext
4792 CC=$ac_save_CC
4795 # AC_CACHE_VAL
4796 case "x$ac_cv_prog_cc_c89" in
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4799 $as_echo "none needed" >&6; } ;;
4800 xno)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4802 $as_echo "unsupported" >&6; } ;;
4804 CC="$CC $ac_cv_prog_cc_c89"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4807 esac
4808 if test "x$ac_cv_prog_cc_c89" != xno; then :
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818 ac_ext=cpp
4819 ac_cpp='$CXXCPP $CPPFLAGS'
4820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823 if test -z "$CXX"; then
4824 if test -n "$CCC"; then
4825 CXX=$CCC
4826 else
4827 if test -n "$ac_tool_prefix"; then
4828 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_CXX+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$CXX"; then
4838 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 CXX=$ac_cv_prog_CXX
4858 if test -n "$CXX"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4860 $as_echo "$CXX" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4867 test -n "$CXX" && break
4868 done
4870 if test -z "$CXX"; then
4871 ac_ct_CXX=$CXX
4872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$ac_ct_CXX"; then
4882 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_ac_ct_CXX="$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4902 if test -n "$ac_ct_CXX"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4904 $as_echo "$ac_ct_CXX" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 test -n "$ac_ct_CXX" && break
4912 done
4914 if test "x$ac_ct_CXX" = x; then
4915 CXX="g++"
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned=yes ;;
4922 esac
4923 CXX=$ac_ct_CXX
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4931 set X $ac_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 ac_status=$?
4943 if test -s conftest.err; then
4944 sed '10a\
4945 ... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 done
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4955 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4956 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4963 main ()
4965 #ifndef __GNUC__
4966 choke me
4967 #endif
4970 return 0;
4972 _ACEOF
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974 ac_compiler_gnu=yes
4975 else
4976 ac_compiler_gnu=no
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4983 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4984 if test $ac_compiler_gnu = yes; then
4985 GXX=yes
4986 else
4987 GXX=
4989 ac_test_CXXFLAGS=${CXXFLAGS+set}
4990 ac_save_CXXFLAGS=$CXXFLAGS
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4992 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4993 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4997 ac_cxx_werror_flag=yes
4998 ac_cv_prog_cxx_g=no
4999 CXXFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5004 main ()
5008 return 0;
5010 _ACEOF
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5012 ac_cv_prog_cxx_g=yes
5013 else
5014 CXXFLAGS=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 main ()
5023 return 0;
5025 _ACEOF
5026 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 else
5029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5030 CXXFLAGS="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5035 main ()
5039 return 0;
5041 _ACEOF
5042 if ac_fn_cxx_try_compile "$LINENO"; then :
5043 ac_cv_prog_cxx_g=yes
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5053 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5054 if test "$ac_test_CXXFLAGS" = set; then
5055 CXXFLAGS=$ac_save_CXXFLAGS
5056 elif test $ac_cv_prog_cxx_g = yes; then
5057 if test "$GXX" = yes; then
5058 CXXFLAGS="-g -O2"
5059 else
5060 CXXFLAGS="-g"
5062 else
5063 if test "$GXX" = yes; then
5064 CXXFLAGS="-O2"
5065 else
5066 CXXFLAGS=
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 # We must set the default linker to the linker used by gcc for the correct
5077 # operation of libtool. If LD is not defined and we are using gcc, try to
5078 # set the LD default to the ld used by gcc.
5079 if test -z "$LD"; then
5080 if test "$GCC" = yes; then
5081 case $build in
5082 *-*-mingw*)
5083 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5085 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5086 esac
5087 case $gcc_prog_ld in
5088 # Accept absolute paths.
5089 [\\/]* | [A-Za-z]:[\\/]*)
5090 LD="$gcc_prog_ld" ;;
5091 esac
5095 # Check whether -static-libstdc++ -static-libgcc is supported.
5096 have_static_libs=no
5097 if test "$GCC" = yes; then
5098 saved_LDFLAGS="$LDFLAGS"
5100 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5102 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5103 ac_ext=cpp
5104 ac_cpp='$CXXCPP $CPPFLAGS'
5105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5114 #error -static-libstdc++ not implemented
5115 #endif
5116 int main() {}
5117 _ACEOF
5118 if ac_fn_cxx_try_link "$LINENO"; then :
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120 $as_echo "yes" >&6; }; have_static_libs=yes
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5125 rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 LDFLAGS="$saved_LDFLAGS"
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$GNATBIND"; then
5149 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5164 IFS=$as_save_IFS
5168 GNATBIND=$ac_cv_prog_GNATBIND
5169 if test -n "$GNATBIND"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5171 $as_echo "$GNATBIND" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 if test -z "$ac_cv_prog_GNATBIND"; then
5180 ac_ct_GNATBIND=$GNATBIND
5181 # Extract the first word of "gnatbind", so it can be a program name with args.
5182 set dummy gnatbind; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$ac_ct_GNATBIND"; then
5189 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5202 done
5203 done
5204 IFS=$as_save_IFS
5208 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5209 if test -n "$ac_ct_GNATBIND"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5211 $as_echo "$ac_ct_GNATBIND" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5217 if test "x$ac_ct_GNATBIND" = x; then
5218 GNATBIND="no"
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226 GNATBIND=$ac_ct_GNATBIND
5228 else
5229 GNATBIND="$ac_cv_prog_GNATBIND"
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$GNATMAKE"; then
5241 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5260 GNATMAKE=$ac_cv_prog_GNATMAKE
5261 if test -n "$GNATMAKE"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5263 $as_echo "$GNATMAKE" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5271 if test -z "$ac_cv_prog_GNATMAKE"; then
5272 ac_ct_GNATMAKE=$GNATMAKE
5273 # Extract the first word of "gnatmake", so it can be a program name with args.
5274 set dummy gnatmake; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$ac_ct_GNATMAKE"; then
5281 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5301 if test -n "$ac_ct_GNATMAKE"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5303 $as_echo "$ac_ct_GNATMAKE" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5309 if test "x$ac_ct_GNATMAKE" = x; then
5310 GNATMAKE="no"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318 GNATMAKE=$ac_ct_GNATMAKE
5320 else
5321 GNATMAKE="$ac_cv_prog_GNATMAKE"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5325 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5326 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat >conftest.adb <<EOF
5330 procedure conftest is begin null; end conftest;
5332 acx_cv_cc_gcc_supports_ada=no
5333 # There is a bug in old released versions of GCC which causes the
5334 # driver to exit successfully when the appropriate language module
5335 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5336 # Therefore we must check for the error message as well as an
5337 # unsuccessful exit.
5338 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5339 # given a .adb file, but produce no object file. So we must check
5340 # if an object file was really produced to guard against this.
5341 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5342 if test x"$errors" = x && test -f conftest.$ac_objext; then
5343 acx_cv_cc_gcc_supports_ada=yes
5345 rm -f conftest.*
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5348 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5350 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5351 have_gnat=yes
5352 else
5353 have_gnat=no
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5357 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5358 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 echo abfoo >t1
5362 echo cdfoo >t2
5363 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5364 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5365 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5367 else
5368 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5371 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5372 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5374 else
5375 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5378 rm t1 t2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5382 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5383 do_compare="$gcc_cv_prog_cmp_skip"
5387 # Check whether --enable-bootstrap was given.
5388 if test "${enable_bootstrap+set}" = set; then :
5389 enableval=$enable_bootstrap;
5390 else
5391 enable_bootstrap=default
5395 # Issue errors and warnings for invalid/strange bootstrap combinations.
5396 if test -r $srcdir/gcc/configure; then
5397 have_compiler=yes
5398 else
5399 have_compiler=no
5402 case "$have_compiler:$host:$target:$enable_bootstrap" in
5403 *:*:*:no) ;;
5405 # Default behavior. Enable bootstrap if we have a compiler
5406 # and we are in a native configuration.
5407 yes:$build:$build:default)
5408 enable_bootstrap=yes ;;
5410 *:*:*:default)
5411 enable_bootstrap=no ;;
5413 # We have a compiler and we are in a native configuration, bootstrap is ok
5414 yes:$build:$build:yes)
5417 # Other configurations, but we have a compiler. Assume the user knows
5418 # what he's doing.
5419 yes:*:*:yes)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5421 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5424 # No compiler: if they passed --enable-bootstrap explicitly, fail
5425 no:*:*:yes)
5426 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5428 # Fail if wrong command line
5430 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5432 esac
5434 # Used for setting $lt_cv_objdir
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5436 $as_echo_n "checking for objdir... " >&6; }
5437 if test "${lt_cv_objdir+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 rm -f .libs 2>/dev/null
5441 mkdir .libs 2>/dev/null
5442 if test -d .libs; then
5443 lt_cv_objdir=.libs
5444 else
5445 # MS-DOS does not allow filenames that begin with a dot.
5446 lt_cv_objdir=_libs
5448 rmdir .libs 2>/dev/null
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5451 $as_echo "$lt_cv_objdir" >&6; }
5452 objdir=$lt_cv_objdir
5458 cat >>confdefs.h <<_ACEOF
5459 #define LT_OBJDIR "$lt_cv_objdir/"
5460 _ACEOF
5464 # Check for GMP, MPFR and MPC
5465 gmplibs="-lmpc -lmpfr -lgmp"
5466 gmpinc=
5467 have_gmp=no
5469 # Specify a location for mpc
5470 # check for this first so it ends up on the link line before mpfr.
5472 # Check whether --with-mpc was given.
5473 if test "${with_mpc+set}" = set; then :
5474 withval=$with_mpc;
5478 # Check whether --with-mpc-include was given.
5479 if test "${with_mpc_include+set}" = set; then :
5480 withval=$with_mpc_include;
5484 # Check whether --with-mpc-lib was given.
5485 if test "${with_mpc_lib+set}" = set; then :
5486 withval=$with_mpc_lib;
5490 if test "x$with_mpc" != x; then
5491 gmplibs="-L$with_mpc/lib $gmplibs"
5492 gmpinc="-I$with_mpc/include $gmpinc"
5494 if test "x$with_mpc_include" != x; then
5495 gmpinc="-I$with_mpc_include $gmpinc"
5497 if test "x$with_mpc_lib" != x; then
5498 gmplibs="-L$with_mpc_lib $gmplibs"
5500 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5501 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5502 gmpinc='-I$$s/mpc/src '"$gmpinc"
5503 # Do not test the mpc version. Assume that it is sufficient, since
5504 # it is in the source tree, and the library has not been built yet
5505 # but it would be included on the link line in the version check below
5506 # hence making the test fail.
5507 have_gmp=yes
5510 # Specify a location for mpfr
5511 # check for this first so it ends up on the link line before gmp.
5513 # Check whether --with-mpfr-dir was given.
5514 if test "${with_mpfr_dir+set}" = set; then :
5515 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5516 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5521 # Check whether --with-mpfr was given.
5522 if test "${with_mpfr+set}" = set; then :
5523 withval=$with_mpfr;
5527 # Check whether --with-mpfr-include was given.
5528 if test "${with_mpfr_include+set}" = set; then :
5529 withval=$with_mpfr_include;
5533 # Check whether --with-mpfr-lib was given.
5534 if test "${with_mpfr_lib+set}" = set; then :
5535 withval=$with_mpfr_lib;
5539 if test "x$with_mpfr" != x; then
5540 gmplibs="-L$with_mpfr/lib $gmplibs"
5541 gmpinc="-I$with_mpfr/include $gmpinc"
5543 if test "x$with_mpfr_include" != x; then
5544 gmpinc="-I$with_mpfr_include $gmpinc"
5546 if test "x$with_mpfr_lib" != x; then
5547 gmplibs="-L$with_mpfr_lib $gmplibs"
5549 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5550 # MPFR v3.1.0 moved the sources into a src sub-directory.
5551 if test -d ${srcdir}/mpfr/src; then
5552 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5553 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5554 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5555 else
5556 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5557 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5558 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5560 # Do not test the mpfr version. Assume that it is sufficient, since
5561 # it is in the source tree, and the library has not been built yet
5562 # but it would be included on the link line in the version check below
5563 # hence making the test fail.
5564 have_gmp=yes
5567 # Specify a location for gmp
5569 # Check whether --with-gmp-dir was given.
5570 if test "${with_gmp_dir+set}" = set; then :
5571 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5572 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5577 # Check whether --with-gmp was given.
5578 if test "${with_gmp+set}" = set; then :
5579 withval=$with_gmp;
5583 # Check whether --with-gmp-include was given.
5584 if test "${with_gmp_include+set}" = set; then :
5585 withval=$with_gmp_include;
5589 # Check whether --with-gmp-lib was given.
5590 if test "${with_gmp_lib+set}" = set; then :
5591 withval=$with_gmp_lib;
5596 if test "x$with_gmp" != x; then
5597 gmplibs="-L$with_gmp/lib $gmplibs"
5598 gmpinc="-I$with_gmp/include $gmpinc"
5600 if test "x$with_gmp_include" != x; then
5601 gmpinc="-I$with_gmp_include $gmpinc"
5603 if test "x$with_gmp_lib" != x; then
5604 gmplibs="-L$with_gmp_lib $gmplibs"
5606 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5607 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5608 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5609 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5610 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5611 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5612 # Do not test the gmp version. Assume that it is sufficient, since
5613 # it is in the source tree, and the library has not been built yet
5614 # but it would be included on the link line in the version check below
5615 # hence making the test fail.
5616 have_gmp=yes
5619 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5620 have_gmp=yes
5621 saved_CFLAGS="$CFLAGS"
5622 CFLAGS="$CFLAGS $gmpinc"
5623 # Check for the recommended and required versions of GMP.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5625 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include "gmp.h"
5631 main ()
5634 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5635 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5636 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5637 choke me
5638 #endif
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <gmp.h>
5649 main ()
5652 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5653 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5654 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5655 choke me
5656 #endif
5659 return 0;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664 $as_echo "yes" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5667 $as_echo "buggy but acceptable" >&6; }
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }; have_gmp=no
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 # If we have GMP, check the MPFR version.
5677 if test x"$have_gmp" = xyes; then
5678 # Check for the recommended and required versions of MPFR.
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5680 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 #include <gmp.h>
5684 #include <mpfr.h>
5686 main ()
5689 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5690 choke me
5691 #endif
5694 return 0;
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #include <gmp.h>
5701 #include <mpfr.h>
5703 main ()
5706 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5707 choke me
5708 #endif
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5719 $as_echo "buggy but acceptable" >&6; }
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }; have_gmp=no
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 # Check for the MPC header version.
5730 if test x"$have_gmp" = xyes ; then
5731 # Check for the recommended and required versions of MPC.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5733 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <mpc.h>
5738 main ()
5741 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5742 choke me
5743 #endif
5746 return 0;
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <mpc.h>
5754 main ()
5757 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5758 choke me
5759 #endif
5762 return 0;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767 $as_echo "yes" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5770 $as_echo "buggy but acceptable" >&6; }
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }; have_gmp=no
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 # Now check the MPFR library.
5781 if test x"$have_gmp" = xyes; then
5782 saved_LIBS="$LIBS"
5783 LIBS="$LIBS $gmplibs"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5785 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #include <mpc.h>
5790 main ()
5793 mpfr_t n;
5794 mpfr_t x;
5795 mpc_t c;
5796 int t;
5797 mpfr_init (n);
5798 mpfr_init (x);
5799 mpfr_atan2 (n, n, x, GMP_RNDN);
5800 mpfr_erfc (n, x, GMP_RNDN);
5801 mpfr_subnormalize (x, t, GMP_RNDN);
5802 mpfr_clear(n);
5803 mpfr_clear(x);
5804 mpc_init2 (c, 53);
5805 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5806 mpc_cosh (c, c, MPC_RNDNN);
5807 mpc_pow (c, c, c, MPC_RNDNN);
5808 mpc_acosh (c, c, MPC_RNDNN);
5809 mpc_clear (c);
5812 return 0;
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5817 $as_echo "yes" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }; have_gmp=no
5822 rm -f core conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 LIBS="$saved_LIBS"
5827 CFLAGS="$saved_CFLAGS"
5829 # The library versions listed in the error message below should match
5830 # the HARD-minimums enforced above.
5831 if test x$have_gmp != xyes; then
5832 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5833 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5834 their locations. Source code for these libraries can be found at
5835 their respective hosting sites as well as at
5836 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5837 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5838 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5839 make sure that you have installed both the libraries and the header
5840 files. They may be located in separate packages." "$LINENO" 5
5844 # Flags needed for both GMP, MPFR and/or MPC.
5852 # Allow host libstdc++ to be specified for static linking with PPL.
5854 # Check whether --with-host-libstdcxx was given.
5855 if test "${with_host_libstdcxx+set}" = set; then :
5856 withval=$with_host_libstdcxx;
5860 case $with_host_libstdcxx in
5861 no|yes)
5862 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5864 esac
5866 # Libraries to use for stage1 or when not bootstrapping.
5868 # Check whether --with-stage1-libs was given.
5869 if test "${with_stage1_libs+set}" = set; then :
5870 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5871 stage1_libs=
5872 else
5873 stage1_libs=$withval
5875 else
5876 stage1_libs=$with_host_libstdcxx
5881 # Linker flags to use for stage1 or when not bootstrapping.
5883 # Check whether --with-stage1-ldflags was given.
5884 if test "${with_stage1_ldflags+set}" = set; then :
5885 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5886 stage1_ldflags=
5887 else
5888 stage1_ldflags=$withval
5890 else
5891 stage1_ldflags=
5892 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5893 # if supported. But if the user explicitly specified the libraries to use,
5894 # trust that they are doing what they want.
5895 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5896 stage1_ldflags="-static-libstdc++ -static-libgcc"
5902 # Libraries to use for stage2 and later builds. This defaults to the
5903 # argument passed to --with-host-libstdcxx.
5905 # Check whether --with-boot-libs was given.
5906 if test "${with_boot_libs+set}" = set; then :
5907 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5908 poststage1_libs=
5909 else
5910 poststage1_libs=$withval
5912 else
5913 poststage1_libs=$with_host_libstdcxx
5918 # Linker flags to use for stage2 and later builds.
5920 # Check whether --with-boot-ldflags was given.
5921 if test "${with_boot_ldflags+set}" = set; then :
5922 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5923 poststage1_ldflags=
5924 else
5925 poststage1_ldflags=$withval
5927 else
5928 poststage1_ldflags=
5929 # In stages 2 and 3, default to linking libstdc++ and libgcc
5930 # statically. But if the user explicitly specified the libraries to
5931 # use, trust that they are doing what they want.
5932 if test "$poststage1_libs" = ""; then
5933 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5939 # GCC GRAPHITE dependency ISL.
5940 # Basic setup is inlined here, actual checks are in config/isl.m4
5943 # Check whether --with-isl was given.
5944 if test "${with_isl+set}" = set; then :
5945 withval=$with_isl;
5949 # Treat --without-isl as a request to disable
5950 # GRAPHITE support and skip all following checks.
5951 if test "x$with_isl" != "xno"; then
5952 # Check for ISL
5955 # Check whether --with-isl-include was given.
5956 if test "${with_isl_include+set}" = set; then :
5957 withval=$with_isl_include;
5961 # Check whether --with-isl-lib was given.
5962 if test "${with_isl_lib+set}" = set; then :
5963 withval=$with_isl_lib;
5967 # Check whether --enable-isl-version-check was given.
5968 if test "${enable_isl_version_check+set}" = set; then :
5969 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5970 else
5971 ENABLE_ISL_CHECK=yes
5975 # Initialize isllibs and islinc.
5976 case $with_isl in
5978 isllibs=
5979 islinc=
5981 "" | yes)
5984 isllibs="-L$with_isl/lib"
5985 islinc="-I$with_isl/include"
5987 esac
5988 if test "x${with_isl_include}" != x ; then
5989 islinc="-I$with_isl_include"
5991 if test "x${with_isl_lib}" != x; then
5992 isllibs="-L$with_isl_lib"
5994 if test "x${islinc}" = x && test "x${isllibs}" = x \
5995 && test -d ${srcdir}/isl; then
5996 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5997 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5998 ENABLE_ISL_CHECK=no
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
6000 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
6003 isllibs="${isllibs} -lisl"
6007 if test "${ENABLE_ISL_CHECK}" = yes ; then
6008 _isl_saved_CFLAGS=$CFLAGS
6009 _isl_saved_LDFLAGS=$LDFLAGS
6010 _isl_saved_LIBS=$LIBS
6012 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6013 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6014 LIBS="${_isl_saved_LIBS} -lisl"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6017 $as_echo_n "checking for compatible ISL... " >&6; }
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 #include <isl/val.h>
6022 main ()
6026 return 0;
6028 _ACEOF
6029 if ac_fn_c_try_link "$LINENO"; then :
6030 gcc_cv_isl=yes
6031 else
6032 gcc_cv_isl=no
6034 rm -f core conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6037 $as_echo "$gcc_cv_isl" >&6; }
6039 CFLAGS=$_isl_saved_CFLAGS
6040 LDFLAGS=$_isl_saved_LDFLAGS
6041 LIBS=$_isl_saved_LIBS
6049 if test "x${with_isl}" = xno; then
6050 graphite_requested=no
6051 elif test "x${with_isl}" != x \
6052 || test "x${with_isl_include}" != x \
6053 || test "x${with_isl_lib}" != x ; then
6054 graphite_requested=yes
6055 else
6056 graphite_requested=no
6061 if test "${gcc_cv_isl}" = no ; then
6062 isllibs=
6063 islinc=
6066 if test "${graphite_requested}" = yes \
6067 && test "x${isllibs}" = x \
6068 && test "x${islinc}" = x ; then
6070 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6076 # If the ISL check failed, disable builds of in-tree variant of ISL
6077 if test "x$with_isl" = xno ||
6078 test "x$gcc_cv_isl" = xno; then
6079 noconfigdirs="$noconfigdirs isl"
6080 islinc=
6086 # Check for LTO support.
6087 # Check whether --enable-lto was given.
6088 if test "${enable_lto+set}" = set; then :
6089 enableval=$enable_lto; enable_lto=$enableval
6090 else
6091 enable_lto=yes; default_enable_lto=yes
6098 target_elf=no
6099 case $target in
6100 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6101 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6102 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6103 nvptx-*-none)
6104 target_elf=no
6107 target_elf=yes
6109 esac
6111 if test $target_elf = yes; then :
6112 # ELF platforms build the lto-plugin always.
6113 build_lto_plugin=yes
6115 else
6116 if test x"$default_enable_lto" = x"yes" ; then
6117 case $target in
6118 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6119 # On other non-ELF platforms, LTO has yet to be validated.
6120 *) enable_lto=no ;;
6121 esac
6122 else
6123 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6124 # It would also be nice to check the binutils support, but we don't
6125 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6126 # warn during gcc/ subconfigure; unless you're bootstrapping with
6127 # -flto it won't be needed until after installation anyway.
6128 case $target in
6129 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6130 *) if test x"$enable_lto" = x"yes"; then
6131 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6134 esac
6136 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6137 # Build it unless LTO was explicitly disabled.
6138 case $target in
6139 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6140 *) ;;
6141 esac
6146 # Check whether --enable-linker-plugin-configure-flags was given.
6147 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6148 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6149 else
6150 extra_linker_plugin_configure_flags=
6154 # Check whether --enable-linker-plugin-flags was given.
6155 if test "${enable_linker_plugin_flags+set}" = set; then :
6156 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6157 else
6158 extra_linker_plugin_flags=
6164 # By default, C and C++ are the only stage 1 languages.
6165 stage1_languages=,c,
6167 # Target libraries that we bootstrap.
6168 bootstrap_target_libs=,target-libgcc,
6170 # Figure out what language subdirectories are present.
6171 # Look if the user specified --enable-languages="..."; if not, use
6172 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6173 # go away some day.
6174 # NB: embedded tabs in this IF block -- do not untabify
6175 if test -d ${srcdir}/gcc; then
6176 if test x"${enable_languages+set}" != xset; then
6177 if test x"${LANGUAGES+set}" = xset; then
6178 enable_languages="${LANGUAGES}"
6179 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6180 else
6181 enable_languages=all
6183 else
6184 if test x"${enable_languages}" = x ||
6185 test x"${enable_languages}" = xyes;
6186 then
6187 echo configure.in: --enable-languages needs at least one language argument 1>&2
6188 exit 1
6191 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6193 # 'f95' is the old name for the 'fortran' language. We issue a warning
6194 # and make the substitution.
6195 case ,${enable_languages}, in
6196 *,f95,*)
6197 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6198 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6200 esac
6202 # If bootstrapping, C++ must be enabled.
6203 case ",$enable_languages,:$enable_bootstrap" in
6204 *,c++,*:*) ;;
6205 *:yes)
6206 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6207 enable_languages="${enable_languages},c++"
6208 else
6209 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6212 esac
6214 # First scan to see if an enabled language requires some other language.
6215 # We assume that a given config-lang.in will list all the language
6216 # front ends it requires, even if some are required indirectly.
6217 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6218 case ${lang_frag} in
6219 ..) ;;
6220 # The odd quoting in the next line works around
6221 # an apparent bug in bash 1.12 on linux.
6222 ${srcdir}/gcc/[*]/config-lang.in) ;;
6224 # From the config-lang.in, get $language, $lang_requires, and
6225 # $lang_requires_boot_languages.
6226 language=
6227 lang_requires=
6228 lang_requires_boot_languages=
6229 . ${lang_frag}
6230 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6231 case ,${enable_languages}, in
6232 *,$other,*) ;;
6233 *,all,*) ;;
6234 *,$language,*)
6235 echo " \`$other' language required by \`$language'; enabling" 1>&2
6236 enable_languages="${enable_languages},${other}"
6238 esac
6239 done
6240 for other in ${lang_requires_boot_languages} ; do
6241 if test "$other" != "c"; then
6242 case ,${enable_stage1_languages}, in
6243 *,$other,*) ;;
6244 *,all,*) ;;
6246 case ,${enable_languages}, in
6247 *,$language,*)
6248 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6249 enable_stage1_languages="$enable_stage1_languages,${other}"
6251 esac
6253 esac
6255 done
6257 esac
6258 done
6260 new_enable_languages=,c,
6262 # If LTO is enabled, add the LTO front end.
6263 if test "$enable_lto" = "yes" ; then
6264 case ,${enable_languages}, in
6265 *,lto,*) ;;
6266 *) enable_languages="${enable_languages},lto" ;;
6267 esac
6268 if test "${build_lto_plugin}" = "yes" ; then
6269 configdirs="$configdirs lto-plugin"
6273 # If we're building an offloading compiler, add the LTO front end.
6274 if test x"$enable_as_accelerator_for" != x ; then
6275 case ,${enable_languages}, in
6276 *,lto,*) ;;
6277 *) enable_languages="${enable_languages},lto" ;;
6278 esac
6281 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6282 potential_languages=,c,
6284 enabled_target_libs=
6285 disabled_target_libs=
6287 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6288 case ${lang_frag} in
6289 ..) ;;
6290 # The odd quoting in the next line works around
6291 # an apparent bug in bash 1.12 on linux.
6292 ${srcdir}/gcc/[*]/config-lang.in) ;;
6294 # From the config-lang.in, get $language, $target_libs,
6295 # $lang_dirs, $boot_language, and $build_by_default
6296 language=
6297 target_libs=
6298 lang_dirs=
6299 subdir_requires=
6300 boot_language=no
6301 build_by_default=yes
6302 . ${lang_frag}
6303 if test x${language} = x; then
6304 echo "${lang_frag} doesn't set \$language." 1>&2
6305 exit 1
6308 if test "$language" = "c++"; then
6309 boot_language=yes
6312 add_this_lang=no
6313 case ,${enable_languages}, in
6314 *,${language},*)
6315 # Language was explicitly selected; include it
6316 # unless it is C, which is enabled by default.
6317 if test "$language" != "c"; then
6318 add_this_lang=yes
6321 *,all,*)
6322 # 'all' was selected, select it if it is a default language
6323 if test "$language" != "c"; then
6324 add_this_lang=${build_by_default}
6327 esac
6329 # Disable languages that need other directories if these aren't available.
6330 for i in $subdir_requires; do
6331 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6332 case ,${enable_languages}, in
6333 *,${language},*)
6334 # Specifically requested language; tell them.
6335 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6338 # Silently disable.
6339 add_this_lang=unsupported
6341 esac
6342 done
6344 # Disable Ada if no preexisting GNAT is available.
6345 case ,${enable_languages},:${language}:${have_gnat} in
6346 *,${language},*:ada:no)
6347 # Specifically requested language; tell them.
6348 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6350 *:ada:no)
6351 # Silently disable.
6352 add_this_lang=unsupported
6354 esac
6356 # Disable a language that is unsupported by the target.
6357 case " $unsupported_languages " in
6358 *" $language "*)
6359 add_this_lang=unsupported
6361 esac
6363 case $add_this_lang in
6364 unsupported)
6365 # Remove language-dependent dirs.
6366 disabled_target_libs="$disabled_target_libs $target_libs"
6367 noconfigdirs="$noconfigdirs $lang_dirs"
6370 # Remove language-dependent dirs; still show language as supported.
6371 disabled_target_libs="$disabled_target_libs $target_libs"
6372 noconfigdirs="$noconfigdirs $lang_dirs"
6373 potential_languages="${potential_languages}${language},"
6375 yes)
6376 new_enable_languages="${new_enable_languages}${language},"
6377 potential_languages="${potential_languages}${language},"
6378 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6379 enabled_target_libs="$enabled_target_libs $target_libs"
6380 case "${boot_language}:,$enable_stage1_languages," in
6381 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6382 # Add to (comma-separated) list of stage 1 languages.
6383 case ",$stage1_languages," in
6384 *,$language,* | ,yes, | ,all,) ;;
6385 *) stage1_languages="${stage1_languages}${language}," ;;
6386 esac
6387 # We need to bootstrap any supporting libraries.
6388 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6390 esac
6392 esac
6394 esac
6395 done
6397 # Add target libraries which are only needed for disabled languages
6398 # to noconfigdirs.
6399 if test -n "$disabled_target_libs"; then
6400 for dir in $disabled_target_libs; do
6401 case " $enabled_target_libs " in
6402 *" ${dir} "*) ;;
6403 *) noconfigdirs="$noconfigdirs $dir" ;;
6404 esac
6405 done
6408 # Check whether --enable-stage1-languages was given.
6409 if test "${enable_stage1_languages+set}" = set; then :
6410 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6411 ,no,|,,)
6412 # Set it to something that will have no effect in the loop below
6413 enable_stage1_languages=c ;;
6414 ,yes,)
6415 enable_stage1_languages=`echo $new_enable_languages | \
6416 sed -e "s/^,//" -e "s/,$//" ` ;;
6417 *,all,*)
6418 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6419 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6420 esac
6422 # Add "good" languages from enable_stage1_languages to stage1_languages,
6423 # while "bad" languages go in missing_languages. Leave no duplicates.
6424 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6425 case $potential_languages in
6426 *,$i,*)
6427 case $stage1_languages in
6428 *,$i,*) ;;
6429 *) stage1_languages="$stage1_languages$i," ;;
6430 esac ;;
6432 case $missing_languages in
6433 *,$i,*) ;;
6434 *) missing_languages="$missing_languages$i," ;;
6435 esac ;;
6436 esac
6437 done
6441 # Remove leading/trailing commas that were added for simplicity
6442 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6443 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6444 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6445 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6447 if test "x$missing_languages" != x; then
6448 as_fn_error "
6449 The following requested languages could not be built: ${missing_languages}
6450 Supported languages are: ${potential_languages}" "$LINENO" 5
6452 if test "x$new_enable_languages" != "x$enable_languages"; then
6453 echo The following languages will be built: ${new_enable_languages}
6454 enable_languages="$new_enable_languages"
6458 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6461 # Handle --disable-<component> generically.
6462 for dir in $configdirs $build_configdirs $target_configdirs ; do
6463 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6464 varname=`echo $dirname | sed -e s/+/_/g`
6465 if eval test x\${enable_${varname}} "=" xno ; then
6466 noconfigdirs="$noconfigdirs $dir"
6468 done
6470 # Check for Boehm's garbage collector
6471 # Check whether --enable-objc-gc was given.
6472 if test "${enable_objc_gc+set}" = set; then :
6473 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6474 *,objc,*:*:yes:*target-boehm-gc*)
6475 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6477 esac
6481 # Make sure we only build Boehm's garbage collector if required.
6482 case ,${enable_languages},:${enable_objc_gc} in
6483 *,objc,*:yes)
6484 # Keep target-boehm-gc if requested for Objective-C.
6487 # Otherwise remove target-boehm-gc depending on target-libjava.
6488 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6489 noconfigdirs="$noconfigdirs target-boehm-gc"
6492 esac
6495 # Check whether --with-upc-pts was given.
6496 if test "${with_upc_pts+set}" = set; then :
6497 withval=$with_upc_pts;
6498 if test "$withval"x != "struct"x && test "$withval"x != "packed"x; then \
6499 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6505 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6506 case ,${enable_languages}, in
6507 *,c++,*)
6508 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6509 case "${noconfigdirs}" in
6510 *target-libstdc++-v3*)
6511 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6513 *) ;;
6514 esac
6517 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6519 esac
6521 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6522 # $build_configdirs and $target_configdirs.
6523 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6525 notsupp=""
6526 for dir in . $skipdirs $noconfigdirs ; do
6527 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6528 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6530 if test -r $srcdir/$dirname/configure ; then
6531 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6532 true
6533 else
6534 notsupp="$notsupp $dir"
6538 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6539 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6540 if test -r $srcdir/$dirname/configure ; then
6541 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6542 true
6543 else
6544 notsupp="$notsupp $dir"
6548 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6549 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6550 if test -r $srcdir/$dirname/configure ; then
6551 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6552 true
6553 else
6554 notsupp="$notsupp $dir"
6558 done
6560 # Quietly strip out all directories which aren't configurable in this tree.
6561 # This relies on all configurable subdirectories being autoconfiscated, which
6562 # is now the case.
6563 build_configdirs_all="$build_configdirs"
6564 build_configdirs=
6565 for i in ${build_configdirs_all} ; do
6566 j=`echo $i | sed -e s/build-//g`
6567 if test -f ${srcdir}/$j/configure ; then
6568 build_configdirs="${build_configdirs} $i"
6570 done
6572 configdirs_all="$configdirs"
6573 configdirs=
6574 for i in ${configdirs_all} ; do
6575 if test -f ${srcdir}/$i/configure ; then
6576 configdirs="${configdirs} $i"
6578 done
6580 target_configdirs_all="$target_configdirs"
6581 target_configdirs=
6582 for i in ${target_configdirs_all} ; do
6583 j=`echo $i | sed -e s/target-//g`
6584 if test -f ${srcdir}/$j/configure ; then
6585 target_configdirs="${target_configdirs} $i"
6587 done
6589 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6590 # so we have to add it after the preceding checks.
6591 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6592 then
6593 case " $configdirs " in
6594 *" libiberty "*)
6595 # If we can build libiberty, we can also build libiberty-linker-plugin.
6596 configdirs="$configdirs libiberty-linker-plugin"
6597 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6598 --with-libiberty=../libiberty-linker-plugin";;
6600 as_fn_error "libiberty missing" "$LINENO" 5;;
6601 esac
6604 # Sometimes we have special requirements for the host libiberty.
6605 extra_host_libiberty_configure_flags=
6606 case " $configdirs " in
6607 *" lto-plugin "* | *" libcc1 "*)
6608 # When these are to be built as shared libraries, the same applies to
6609 # libiberty.
6610 extra_host_libiberty_configure_flags=--enable-shared
6612 esac
6615 # Produce a warning message for the subdirs we can't configure.
6616 # This isn't especially interesting in the Cygnus tree, but in the individual
6617 # FSF releases, it's important to let people know when their machine isn't
6618 # supported by the one or two programs in a package.
6620 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6621 # If $appdirs is non-empty, at least one of those directories must still
6622 # be configured, or we error out. (E.g., if the gas release supports a
6623 # specified target in some subdirs but not the gas subdir, we shouldn't
6624 # pretend that all is well.)
6625 if test -n "$appdirs" ; then
6626 for dir in $appdirs ; do
6627 if test -r $dir/Makefile.in ; then
6628 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6629 appdirs=""
6630 break
6632 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6633 appdirs=""
6634 break
6637 done
6638 if test -n "$appdirs" ; then
6639 echo "*** This configuration is not supported by this package." 1>&2
6640 exit 1
6643 # Okay, some application will build, or we don't care to check. Still
6644 # notify of subdirs not getting built.
6645 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6646 echo " ${notsupp}" 1>&2
6647 echo " (Any other directories should still work fine.)" 1>&2
6650 case "$host" in
6651 *msdosdjgpp*)
6652 enable_gdbtk=no ;;
6653 esac
6655 # To find our prefix, in gcc_cv_tool_prefix.
6657 # The user is always right.
6658 if test "${PATH_SEPARATOR+set}" != set; then
6659 echo "#! /bin/sh" >conf$$.sh
6660 echo "exit 0" >>conf$$.sh
6661 chmod +x conf$$.sh
6662 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6663 PATH_SEPARATOR=';'
6664 else
6665 PATH_SEPARATOR=:
6667 rm -f conf$$.sh
6672 if test "x$exec_prefix" = xNONE; then
6673 if test "x$prefix" = xNONE; then
6674 gcc_cv_tool_prefix=$ac_default_prefix
6675 else
6676 gcc_cv_tool_prefix=$prefix
6678 else
6679 gcc_cv_tool_prefix=$exec_prefix
6682 # If there is no compiler in the tree, use the PATH only. In any
6683 # case, if there is no compiler in the tree nobody should use
6684 # AS_FOR_TARGET and LD_FOR_TARGET.
6685 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6686 gcc_version=`cat $srcdir/gcc/BASE-VER`
6687 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6688 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6689 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6690 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6691 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6692 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6693 else
6694 gcc_cv_tool_dirs=
6697 if test x$build = x$target && test -n "$md_exec_prefix"; then
6698 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6703 copy_dirs=
6706 # Check whether --with-build-sysroot was given.
6707 if test "${with_build_sysroot+set}" = set; then :
6708 withval=$with_build_sysroot; if test x"$withval" != x ; then
6709 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6711 else
6712 SYSROOT_CFLAGS_FOR_TARGET=
6718 # Check whether --with-debug-prefix-map was given.
6719 if test "${with_debug_prefix_map+set}" = set; then :
6720 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6721 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6722 for debug_map in $withval; do
6723 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6724 done
6726 else
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6732 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6733 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6734 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6735 # We want to ensure that TARGET libraries (which we know are built with
6736 # gcc) are built with "-O2 -g", so include those options when setting
6737 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6738 if test "x$CFLAGS_FOR_TARGET" = x; then
6739 if test "x${is_cross_compiler}" = xyes; then
6740 CFLAGS_FOR_TARGET="-g -O2"
6741 else
6742 CFLAGS_FOR_TARGET=$CFLAGS
6743 case " $CFLAGS " in
6744 *" -O2 "*) ;;
6745 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6746 esac
6747 case " $CFLAGS " in
6748 *" -g "* | *" -g3 "*) ;;
6749 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6750 esac
6755 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6756 if test "x${is_cross_compiler}" = xyes; then
6757 CXXFLAGS_FOR_TARGET="-g -O2"
6758 else
6759 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6760 case " $CXXFLAGS " in
6761 *" -O2 "*) ;;
6762 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6763 esac
6764 case " $CXXFLAGS " in
6765 *" -g "* | *" -g3 "*) ;;
6766 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6767 esac
6774 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6775 # the named directory are copied to $(tooldir)/sys-include.
6776 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6777 if test x${is_cross_compiler} = xno ; then
6778 echo 1>&2 '***' --with-headers is only supported when cross compiling
6779 exit 1
6781 if test x"${with_headers}" != xyes ; then
6782 x=${gcc_cv_tool_prefix}
6783 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6787 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6788 # the name directories are copied to $(tooldir)/lib. Multiple directories
6789 # are permitted.
6790 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6791 if test x${is_cross_compiler} = xno ; then
6792 echo 1>&2 '***' --with-libs is only supported when cross compiling
6793 exit 1
6795 if test x"${with_libs}" != xyes ; then
6796 # Copy the libraries in reverse order, so that files in the first named
6797 # library override files in subsequent libraries.
6798 x=${gcc_cv_tool_prefix}
6799 for l in ${with_libs}; do
6800 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6801 done
6805 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6807 # This is done by determining whether or not the appropriate directory
6808 # is available, and by checking whether or not specific configurations
6809 # have requested that this magic not happen.
6811 # The command line options always override the explicit settings in
6812 # configure.in, and the settings in configure.in override this magic.
6814 # If the default for a toolchain is to use GNU as and ld, and you don't
6815 # want to do that, then you should use the --without-gnu-as and
6816 # --without-gnu-ld options for the configure script. Similarly, if
6817 # the default is to use the included zlib and you don't want to do that,
6818 # you should use the --with-system-zlib option for the configure script.
6820 if test x${use_gnu_as} = x &&
6821 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6822 with_gnu_as=yes
6823 extra_host_args="$extra_host_args --with-gnu-as"
6826 if test x${use_gnu_ld} = x &&
6827 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6828 with_gnu_ld=yes
6829 extra_host_args="$extra_host_args --with-gnu-ld"
6832 if test x${use_included_zlib} = x &&
6833 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6835 else
6836 with_system_zlib=yes
6837 extra_host_args="$extra_host_args --with-system-zlib"
6840 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6841 # can detect this case.
6843 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6844 with_newlib=yes
6845 extra_host_args="$extra_host_args --with-newlib"
6848 # Handle ${copy_dirs}
6849 set fnord ${copy_dirs}
6850 shift
6851 while test $# != 0 ; do
6852 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6854 else
6855 echo Copying $1 to $2
6857 # Use the install script to create the directory and all required
6858 # parent directories.
6859 if test -d $2 ; then
6861 else
6862 echo >config.temp
6863 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6866 # Copy the directory, assuming we have tar.
6867 # FIXME: Should we use B in the second tar? Not all systems support it.
6868 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6870 # It is the responsibility of the user to correctly adjust all
6871 # symlinks. If somebody can figure out how to handle them correctly
6872 # here, feel free to add the code.
6874 echo $1 > $2/COPIED
6876 shift; shift
6877 done
6879 # Determine a target-dependent exec_prefix that the installed
6880 # gcc will search in. Keep this list sorted by triplet, with
6881 # the *-*-osname triplets last.
6882 md_exec_prefix=
6883 case "${target}" in
6884 i[34567]86-pc-msdosdjgpp*)
6885 md_exec_prefix=/dev/env/DJDIR/bin
6887 *-*-hpux* | \
6888 *-*-nto-qnx* | \
6889 *-*-solaris2*)
6890 md_exec_prefix=/usr/ccs/bin
6892 esac
6894 extra_arflags_for_target=
6895 extra_nmflags_for_target=
6896 extra_ranlibflags_for_target=
6897 target_makefile_frag=/dev/null
6898 case "${target}" in
6899 spu-*-*)
6900 target_makefile_frag="config/mt-spu"
6902 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6903 target_makefile_frag="config/mt-sde"
6905 mipsisa*-*-elfoabi*)
6906 target_makefile_frag="config/mt-mips-elfoabi"
6908 mips*-*-*linux* | mips*-*-gnu*)
6909 target_makefile_frag="config/mt-mips-gnu"
6911 nios2-*-elf*)
6912 target_makefile_frag="config/mt-nios2-elf"
6914 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6915 target_makefile_frag="config/mt-gnu"
6917 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6918 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6919 # commands to handle both 32-bit and 64-bit objects. These flags are
6920 # harmless if we're using GNU nm or ar.
6921 extra_arflags_for_target=" -X32_64"
6922 extra_nmflags_for_target=" -B -X32_64"
6924 esac
6926 alphaieee_frag=/dev/null
6927 case $target in
6928 alpha*-*-*)
6929 # This just makes sure to use the -mieee option to build target libs.
6930 # This should probably be set individually by each library.
6931 alphaieee_frag="config/mt-alphaieee"
6933 esac
6935 # If --enable-target-optspace always use -Os instead of -O2 to build
6936 # the target libraries, similarly if it is not specified, use -Os
6937 # on selected platforms.
6938 ospace_frag=/dev/null
6939 case "${enable_target_optspace}:${target}" in
6940 yes:*)
6941 ospace_frag="config/mt-ospace"
6943 :d30v-*)
6944 ospace_frag="config/mt-d30v"
6946 :m32r-* | :d10v-* | :fr30-*)
6947 ospace_frag="config/mt-ospace"
6949 no:* | :*)
6952 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6954 esac
6956 # Some systems (e.g., one of the i386-aix systems the gas testers are
6957 # using) don't handle "\$" correctly, so don't use it here.
6958 tooldir='${exec_prefix}'/${target_noncanonical}
6959 build_tooldir=${tooldir}
6961 # Create a .gdbinit file which runs the one in srcdir
6962 # and tells GDB to look there for source files.
6964 if test -r ${srcdir}/.gdbinit ; then
6965 case ${srcdir} in
6966 .) ;;
6967 *) cat > ./.gdbinit <<EOF
6968 # ${NO_EDIT}
6969 dir ${srcdir}
6970 dir .
6971 source ${srcdir}/.gdbinit
6974 esac
6977 # Make sure that the compiler is able to generate an executable. If it
6978 # can't, we are probably in trouble. We don't care whether we can run the
6979 # executable--we might be using a cross compiler--we only care whether it
6980 # can be created. At this point the main configure script has set CC.
6981 we_are_ok=no
6982 echo "int main () { return 0; }" > conftest.c
6983 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6984 if test $? = 0 ; then
6985 if test -s conftest || test -s conftest.exe ; then
6986 we_are_ok=yes
6989 case $we_are_ok in
6991 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6992 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6993 rm -f conftest*
6994 exit 1
6996 esac
6997 rm -f conftest*
6999 # Decide which environment variable is used to find dynamic libraries.
7000 case "${host}" in
7001 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7002 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7003 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7004 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7005 esac
7007 # On systems where the dynamic library environment variable is PATH,
7008 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7009 # built executables to PATH.
7010 if test "$RPATH_ENVVAR" = PATH; then
7011 GCC_SHLIB_SUBDIR=/shlib
7012 else
7013 GCC_SHLIB_SUBDIR=
7016 # Adjust the toplevel makefile according to whether bootstrap was selected.
7017 case $enable_bootstrap in
7018 yes)
7019 bootstrap_suffix=bootstrap
7020 BUILD_CONFIG=bootstrap-debug
7023 bootstrap_suffix=no-bootstrap
7024 BUILD_CONFIG=
7026 esac
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7029 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7032 # Check whether --with-build-config was given.
7033 if test "${with_build_config+set}" = set; then :
7034 withval=$with_build_config; case $with_build_config in
7035 yes) with_build_config= ;;
7036 no) with_build_config= BUILD_CONFIG= ;;
7037 esac
7041 if test "x${with_build_config}" != x; then
7042 BUILD_CONFIG=$with_build_config
7043 else
7044 case $BUILD_CONFIG in
7045 bootstrap-debug)
7046 if echo "int f (void) { return 0; }" > conftest.c &&
7047 ${CC} -c conftest.c &&
7048 mv conftest.o conftest.o.g0 &&
7049 ${CC} -c -g conftest.c &&
7050 mv conftest.o conftest.o.g &&
7051 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7053 else
7054 BUILD_CONFIG=
7056 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7058 esac
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7061 $as_echo "$BUILD_CONFIG" >&6; }
7064 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7066 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7067 # Check whether --enable-vtable-verify was given.
7068 if test "${enable_vtable_verify+set}" = set; then :
7069 enableval=$enable_vtable_verify; case "$enableval" in
7070 yes) enable_vtable_verify=yes ;;
7071 no) enable_vtable_verify=no ;;
7072 *) enable_vtable_verify=no;;
7073 esac
7074 else
7075 enable_vtable_verify=no
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7079 $as_echo "$enable_vtable_verify" >&6; }
7081 # Record target_configdirs and the configure arguments for target and
7082 # build configuration in Makefile.
7083 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7084 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7085 bootstrap_fixincludes=no
7087 # If we are building libgomp, bootstrap it.
7088 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7089 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7092 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7093 # or bootstrap-ubsan, bootstrap it.
7094 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7095 case "$BUILD_CONFIG" in
7096 *bootstrap-asan* | *bootstrap-ubsan* )
7097 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7098 bootstrap_fixincludes=yes
7100 esac
7103 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7104 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7105 test "$enable_vtable_verify" != no; then
7106 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7109 # If we are building libmpx, bootstrap it.
7110 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7111 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7114 # Determine whether gdb needs tk/tcl or not.
7115 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7116 # and in that case we want gdb to be built without tk. Ugh!
7117 # In fact I believe gdb is the *only* package directly dependent on tk,
7118 # so we should be able to put the 'maybe's in unconditionally and
7119 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7120 # 100% sure that that's safe though.
7122 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7123 case "$enable_gdbtk" in
7125 GDB_TK="" ;;
7126 yes)
7127 GDB_TK="${gdb_tk}" ;;
7129 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7130 # distro. Eventually someone will fix this and move Insight, nee
7131 # gdbtk to a separate directory.
7132 if test -d ${srcdir}/gdb/gdbtk ; then
7133 GDB_TK="${gdb_tk}"
7134 else
7135 GDB_TK=""
7138 esac
7139 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7140 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7142 # Strip out unwanted targets.
7144 # While at that, we remove Makefiles if we were started for recursive
7145 # configuration, so that the top-level Makefile reconfigures them,
7146 # like we used to do when configure itself was recursive.
7148 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7149 # but now we're fixing up the Makefile ourselves with the additional
7150 # commands passed to AC_CONFIG_FILES. Use separate variables
7151 # extrasub-{build,host,target} not because there is any reason to split
7152 # the substitutions up that way, but only to remain below the limit of
7153 # 99 commands in a script, for HP-UX sed.
7154 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7156 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7157 yes:yes:*\ gold\ *:*,c++,*) ;;
7158 yes:yes:*\ gold\ *:*)
7159 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7161 esac
7163 extrasub_build=
7164 for module in ${build_configdirs} ; do
7165 if test -z "${no_recursion}" \
7166 && test -f ${build_subdir}/${module}/Makefile; then
7167 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7168 rm -f ${build_subdir}/${module}/Makefile
7170 extrasub_build="$extrasub_build
7171 /^@if build-$module\$/d
7172 /^@endif build-$module\$/d
7173 /^@if build-$module-$bootstrap_suffix\$/d
7174 /^@endif build-$module-$bootstrap_suffix\$/d"
7175 done
7176 extrasub_host=
7177 for module in ${configdirs} ; do
7178 if test -z "${no_recursion}"; then
7179 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7180 if test -f ${file}; then
7181 echo 1>&2 "*** removing ${file} to force reconfigure"
7182 rm -f ${file}
7184 done
7186 case ${module},${bootstrap_fixincludes} in
7187 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7188 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7189 esac
7190 extrasub_host="$extrasub_host
7191 /^@if $module\$/d
7192 /^@endif $module\$/d
7193 /^@if $module-$host_bootstrap_suffix\$/d
7194 /^@endif $module-$host_bootstrap_suffix\$/d"
7195 done
7196 extrasub_target=
7197 for module in ${target_configdirs} ; do
7198 if test -z "${no_recursion}" \
7199 && test -f ${target_subdir}/${module}/Makefile; then
7200 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7201 rm -f ${target_subdir}/${module}/Makefile
7204 # We only bootstrap target libraries listed in bootstrap_target_libs.
7205 case $bootstrap_target_libs in
7206 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7207 *) target_bootstrap_suffix=no-bootstrap ;;
7208 esac
7210 extrasub_target="$extrasub_target
7211 /^@if target-$module\$/d
7212 /^@endif target-$module\$/d
7213 /^@if target-$module-$target_bootstrap_suffix\$/d
7214 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7215 done
7217 # Do the final fixup along with target modules.
7218 extrasub_target="$extrasub_target
7219 /^@if /,/^@endif /d"
7221 # Create the serialization dependencies. This uses a temporary file.
7223 # Check whether --enable-serial-configure was given.
7224 if test "${enable_serial_configure+set}" = set; then :
7225 enableval=$enable_serial_configure;
7229 case ${enable_serial_configure} in
7230 yes)
7231 enable_serial_build_configure=yes
7232 enable_serial_host_configure=yes
7233 enable_serial_target_configure=yes
7235 esac
7237 # These force 'configure's to be done one at a time, to avoid problems
7238 # with contention over a shared config.cache.
7239 rm -f serdep.tmp
7240 echo '# serdep.tmp' > serdep.tmp
7241 olditem=
7242 test "x${enable_serial_build_configure}" = xyes &&
7243 for item in ${build_configdirs} ; do
7244 case ${olditem} in
7245 "") ;;
7246 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7247 esac
7248 olditem=${item}
7249 done
7250 olditem=
7251 test "x${enable_serial_host_configure}" = xyes &&
7252 for item in ${configdirs} ; do
7253 case ${olditem} in
7254 "") ;;
7255 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7256 esac
7257 olditem=${item}
7258 done
7259 olditem=
7260 test "x${enable_serial_target_configure}" = xyes &&
7261 for item in ${target_configdirs} ; do
7262 case ${olditem} in
7263 "") ;;
7264 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7265 esac
7266 olditem=${item}
7267 done
7268 serialization_dependencies=serdep.tmp
7271 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7272 # target, nonopt, and variable assignments. These are the ones we
7273 # might not want to pass down to subconfigures. The exception being
7274 # --cache-file=/dev/null, which is used to turn off the use of cache
7275 # files altogether, and which should be passed on to subconfigures.
7276 # Also strip program-prefix, program-suffix, and program-transform-name,
7277 # so that we can pass down a consistent program-transform-name.
7278 baseargs=
7279 tbaseargs=
7280 keep_next=no
7281 skip_next=no
7282 eval "set -- $ac_configure_args"
7283 for ac_arg
7285 if test X"$skip_next" = X"yes"; then
7286 skip_next=no
7287 continue
7289 if test X"$keep_next" = X"yes"; then
7290 case $ac_arg in
7291 *\'*)
7292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7293 esac
7294 baseargs="$baseargs '$ac_arg'"
7295 tbaseargs="$tbaseargs '$ac_arg'"
7296 keep_next=no
7297 continue
7300 # Handle separated arguments. Based on the logic generated by
7301 # autoconf 2.59.
7302 case $ac_arg in
7303 *=* | --config-cache | -C | -disable-* | --disable-* \
7304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7306 | -with-* | --with-* | -without-* | --without-* | --x)
7307 separate_arg=no
7310 separate_arg=yes
7313 separate_arg=no
7315 esac
7317 skip_targ=no
7318 case $ac_arg in
7320 --with-* | --without-*)
7321 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7323 case $libopt in
7324 *[-_]include)
7325 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7327 *[-_]lib)
7328 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7331 lib=$libopt
7333 esac
7336 case $lib in
7337 mpc | mpfr | gmp | isl)
7338 # If we're processing --with-$lib, --with-$lib-include or
7339 # --with-$lib-lib, for one of the libs above, and target is
7340 # different from host, don't pass the current argument to any
7341 # target library's configure.
7342 if test x$is_cross_compiler = xyes; then
7343 skip_targ=yes
7346 esac
7348 esac
7350 case "$ac_arg" in
7351 --cache-file=/dev/null | \
7352 -cache-file=/dev/null )
7353 # Handled here to avoid the test to skip args below.
7354 baseargs="$baseargs '$ac_arg'"
7355 tbaseargs="$tbaseargs '$ac_arg'"
7356 # Assert: $separate_arg should always be no.
7357 keep_next=$separate_arg
7359 --no*)
7360 continue
7362 --c* | \
7363 --sr* | \
7364 --ho* | \
7365 --bu* | \
7366 --t* | \
7367 --program-* | \
7368 -cache_file* | \
7369 -srcdir* | \
7370 -host* | \
7371 -build* | \
7372 -target* | \
7373 -program-prefix* | \
7374 -program-suffix* | \
7375 -program-transform-name* )
7376 skip_next=$separate_arg
7377 continue
7380 # An option. Add it.
7381 case $ac_arg in
7382 *\'*)
7383 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7384 esac
7385 baseargs="$baseargs '$ac_arg'"
7386 if test X"$skip_targ" = Xno; then
7387 tbaseargs="$tbaseargs '$ac_arg'"
7389 keep_next=$separate_arg
7392 # Either a variable assignment, or a nonopt (triplet). Don't
7393 # pass it down; let the Makefile handle this.
7394 continue
7396 esac
7397 done
7398 # Remove the initial space we just introduced and, as these will be
7399 # expanded by make, quote '$'.
7400 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7402 # Add in --program-transform-name, after --program-prefix and
7403 # --program-suffix have been applied to it. Autoconf has already
7404 # doubled dollar signs and backslashes in program_transform_name; we want
7405 # the backslashes un-doubled, and then the entire thing wrapped in single
7406 # quotes, because this will be expanded first by make and then by the shell.
7407 # Also, because we want to override the logic in subdir configure scripts to
7408 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7409 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7410 ${program_transform_name}
7411 EOF_SED
7412 gcc_transform_name=`cat conftestsed.out`
7413 rm -f conftestsed.out
7414 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7415 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7416 if test "$silent" = yes; then
7417 baseargs="$baseargs --silent"
7418 tbaseargs="$tbaseargs --silent"
7420 baseargs="$baseargs --disable-option-checking"
7421 tbaseargs="$tbaseargs --disable-option-checking"
7423 # Record and document user additions to sub configure arguments.
7428 # For the build-side libraries, we just need to pretend we're native,
7429 # and not use the same cache file. Multilibs are neither needed nor
7430 # desired. We can't even use the same cache file for all build-side
7431 # libraries, as they're compiled differently; some with C, some with
7432 # C++ or with different feature-enabling options.
7433 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7435 # For host modules, accept cache file option, or specification as blank.
7436 case "${cache_file}" in
7437 "") # empty
7438 cache_file_option="" ;;
7439 /* | [A-Za-z]:[\\/]* ) # absolute path
7440 cache_file_option="--cache-file=${cache_file}" ;;
7441 *) # relative path
7442 cache_file_option="--cache-file=../${cache_file}" ;;
7443 esac
7445 # Host dirs don't like to share a cache file either, horribly enough.
7446 # This seems to be due to autoconf 2.5x stupidity.
7447 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7449 target_configargs="$target_configargs ${tbaseargs}"
7451 # Passing a --with-cross-host argument lets the target libraries know
7452 # whether they are being built with a cross-compiler or being built
7453 # native. However, it would be better to use other mechanisms to make the
7454 # sorts of decisions they want to make on this basis. Please consider
7455 # this option to be deprecated. FIXME.
7456 if test x${is_cross_compiler} = xyes ; then
7457 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7460 # Special user-friendly check for native x86_64-linux build, if
7461 # multilib is not explicitly enabled.
7462 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7463 x86_64-*linux*:yes:$build:$build:)
7464 # Make sure we have a developement environment that handles 32-bit
7465 dev64=no
7466 echo "int main () { return 0; }" > conftest.c
7467 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7468 if test $? = 0 ; then
7469 if test -s conftest || test -s conftest.exe ; then
7470 dev64=yes
7473 rm -f conftest*
7474 if test x${dev64} != xyes ; then
7475 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7478 esac
7480 # Default to --enable-multilib.
7481 if test x${enable_multilib} = x ; then
7482 target_configargs="--enable-multilib ${target_configargs}"
7485 # Pass --with-newlib if appropriate. Note that target_configdirs has
7486 # changed from the earlier setting of with_newlib.
7487 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7488 target_configargs="--with-newlib ${target_configargs}"
7491 # Different target subdirs use different values of certain variables
7492 # (notably CXX). Worse, multilibs use *lots* of different values.
7493 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7494 # it doesn't automatically accept command-line overrides of them.
7495 # This means it's not safe for target subdirs to share a cache file,
7496 # which is disgusting, but there you have it. Hopefully this can be
7497 # fixed in future. It's still worthwhile to use a cache file for each
7498 # directory. I think.
7500 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7501 # We need to pass --target, as newer autoconf's requires consistency
7502 # for target_alias and gcc doesn't manage it consistently.
7503 target_configargs="--cache-file=./config.cache ${target_configargs}"
7505 FLAGS_FOR_TARGET=
7506 case " $target_configdirs " in
7507 *" newlib "*)
7508 case " $target_configargs " in
7509 *" --with-newlib "*)
7510 case "$target" in
7511 *-cygwin*)
7512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7514 esac
7516 # If we're not building GCC, don't discard standard headers.
7517 if test -d ${srcdir}/gcc; then
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7520 if test "${build}" != "${host}"; then
7521 # On Canadian crosses, CC_FOR_TARGET will have already been set
7522 # by `configure', so we won't have an opportunity to add -Bgcc/
7523 # to it. This is right: we don't want to search that directory
7524 # for binaries, but we want the header files in there, so add
7525 # them explicitly.
7526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7528 # Someone might think of using the pre-installed headers on
7529 # Canadian crosses, in case the installed compiler is not fully
7530 # compatible with the compiler being built. In this case, it
7531 # would be better to flag an error than risking having
7532 # incompatible object files being constructed. We can't
7533 # guarantee that an error will be flagged, but let's hope the
7534 # compiler will do it, when presented with incompatible header
7535 # files.
7539 case "${target}-${is_cross_compiler}" in
7540 i[3456789]86-*-linux*-no)
7541 # Here host == target, so we don't need to build gcc,
7542 # so we don't want to discard standard headers.
7543 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7546 # If we're building newlib, use its generic headers last, but search
7547 # for any libc-related directories first (so make it the last -B
7548 # switch).
7549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7551 # If we're building libgloss, find the startup file, simulator library
7552 # and linker script.
7553 case " $target_configdirs " in
7554 *" libgloss "*)
7555 # Look for startup file, simulator library and maybe linker script.
7556 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7557 # Look for libnosys.a in case the target needs it.
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7559 # Most targets have the linker script in the source directory.
7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7562 esac
7564 esac
7566 esac
7568 esac
7570 case "$target" in
7571 x86_64-*mingw* | *-w64-mingw*)
7572 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7573 # however, use a symlink named 'mingw' in ${prefix} .
7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7576 *-mingw*)
7577 # MinGW can't be handled as Cygwin above since it does not use newlib.
7578 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'
7580 esac
7582 # Allow the user to override the flags for
7583 # our build compiler if desired.
7584 if test x"${build}" = x"${host}" ; then
7585 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7586 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7587 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7590 # On Canadian crosses, we'll be searching the right directories for
7591 # the previously-installed cross compiler, so don't bother to add
7592 # flags for directories within the install tree of the compiler
7593 # being built; programs in there won't even run.
7594 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7595 # Search for pre-installed headers if nothing else fits.
7596 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7599 if test "x${use_gnu_ld}" = x &&
7600 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7601 # Arrange for us to find uninstalled linker scripts.
7602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7605 # Search for other target-specific linker scripts and such.
7606 case "${target}" in
7607 mep*)
7608 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7610 esac
7612 # UPC linker script check
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7614 $as_echo_n "checking for UPC link script support... " >&6; }
7615 # Check whether --enable-upc-link-script was given.
7616 if test "${enable_upc_link_script+set}" = set; then :
7617 enableval=$enable_upc_link_script;
7618 case $enableval in
7619 yes | no) ;;
7621 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7623 esac
7625 else
7627 if test x${use_gnu_ld} != xno ; then
7628 case "$target" in
7629 # disable linker script for Apple Mac OS X
7630 *-*-darwin*)
7631 enable_upc_link_script=no
7634 enable_upc_link_script=yes
7636 esac
7637 else
7638 enable_upc_link_script=no
7640 if test "$enable_upc_link_script" = yes; then
7641 target_configargs="${target_configargs} --enable-upc-link-script"
7642 host_configargs="${host_configargs} --enable-upc-link-script"
7647 if test "$enable_upc_link_script" = yes; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7649 $as_echo "yes" >&6; };
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; };
7656 # Makefile fragments.
7657 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7659 eval fragval=\$$frag
7660 if test $fragval != /dev/null; then
7661 eval $frag=${srcdir}/$fragval
7663 done
7669 # Miscellanea: directories, flags, etc.
7678 # Build module lists & subconfigure args.
7682 # Host module lists & subconfigure args.
7687 # Target module lists & subconfigure args.
7691 # Build tools.
7710 # Generate default definitions for YACC, M4, LEX and other programs that run
7711 # on the build machine. These are used if the Makefile can't locate these
7712 # programs in objdir.
7713 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7715 for ac_prog in 'bison -y' byacc yacc
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_YACC+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$YACC"; then
7725 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_YACC="$ac_prog"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7738 done
7739 done
7740 IFS=$as_save_IFS
7744 YACC=$ac_cv_prog_YACC
7745 if test -n "$YACC"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7747 $as_echo "$YACC" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$YACC" && break
7755 done
7756 test -n "$YACC" || YACC="$MISSING bison -y"
7758 case " $build_configdirs " in
7759 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7760 esac
7762 for ac_prog in bison
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_BISON+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$BISON"; then
7772 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_BISON="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7787 IFS=$as_save_IFS
7791 BISON=$ac_cv_prog_BISON
7792 if test -n "$BISON"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7794 $as_echo "$BISON" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 test -n "$BISON" && break
7802 done
7803 test -n "$BISON" || BISON="$MISSING bison"
7805 case " $build_configdirs " in
7806 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7807 esac
7809 for ac_prog in gm4 gnum4 m4
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_M4+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$M4"; then
7819 ac_cv_prog_M4="$M4" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_M4="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 M4=$ac_cv_prog_M4
7839 if test -n "$M4"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7841 $as_echo "$M4" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$M4" && break
7849 done
7850 test -n "$M4" || M4="$MISSING m4"
7852 case " $build_configdirs " in
7853 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7854 esac
7856 for ac_prog in flex lex
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_LEX+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$LEX"; then
7866 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_LEX="$ac_prog"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7879 done
7880 done
7881 IFS=$as_save_IFS
7885 LEX=$ac_cv_prog_LEX
7886 if test -n "$LEX"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7888 $as_echo "$LEX" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 test -n "$LEX" && break
7896 done
7897 test -n "$LEX" || LEX="$MISSING flex"
7899 case " $build_configdirs " in
7900 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7901 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7902 esac
7904 for ac_prog in flex
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_FLEX+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$FLEX"; then
7914 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_FLEX="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7933 FLEX=$ac_cv_prog_FLEX
7934 if test -n "$FLEX"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7936 $as_echo "$FLEX" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7943 test -n "$FLEX" && break
7944 done
7945 test -n "$FLEX" || FLEX="$MISSING flex"
7947 case " $build_configdirs " in
7948 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7949 esac
7951 for ac_prog in makeinfo
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$MAKEINFO"; then
7961 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_MAKEINFO="$ac_prog"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7974 done
7975 done
7976 IFS=$as_save_IFS
7980 MAKEINFO=$ac_cv_prog_MAKEINFO
7981 if test -n "$MAKEINFO"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7983 $as_echo "$MAKEINFO" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7990 test -n "$MAKEINFO" && break
7991 done
7992 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7994 case " $build_configdirs " in
7995 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7998 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7999 # higher, else we use the "missing" dummy.
8000 if ${MAKEINFO} --version \
8001 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8003 else
8004 MAKEINFO="$MISSING makeinfo"
8008 esac
8010 # FIXME: expect and dejagnu may become build tools?
8012 for ac_prog in expect
8014 # Extract the first word of "$ac_prog", so it can be a program name with args.
8015 set dummy $ac_prog; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$EXPECT"; then
8022 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_EXPECT="$ac_prog"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8041 EXPECT=$ac_cv_prog_EXPECT
8042 if test -n "$EXPECT"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8044 $as_echo "$EXPECT" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8051 test -n "$EXPECT" && break
8052 done
8053 test -n "$EXPECT" || EXPECT="expect"
8055 case " $configdirs " in
8056 *" expect "*)
8057 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8059 esac
8061 for ac_prog in runtest
8063 # Extract the first word of "$ac_prog", so it can be a program name with args.
8064 set dummy $ac_prog; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$RUNTEST"; then
8071 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_RUNTEST="$ac_prog"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8090 RUNTEST=$ac_cv_prog_RUNTEST
8091 if test -n "$RUNTEST"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8093 $as_echo "$RUNTEST" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8100 test -n "$RUNTEST" && break
8101 done
8102 test -n "$RUNTEST" || RUNTEST="runtest"
8104 case " $configdirs " in
8105 *" dejagnu "*)
8106 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8108 esac
8111 # Host tools.
8112 ncn_tool_prefix=
8113 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8114 ncn_target_tool_prefix=
8115 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8119 if test -n "$AR"; then
8120 ac_cv_prog_AR=$AR
8121 elif test -n "$ac_cv_prog_AR"; then
8122 AR=$ac_cv_prog_AR
8125 if test -n "$ac_cv_prog_AR"; then
8126 for ncn_progname in ar; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_progname}; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ncn_progname}"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 AR=$ac_cv_prog_AR
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8164 done
8167 for ncn_progname in ar; do
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_AR+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$AR"; then
8177 ac_cv_prog_AR="$AR" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 AR=$ac_cv_prog_AR
8197 if test -n "$AR"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8199 $as_echo "$AR" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_progname}; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_prog_AR+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$AR"; then
8216 ac_cv_prog_AR="$AR" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_prog_AR="${ncn_progname}"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8235 AR=$ac_cv_prog_AR
8236 if test -n "$AR"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8238 $as_echo "$AR" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8246 test -n "$ac_cv_prog_AR" && break
8247 done
8249 if test -z "$ac_cv_prog_AR" ; then
8250 set dummy ar
8251 if test $build = $host ; then
8252 AR="$2"
8253 else
8254 AR="${ncn_tool_prefix}$2"
8260 if test -n "$AS"; then
8261 ac_cv_prog_AS=$AS
8262 elif test -n "$ac_cv_prog_AS"; then
8263 AS=$ac_cv_prog_AS
8266 if test -n "$ac_cv_prog_AS"; then
8267 for ncn_progname in as; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269 set dummy ${ncn_progname}; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_AS="${ncn_progname}"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8291 IFS=$as_save_IFS
8295 AS=$ac_cv_prog_AS
8296 if test -n "$AS"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298 $as_echo "$AS" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8305 done
8308 for ncn_progname in as; do
8309 if test -n "$ncn_tool_prefix"; then
8310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_AS+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$AS"; then
8318 ac_cv_prog_AS="$AS" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8337 AS=$ac_cv_prog_AS
8338 if test -n "$AS"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340 $as_echo "$AS" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8348 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350 set dummy ${ncn_progname}; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_AS+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$AS"; then
8357 ac_cv_prog_AS="$AS" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_AS="${ncn_progname}"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 AS=$ac_cv_prog_AS
8377 if test -n "$AS"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8379 $as_echo "$AS" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 test -n "$ac_cv_prog_AS" && break
8388 done
8390 if test -z "$ac_cv_prog_AS" ; then
8391 set dummy as
8392 if test $build = $host ; then
8393 AS="$2"
8394 else
8395 AS="${ncn_tool_prefix}$2"
8401 if test -n "$DLLTOOL"; then
8402 ac_cv_prog_DLLTOOL=$DLLTOOL
8403 elif test -n "$ac_cv_prog_DLLTOOL"; then
8404 DLLTOOL=$ac_cv_prog_DLLTOOL
8407 if test -n "$ac_cv_prog_DLLTOOL"; then
8408 for ncn_progname in dlltool; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410 set dummy ${ncn_progname}; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_DLLTOOL="${ncn_progname}"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8436 DLLTOOL=$ac_cv_prog_DLLTOOL
8437 if test -n "$DLLTOOL"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439 $as_echo "$DLLTOOL" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 done
8449 for ncn_progname in dlltool; do
8450 if test -n "$ncn_tool_prefix"; then
8451 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 DLLTOOL=$ac_cv_prog_DLLTOOL
8479 if test -n "$DLLTOOL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8481 $as_echo "$DLLTOOL" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491 set dummy ${ncn_progname}; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$DLLTOOL"; then
8498 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_prog_DLLTOOL="${ncn_progname}"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 DLLTOOL=$ac_cv_prog_DLLTOOL
8518 if test -n "$DLLTOOL"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8520 $as_echo "$DLLTOOL" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 test -n "$ac_cv_prog_DLLTOOL" && break
8529 done
8531 if test -z "$ac_cv_prog_DLLTOOL" ; then
8532 set dummy dlltool
8533 if test $build = $host ; then
8534 DLLTOOL="$2"
8535 else
8536 DLLTOOL="${ncn_tool_prefix}$2"
8542 if test -n "$LD"; then
8543 ac_cv_prog_LD=$LD
8544 elif test -n "$ac_cv_prog_LD"; then
8545 LD=$ac_cv_prog_LD
8548 if test -n "$ac_cv_prog_LD"; then
8549 for ncn_progname in ld; do
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551 set dummy ${ncn_progname}; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_LD="${ncn_progname}"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8571 done
8572 done
8573 IFS=$as_save_IFS
8577 LD=$ac_cv_prog_LD
8578 if test -n "$LD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580 $as_echo "$LD" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8587 done
8590 for ncn_progname in ld; do
8591 if test -n "$ncn_tool_prefix"; then
8592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_prog_LD+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$LD"; then
8600 ac_cv_prog_LD="$LD" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8619 LD=$ac_cv_prog_LD
8620 if test -n "$LD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8622 $as_echo "$LD" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8630 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632 set dummy ${ncn_progname}; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if test "${ac_cv_prog_LD+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$LD"; then
8639 ac_cv_prog_LD="$LD" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_prog_LD="${ncn_progname}"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8658 LD=$ac_cv_prog_LD
8659 if test -n "$LD"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8661 $as_echo "$LD" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8669 test -n "$ac_cv_prog_LD" && break
8670 done
8672 if test -z "$ac_cv_prog_LD" ; then
8673 set dummy ld
8674 if test $build = $host ; then
8675 LD="$2"
8676 else
8677 LD="${ncn_tool_prefix}$2"
8683 if test -n "$LIPO"; then
8684 ac_cv_prog_LIPO=$LIPO
8685 elif test -n "$ac_cv_prog_LIPO"; then
8686 LIPO=$ac_cv_prog_LIPO
8689 if test -n "$ac_cv_prog_LIPO"; then
8690 for ncn_progname in lipo; do
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692 set dummy ${ncn_progname}; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_LIPO="${ncn_progname}"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8718 LIPO=$ac_cv_prog_LIPO
8719 if test -n "$LIPO"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721 $as_echo "$LIPO" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8728 done
8731 for ncn_progname in lipo; do
8732 if test -n "$ncn_tool_prefix"; then
8733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_prog_LIPO+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8760 LIPO=$ac_cv_prog_LIPO
8761 if test -n "$LIPO"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8763 $as_echo "$LIPO" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8771 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773 set dummy ${ncn_progname}; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_prog_LIPO+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$LIPO"; then
8780 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_LIPO="${ncn_progname}"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 LIPO=$ac_cv_prog_LIPO
8800 if test -n "$LIPO"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8802 $as_echo "$LIPO" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 test -n "$ac_cv_prog_LIPO" && break
8811 done
8813 if test -z "$ac_cv_prog_LIPO" ; then
8814 set dummy lipo
8815 if test $build = $host ; then
8816 LIPO="$2"
8817 else
8818 LIPO="${ncn_tool_prefix}$2"
8824 if test -n "$NM"; then
8825 ac_cv_prog_NM=$NM
8826 elif test -n "$ac_cv_prog_NM"; then
8827 NM=$ac_cv_prog_NM
8830 if test -n "$ac_cv_prog_NM"; then
8831 for ncn_progname in nm; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_progname}; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_NM="${ncn_progname}"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8859 NM=$ac_cv_prog_NM
8860 if test -n "$NM"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862 $as_echo "$NM" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8869 done
8872 for ncn_progname in nm; do
8873 if test -n "$ncn_tool_prefix"; then
8874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8875 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_NM+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$NM"; then
8882 ac_cv_prog_NM="$NM" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 NM=$ac_cv_prog_NM
8902 if test -n "$NM"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8904 $as_echo "$NM" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8912 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914 set dummy ${ncn_progname}; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if test "${ac_cv_prog_NM+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test -n "$NM"; then
8921 ac_cv_prog_NM="$NM" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_NM="${ncn_progname}"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8940 NM=$ac_cv_prog_NM
8941 if test -n "$NM"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8943 $as_echo "$NM" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8951 test -n "$ac_cv_prog_NM" && break
8952 done
8954 if test -z "$ac_cv_prog_NM" ; then
8955 set dummy nm
8956 if test $build = $host ; then
8957 NM="$2"
8958 else
8959 NM="${ncn_tool_prefix}$2"
8965 if test -n "$RANLIB"; then
8966 ac_cv_prog_RANLIB=$RANLIB
8967 elif test -n "$ac_cv_prog_RANLIB"; then
8968 RANLIB=$ac_cv_prog_RANLIB
8971 if test -n "$ac_cv_prog_RANLIB"; then
8972 for ncn_progname in ranlib; do
8973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_RANLIB="${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
9000 RANLIB=$ac_cv_prog_RANLIB
9001 if test -n "$RANLIB"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003 $as_echo "$RANLIB" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9010 done
9013 for ncn_progname in ranlib; do
9014 if test -n "$ncn_tool_prefix"; then
9015 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9016 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 RANLIB=$ac_cv_prog_RANLIB
9043 if test -n "$RANLIB"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9045 $as_echo "$RANLIB" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9053 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9055 set dummy ${ncn_progname}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 if test -n "$RANLIB"; then
9062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_prog_RANLIB="${ncn_progname}"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9075 done
9076 done
9077 IFS=$as_save_IFS
9081 RANLIB=$ac_cv_prog_RANLIB
9082 if test -n "$RANLIB"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9084 $as_echo "$RANLIB" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9092 test -n "$ac_cv_prog_RANLIB" && break
9093 done
9095 if test -z "$ac_cv_prog_RANLIB" ; then
9096 RANLIB="true"
9101 if test -n "$STRIP"; then
9102 ac_cv_prog_STRIP=$STRIP
9103 elif test -n "$ac_cv_prog_STRIP"; then
9104 STRIP=$ac_cv_prog_STRIP
9107 if test -n "$ac_cv_prog_STRIP"; then
9108 for ncn_progname in strip; do
9109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_STRIP="${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9136 STRIP=$ac_cv_prog_STRIP
9137 if test -n "$STRIP"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139 $as_echo "$STRIP" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9146 done
9149 for ncn_progname in strip; do
9150 if test -n "$ncn_tool_prefix"; then
9151 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9152 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_prog_STRIP+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9172 done
9173 done
9174 IFS=$as_save_IFS
9178 STRIP=$ac_cv_prog_STRIP
9179 if test -n "$STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9181 $as_echo "$STRIP" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9189 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9191 set dummy ${ncn_progname}; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if test "${ac_cv_prog_STRIP+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 if test -n "$STRIP"; then
9198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9199 else
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_prog_STRIP="${ncn_progname}"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9217 STRIP=$ac_cv_prog_STRIP
9218 if test -n "$STRIP"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9220 $as_echo "$STRIP" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9228 test -n "$ac_cv_prog_STRIP" && break
9229 done
9231 if test -z "$ac_cv_prog_STRIP" ; then
9232 STRIP="true"
9237 if test -n "$WINDRES"; then
9238 ac_cv_prog_WINDRES=$WINDRES
9239 elif test -n "$ac_cv_prog_WINDRES"; then
9240 WINDRES=$ac_cv_prog_WINDRES
9243 if test -n "$ac_cv_prog_WINDRES"; then
9244 for ncn_progname in windres; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246 set dummy ${ncn_progname}; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_WINDRES="${ncn_progname}"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9272 WINDRES=$ac_cv_prog_WINDRES
9273 if test -n "$WINDRES"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275 $as_echo "$WINDRES" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9282 done
9285 for ncn_progname in windres; do
9286 if test -n "$ncn_tool_prefix"; then
9287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9288 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9314 WINDRES=$ac_cv_prog_WINDRES
9315 if test -n "$WINDRES"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9317 $as_echo "$WINDRES" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9325 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327 set dummy ${ncn_progname}; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$WINDRES"; then
9334 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_prog_WINDRES="${ncn_progname}"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9353 WINDRES=$ac_cv_prog_WINDRES
9354 if test -n "$WINDRES"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9356 $as_echo "$WINDRES" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9364 test -n "$ac_cv_prog_WINDRES" && break
9365 done
9367 if test -z "$ac_cv_prog_WINDRES" ; then
9368 set dummy windres
9369 if test $build = $host ; then
9370 WINDRES="$2"
9371 else
9372 WINDRES="${ncn_tool_prefix}$2"
9378 if test -n "$WINDMC"; then
9379 ac_cv_prog_WINDMC=$WINDMC
9380 elif test -n "$ac_cv_prog_WINDMC"; then
9381 WINDMC=$ac_cv_prog_WINDMC
9384 if test -n "$ac_cv_prog_WINDMC"; then
9385 for ncn_progname in windmc; do
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387 set dummy ${ncn_progname}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9403 ac_cv_prog_WINDMC="${ncn_progname}"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9407 done
9408 done
9409 IFS=$as_save_IFS
9413 WINDMC=$ac_cv_prog_WINDMC
9414 if test -n "$WINDMC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416 $as_echo "$WINDMC" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9423 done
9426 for ncn_progname in windmc; do
9427 if test -n "$ncn_tool_prefix"; then
9428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9449 done
9450 done
9451 IFS=$as_save_IFS
9455 WINDMC=$ac_cv_prog_WINDMC
9456 if test -n "$WINDMC"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9458 $as_echo "$WINDMC" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9466 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468 set dummy ${ncn_progname}; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 if test -n "$WINDMC"; then
9475 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9476 else
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_prog_WINDMC="${ncn_progname}"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9494 WINDMC=$ac_cv_prog_WINDMC
9495 if test -n "$WINDMC"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9497 $as_echo "$WINDMC" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9505 test -n "$ac_cv_prog_WINDMC" && break
9506 done
9508 if test -z "$ac_cv_prog_WINDMC" ; then
9509 set dummy windmc
9510 if test $build = $host ; then
9511 WINDMC="$2"
9512 else
9513 WINDMC="${ncn_tool_prefix}$2"
9519 if test -n "$OBJCOPY"; then
9520 ac_cv_prog_OBJCOPY=$OBJCOPY
9521 elif test -n "$ac_cv_prog_OBJCOPY"; then
9522 OBJCOPY=$ac_cv_prog_OBJCOPY
9525 if test -n "$ac_cv_prog_OBJCOPY"; then
9526 for ncn_progname in objcopy; do
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_OBJCOPY="${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9554 OBJCOPY=$ac_cv_prog_OBJCOPY
9555 if test -n "$OBJCOPY"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557 $as_echo "$OBJCOPY" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9564 done
9567 for ncn_progname in objcopy; do
9568 if test -n "$ncn_tool_prefix"; then
9569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9570 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9590 done
9591 done
9592 IFS=$as_save_IFS
9596 OBJCOPY=$ac_cv_prog_OBJCOPY
9597 if test -n "$OBJCOPY"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9599 $as_echo "$OBJCOPY" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9607 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609 set dummy ${ncn_progname}; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 if test -n "$OBJCOPY"; then
9616 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_prog_OBJCOPY="${ncn_progname}"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9635 OBJCOPY=$ac_cv_prog_OBJCOPY
9636 if test -n "$OBJCOPY"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9638 $as_echo "$OBJCOPY" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9646 test -n "$ac_cv_prog_OBJCOPY" && break
9647 done
9649 if test -z "$ac_cv_prog_OBJCOPY" ; then
9650 set dummy objcopy
9651 if test $build = $host ; then
9652 OBJCOPY="$2"
9653 else
9654 OBJCOPY="${ncn_tool_prefix}$2"
9660 if test -n "$OBJDUMP"; then
9661 ac_cv_prog_OBJDUMP=$OBJDUMP
9662 elif test -n "$ac_cv_prog_OBJDUMP"; then
9663 OBJDUMP=$ac_cv_prog_OBJDUMP
9666 if test -n "$ac_cv_prog_OBJDUMP"; then
9667 for ncn_progname in objdump; do
9668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9669 set dummy ${ncn_progname}; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_OBJDUMP="${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9695 OBJDUMP=$ac_cv_prog_OBJDUMP
9696 if test -n "$OBJDUMP"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698 $as_echo "$OBJDUMP" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9705 done
9708 for ncn_progname in objdump; do
9709 if test -n "$ncn_tool_prefix"; then
9710 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9737 OBJDUMP=$ac_cv_prog_OBJDUMP
9738 if test -n "$OBJDUMP"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9740 $as_echo "$OBJDUMP" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9748 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750 set dummy ${ncn_progname}; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 if test -n "$OBJDUMP"; then
9757 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_OBJDUMP="${ncn_progname}"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9772 IFS=$as_save_IFS
9776 OBJDUMP=$ac_cv_prog_OBJDUMP
9777 if test -n "$OBJDUMP"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9779 $as_echo "$OBJDUMP" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9787 test -n "$ac_cv_prog_OBJDUMP" && break
9788 done
9790 if test -z "$ac_cv_prog_OBJDUMP" ; then
9791 set dummy objdump
9792 if test $build = $host ; then
9793 OBJDUMP="$2"
9794 else
9795 OBJDUMP="${ncn_tool_prefix}$2"
9801 if test -n "$READELF"; then
9802 ac_cv_prog_READELF=$READELF
9803 elif test -n "$ac_cv_prog_READELF"; then
9804 READELF=$ac_cv_prog_READELF
9807 if test -n "$ac_cv_prog_READELF"; then
9808 for ncn_progname in readelf; do
9809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9810 set dummy ${ncn_progname}; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if test "${ac_cv_prog_READELF+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 if test -n "$READELF"; then
9817 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9818 else
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_READELF="${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9830 done
9831 done
9832 IFS=$as_save_IFS
9836 READELF=$ac_cv_prog_READELF
9837 if test -n "$READELF"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9839 $as_echo "$READELF" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9846 done
9849 for ncn_progname in readelf; do
9850 if test -n "$ncn_tool_prefix"; then
9851 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9852 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if test "${ac_cv_prog_READELF+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 if test -n "$READELF"; then
9859 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9878 READELF=$ac_cv_prog_READELF
9879 if test -n "$READELF"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9881 $as_echo "$READELF" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9889 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9891 set dummy ${ncn_progname}; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if test "${ac_cv_prog_READELF+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test -n "$READELF"; then
9898 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_prog_READELF="${ncn_progname}"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9917 READELF=$ac_cv_prog_READELF
9918 if test -n "$READELF"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9920 $as_echo "$READELF" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9928 test -n "$ac_cv_prog_READELF" && break
9929 done
9931 if test -z "$ac_cv_prog_READELF" ; then
9932 set dummy readelf
9933 if test $build = $host ; then
9934 READELF="$2"
9935 else
9936 READELF="${ncn_tool_prefix}$2"
9945 # Target tools.
9947 # Check whether --with-build-time-tools was given.
9948 if test "${with_build_time_tools+set}" = set; then :
9949 withval=$with_build_time_tools; case x"$withval" in
9950 x/*) ;;
9952 with_build_time_tools=
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9954 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9956 esac
9957 else
9958 with_build_time_tools=
9964 if test -n "$CC_FOR_TARGET"; then
9965 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9966 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9967 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9970 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9971 for ncn_progname in cc gcc; do
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_progname}; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 if test -n "$CC_FOR_TARGET"; then
9980 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9989 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9993 done
9994 done
9995 IFS=$as_save_IFS
9999 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10000 if test -n "$CC_FOR_TARGET"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10002 $as_echo "$CC_FOR_TARGET" >&6; }
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10009 done
10012 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10013 for ncn_progname in cc gcc; do
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10015 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10016 if test -x $with_build_time_tools/${ncn_progname}; then
10017 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019 $as_echo "yes" >&6; }
10020 break
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10025 done
10028 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10029 for ncn_progname in cc gcc; do
10030 if test -n "$ncn_target_tool_prefix"; then
10031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 if test -n "$CC_FOR_TARGET"; then
10039 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10048 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050 break 2
10052 done
10053 done
10054 IFS=$as_save_IFS
10058 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10059 if test -n "$CC_FOR_TARGET"; then
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10061 $as_echo "$CC_FOR_TARGET" >&6; }
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10069 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10071 set dummy ${ncn_progname}; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 if test -n "$CC_FOR_TARGET"; then
10078 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10097 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10098 if test -n "$CC_FOR_TARGET"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10100 $as_echo "$CC_FOR_TARGET" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10108 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10109 done
10112 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10113 set dummy cc gcc
10114 if test $build = $target ; then
10115 CC_FOR_TARGET="$2"
10116 else
10117 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10119 else
10120 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10125 if test -n "$CXX_FOR_TARGET"; then
10126 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10127 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10128 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10131 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10132 for ncn_progname in c++ g++ cxx gxx; do
10133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10134 set dummy ${ncn_progname}; ac_word=$2
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10136 $as_echo_n "checking for $ac_word... " >&6; }
10137 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 if test -n "$CXX_FOR_TARGET"; then
10141 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10142 else
10143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144 for as_dir in $PATH
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10150 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10154 done
10155 done
10156 IFS=$as_save_IFS
10160 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10161 if test -n "$CXX_FOR_TARGET"; then
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10163 $as_echo "$CXX_FOR_TARGET" >&6; }
10164 else
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166 $as_echo "no" >&6; }
10170 done
10173 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10174 for ncn_progname in c++ g++ cxx gxx; do
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10176 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10177 if test -x $with_build_time_tools/${ncn_progname}; then
10178 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10180 $as_echo "yes" >&6; }
10181 break
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10186 done
10189 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10190 for ncn_progname in c++ g++ cxx gxx; do
10191 if test -n "$ncn_target_tool_prefix"; then
10192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 if test -n "$CXX_FOR_TARGET"; then
10200 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10201 else
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10219 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10220 if test -n "$CXX_FOR_TARGET"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10222 $as_echo "$CXX_FOR_TARGET" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10230 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10232 set dummy ${ncn_progname}; ac_word=$2
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234 $as_echo_n "checking for $ac_word... " >&6; }
10235 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 if test -n "$CXX_FOR_TARGET"; then
10239 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10258 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10259 if test -n "$CXX_FOR_TARGET"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10261 $as_echo "$CXX_FOR_TARGET" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10269 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10270 done
10273 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10274 set dummy c++ g++ cxx gxx
10275 if test $build = $target ; then
10276 CXX_FOR_TARGET="$2"
10277 else
10278 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10280 else
10281 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10286 if test -n "$GCC_FOR_TARGET"; then
10287 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10288 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10289 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10292 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10293 for ncn_progname in gcc; do
10294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10295 set dummy ${ncn_progname}; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 if test -n "$GCC_FOR_TARGET"; then
10302 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10303 else
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10315 done
10316 done
10317 IFS=$as_save_IFS
10321 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10322 if test -n "$GCC_FOR_TARGET"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10324 $as_echo "$GCC_FOR_TARGET" >&6; }
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10331 done
10334 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10335 for ncn_progname in gcc; do
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10337 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10338 if test -x $with_build_time_tools/${ncn_progname}; then
10339 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10341 $as_echo "yes" >&6; }
10342 break
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10347 done
10350 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10351 for ncn_progname in gcc; do
10352 if test -n "$ncn_target_tool_prefix"; then
10353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$GCC_FOR_TARGET"; then
10361 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10380 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10381 if test -n "$GCC_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10383 $as_echo "$GCC_FOR_TARGET" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10393 set dummy ${ncn_progname}; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test -n "$GCC_FOR_TARGET"; then
10400 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10413 done
10414 done
10415 IFS=$as_save_IFS
10419 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10420 if test -n "$GCC_FOR_TARGET"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10422 $as_echo "$GCC_FOR_TARGET" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10430 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10431 done
10434 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10435 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10436 else
10437 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10442 if test -n "$GCJ_FOR_TARGET"; then
10443 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10444 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10445 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10448 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10449 for ncn_progname in gcj; do
10450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10451 set dummy ${ncn_progname}; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 if test -n "$GCJ_FOR_TARGET"; then
10458 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10471 done
10472 done
10473 IFS=$as_save_IFS
10477 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10478 if test -n "$GCJ_FOR_TARGET"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10480 $as_echo "$GCJ_FOR_TARGET" >&6; }
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10487 done
10490 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10491 for ncn_progname in gcj; do
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10494 if test -x $with_build_time_tools/${ncn_progname}; then
10495 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10497 $as_echo "yes" >&6; }
10498 break
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10503 done
10506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10507 for ncn_progname in gcj; do
10508 if test -n "$ncn_target_tool_prefix"; then
10509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 if test -n "$GCJ_FOR_TARGET"; then
10517 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10518 else
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10536 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10537 if test -n "$GCJ_FOR_TARGET"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10539 $as_echo "$GCJ_FOR_TARGET" >&6; }
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10547 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10549 set dummy ${ncn_progname}; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 if test -n "$GCJ_FOR_TARGET"; then
10556 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10575 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10576 if test -n "$GCJ_FOR_TARGET"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10578 $as_echo "$GCJ_FOR_TARGET" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10586 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10587 done
10590 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10591 set dummy gcj
10592 if test $build = $target ; then
10593 GCJ_FOR_TARGET="$2"
10594 else
10595 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10597 else
10598 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10603 if test -n "$GFORTRAN_FOR_TARGET"; then
10604 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10605 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10606 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10609 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10610 for ncn_progname in gfortran; do
10611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10612 set dummy ${ncn_progname}; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 if test -n "$GFORTRAN_FOR_TARGET"; then
10619 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10620 else
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10628 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10632 done
10633 done
10634 IFS=$as_save_IFS
10638 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10639 if test -n "$GFORTRAN_FOR_TARGET"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10641 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10648 done
10651 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10652 for ncn_progname in gfortran; do
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10654 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10655 if test -x $with_build_time_tools/${ncn_progname}; then
10656 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10658 $as_echo "yes" >&6; }
10659 break
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10664 done
10667 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10668 for ncn_progname in gfortran; do
10669 if test -n "$ncn_target_tool_prefix"; then
10670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10671 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 if test -n "$GFORTRAN_FOR_TARGET"; then
10678 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10679 else
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10691 done
10692 done
10693 IFS=$as_save_IFS
10697 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10698 if test -n "$GFORTRAN_FOR_TARGET"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10700 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10708 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10710 set dummy ${ncn_progname}; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test -n "$GFORTRAN_FOR_TARGET"; then
10717 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10718 else
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10736 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10737 if test -n "$GFORTRAN_FOR_TARGET"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10739 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10747 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10748 done
10751 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10752 set dummy gfortran
10753 if test $build = $target ; then
10754 GFORTRAN_FOR_TARGET="$2"
10755 else
10756 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10758 else
10759 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10764 if test -n "$GOC_FOR_TARGET"; then
10765 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10766 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10767 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10770 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10771 for ncn_progname in gccgo; do
10772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10773 set dummy ${ncn_progname}; ac_word=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 if test -n "$GOC_FOR_TARGET"; then
10780 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10781 else
10782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783 for as_dir in $PATH
10785 IFS=$as_save_IFS
10786 test -z "$as_dir" && as_dir=.
10787 for ac_exec_ext in '' $ac_executable_extensions; do
10788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10789 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 break 2
10793 done
10794 done
10795 IFS=$as_save_IFS
10799 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10800 if test -n "$GOC_FOR_TARGET"; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10802 $as_echo "$GOC_FOR_TARGET" >&6; }
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }
10809 done
10812 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10813 for ncn_progname in gccgo; do
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10816 if test -x $with_build_time_tools/${ncn_progname}; then
10817 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10820 break
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10825 done
10828 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10829 for ncn_progname in gccgo; do
10830 if test -n "$ncn_target_tool_prefix"; then
10831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if test -n "$GOC_FOR_TARGET"; then
10839 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10840 else
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10848 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10852 done
10853 done
10854 IFS=$as_save_IFS
10858 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10859 if test -n "$GOC_FOR_TARGET"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10861 $as_echo "$GOC_FOR_TARGET" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10871 set dummy ${ncn_progname}; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 if test -n "$GOC_FOR_TARGET"; then
10878 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10893 IFS=$as_save_IFS
10897 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10898 if test -n "$GOC_FOR_TARGET"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10900 $as_echo "$GOC_FOR_TARGET" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10908 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10909 done
10912 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10913 set dummy gccgo
10914 if test $build = $target ; then
10915 GOC_FOR_TARGET="$2"
10916 else
10917 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10919 else
10920 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10925 if test -n "$GUPC_FOR_TARGET"; then
10926 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
10927 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10928 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10931 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10932 for ncn_progname in gupc; do
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$GUPC_FOR_TARGET"; then
10941 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10960 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10961 if test -n "$GUPC_FOR_TARGET"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10963 $as_echo "$GUPC_FOR_TARGET" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10970 done
10973 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10974 for ncn_progname in gupc; do
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10976 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10977 if test -x $with_build_time_tools/${ncn_progname}; then
10978 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 $as_echo "yes" >&6; }
10981 break
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10986 done
10989 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
10990 for ncn_progname in gupc; do
10991 if test -n "$ncn_target_tool_prefix"; then
10992 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$GUPC_FOR_TARGET"; then
11000 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11019 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11020 if test -n "$GUPC_FOR_TARGET"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11022 $as_echo "$GUPC_FOR_TARGET" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11030 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
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_GUPC_FOR_TARGET+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$GUPC_FOR_TARGET"; then
11039 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_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_GUPC_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 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11059 if test -n "$GUPC_FOR_TARGET"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11061 $as_echo "$GUPC_FOR_TARGET" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11069 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
11070 done
11073 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
11074 set dummy gupc
11075 if test $build = $target ; then
11076 GUPC_FOR_TARGET="$2"
11077 else
11078 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11080 else
11081 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
11086 cat > conftest.c << \EOF
11087 #ifdef __GNUC__
11088 gcc_yay;
11089 #endif
11091 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11092 have_gcc_for_target=yes
11093 else
11094 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11095 have_gcc_for_target=no
11097 rm conftest.c
11102 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11103 if test -n "$with_build_time_tools"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11105 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11106 if test -x $with_build_time_tools/ar; then
11107 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11108 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11110 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11115 elif test $build != $host && test $have_gcc_for_target = yes; then
11116 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11117 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11118 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11121 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11122 # Extract the first word of "ar", so it can be a program name with args.
11123 set dummy ar; ac_word=$2
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 case $AR_FOR_TARGET in
11130 [\\/]* | ?:[\\/]*)
11131 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $gcc_cv_tool_dirs
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11150 esac
11152 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11153 if test -n "$AR_FOR_TARGET"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11155 $as_echo "$AR_FOR_TARGET" >&6; }
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11163 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11166 if test -n "$AR_FOR_TARGET"; then
11167 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11168 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11169 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11172 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11173 for ncn_progname in ar; do
11174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11175 set dummy ${ncn_progname}; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$AR_FOR_TARGET"; then
11182 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11195 done
11196 done
11197 IFS=$as_save_IFS
11201 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11202 if test -n "$AR_FOR_TARGET"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11204 $as_echo "$AR_FOR_TARGET" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11211 done
11214 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11215 for ncn_progname in ar; do
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11217 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11218 if test -x $with_build_time_tools/${ncn_progname}; then
11219 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222 break
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11227 done
11230 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11231 for ncn_progname in ar; do
11232 if test -n "$ncn_target_tool_prefix"; then
11233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 if test -n "$AR_FOR_TARGET"; then
11241 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11242 else
11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11250 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11254 done
11255 done
11256 IFS=$as_save_IFS
11260 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11261 if test -n "$AR_FOR_TARGET"; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11263 $as_echo "$AR_FOR_TARGET" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11271 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 if test -n "$AR_FOR_TARGET"; then
11280 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11293 done
11294 done
11295 IFS=$as_save_IFS
11299 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11300 if test -n "$AR_FOR_TARGET"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11302 $as_echo "$AR_FOR_TARGET" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11310 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11311 done
11314 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11315 set dummy ar
11316 if test $build = $target ; then
11317 AR_FOR_TARGET="$2"
11318 else
11319 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11321 else
11322 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11325 else
11326 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11332 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11333 if test -n "$with_build_time_tools"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11335 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11336 if test -x $with_build_time_tools/as; then
11337 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11338 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11340 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11345 elif test $build != $host && test $have_gcc_for_target = yes; then
11346 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11347 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11348 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11351 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11352 # Extract the first word of "as", so it can be a program name with args.
11353 set dummy as; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 case $AS_FOR_TARGET in
11360 [\\/]* | ?:[\\/]*)
11361 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $gcc_cv_tool_dirs
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11375 done
11376 done
11377 IFS=$as_save_IFS
11380 esac
11382 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11383 if test -n "$AS_FOR_TARGET"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11385 $as_echo "$AS_FOR_TARGET" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11393 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11396 if test -n "$AS_FOR_TARGET"; then
11397 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11398 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11399 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11402 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11403 for ncn_progname in as; do
11404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11405 set dummy ${ncn_progname}; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 if test -n "$AS_FOR_TARGET"; then
11412 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11413 else
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11421 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11425 done
11426 done
11427 IFS=$as_save_IFS
11431 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11432 if test -n "$AS_FOR_TARGET"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11434 $as_echo "$AS_FOR_TARGET" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11441 done
11444 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11445 for ncn_progname in as; do
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11447 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11448 if test -x $with_build_time_tools/${ncn_progname}; then
11449 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11451 $as_echo "yes" >&6; }
11452 break
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11457 done
11460 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11461 for ncn_progname in as; do
11462 if test -n "$ncn_target_tool_prefix"; then
11463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -n "$AS_FOR_TARGET"; then
11471 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11490 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11491 if test -n "$AS_FOR_TARGET"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11493 $as_echo "$AS_FOR_TARGET" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11501 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11503 set dummy ${ncn_progname}; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 if test -n "$AS_FOR_TARGET"; then
11510 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11511 else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11523 done
11524 done
11525 IFS=$as_save_IFS
11529 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11530 if test -n "$AS_FOR_TARGET"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11532 $as_echo "$AS_FOR_TARGET" >&6; }
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11540 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11541 done
11544 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11545 set dummy as
11546 if test $build = $target ; then
11547 AS_FOR_TARGET="$2"
11548 else
11549 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11551 else
11552 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11555 else
11556 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11562 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11563 if test -n "$with_build_time_tools"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11565 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11566 if test -x $with_build_time_tools/dlltool; then
11567 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11568 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11570 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11575 elif test $build != $host && test $have_gcc_for_target = yes; then
11576 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11577 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11578 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11581 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11582 # Extract the first word of "dlltool", so it can be a program name with args.
11583 set dummy dlltool; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 case $DLLTOOL_FOR_TARGET in
11590 [\\/]* | ?:[\\/]*)
11591 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $gcc_cv_tool_dirs
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11605 done
11606 done
11607 IFS=$as_save_IFS
11610 esac
11612 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11613 if test -n "$DLLTOOL_FOR_TARGET"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11615 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11623 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11626 if test -n "$DLLTOOL_FOR_TARGET"; then
11627 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11628 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11629 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11632 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11633 for ncn_progname in dlltool; do
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635 set dummy ${ncn_progname}; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test -n "$DLLTOOL_FOR_TARGET"; then
11642 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11651 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11657 IFS=$as_save_IFS
11661 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11662 if test -n "$DLLTOOL_FOR_TARGET"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11664 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11671 done
11674 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11675 for ncn_progname in dlltool; do
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11677 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11678 if test -x $with_build_time_tools/${ncn_progname}; then
11679 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11681 $as_echo "yes" >&6; }
11682 break
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11687 done
11690 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11691 for ncn_progname in dlltool; do
11692 if test -n "$ncn_target_tool_prefix"; then
11693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11694 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 if test -n "$DLLTOOL_FOR_TARGET"; then
11701 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11714 done
11715 done
11716 IFS=$as_save_IFS
11720 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11721 if test -n "$DLLTOOL_FOR_TARGET"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11723 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11733 set dummy ${ncn_progname}; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 if test -n "$DLLTOOL_FOR_TARGET"; then
11740 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11749 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11753 done
11754 done
11755 IFS=$as_save_IFS
11759 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11760 if test -n "$DLLTOOL_FOR_TARGET"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11762 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11770 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11771 done
11774 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11775 set dummy dlltool
11776 if test $build = $target ; then
11777 DLLTOOL_FOR_TARGET="$2"
11778 else
11779 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11781 else
11782 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11785 else
11786 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11792 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11793 if test -n "$with_build_time_tools"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11795 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11796 if test -x $with_build_time_tools/ld; then
11797 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11798 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11800 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11805 elif test $build != $host && test $have_gcc_for_target = yes; then
11806 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11807 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11808 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11811 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11812 # Extract the first word of "ld", so it can be a program name with args.
11813 set dummy ld; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 case $LD_FOR_TARGET in
11820 [\\/]* | ?:[\\/]*)
11821 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $gcc_cv_tool_dirs
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11835 done
11836 done
11837 IFS=$as_save_IFS
11840 esac
11842 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11843 if test -n "$LD_FOR_TARGET"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11845 $as_echo "$LD_FOR_TARGET" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11856 if test -n "$LD_FOR_TARGET"; then
11857 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11858 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11859 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11862 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11863 for ncn_progname in ld; do
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865 set dummy ${ncn_progname}; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$LD_FOR_TARGET"; then
11872 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11891 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11892 if test -n "$LD_FOR_TARGET"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11894 $as_echo "$LD_FOR_TARGET" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 done
11904 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11905 for ncn_progname in ld; do
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11907 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11908 if test -x $with_build_time_tools/${ncn_progname}; then
11909 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11911 $as_echo "yes" >&6; }
11912 break
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11917 done
11920 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11921 for ncn_progname in ld; do
11922 if test -n "$ncn_target_tool_prefix"; then
11923 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11924 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926 $as_echo_n "checking for $ac_word... " >&6; }
11927 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 if test -n "$LD_FOR_TARGET"; then
11931 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11932 else
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11940 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11946 IFS=$as_save_IFS
11950 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11951 if test -n "$LD_FOR_TARGET"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11953 $as_echo "$LD_FOR_TARGET" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11961 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11963 set dummy ${ncn_progname}; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 if test -n "$LD_FOR_TARGET"; then
11970 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11971 else
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11983 done
11984 done
11985 IFS=$as_save_IFS
11989 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11990 if test -n "$LD_FOR_TARGET"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11992 $as_echo "$LD_FOR_TARGET" >&6; }
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
12000 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12001 done
12004 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12005 set dummy ld
12006 if test $build = $target ; then
12007 LD_FOR_TARGET="$2"
12008 else
12009 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12011 else
12012 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12015 else
12016 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12022 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12023 if test -n "$with_build_time_tools"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12025 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12026 if test -x $with_build_time_tools/lipo; then
12027 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12028 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12030 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12035 elif test $build != $host && test $have_gcc_for_target = yes; then
12036 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12037 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12038 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12041 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12042 # Extract the first word of "lipo", so it can be a program name with args.
12043 set dummy lipo; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 case $LIPO_FOR_TARGET in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $gcc_cv_tool_dirs
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12070 esac
12072 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12073 if test -n "$LIPO_FOR_TARGET"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12075 $as_echo "$LIPO_FOR_TARGET" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12083 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12086 if test -n "$LIPO_FOR_TARGET"; then
12087 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12088 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12089 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12092 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12093 for ncn_progname in lipo; do
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095 set dummy ${ncn_progname}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$LIPO_FOR_TARGET"; then
12102 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12111 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12115 done
12116 done
12117 IFS=$as_save_IFS
12121 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12122 if test -n "$LIPO_FOR_TARGET"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12124 $as_echo "$LIPO_FOR_TARGET" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12131 done
12134 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12135 for ncn_progname in lipo; do
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12138 if test -x $with_build_time_tools/${ncn_progname}; then
12139 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141 $as_echo "yes" >&6; }
12142 break
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12147 done
12150 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12151 for ncn_progname in lipo; do
12152 if test -n "$ncn_target_tool_prefix"; then
12153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 if test -n "$LIPO_FOR_TARGET"; then
12161 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12162 else
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 break 2
12174 done
12175 done
12176 IFS=$as_save_IFS
12180 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12181 if test -n "$LIPO_FOR_TARGET"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12183 $as_echo "$LIPO_FOR_TARGET" >&6; }
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12191 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12193 set dummy ${ncn_progname}; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 if test -n "$LIPO_FOR_TARGET"; then
12200 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12201 else
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12219 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12220 if test -n "$LIPO_FOR_TARGET"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12222 $as_echo "$LIPO_FOR_TARGET" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12230 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12231 done
12234 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12235 set dummy lipo
12236 if test $build = $target ; then
12237 LIPO_FOR_TARGET="$2"
12238 else
12239 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12241 else
12242 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12245 else
12246 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12252 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12253 if test -n "$with_build_time_tools"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12255 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12256 if test -x $with_build_time_tools/nm; then
12257 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12258 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12260 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12265 elif test $build != $host && test $have_gcc_for_target = yes; then
12266 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12267 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12268 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12271 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12272 # Extract the first word of "nm", so it can be a program name with args.
12273 set dummy nm; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 case $NM_FOR_TARGET in
12280 [\\/]* | ?:[\\/]*)
12281 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $gcc_cv_tool_dirs
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12300 esac
12302 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12303 if test -n "$NM_FOR_TARGET"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12305 $as_echo "$NM_FOR_TARGET" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12313 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12316 if test -n "$NM_FOR_TARGET"; then
12317 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12318 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12319 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12322 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12323 for ncn_progname in nm; do
12324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12325 set dummy ${ncn_progname}; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$NM_FOR_TARGET"; then
12332 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12345 done
12346 done
12347 IFS=$as_save_IFS
12351 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12352 if test -n "$NM_FOR_TARGET"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12354 $as_echo "$NM_FOR_TARGET" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12361 done
12364 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12365 for ncn_progname in nm; do
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12367 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12368 if test -x $with_build_time_tools/${ncn_progname}; then
12369 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372 break
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12377 done
12380 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12381 for ncn_progname in nm; do
12382 if test -n "$ncn_target_tool_prefix"; then
12383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12384 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 if test -n "$NM_FOR_TARGET"; then
12391 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12392 else
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12396 IFS=$as_save_IFS
12397 test -z "$as_dir" && as_dir=.
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12400 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 break 2
12404 done
12405 done
12406 IFS=$as_save_IFS
12410 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12411 if test -n "$NM_FOR_TARGET"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12413 $as_echo "$NM_FOR_TARGET" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12423 set dummy ${ncn_progname}; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 if test -n "$NM_FOR_TARGET"; then
12430 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12431 else
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12439 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441 break 2
12443 done
12444 done
12445 IFS=$as_save_IFS
12449 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12450 if test -n "$NM_FOR_TARGET"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12452 $as_echo "$NM_FOR_TARGET" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12460 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12461 done
12464 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12465 set dummy nm
12466 if test $build = $target ; then
12467 NM_FOR_TARGET="$2"
12468 else
12469 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12471 else
12472 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12475 else
12476 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12482 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12483 if test -n "$with_build_time_tools"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12485 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12486 if test -x $with_build_time_tools/objcopy; then
12487 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12488 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12490 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12495 elif test $build != $host && test $have_gcc_for_target = yes; then
12496 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12497 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12498 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12501 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12502 # Extract the first word of "objcopy", so it can be a program name with args.
12503 set dummy objcopy; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 case $OBJCOPY_FOR_TARGET in
12510 [\\/]* | ?:[\\/]*)
12511 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $gcc_cv_tool_dirs
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12530 esac
12532 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12533 if test -n "$OBJCOPY_FOR_TARGET"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12535 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12543 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12546 if test -n "$OBJCOPY_FOR_TARGET"; then
12547 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12548 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12549 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12552 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12553 for ncn_progname in objcopy; do
12554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12555 set dummy ${ncn_progname}; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 if test -n "$OBJCOPY_FOR_TARGET"; then
12562 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12563 else
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12581 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12582 if test -n "$OBJCOPY_FOR_TARGET"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12584 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12591 done
12594 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12595 for ncn_progname in objcopy; do
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12597 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12598 if test -x $with_build_time_tools/${ncn_progname}; then
12599 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12602 break
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12607 done
12610 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12611 for ncn_progname in objcopy; do
12612 if test -n "$ncn_target_tool_prefix"; then
12613 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12614 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 if test -n "$OBJCOPY_FOR_TARGET"; then
12621 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12622 else
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12630 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 break 2
12634 done
12635 done
12636 IFS=$as_save_IFS
12640 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12641 if test -n "$OBJCOPY_FOR_TARGET"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12643 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12651 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$OBJCOPY_FOR_TARGET"; then
12660 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12679 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12680 if test -n "$OBJCOPY_FOR_TARGET"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12682 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12690 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12691 done
12694 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12695 set dummy objcopy
12696 if test $build = $target ; then
12697 OBJCOPY_FOR_TARGET="$2"
12698 else
12699 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12701 else
12702 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12705 else
12706 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12712 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12713 if test -n "$with_build_time_tools"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12715 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12716 if test -x $with_build_time_tools/objdump; then
12717 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12718 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12720 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12725 elif test $build != $host && test $have_gcc_for_target = yes; then
12726 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12727 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12728 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12731 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12732 # Extract the first word of "objdump", so it can be a program name with args.
12733 set dummy objdump; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 case $OBJDUMP_FOR_TARGET in
12740 [\\/]* | ?:[\\/]*)
12741 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $gcc_cv_tool_dirs
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12755 done
12756 done
12757 IFS=$as_save_IFS
12760 esac
12762 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12763 if test -n "$OBJDUMP_FOR_TARGET"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12765 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12773 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12776 if test -n "$OBJDUMP_FOR_TARGET"; then
12777 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12778 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12779 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12782 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12783 for ncn_progname in objdump; do
12784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12785 set dummy ${ncn_progname}; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 if test -n "$OBJDUMP_FOR_TARGET"; then
12792 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12793 else
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12801 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12805 done
12806 done
12807 IFS=$as_save_IFS
12811 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12812 if test -n "$OBJDUMP_FOR_TARGET"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12814 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12821 done
12824 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12825 for ncn_progname in objdump; do
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12827 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12828 if test -x $with_build_time_tools/${ncn_progname}; then
12829 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12831 $as_echo "yes" >&6; }
12832 break
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12837 done
12840 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12841 for ncn_progname in objdump; do
12842 if test -n "$ncn_target_tool_prefix"; then
12843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12844 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test -n "$OBJDUMP_FOR_TARGET"; then
12851 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12852 else
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12864 done
12865 done
12866 IFS=$as_save_IFS
12870 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12871 if test -n "$OBJDUMP_FOR_TARGET"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12873 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12881 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12883 set dummy ${ncn_progname}; ac_word=$2
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 $as_echo_n "checking for $ac_word... " >&6; }
12886 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 if test -n "$OBJDUMP_FOR_TARGET"; then
12890 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12899 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12903 done
12904 done
12905 IFS=$as_save_IFS
12909 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12910 if test -n "$OBJDUMP_FOR_TARGET"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12912 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12913 else
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12920 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12921 done
12924 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12925 set dummy objdump
12926 if test $build = $target ; then
12927 OBJDUMP_FOR_TARGET="$2"
12928 else
12929 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12931 else
12932 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12935 else
12936 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12942 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12943 if test -n "$with_build_time_tools"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12945 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12946 if test -x $with_build_time_tools/ranlib; then
12947 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12948 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12950 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12955 elif test $build != $host && test $have_gcc_for_target = yes; then
12956 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12957 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12958 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12961 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12962 # Extract the first word of "ranlib", so it can be a program name with args.
12963 set dummy ranlib; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 case $RANLIB_FOR_TARGET in
12970 [\\/]* | ?:[\\/]*)
12971 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $gcc_cv_tool_dirs
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12985 done
12986 done
12987 IFS=$as_save_IFS
12990 esac
12992 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12993 if test -n "$RANLIB_FOR_TARGET"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12995 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
13003 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13006 if test -n "$RANLIB_FOR_TARGET"; then
13007 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13008 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13009 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13012 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13013 for ncn_progname in ranlib; do
13014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13015 set dummy ${ncn_progname}; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 if test -n "$RANLIB_FOR_TARGET"; then
13022 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13031 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13035 done
13036 done
13037 IFS=$as_save_IFS
13041 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13042 if test -n "$RANLIB_FOR_TARGET"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13044 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13051 done
13054 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13055 for ncn_progname in ranlib; do
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13058 if test -x $with_build_time_tools/${ncn_progname}; then
13059 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13061 $as_echo "yes" >&6; }
13062 break
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13067 done
13070 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13071 for ncn_progname in ranlib; do
13072 if test -n "$ncn_target_tool_prefix"; then
13073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 if test -n "$RANLIB_FOR_TARGET"; then
13081 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13082 else
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13090 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13094 done
13095 done
13096 IFS=$as_save_IFS
13100 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13101 if test -n "$RANLIB_FOR_TARGET"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13103 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13111 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13113 set dummy ${ncn_progname}; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 if test -n "$RANLIB_FOR_TARGET"; then
13120 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13135 IFS=$as_save_IFS
13139 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13140 if test -n "$RANLIB_FOR_TARGET"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13142 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13150 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13151 done
13154 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13155 set dummy ranlib
13156 if test $build = $target ; then
13157 RANLIB_FOR_TARGET="$2"
13158 else
13159 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13161 else
13162 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13165 else
13166 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13172 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13173 if test -n "$with_build_time_tools"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13175 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13176 if test -x $with_build_time_tools/readelf; then
13177 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13178 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13180 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13185 elif test $build != $host && test $have_gcc_for_target = yes; then
13186 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13187 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13188 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13191 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13192 # Extract the first word of "readelf", so it can be a program name with args.
13193 set dummy readelf; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 case $READELF_FOR_TARGET in
13200 [\\/]* | ?:[\\/]*)
13201 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $gcc_cv_tool_dirs
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13220 esac
13222 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13223 if test -n "$READELF_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13225 $as_echo "$READELF_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13236 if test -n "$READELF_FOR_TARGET"; then
13237 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13238 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13239 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13242 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13243 for ncn_progname in readelf; do
13244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13245 set dummy ${ncn_progname}; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247 $as_echo_n "checking for $ac_word... " >&6; }
13248 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 if test -n "$READELF_FOR_TARGET"; then
13252 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13253 else
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13261 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13265 done
13266 done
13267 IFS=$as_save_IFS
13271 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13272 if test -n "$READELF_FOR_TARGET"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13274 $as_echo "$READELF_FOR_TARGET" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13281 done
13284 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13285 for ncn_progname in readelf; do
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13288 if test -x $with_build_time_tools/${ncn_progname}; then
13289 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13291 $as_echo "yes" >&6; }
13292 break
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13297 done
13300 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13301 for ncn_progname in readelf; do
13302 if test -n "$ncn_target_tool_prefix"; then
13303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 $as_echo_n "checking for $ac_word... " >&6; }
13307 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 if test -n "$READELF_FOR_TARGET"; then
13311 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13312 else
13313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13320 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13324 done
13325 done
13326 IFS=$as_save_IFS
13330 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13331 if test -n "$READELF_FOR_TARGET"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13333 $as_echo "$READELF_FOR_TARGET" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13341 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13343 set dummy ${ncn_progname}; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test -n "$READELF_FOR_TARGET"; then
13350 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13369 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13370 if test -n "$READELF_FOR_TARGET"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13372 $as_echo "$READELF_FOR_TARGET" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13380 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13381 done
13384 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13385 set dummy readelf
13386 if test $build = $target ; then
13387 READELF_FOR_TARGET="$2"
13388 else
13389 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13391 else
13392 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13395 else
13396 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13402 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13403 if test -n "$with_build_time_tools"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13405 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13406 if test -x $with_build_time_tools/strip; then
13407 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13408 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13410 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13411 else
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13415 elif test $build != $host && test $have_gcc_for_target = yes; then
13416 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13417 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13418 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13421 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13422 # Extract the first word of "strip", so it can be a program name with args.
13423 set dummy strip; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 case $STRIP_FOR_TARGET in
13430 [\\/]* | ?:[\\/]*)
13431 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $gcc_cv_tool_dirs
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13441 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13445 done
13446 done
13447 IFS=$as_save_IFS
13450 esac
13452 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13453 if test -n "$STRIP_FOR_TARGET"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13455 $as_echo "$STRIP_FOR_TARGET" >&6; }
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13463 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13466 if test -n "$STRIP_FOR_TARGET"; then
13467 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13468 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13469 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13472 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13473 for ncn_progname in strip; do
13474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13475 set dummy ${ncn_progname}; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477 $as_echo_n "checking for $ac_word... " >&6; }
13478 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 if test -n "$STRIP_FOR_TARGET"; then
13482 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13483 else
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13491 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13495 done
13496 done
13497 IFS=$as_save_IFS
13501 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13502 if test -n "$STRIP_FOR_TARGET"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13504 $as_echo "$STRIP_FOR_TARGET" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13511 done
13514 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13515 for ncn_progname in strip; do
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13517 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13518 if test -x $with_build_time_tools/${ncn_progname}; then
13519 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13521 $as_echo "yes" >&6; }
13522 break
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13527 done
13530 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13531 for ncn_progname in strip; do
13532 if test -n "$ncn_target_tool_prefix"; then
13533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 if test -n "$STRIP_FOR_TARGET"; then
13541 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13542 else
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13546 IFS=$as_save_IFS
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13550 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 break 2
13554 done
13555 done
13556 IFS=$as_save_IFS
13560 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13561 if test -n "$STRIP_FOR_TARGET"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13563 $as_echo "$STRIP_FOR_TARGET" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13571 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13573 set dummy ${ncn_progname}; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 if test -n "$STRIP_FOR_TARGET"; then
13580 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13589 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13593 done
13594 done
13595 IFS=$as_save_IFS
13599 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13600 if test -n "$STRIP_FOR_TARGET"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13602 $as_echo "$STRIP_FOR_TARGET" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13610 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13611 done
13614 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13615 set dummy strip
13616 if test $build = $target ; then
13617 STRIP_FOR_TARGET="$2"
13618 else
13619 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13621 else
13622 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13625 else
13626 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13632 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13633 if test -n "$with_build_time_tools"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13635 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13636 if test -x $with_build_time_tools/windres; then
13637 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13638 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13640 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13645 elif test $build != $host && test $have_gcc_for_target = yes; then
13646 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13647 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13648 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13651 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13652 # Extract the first word of "windres", so it can be a program name with args.
13653 set dummy windres; ac_word=$2
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13655 $as_echo_n "checking for $ac_word... " >&6; }
13656 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 case $WINDRES_FOR_TARGET in
13660 [\\/]* | ?:[\\/]*)
13661 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $gcc_cv_tool_dirs
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13675 done
13676 done
13677 IFS=$as_save_IFS
13680 esac
13682 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13683 if test -n "$WINDRES_FOR_TARGET"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13685 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13693 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13696 if test -n "$WINDRES_FOR_TARGET"; then
13697 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13698 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13699 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13702 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13703 for ncn_progname in windres; do
13704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13705 set dummy ${ncn_progname}; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 if test -n "$WINDRES_FOR_TARGET"; then
13712 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13721 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723 break 2
13725 done
13726 done
13727 IFS=$as_save_IFS
13731 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13732 if test -n "$WINDRES_FOR_TARGET"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13734 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13741 done
13744 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13745 for ncn_progname in windres; do
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13747 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13748 if test -x $with_build_time_tools/${ncn_progname}; then
13749 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13751 $as_echo "yes" >&6; }
13752 break
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13757 done
13760 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13761 for ncn_progname in windres; do
13762 if test -n "$ncn_target_tool_prefix"; then
13763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13764 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13766 $as_echo_n "checking for $ac_word... " >&6; }
13767 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 if test -n "$WINDRES_FOR_TARGET"; then
13771 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13772 else
13773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13776 IFS=$as_save_IFS
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
13779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13780 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13782 break 2
13784 done
13785 done
13786 IFS=$as_save_IFS
13790 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13791 if test -n "$WINDRES_FOR_TARGET"; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13793 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13794 else
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 $as_echo "no" >&6; }
13801 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13803 set dummy ${ncn_progname}; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$WINDRES_FOR_TARGET"; then
13810 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13819 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13823 done
13824 done
13825 IFS=$as_save_IFS
13829 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13830 if test -n "$WINDRES_FOR_TARGET"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13832 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13840 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13841 done
13844 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13845 set dummy windres
13846 if test $build = $target ; then
13847 WINDRES_FOR_TARGET="$2"
13848 else
13849 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13851 else
13852 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13855 else
13856 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13862 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13863 if test -n "$with_build_time_tools"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13865 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13866 if test -x $with_build_time_tools/windmc; then
13867 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13868 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13870 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 $as_echo "no" >&6; }
13875 elif test $build != $host && test $have_gcc_for_target = yes; then
13876 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13877 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13878 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13881 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13882 # Extract the first word of "windmc", so it can be a program name with args.
13883 set dummy windmc; ac_word=$2
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13885 $as_echo_n "checking for $ac_word... " >&6; }
13886 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 case $WINDMC_FOR_TARGET in
13890 [\\/]* | ?:[\\/]*)
13891 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $gcc_cv_tool_dirs
13897 IFS=$as_save_IFS
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13901 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13903 break 2
13905 done
13906 done
13907 IFS=$as_save_IFS
13910 esac
13912 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13913 if test -n "$WINDMC_FOR_TARGET"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13915 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13923 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13926 if test -n "$WINDMC_FOR_TARGET"; then
13927 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13928 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13929 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13932 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13933 for ncn_progname in windmc; do
13934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13935 set dummy ${ncn_progname}; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 if test -n "$WINDMC_FOR_TARGET"; then
13942 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13955 done
13956 done
13957 IFS=$as_save_IFS
13961 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13962 if test -n "$WINDMC_FOR_TARGET"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13964 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13971 done
13974 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13975 for ncn_progname in windmc; do
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13978 if test -x $with_build_time_tools/${ncn_progname}; then
13979 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13981 $as_echo "yes" >&6; }
13982 break
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13987 done
13990 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13991 for ncn_progname in windmc; do
13992 if test -n "$ncn_target_tool_prefix"; then
13993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13994 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13996 $as_echo_n "checking for $ac_word... " >&6; }
13997 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 if test -n "$WINDMC_FOR_TARGET"; then
14001 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14002 else
14003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004 for as_dir in $PATH
14006 IFS=$as_save_IFS
14007 test -z "$as_dir" && as_dir=.
14008 for ac_exec_ext in '' $ac_executable_extensions; do
14009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14010 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14012 break 2
14014 done
14015 done
14016 IFS=$as_save_IFS
14020 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14021 if test -n "$WINDMC_FOR_TARGET"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14023 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14024 else
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14031 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14033 set dummy ${ncn_progname}; ac_word=$2
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14035 $as_echo_n "checking for $ac_word... " >&6; }
14036 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 if test -n "$WINDMC_FOR_TARGET"; then
14040 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14041 else
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14049 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 break 2
14053 done
14054 done
14055 IFS=$as_save_IFS
14059 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14060 if test -n "$WINDMC_FOR_TARGET"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14062 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14063 else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14070 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14071 done
14074 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14075 set dummy windmc
14076 if test $build = $target ; then
14077 WINDMC_FOR_TARGET="$2"
14078 else
14079 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14081 else
14082 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14085 else
14086 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14090 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14093 $as_echo_n "checking where to find the target ar... " >&6; }
14094 if test "x${build}" != "x${host}" ; then
14095 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $AR_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 else
14101 # Canadian cross, just use what we found
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103 $as_echo "pre-installed" >&6; }
14105 else
14106 ok=yes
14107 case " ${configdirs} " in
14108 *" binutils "*) ;;
14109 *) ok=no ;;
14110 esac
14112 if test $ok = yes; then
14113 # An in-tree tool is available and we can use it
14114 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14116 $as_echo "just compiled" >&6; }
14117 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
14119 ac_dir=`dirname $AR_FOR_TARGET`
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121 $as_echo "pre-installed in $ac_dir" >&6; }
14122 elif test "x$target" = "x$host"; then
14123 # We can use an host tool
14124 AR_FOR_TARGET='$(AR)'
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14126 $as_echo "host tool" >&6; }
14127 else
14128 # We need a cross tool
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14130 $as_echo "pre-installed" >&6; }
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14135 $as_echo_n "checking where to find the target as... " >&6; }
14136 if test "x${build}" != "x${host}" ; then
14137 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $AS_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 else
14143 # Canadian cross, just use what we found
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145 $as_echo "pre-installed" >&6; }
14147 else
14148 ok=yes
14149 case " ${configdirs} " in
14150 *" gas "*) ;;
14151 *) ok=no ;;
14152 esac
14154 if test $ok = yes; then
14155 # An in-tree tool is available and we can use it
14156 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14158 $as_echo "just compiled" >&6; }
14159 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14160 # We already found the complete path
14161 ac_dir=`dirname $AS_FOR_TARGET`
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14163 $as_echo "pre-installed in $ac_dir" >&6; }
14164 elif test "x$target" = "x$host"; then
14165 # We can use an host tool
14166 AS_FOR_TARGET='$(AS)'
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14168 $as_echo "host tool" >&6; }
14169 else
14170 # We need a cross tool
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14172 $as_echo "pre-installed" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14177 $as_echo_n "checking where to find the target cc... " >&6; }
14178 if test "x${build}" != "x${host}" ; then
14179 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
14181 ac_dir=`dirname $CC_FOR_TARGET`
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183 $as_echo "pre-installed in $ac_dir" >&6; }
14184 else
14185 # Canadian cross, just use what we found
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14187 $as_echo "pre-installed" >&6; }
14189 else
14190 ok=yes
14191 case " ${configdirs} " in
14192 *" gcc "*) ;;
14193 *) ok=no ;;
14194 esac
14196 if test $ok = yes; then
14197 # An in-tree tool is available and we can use it
14198 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14200 $as_echo "just compiled" >&6; }
14201 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
14203 ac_dir=`dirname $CC_FOR_TARGET`
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205 $as_echo "pre-installed in $ac_dir" >&6; }
14206 elif test "x$target" = "x$host"; then
14207 # We can use an host tool
14208 CC_FOR_TARGET='$(CC)'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14210 $as_echo "host tool" >&6; }
14211 else
14212 # We need a cross tool
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14214 $as_echo "pre-installed" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14219 $as_echo_n "checking where to find the target c++... " >&6; }
14220 if test "x${build}" != "x${host}" ; then
14221 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14222 # We already found the complete path
14223 ac_dir=`dirname $CXX_FOR_TARGET`
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14225 $as_echo "pre-installed in $ac_dir" >&6; }
14226 else
14227 # Canadian cross, just use what we found
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14229 $as_echo "pre-installed" >&6; }
14231 else
14232 ok=yes
14233 case " ${configdirs} " in
14234 *" gcc "*) ;;
14235 *) ok=no ;;
14236 esac
14237 case ,${enable_languages}, in
14238 *,c++,*) ;;
14239 *) ok=no ;;
14240 esac
14241 if test $ok = yes; then
14242 # An in-tree tool is available and we can use it
14243 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14245 $as_echo "just compiled" >&6; }
14246 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14247 # We already found the complete path
14248 ac_dir=`dirname $CXX_FOR_TARGET`
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251 elif test "x$target" = "x$host"; then
14252 # We can use an host tool
14253 CXX_FOR_TARGET='$(CXX)'
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14255 $as_echo "host tool" >&6; }
14256 else
14257 # We need a cross tool
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14259 $as_echo "pre-installed" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14264 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14265 if test "x${build}" != "x${host}" ; then
14266 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14267 # We already found the complete path
14268 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14270 $as_echo "pre-installed in $ac_dir" >&6; }
14271 else
14272 # Canadian cross, just use what we found
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14276 else
14277 ok=yes
14278 case " ${configdirs} " in
14279 *" gcc "*) ;;
14280 *) ok=no ;;
14281 esac
14282 case ,${enable_languages}, in
14283 *,c++,*) ;;
14284 *) ok=no ;;
14285 esac
14286 if test $ok = yes; then
14287 # An in-tree tool is available and we can use it
14288 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14290 $as_echo "just compiled" >&6; }
14291 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295 $as_echo "pre-installed in $ac_dir" >&6; }
14296 elif test "x$target" = "x$host"; then
14297 # We can use an host tool
14298 RAW_CXX_FOR_TARGET='$(CXX)'
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14300 $as_echo "host tool" >&6; }
14301 else
14302 # We need a cross tool
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14309 $as_echo_n "checking where to find the target dlltool... " >&6; }
14310 if test "x${build}" != "x${host}" ; then
14311 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14312 # We already found the complete path
14313 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14315 $as_echo "pre-installed in $ac_dir" >&6; }
14316 else
14317 # Canadian cross, just use what we found
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14321 else
14322 ok=yes
14323 case " ${configdirs} " in
14324 *" binutils "*) ;;
14325 *) ok=no ;;
14326 esac
14328 if test $ok = yes; then
14329 # An in-tree tool is available and we can use it
14330 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14332 $as_echo "just compiled" >&6; }
14333 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
14335 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337 $as_echo "pre-installed in $ac_dir" >&6; }
14338 elif test "x$target" = "x$host"; then
14339 # We can use an host tool
14340 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14342 $as_echo "host tool" >&6; }
14343 else
14344 # We need a cross tool
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14351 $as_echo_n "checking where to find the target gcc... " >&6; }
14352 if test "x${build}" != "x${host}" ; then
14353 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14354 # We already found the complete path
14355 ac_dir=`dirname $GCC_FOR_TARGET`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14357 $as_echo "pre-installed in $ac_dir" >&6; }
14358 else
14359 # Canadian cross, just use what we found
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14363 else
14364 ok=yes
14365 case " ${configdirs} " in
14366 *" gcc "*) ;;
14367 *) ok=no ;;
14368 esac
14370 if test $ok = yes; then
14371 # An in-tree tool is available and we can use it
14372 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14374 $as_echo "just compiled" >&6; }
14375 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $GCC_FOR_TARGET`
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379 $as_echo "pre-installed in $ac_dir" >&6; }
14380 elif test "x$target" = "x$host"; then
14381 # We can use an host tool
14382 GCC_FOR_TARGET='$()'
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384 $as_echo "host tool" >&6; }
14385 else
14386 # We need a cross tool
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14393 $as_echo_n "checking where to find the target gcj... " >&6; }
14394 if test "x${build}" != "x${host}" ; then
14395 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14396 # We already found the complete path
14397 ac_dir=`dirname $GCJ_FOR_TARGET`
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399 $as_echo "pre-installed in $ac_dir" >&6; }
14400 else
14401 # Canadian cross, just use what we found
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14405 else
14406 ok=yes
14407 case " ${configdirs} " in
14408 *" gcc "*) ;;
14409 *) ok=no ;;
14410 esac
14411 case ,${enable_languages}, in
14412 *,java,*) ;;
14413 *) ok=no ;;
14414 esac
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419 $as_echo "just compiled" >&6; }
14420 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $GCJ_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424 $as_echo "pre-installed in $ac_dir" >&6; }
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 GCJ_FOR_TARGET='$(GCJ)'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429 $as_echo "host tool" >&6; }
14430 else
14431 # We need a cross tool
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14438 $as_echo_n "checking where to find the target gfortran... " >&6; }
14439 if test "x${build}" != "x${host}" ; then
14440 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 else
14446 # Canadian cross, just use what we found
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448 $as_echo "pre-installed" >&6; }
14450 else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" gcc "*) ;;
14454 *) ok=no ;;
14455 esac
14456 case ,${enable_languages}, in
14457 *,fortran,*) ;;
14458 *) ok=no ;;
14459 esac
14460 if test $ok = yes; then
14461 # An in-tree tool is available and we can use it
14462 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14464 $as_echo "just compiled" >&6; }
14465 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14466 # We already found the complete path
14467 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo" >&5
14483 $as_echo_n "checking where to find the target gccgo... " >&6; }
14484 if test "x${build}" != "x${host}" ; then
14485 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14486 # We already found the complete path
14487 ac_dir=`dirname $GOC_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 *" gcc "*) ;;
14499 *) ok=no ;;
14500 esac
14501 case ,${enable_languages}, in
14502 *,go,*) ;;
14503 *) ok=no ;;
14504 esac
14505 if test $ok = yes; then
14506 # An in-tree tool is available and we can use it
14507 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14509 $as_echo "just compiled" >&6; }
14510 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14511 # We already found the complete path
14512 ac_dir=`dirname $GOC_FOR_TARGET`
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14514 $as_echo "pre-installed in $ac_dir" >&6; }
14515 elif test "x$target" = "x$host"; then
14516 # We can use an host tool
14517 GOC_FOR_TARGET='$(GOC)'
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14519 $as_echo "host tool" >&6; }
14520 else
14521 # We need a cross tool
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14528 $as_echo_n "checking where to find the target gupc... " >&6; }
14529 if test "x${build}" != "x${host}" ; then
14530 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14531 # We already found the complete path
14532 ac_dir=`dirname $GUPC_FOR_TARGET`
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14534 $as_echo "pre-installed in $ac_dir" >&6; }
14535 else
14536 # Canadian cross, just use what we found
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14538 $as_echo "pre-installed" >&6; }
14540 else
14541 ok=yes
14542 case " ${configdirs} " in
14543 *" gcc "*) ;;
14544 *) ok=no ;;
14545 esac
14546 case ,${enable_languages}, in
14547 *,upc,*) ;;
14548 *) ok=no ;;
14549 esac
14550 if test $ok = yes; then
14551 # An in-tree tool is available and we can use it
14552 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14554 $as_echo "just compiled" >&6; }
14555 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14556 # We already found the complete path
14557 ac_dir=`dirname $GUPC_FOR_TARGET`
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14559 $as_echo "pre-installed in $ac_dir" >&6; }
14560 elif test "x$target" = "x$host"; then
14561 # We can use an host tool
14562 GUPC_FOR_TARGET='$(GUPC)'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14564 $as_echo "host tool" >&6; }
14565 else
14566 # We need a cross tool
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568 $as_echo "pre-installed" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14573 $as_echo_n "checking where to find the target ld... " >&6; }
14574 if test "x${build}" != "x${host}" ; then
14575 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14576 # We already found the complete path
14577 ac_dir=`dirname $LD_FOR_TARGET`
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14579 $as_echo "pre-installed in $ac_dir" >&6; }
14580 else
14581 # Canadian cross, just use what we found
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14583 $as_echo "pre-installed" >&6; }
14585 else
14586 ok=yes
14587 case " ${configdirs} " in
14588 *" ld "*) ;;
14589 *) ok=no ;;
14590 esac
14592 if test $ok = yes; then
14593 # An in-tree tool is available and we can use it
14594 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14596 $as_echo "just compiled" >&6; }
14597 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14598 # We already found the complete path
14599 ac_dir=`dirname $LD_FOR_TARGET`
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14601 $as_echo "pre-installed in $ac_dir" >&6; }
14602 elif test "x$target" = "x$host"; then
14603 # We can use an host tool
14604 LD_FOR_TARGET='$(LD)'
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14606 $as_echo "host tool" >&6; }
14607 else
14608 # We need a cross tool
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610 $as_echo "pre-installed" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14615 $as_echo_n "checking where to find the target lipo... " >&6; }
14616 if test "x${build}" != "x${host}" ; then
14617 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14618 # We already found the complete path
14619 ac_dir=`dirname $LIPO_FOR_TARGET`
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14621 $as_echo "pre-installed in $ac_dir" >&6; }
14622 else
14623 # Canadian cross, just use what we found
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14625 $as_echo "pre-installed" >&6; }
14627 else
14628 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14629 # We already found the complete path
14630 ac_dir=`dirname $LIPO_FOR_TARGET`
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14632 $as_echo "pre-installed in $ac_dir" >&6; }
14633 elif test "x$target" = "x$host"; then
14634 # We can use an host tool
14635 LIPO_FOR_TARGET='$(LIPO)'
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14637 $as_echo "host tool" >&6; }
14638 else
14639 # We need a cross tool
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14641 $as_echo "pre-installed" >&6; }
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14646 $as_echo_n "checking where to find the target nm... " >&6; }
14647 if test "x${build}" != "x${host}" ; then
14648 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14649 # We already found the complete path
14650 ac_dir=`dirname $NM_FOR_TARGET`
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14652 $as_echo "pre-installed in $ac_dir" >&6; }
14653 else
14654 # Canadian cross, just use what we found
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14656 $as_echo "pre-installed" >&6; }
14658 else
14659 ok=yes
14660 case " ${configdirs} " in
14661 *" binutils "*) ;;
14662 *) ok=no ;;
14663 esac
14665 if test $ok = yes; then
14666 # An in-tree tool is available and we can use it
14667 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14669 $as_echo "just compiled" >&6; }
14670 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14671 # We already found the complete path
14672 ac_dir=`dirname $NM_FOR_TARGET`
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14674 $as_echo "pre-installed in $ac_dir" >&6; }
14675 elif test "x$target" = "x$host"; then
14676 # We can use an host tool
14677 NM_FOR_TARGET='$(NM)'
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14679 $as_echo "host tool" >&6; }
14680 else
14681 # We need a cross tool
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14683 $as_echo "pre-installed" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14688 $as_echo_n "checking where to find the target objcopy... " >&6; }
14689 if test "x${build}" != "x${host}" ; then
14690 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14691 # We already found the complete path
14692 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14694 $as_echo "pre-installed in $ac_dir" >&6; }
14695 else
14696 # Canadian cross, just use what we found
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14698 $as_echo "pre-installed" >&6; }
14700 else
14701 ok=yes
14702 case " ${configdirs} " in
14703 *" binutils "*) ;;
14704 *) ok=no ;;
14705 esac
14707 if test $ok = yes; then
14708 # An in-tree tool is available and we can use it
14709 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14711 $as_echo "just compiled" >&6; }
14712 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14713 # We already found the complete path
14714 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14716 $as_echo "pre-installed in $ac_dir" >&6; }
14717 elif test "x$target" = "x$host"; then
14718 # We can use an host tool
14719 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14721 $as_echo "host tool" >&6; }
14722 else
14723 # We need a cross tool
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14725 $as_echo "pre-installed" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14730 $as_echo_n "checking where to find the target objdump... " >&6; }
14731 if test "x${build}" != "x${host}" ; then
14732 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14733 # We already found the complete path
14734 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14736 $as_echo "pre-installed in $ac_dir" >&6; }
14737 else
14738 # Canadian cross, just use what we found
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14740 $as_echo "pre-installed" >&6; }
14742 else
14743 ok=yes
14744 case " ${configdirs} " in
14745 *" binutils "*) ;;
14746 *) ok=no ;;
14747 esac
14749 if test $ok = yes; then
14750 # An in-tree tool is available and we can use it
14751 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14753 $as_echo "just compiled" >&6; }
14754 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14755 # We already found the complete path
14756 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14758 $as_echo "pre-installed in $ac_dir" >&6; }
14759 elif test "x$target" = "x$host"; then
14760 # We can use an host tool
14761 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14763 $as_echo "host tool" >&6; }
14764 else
14765 # We need a cross tool
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14767 $as_echo "pre-installed" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14772 $as_echo_n "checking where to find the target ranlib... " >&6; }
14773 if test "x${build}" != "x${host}" ; then
14774 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14775 # We already found the complete path
14776 ac_dir=`dirname $RANLIB_FOR_TARGET`
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14778 $as_echo "pre-installed in $ac_dir" >&6; }
14779 else
14780 # Canadian cross, just use what we found
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14782 $as_echo "pre-installed" >&6; }
14784 else
14785 ok=yes
14786 case " ${configdirs} " in
14787 *" binutils "*) ;;
14788 *) ok=no ;;
14789 esac
14791 if test $ok = yes; then
14792 # An in-tree tool is available and we can use it
14793 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14795 $as_echo "just compiled" >&6; }
14796 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14797 # We already found the complete path
14798 ac_dir=`dirname $RANLIB_FOR_TARGET`
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14800 $as_echo "pre-installed in $ac_dir" >&6; }
14801 elif test "x$target" = "x$host"; then
14802 # We can use an host tool
14803 RANLIB_FOR_TARGET='$(RANLIB)'
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14805 $as_echo "host tool" >&6; }
14806 else
14807 # We need a cross tool
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14809 $as_echo "pre-installed" >&6; }
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14814 $as_echo_n "checking where to find the target readelf... " >&6; }
14815 if test "x${build}" != "x${host}" ; then
14816 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14817 # We already found the complete path
14818 ac_dir=`dirname $READELF_FOR_TARGET`
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14820 $as_echo "pre-installed in $ac_dir" >&6; }
14821 else
14822 # Canadian cross, just use what we found
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14824 $as_echo "pre-installed" >&6; }
14826 else
14827 ok=yes
14828 case " ${configdirs} " in
14829 *" binutils "*) ;;
14830 *) ok=no ;;
14831 esac
14833 if test $ok = yes; then
14834 # An in-tree tool is available and we can use it
14835 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14837 $as_echo "just compiled" >&6; }
14838 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14839 # We already found the complete path
14840 ac_dir=`dirname $READELF_FOR_TARGET`
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14842 $as_echo "pre-installed in $ac_dir" >&6; }
14843 elif test "x$target" = "x$host"; then
14844 # We can use an host tool
14845 READELF_FOR_TARGET='$(READELF)'
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14847 $as_echo "host tool" >&6; }
14848 else
14849 # We need a cross tool
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14851 $as_echo "pre-installed" >&6; }
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14856 $as_echo_n "checking where to find the target strip... " >&6; }
14857 if test "x${build}" != "x${host}" ; then
14858 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14859 # We already found the complete path
14860 ac_dir=`dirname $STRIP_FOR_TARGET`
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14862 $as_echo "pre-installed in $ac_dir" >&6; }
14863 else
14864 # Canadian cross, just use what we found
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14866 $as_echo "pre-installed" >&6; }
14868 else
14869 ok=yes
14870 case " ${configdirs} " in
14871 *" binutils "*) ;;
14872 *) ok=no ;;
14873 esac
14875 if test $ok = yes; then
14876 # An in-tree tool is available and we can use it
14877 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14879 $as_echo "just compiled" >&6; }
14880 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14881 # We already found the complete path
14882 ac_dir=`dirname $STRIP_FOR_TARGET`
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14884 $as_echo "pre-installed in $ac_dir" >&6; }
14885 elif test "x$target" = "x$host"; then
14886 # We can use an host tool
14887 STRIP_FOR_TARGET='$(STRIP)'
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14889 $as_echo "host tool" >&6; }
14890 else
14891 # We need a cross tool
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14893 $as_echo "pre-installed" >&6; }
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14898 $as_echo_n "checking where to find the target windres... " >&6; }
14899 if test "x${build}" != "x${host}" ; then
14900 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14901 # We already found the complete path
14902 ac_dir=`dirname $WINDRES_FOR_TARGET`
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14904 $as_echo "pre-installed in $ac_dir" >&6; }
14905 else
14906 # Canadian cross, just use what we found
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14908 $as_echo "pre-installed" >&6; }
14910 else
14911 ok=yes
14912 case " ${configdirs} " in
14913 *" binutils "*) ;;
14914 *) ok=no ;;
14915 esac
14917 if test $ok = yes; then
14918 # An in-tree tool is available and we can use it
14919 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14921 $as_echo "just compiled" >&6; }
14922 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14923 # We already found the complete path
14924 ac_dir=`dirname $WINDRES_FOR_TARGET`
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14926 $as_echo "pre-installed in $ac_dir" >&6; }
14927 elif test "x$target" = "x$host"; then
14928 # We can use an host tool
14929 WINDRES_FOR_TARGET='$(WINDRES)'
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14931 $as_echo "host tool" >&6; }
14932 else
14933 # We need a cross tool
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14935 $as_echo "pre-installed" >&6; }
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14940 $as_echo_n "checking where to find the target windmc... " >&6; }
14941 if test "x${build}" != "x${host}" ; then
14942 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14943 # We already found the complete path
14944 ac_dir=`dirname $WINDMC_FOR_TARGET`
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14946 $as_echo "pre-installed in $ac_dir" >&6; }
14947 else
14948 # Canadian cross, just use what we found
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14950 $as_echo "pre-installed" >&6; }
14952 else
14953 ok=yes
14954 case " ${configdirs} " in
14955 *" binutils "*) ;;
14956 *) ok=no ;;
14957 esac
14959 if test $ok = yes; then
14960 # An in-tree tool is available and we can use it
14961 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14963 $as_echo "just compiled" >&6; }
14964 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14965 # We already found the complete path
14966 ac_dir=`dirname $WINDMC_FOR_TARGET`
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14968 $as_echo "pre-installed in $ac_dir" >&6; }
14969 elif test "x$target" = "x$host"; then
14970 # We can use an host tool
14971 WINDMC_FOR_TARGET='$(WINDMC)'
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14973 $as_echo "host tool" >&6; }
14974 else
14975 # We need a cross tool
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14977 $as_echo "pre-installed" >&6; }
14985 # Certain tools may need extra flags.
14986 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14987 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14988 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14990 # When building target libraries, except in a Canadian cross, we use
14991 # the same toolchain as the compiler we just built.
14992 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14993 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14994 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14995 if test $host = $build; then
14996 case " $configdirs " in
14997 *" gcc "*)
14998 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14999 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15000 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15002 esac
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15011 # Check whether --enable-maintainer-mode was given.
15012 if test "${enable_maintainer_mode+set}" = set; then :
15013 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15014 else
15015 USE_MAINTAINER_MODE=no
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15022 if test "$USE_MAINTAINER_MODE" = yes; then
15023 MAINTAINER_MODE_TRUE=
15024 MAINTAINER_MODE_FALSE='#'
15025 else
15026 MAINTAINER_MODE_TRUE='#'
15027 MAINTAINER_MODE_FALSE=
15029 MAINT=$MAINTAINER_MODE_TRUE
15031 # ---------------------
15032 # GCC bootstrap support
15033 # ---------------------
15035 # Stage specific cflags for build.
15036 stage1_cflags="-g"
15037 case $build in
15038 vax-*-*)
15039 case ${GCC} in
15040 yes) stage1_cflags="-g -Wa,-J" ;;
15041 *) stage1_cflags="-g -J" ;;
15042 esac ;;
15043 esac
15047 # Enable --enable-checking in stage1 of the compiler.
15048 # Check whether --enable-stage1-checking was given.
15049 if test "${enable_stage1_checking+set}" = set; then :
15050 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15051 else
15052 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15053 # For --disable-checking or implicit --enable-checking=release, avoid
15054 # setting --enable-checking=gc in the default stage1 checking for LTO
15055 # bootstraps. See PR62077.
15056 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
15057 case $BUILD_CONFIG in
15058 *lto*)
15059 if test "x$enable_checking" = x && \
15060 test -d ${srcdir}/gcc && \
15061 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15062 stage1_checking=--enable-checking=yes,types
15063 fi;;
15064 *) stage1_checking=--enable-checking=yes,types;;
15065 esac
15066 else
15067 stage1_checking=--enable-checking=$enable_checking,types
15073 # Enable -Werror in bootstrap stage2 and later.
15074 # Check whether --enable-werror was given.
15075 if test "${enable_werror+set}" = set; then :
15076 enableval=$enable_werror;
15077 else
15078 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15079 enable_werror=yes
15080 else
15081 enable_werror=no
15085 case ${enable_werror} in
15086 yes) stage2_werror_flag="--enable-werror-always" ;;
15087 *) stage2_werror_flag="" ;;
15088 esac
15091 # Enable --enable-host-shared.
15092 # Check whether --enable-host-shared was given.
15093 if test "${enable_host_shared+set}" = set; then :
15094 enableval=$enable_host_shared; host_shared=$enableval
15095 else
15096 host_shared=no
15101 # PR jit/64780: Require the user to explicitly specify
15102 # --enable-host-shared if the jit is enabled, hinting
15103 # that they might want to do a separate configure/build of
15104 # the jit, to avoid users from slowing down the rest of the
15105 # compiler by enabling the jit.
15106 if test ${host_shared} = "no" ; then
15107 case "${enable_languages}" in
15108 *jit*)
15109 as_fn_error "
15110 Enabling language \"jit\" requires --enable-host-shared.
15112 --enable-host-shared typically slows the rest of the compiler down by
15113 a few %, so you must explicitly enable it.
15115 If you want to build both the jit and the regular compiler, it is often
15116 best to do this via two separate configure/builds, in separate
15117 directories, to avoid imposing the performance cost of
15118 --enable-host-shared on the regular compiler." "$LINENO" 5
15122 esac
15125 # Specify what files to not compare during bootstrap.
15127 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15128 case "$target" in
15129 hppa*64*-*-hpux*) ;;
15130 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
15131 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15132 esac
15135 ac_config_files="$ac_config_files Makefile"
15137 cat >confcache <<\_ACEOF
15138 # This file is a shell script that caches the results of configure
15139 # tests run on this system so they can be shared between configure
15140 # scripts and configure runs, see configure's option --config-cache.
15141 # It is not useful on other systems. If it contains results you don't
15142 # want to keep, you may remove or edit it.
15144 # config.status only pays attention to the cache file if you give it
15145 # the --recheck option to rerun configure.
15147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15149 # following values.
15151 _ACEOF
15153 # The following way of writing the cache mishandles newlines in values,
15154 # but we know of no workaround that is simple, portable, and efficient.
15155 # So, we kill variables containing newlines.
15156 # Ultrix sh set writes to stderr and can't be redirected directly,
15157 # and sets the high bit in the cache file unless we assign to the vars.
15159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15160 eval ac_val=\$$ac_var
15161 case $ac_val in #(
15162 *${as_nl}*)
15163 case $ac_var in #(
15164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15166 esac
15167 case $ac_var in #(
15168 _ | IFS | as_nl) ;; #(
15169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15170 *) { eval $ac_var=; unset $ac_var;} ;;
15171 esac ;;
15172 esac
15173 done
15175 (set) 2>&1 |
15176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15177 *${as_nl}ac_space=\ *)
15178 # `set' does not quote correctly, so add quotes: double-quote
15179 # substitution turns \\\\ into \\, and sed turns \\ into \.
15180 sed -n \
15181 "s/'/'\\\\''/g;
15182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15183 ;; #(
15185 # `set' quotes correctly as required by POSIX, so do not add quotes.
15186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15188 esac |
15189 sort
15191 sed '
15192 /^ac_cv_env_/b end
15193 t clear
15194 :clear
15195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196 t end
15197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198 :end' >>confcache
15199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15200 if test -w "$cache_file"; then
15201 test "x$cache_file" != "x/dev/null" &&
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15203 $as_echo "$as_me: updating cache $cache_file" >&6;}
15204 cat confcache >$cache_file
15205 else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15207 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15210 rm -f confcache
15212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15213 # Let make expand exec_prefix.
15214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15216 # Transform confdefs.h into DEFS.
15217 # Protect against shell expansion while executing Makefile rules.
15218 # Protect against Makefile macro expansion.
15220 # If the first sed substitution is executed (which looks for macros that
15221 # take arguments), then branch to the quote section. Otherwise,
15222 # look for a macro that doesn't take arguments.
15223 ac_script='
15224 :mline
15225 /\\$/{
15227 s,\\\n,,
15228 b mline
15230 t clear
15231 :clear
15232 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15233 t quote
15234 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15235 t quote
15236 b any
15237 :quote
15238 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15239 s/\[/\\&/g
15240 s/\]/\\&/g
15241 s/\$/$$/g
15243 :any
15246 s/^\n//
15247 s/\n/ /g
15251 DEFS=`sed -n "$ac_script" confdefs.h`
15254 ac_libobjs=
15255 ac_ltlibobjs=
15256 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15257 # 1. Remove the extension, and $U if already installed.
15258 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15259 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15260 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15261 # will be set to the directory where LIBOBJS objects are built.
15262 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15263 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15264 done
15265 LIBOBJS=$ac_libobjs
15267 LTLIBOBJS=$ac_ltlibobjs
15271 : ${CONFIG_STATUS=./config.status}
15272 ac_write_fail=0
15273 ac_clean_files_save=$ac_clean_files
15274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15277 as_write_fail=0
15278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15279 #! $SHELL
15280 # Generated by $as_me.
15281 # Run this file to recreate the current configuration.
15282 # Compiler output produced by configure, useful for debugging
15283 # configure, is in config.log if it exists.
15285 debug=false
15286 ac_cs_recheck=false
15287 ac_cs_silent=false
15289 SHELL=\${CONFIG_SHELL-$SHELL}
15290 export SHELL
15291 _ASEOF
15292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15293 ## -------------------- ##
15294 ## M4sh Initialization. ##
15295 ## -------------------- ##
15297 # Be more Bourne compatible
15298 DUALCASE=1; export DUALCASE # for MKS sh
15299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15300 emulate sh
15301 NULLCMD=:
15302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15303 # is contrary to our usage. Disable this feature.
15304 alias -g '${1+"$@"}'='"$@"'
15305 setopt NO_GLOB_SUBST
15306 else
15307 case `(set -o) 2>/dev/null` in #(
15308 *posix*) :
15309 set -o posix ;; #(
15310 *) :
15312 esac
15316 as_nl='
15318 export as_nl
15319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15323 # Prefer a ksh shell builtin over an external printf program on Solaris,
15324 # but without wasting forks for bash or zsh.
15325 if test -z "$BASH_VERSION$ZSH_VERSION" \
15326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15327 as_echo='print -r --'
15328 as_echo_n='print -rn --'
15329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15330 as_echo='printf %s\n'
15331 as_echo_n='printf %s'
15332 else
15333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15335 as_echo_n='/usr/ucb/echo -n'
15336 else
15337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15338 as_echo_n_body='eval
15339 arg=$1;
15340 case $arg in #(
15341 *"$as_nl"*)
15342 expr "X$arg" : "X\\(.*\\)$as_nl";
15343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15344 esac;
15345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15347 export as_echo_n_body
15348 as_echo_n='sh -c $as_echo_n_body as_echo'
15350 export as_echo_body
15351 as_echo='sh -c $as_echo_body as_echo'
15354 # The user is always right.
15355 if test "${PATH_SEPARATOR+set}" != set; then
15356 PATH_SEPARATOR=:
15357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15359 PATH_SEPARATOR=';'
15364 # IFS
15365 # We need space, tab and new line, in precisely that order. Quoting is
15366 # there to prevent editors from complaining about space-tab.
15367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15368 # splitting by setting IFS to empty value.)
15369 IFS=" "" $as_nl"
15371 # Find who we are. Look in the path if we contain no directory separator.
15372 case $0 in #((
15373 *[\\/]* ) as_myself=$0 ;;
15374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375 for as_dir in $PATH
15377 IFS=$as_save_IFS
15378 test -z "$as_dir" && as_dir=.
15379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15380 done
15381 IFS=$as_save_IFS
15384 esac
15385 # We did not find ourselves, most probably we were run as `sh COMMAND'
15386 # in which case we are not to be found in the path.
15387 if test "x$as_myself" = x; then
15388 as_myself=$0
15390 if test ! -f "$as_myself"; then
15391 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15392 exit 1
15395 # Unset variables that we do not need and which cause bugs (e.g. in
15396 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15397 # suppresses any "Segmentation fault" message there. '((' could
15398 # trigger a bug in pdksh 5.2.14.
15399 for as_var in BASH_ENV ENV MAIL MAILPATH
15400 do eval test x\${$as_var+set} = xset \
15401 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15402 done
15403 PS1='$ '
15404 PS2='> '
15405 PS4='+ '
15407 # NLS nuisances.
15408 LC_ALL=C
15409 export LC_ALL
15410 LANGUAGE=C
15411 export LANGUAGE
15413 # CDPATH.
15414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15417 # as_fn_error ERROR [LINENO LOG_FD]
15418 # ---------------------------------
15419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15421 # script with status $?, using 1 if that was 0.
15422 as_fn_error ()
15424 as_status=$?; test $as_status -eq 0 && as_status=1
15425 if test "$3"; then
15426 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15427 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15429 $as_echo "$as_me: error: $1" >&2
15430 as_fn_exit $as_status
15431 } # as_fn_error
15434 # as_fn_set_status STATUS
15435 # -----------------------
15436 # Set $? to STATUS, without forking.
15437 as_fn_set_status ()
15439 return $1
15440 } # as_fn_set_status
15442 # as_fn_exit STATUS
15443 # -----------------
15444 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15445 as_fn_exit ()
15447 set +e
15448 as_fn_set_status $1
15449 exit $1
15450 } # as_fn_exit
15452 # as_fn_unset VAR
15453 # ---------------
15454 # Portably unset VAR.
15455 as_fn_unset ()
15457 { eval $1=; unset $1;}
15459 as_unset=as_fn_unset
15460 # as_fn_append VAR VALUE
15461 # ----------------------
15462 # Append the text in VALUE to the end of the definition contained in VAR. Take
15463 # advantage of any shell optimizations that allow amortized linear growth over
15464 # repeated appends, instead of the typical quadratic growth present in naive
15465 # implementations.
15466 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15467 eval 'as_fn_append ()
15469 eval $1+=\$2
15471 else
15472 as_fn_append ()
15474 eval $1=\$$1\$2
15476 fi # as_fn_append
15478 # as_fn_arith ARG...
15479 # ------------------
15480 # Perform arithmetic evaluation on the ARGs, and store the result in the
15481 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15482 # must be portable across $(()) and expr.
15483 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15484 eval 'as_fn_arith ()
15486 as_val=$(( $* ))
15488 else
15489 as_fn_arith ()
15491 as_val=`expr "$@" || test $? -eq 1`
15493 fi # as_fn_arith
15496 if expr a : '\(a\)' >/dev/null 2>&1 &&
15497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15498 as_expr=expr
15499 else
15500 as_expr=false
15503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15504 as_basename=basename
15505 else
15506 as_basename=false
15509 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15510 as_dirname=dirname
15511 else
15512 as_dirname=false
15515 as_me=`$as_basename -- "$0" ||
15516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15517 X"$0" : 'X\(//\)$' \| \
15518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15519 $as_echo X/"$0" |
15520 sed '/^.*\/\([^/][^/]*\)\/*$/{
15521 s//\1/
15524 /^X\/\(\/\/\)$/{
15525 s//\1/
15528 /^X\/\(\/\).*/{
15529 s//\1/
15532 s/.*/./; q'`
15534 # Avoid depending upon Character Ranges.
15535 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15536 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15537 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15538 as_cr_digits='0123456789'
15539 as_cr_alnum=$as_cr_Letters$as_cr_digits
15541 ECHO_C= ECHO_N= ECHO_T=
15542 case `echo -n x` in #(((((
15543 -n*)
15544 case `echo 'xy\c'` in
15545 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15546 xy) ECHO_C='\c';;
15547 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15548 ECHO_T=' ';;
15549 esac;;
15551 ECHO_N='-n';;
15552 esac
15554 rm -f conf$$ conf$$.exe conf$$.file
15555 if test -d conf$$.dir; then
15556 rm -f conf$$.dir/conf$$.file
15557 else
15558 rm -f conf$$.dir
15559 mkdir conf$$.dir 2>/dev/null
15561 if (echo >conf$$.file) 2>/dev/null; then
15562 if ln -s conf$$.file conf$$ 2>/dev/null; then
15563 as_ln_s='ln -s'
15564 # ... but there are two gotchas:
15565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15567 # In both cases, we have to default to `cp -p'.
15568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15569 as_ln_s='cp -p'
15570 elif ln conf$$.file conf$$ 2>/dev/null; then
15571 as_ln_s=ln
15572 else
15573 as_ln_s='cp -p'
15575 else
15576 as_ln_s='cp -p'
15578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15579 rmdir conf$$.dir 2>/dev/null
15582 # as_fn_mkdir_p
15583 # -------------
15584 # Create "$as_dir" as a directory, including parents if necessary.
15585 as_fn_mkdir_p ()
15588 case $as_dir in #(
15589 -*) as_dir=./$as_dir;;
15590 esac
15591 test -d "$as_dir" || eval $as_mkdir_p || {
15592 as_dirs=
15593 while :; do
15594 case $as_dir in #(
15595 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15596 *) as_qdir=$as_dir;;
15597 esac
15598 as_dirs="'$as_qdir' $as_dirs"
15599 as_dir=`$as_dirname -- "$as_dir" ||
15600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15601 X"$as_dir" : 'X\(//\)[^/]' \| \
15602 X"$as_dir" : 'X\(//\)$' \| \
15603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15604 $as_echo X"$as_dir" |
15605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15606 s//\1/
15609 /^X\(\/\/\)[^/].*/{
15610 s//\1/
15613 /^X\(\/\/\)$/{
15614 s//\1/
15617 /^X\(\/\).*/{
15618 s//\1/
15621 s/.*/./; q'`
15622 test -d "$as_dir" && break
15623 done
15624 test -z "$as_dirs" || eval "mkdir $as_dirs"
15625 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15628 } # as_fn_mkdir_p
15629 if mkdir -p . 2>/dev/null; then
15630 as_mkdir_p='mkdir -p "$as_dir"'
15631 else
15632 test -d ./-p && rmdir ./-p
15633 as_mkdir_p=false
15636 if test -x / >/dev/null 2>&1; then
15637 as_test_x='test -x'
15638 else
15639 if ls -dL / >/dev/null 2>&1; then
15640 as_ls_L_option=L
15641 else
15642 as_ls_L_option=
15644 as_test_x='
15645 eval sh -c '\''
15646 if test -d "$1"; then
15647 test -d "$1/.";
15648 else
15649 case $1 in #(
15650 -*)set "./$1";;
15651 esac;
15652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15653 ???[sx]*):;;*)false;;esac;fi
15654 '\'' sh
15657 as_executable_p=$as_test_x
15659 # Sed expression to map a string onto a valid CPP name.
15660 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15662 # Sed expression to map a string onto a valid variable name.
15663 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15666 exec 6>&1
15667 ## ----------------------------------- ##
15668 ## Main body of $CONFIG_STATUS script. ##
15669 ## ----------------------------------- ##
15670 _ASEOF
15671 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15674 # Save the log message, to keep $0 and so on meaningful, and to
15675 # report actual input values of CONFIG_FILES etc. instead of their
15676 # values after options handling.
15677 ac_log="
15678 This file was extended by $as_me, which was
15679 generated by GNU Autoconf 2.64. Invocation command line was
15681 CONFIG_FILES = $CONFIG_FILES
15682 CONFIG_HEADERS = $CONFIG_HEADERS
15683 CONFIG_LINKS = $CONFIG_LINKS
15684 CONFIG_COMMANDS = $CONFIG_COMMANDS
15685 $ $0 $@
15687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15690 _ACEOF
15692 case $ac_config_files in *"
15693 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15694 esac
15698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 # Files that config.status was made for.
15700 config_files="$ac_config_files"
15702 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 ac_cs_usage="\
15706 \`$as_me' instantiates files and other configuration actions
15707 from templates according to the current configuration. Unless the files
15708 and actions are specified as TAGs, all are instantiated by default.
15710 Usage: $0 [OPTION]... [TAG]...
15712 -h, --help print this help, then exit
15713 -V, --version print version number and configuration settings, then exit
15714 -q, --quiet, --silent
15715 do not print progress messages
15716 -d, --debug don't remove temporary files
15717 --recheck update $as_me by reconfiguring in the same conditions
15718 --file=FILE[:TEMPLATE]
15719 instantiate the configuration file FILE
15721 Configuration files:
15722 $config_files
15724 Report bugs to the package provider."
15726 _ACEOF
15727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 ac_cs_version="\\
15729 config.status
15730 configured by $0, generated by GNU Autoconf 2.64,
15731 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15733 Copyright (C) 2009 Free Software Foundation, Inc.
15734 This config.status script is free software; the Free Software Foundation
15735 gives unlimited permission to copy, distribute and modify it."
15737 ac_pwd='$ac_pwd'
15738 srcdir='$srcdir'
15739 INSTALL='$INSTALL'
15740 AWK='$AWK'
15741 test -n "\$AWK" || AWK=awk
15742 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 # The default lists apply if the user does not specify any file.
15746 ac_need_defaults=:
15747 while test $# != 0
15749 case $1 in
15750 --*=*)
15751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15753 ac_shift=:
15756 ac_option=$1
15757 ac_optarg=$2
15758 ac_shift=shift
15760 esac
15762 case $ac_option in
15763 # Handling of the options.
15764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15765 ac_cs_recheck=: ;;
15766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15767 $as_echo "$ac_cs_version"; exit ;;
15768 --debug | --debu | --deb | --de | --d | -d )
15769 debug=: ;;
15770 --file | --fil | --fi | --f )
15771 $ac_shift
15772 case $ac_optarg in
15773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15774 esac
15775 as_fn_append CONFIG_FILES " '$ac_optarg'"
15776 ac_need_defaults=false;;
15777 --he | --h | --help | --hel | -h )
15778 $as_echo "$ac_cs_usage"; exit ;;
15779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15781 ac_cs_silent=: ;;
15783 # This is an error.
15784 -*) as_fn_error "unrecognized option: \`$1'
15785 Try \`$0 --help' for more information." ;;
15787 *) as_fn_append ac_config_targets " $1"
15788 ac_need_defaults=false ;;
15790 esac
15791 shift
15792 done
15794 ac_configure_extra_args=
15796 if $ac_cs_silent; then
15797 exec 6>/dev/null
15798 ac_configure_extra_args="$ac_configure_extra_args --silent"
15801 _ACEOF
15802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803 if \$ac_cs_recheck; then
15804 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15805 shift
15806 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15807 CONFIG_SHELL='$SHELL'
15808 export CONFIG_SHELL
15809 exec "\$@"
15812 _ACEOF
15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15814 exec 5>>config.log
15816 echo
15817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15818 ## Running $as_me. ##
15819 _ASBOX
15820 $as_echo "$ac_log"
15821 } >&5
15823 _ACEOF
15824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 # INIT-COMMANDS
15828 extrasub_build="$extrasub_build"
15829 extrasub_host="$extrasub_host"
15830 extrasub_target="$extrasub_target"
15832 _ACEOF
15834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 # Handling of arguments.
15837 for ac_config_target in $ac_config_targets
15839 case $ac_config_target in
15840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15842 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15843 esac
15844 done
15847 # If the user did not use the arguments to specify the items to instantiate,
15848 # then the envvar interface is used. Set only those that are not.
15849 # We use the long form for the default assignment because of an extremely
15850 # bizarre bug on SunOS 4.1.3.
15851 if $ac_need_defaults; then
15852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15855 # Have a temporary directory for convenience. Make it in the build tree
15856 # simply because there is no reason against having it here, and in addition,
15857 # creating and moving files from /tmp can sometimes cause problems.
15858 # Hook for its removal unless debugging.
15859 # Note that there is a small window in which the directory will not be cleaned:
15860 # after its creation but before its name has been assigned to `$tmp'.
15861 $debug ||
15863 tmp=
15864 trap 'exit_status=$?
15865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15867 trap 'as_fn_exit 1' 1 2 13 15
15869 # Create a (secure) tmp directory for tmp files.
15872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15873 test -n "$tmp" && test -d "$tmp"
15874 } ||
15876 tmp=./conf$$-$RANDOM
15877 (umask 077 && mkdir "$tmp")
15878 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15880 # Set up the scripts for CONFIG_FILES section.
15881 # No need to generate them if there are no CONFIG_FILES.
15882 # This happens for instance with `./config.status config.h'.
15883 if test -n "$CONFIG_FILES"; then
15885 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15886 ac_cs_awk_getline=:
15887 ac_cs_awk_pipe_init=
15888 ac_cs_awk_read_file='
15889 while ((getline aline < (F[key])) > 0)
15890 print(aline)
15891 close(F[key])'
15892 ac_cs_awk_pipe_fini=
15893 else
15894 ac_cs_awk_getline=false
15895 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15896 ac_cs_awk_read_file='
15897 print "|#_!!_#|"
15898 print "cat " F[key] " &&"
15899 '$ac_cs_awk_pipe_init
15900 # The final `:' finishes the AND list.
15901 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15903 ac_cr=`echo X | tr X '\015'`
15904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15905 # But we know of no other shell where ac_cr would be empty at this
15906 # point, so we can use a bashism as a fallback.
15907 if test "x$ac_cr" = x; then
15908 eval ac_cr=\$\'\\r\'
15910 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15912 ac_cs_awk_cr='\r'
15913 else
15914 ac_cs_awk_cr=$ac_cr
15917 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15918 _ACEOF
15920 # Create commands to substitute file output variables.
15922 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15923 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15924 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15925 echo "_ACAWK" &&
15926 echo "_ACEOF"
15927 } >conf$$files.sh &&
15928 . ./conf$$files.sh ||
15929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15930 rm -f conf$$files.sh
15933 echo "cat >conf$$subs.awk <<_ACEOF" &&
15934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15935 echo "_ACEOF"
15936 } >conf$$subs.sh ||
15937 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15939 ac_delim='%!_!# '
15940 for ac_last_try in false false false false false :; do
15941 . ./conf$$subs.sh ||
15942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15945 if test $ac_delim_n = $ac_delim_num; then
15946 break
15947 elif $ac_last_try; then
15948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15949 else
15950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15952 done
15953 rm -f conf$$subs.sh
15955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15957 _ACEOF
15958 sed -n '
15960 s/^/S["/; s/!.*/"]=/
15963 s/^[^!]*!//
15964 :repl
15965 t repl
15966 s/'"$ac_delim"'$//
15967 t delim
15970 s/\(.\{148\}\).*/\1/
15971 t more1
15972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15975 b repl
15976 :more1
15977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15980 s/.\{148\}//
15981 t nl
15982 :delim
15984 s/\(.\{148\}\).*/\1/
15985 t more2
15986 s/["\\]/\\&/g; s/^/"/; s/$/"/
15989 :more2
15990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15993 s/.\{148\}//
15994 t delim
15995 ' <conf$$subs.awk | sed '
15996 /^[^""]/{
15998 s/\n//
16000 ' >>$CONFIG_STATUS || ac_write_fail=1
16001 rm -f conf$$subs.awk
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 _ACAWK
16004 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16005 for (key in S) S_is_set[key] = 1
16006 FS = "\a"
16007 \$ac_cs_awk_pipe_init
16010 line = $ 0
16011 nfields = split(line, field, "@")
16012 substed = 0
16013 len = length(field[1])
16014 for (i = 2; i < nfields; i++) {
16015 key = field[i]
16016 keylen = length(key)
16017 if (S_is_set[key]) {
16018 value = S[key]
16019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16020 len += length(value) + length(field[++i])
16021 substed = 1
16022 } else
16023 len += 1 + keylen
16025 if (nfields == 3 && !substed) {
16026 key = field[2]
16027 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16028 \$ac_cs_awk_read_file
16029 next
16032 print line
16034 \$ac_cs_awk_pipe_fini
16035 _ACAWK
16036 _ACEOF
16037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16040 else
16042 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16043 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16044 _ACEOF
16046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16048 # trailing colons and then remove the whole line if VPATH becomes empty
16049 # (actually we leave an empty line to preserve line numbers).
16050 if test "x$srcdir" = x.; then
16051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16052 s/:*\$(srcdir):*/:/
16053 s/:*\${srcdir}:*/:/
16054 s/:*@srcdir@:*/:/
16055 s/^\([^=]*=[ ]*\):*/\1/
16056 s/:*$//
16057 s/^[^=]*=[ ]*$//
16061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062 fi # test -n "$CONFIG_FILES"
16065 eval set X " :F $CONFIG_FILES "
16066 shift
16067 for ac_tag
16069 case $ac_tag in
16070 :[FHLC]) ac_mode=$ac_tag; continue;;
16071 esac
16072 case $ac_mode$ac_tag in
16073 :[FHL]*:*);;
16074 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16075 :[FH]-) ac_tag=-:-;;
16076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16077 esac
16078 ac_save_IFS=$IFS
16079 IFS=:
16080 set x $ac_tag
16081 IFS=$ac_save_IFS
16082 shift
16083 ac_file=$1
16084 shift
16086 case $ac_mode in
16087 :L) ac_source=$1;;
16088 :[FH])
16089 ac_file_inputs=
16090 for ac_f
16092 case $ac_f in
16093 -) ac_f="$tmp/stdin";;
16094 *) # Look for the file first in the build tree, then in the source tree
16095 # (if the path is not absolute). The absolute path cannot be DOS-style,
16096 # because $ac_f cannot contain `:'.
16097 test -f "$ac_f" ||
16098 case $ac_f in
16099 [\\/$]*) false;;
16100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16101 esac ||
16102 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16103 esac
16104 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16105 as_fn_append ac_file_inputs " '$ac_f'"
16106 done
16108 # Let's still pretend it is `configure' which instantiates (i.e., don't
16109 # use $as_me), people would be surprised to read:
16110 # /* config.h. Generated by config.status. */
16111 configure_input='Generated from '`
16112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16113 `' by configure.'
16114 if test x"$ac_file" != x-; then
16115 configure_input="$ac_file. $configure_input"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16117 $as_echo "$as_me: creating $ac_file" >&6;}
16119 # Neutralize special characters interpreted by sed in replacement strings.
16120 case $configure_input in #(
16121 *\&* | *\|* | *\\* )
16122 ac_sed_conf_input=`$as_echo "$configure_input" |
16123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16124 *) ac_sed_conf_input=$configure_input;;
16125 esac
16127 case $ac_tag in
16128 *:-:* | *:-) cat >"$tmp/stdin" \
16129 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16130 esac
16132 esac
16134 ac_dir=`$as_dirname -- "$ac_file" ||
16135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136 X"$ac_file" : 'X\(//\)[^/]' \| \
16137 X"$ac_file" : 'X\(//\)$' \| \
16138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X"$ac_file" |
16140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16141 s//\1/
16144 /^X\(\/\/\)[^/].*/{
16145 s//\1/
16148 /^X\(\/\/\)$/{
16149 s//\1/
16152 /^X\(\/\).*/{
16153 s//\1/
16156 s/.*/./; q'`
16157 as_dir="$ac_dir"; as_fn_mkdir_p
16158 ac_builddir=.
16160 case "$ac_dir" in
16161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16163 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16164 # A ".." for each directory in $ac_dir_suffix.
16165 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16166 case $ac_top_builddir_sub in
16167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16169 esac ;;
16170 esac
16171 ac_abs_top_builddir=$ac_pwd
16172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16173 # for backward compatibility:
16174 ac_top_builddir=$ac_top_build_prefix
16176 case $srcdir in
16177 .) # We are building in place.
16178 ac_srcdir=.
16179 ac_top_srcdir=$ac_top_builddir_sub
16180 ac_abs_top_srcdir=$ac_pwd ;;
16181 [\\/]* | ?:[\\/]* ) # Absolute name.
16182 ac_srcdir=$srcdir$ac_dir_suffix;
16183 ac_top_srcdir=$srcdir
16184 ac_abs_top_srcdir=$srcdir ;;
16185 *) # Relative name.
16186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16187 ac_top_srcdir=$ac_top_build_prefix$srcdir
16188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16189 esac
16190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16193 case $ac_mode in
16196 # CONFIG_FILE
16199 case $INSTALL in
16200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16202 esac
16203 _ACEOF
16205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16206 # If the template does not know about datarootdir, expand it.
16207 # FIXME: This hack should be removed a few years after 2.60.
16208 ac_datarootdir_hack=; ac_datarootdir_seen=
16209 ac_sed_dataroot='
16210 /datarootdir/ {
16214 /@datadir@/p
16215 /@docdir@/p
16216 /@infodir@/p
16217 /@localedir@/p
16218 /@mandir@/p'
16219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16220 *datarootdir*) ac_datarootdir_seen=yes;;
16221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16224 _ACEOF
16225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226 ac_datarootdir_hack='
16227 s&@datadir@&$datadir&g
16228 s&@docdir@&$docdir&g
16229 s&@infodir@&$infodir&g
16230 s&@localedir@&$localedir&g
16231 s&@mandir@&$mandir&g
16232 s&\\\${datarootdir}&$datarootdir&g' ;;
16233 esac
16234 _ACEOF
16236 # Neutralize VPATH when `$srcdir' = `.'.
16237 # Shell code in configure.ac might set extrasub.
16238 # FIXME: do we really want to maintain this feature?
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 ac_sed_extra="$ac_vpsub
16241 $extrasub
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16246 s|@configure_input@|$ac_sed_conf_input|;t t
16247 s&@top_builddir@&$ac_top_builddir_sub&;t t
16248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16249 s&@srcdir@&$ac_srcdir&;t t
16250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16251 s&@top_srcdir@&$ac_top_srcdir&;t t
16252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16253 s&@builddir@&$ac_builddir&;t t
16254 s&@abs_builddir@&$ac_abs_builddir&;t t
16255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16256 s&@INSTALL@&$ac_INSTALL&;t t
16257 $ac_datarootdir_hack
16259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16260 if $ac_cs_awk_getline; then
16261 $AWK -f "$tmp/subs.awk"
16262 else
16263 $AWK -f "$tmp/subs.awk" | $SHELL
16264 fi >$tmp/out \
16265 || as_fn_error "could not create $ac_file" "$LINENO" 5
16267 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16268 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16271 which seems to be undefined. Please make sure it is defined." >&5
16272 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16273 which seems to be undefined. Please make sure it is defined." >&2;}
16275 rm -f "$tmp/stdin"
16276 case $ac_file in
16277 -) cat "$tmp/out" && rm -f "$tmp/out";;
16278 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16279 esac \
16280 || as_fn_error "could not create $ac_file" "$LINENO" 5
16285 esac
16288 case $ac_file$ac_mode in
16289 "Makefile":F) sed "$extrasub_build" Makefile |
16290 sed "$extrasub_host" |
16291 sed "$extrasub_target" > mf$$
16292 mv -f mf$$ Makefile ;;
16294 esac
16295 done # for ac_tag
16298 as_fn_exit 0
16299 _ACEOF
16300 ac_clean_files=$ac_clean_files_save
16302 test $ac_write_fail = 0 ||
16303 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16306 # configure is writing to config.log, and then calls config.status.
16307 # config.status does its own redirection, appending to config.log.
16308 # Unfortunately, on DOS this fails, as config.log is still kept open
16309 # by configure, so config.status won't be able to write to it; its
16310 # output is simply discarded. So we exec the FD to /dev/null,
16311 # effectively closing config.log, so it can be properly (re)opened and
16312 # appended to by config.status. When coming back to configure, we
16313 # need to make the FD available again.
16314 if test "$no_create" != yes; then
16315 ac_cs_success=:
16316 ac_config_status_args=
16317 test "$silent" = yes &&
16318 ac_config_status_args="$ac_config_status_args --quiet"
16319 exec 5>/dev/null
16320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16321 exec 5>>config.log
16322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16323 # would make configure fail if this is the last instruction.
16324 $ac_cs_success || as_fn_exit $?
16326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}