OpenACC reductions: Don't skip the reduction variable's original value.
[official-gcc.git] / configure
blob9722633b753230762a1147a8e67e6d48304d0598
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 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 EXTRA_CONFIGARGS_LIBJAVA
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
683 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 enable_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_static_libjava
759 enable_bootstrap
760 with_mpc
761 with_mpc_include
762 with_mpc_lib
763 with_mpfr_dir
764 with_mpfr
765 with_mpfr_include
766 with_mpfr_lib
767 with_gmp_dir
768 with_gmp
769 with_gmp_include
770 with_gmp_lib
771 with_host_libstdcxx
772 with_stage1_libs
773 with_stage1_ldflags
774 with_boot_libs
775 with_boot_ldflags
776 with_cloog
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 with_cloog_include
782 with_cloog_lib
783 enable_cloog_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_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
809 CXXFLAGS
811 build_configargs
812 host_configargs
813 target_configargs
816 DLLTOOL
818 LIPO
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from LIST
1472 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1473 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1474 --disable-libquadmath do not build libquadmath directory
1475 --disable-libquadmath-support
1476 disable libquadmath support for Fortran
1477 --enable-libada build libada directory
1478 --enable-libssp build libssp directory
1479 --disable-libstdcxx do not build libstdc++-v3 directory
1480 --enable-static-libjava[=ARG]
1481 build static libjava [default=no]
1482 --enable-bootstrap enable bootstrapping [yes if native build]
1483 --disable-isl-version-check
1484 disable check for ISL version
1485 --disable-cloog-version-check
1486 disable check for CLooG version
1487 --enable-lto enable link time optimization support
1488 --enable-linker-plugin-configure-flags=FLAGS
1489 additional flags for configuring linker plugins
1490 [none]
1491 --enable-linker-plugin-flags=FLAGS
1492 additional flags for configuring and building linker
1493 plugins [none]
1494 --enable-stage1-languages[=all]
1495 choose additional languages to build during stage1.
1496 Mostly useful for compiler development
1497 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1498 Objective-C runtime
1499 --enable-vtable-verify Enable vtable verification feature
1500 --enable-serial-[{host,target,build}-]configure
1501 force sequential configuration of sub-packages for
1502 the host, target or build machine, or all
1503 sub-packages
1504 --enable-maintainer-mode
1505 enable make rules and dependencies not useful (and
1506 sometimes confusing) to the casual installer
1507 --enable-stage1-checking[=all]
1508 choose additional checking for stage1 of the
1509 compiler
1510 --enable-werror enable -Werror in bootstrap stage2 and later
1511 --enable-host-shared build host code as shared libraries
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-build-libsubdir=DIR Directory where to find libraries for build system
1517 --with-mpc=PATH specify prefix directory for installed MPC package.
1518 Equivalent to --with-mpc-include=PATH/include plus
1519 --with-mpc-lib=PATH/lib
1520 --with-mpc-include=PATH specify directory for installed MPC include files
1521 --with-mpc-lib=PATH specify directory for the installed MPC library
1522 --with-mpfr-dir=PATH this option has been REMOVED
1523 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1524 Equivalent to --with-mpfr-include=PATH/include plus
1525 --with-mpfr-lib=PATH/lib
1526 --with-mpfr-include=PATH
1527 specify directory for installed MPFR include files
1528 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1529 --with-gmp-dir=PATH this option has been REMOVED
1530 --with-gmp=PATH specify prefix directory for the installed GMP
1531 package. Equivalent to
1532 --with-gmp-include=PATH/include plus
1533 --with-gmp-lib=PATH/lib
1534 --with-gmp-include=PATH specify directory for installed GMP include files
1535 --with-gmp-lib=PATH specify directory for the installed GMP library
1536 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1537 linking with PPL
1538 --with-stage1-libs=LIBS libraries for stage1
1539 --with-stage1-ldflags=FLAGS
1540 linker flags for stage1
1541 --with-boot-libs=LIBS libraries for stage2 and later
1542 --with-boot-ldflags=FLAGS
1543 linker flags for stage2 and later
1544 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1545 package. Equivalent to
1546 --with-cloog-include=PATH/include plus
1547 --with-cloog-lib=PATH/lib
1548 --with-isl=PATH Specify prefix directory for the installed ISL
1549 package. Equivalent to
1550 --with-isl-include=PATH/include plus
1551 --with-isl-lib=PATH/lib
1552 --with-isl-include=PATH Specify directory for installed ISL include files
1553 --with-isl-lib=PATH Specify the directory for the installed ISL library
1554 --with-cloog-include=PATH
1555 Specify directory for installed CLooG include files
1556 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1557 library
1558 --with-build-sysroot=SYSROOT
1559 use sysroot as the system root during the build
1560 --with-debug-prefix-map='A=B C=D ...'
1561 map A to B, C to D ... in debug information
1562 --with-build-config='NAME NAME2...'
1563 use config/NAME.mk build configuration
1564 --with-build-time-tools=PATH
1565 use given path to find target tools during the build
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1577 build_configargs
1578 additional configure arguments for build directories
1579 host_configargs
1580 additional configure arguments for host directories
1581 target_configargs
1582 additional configure arguments for target directories
1583 AR AR for the host
1584 AS AS for the host
1585 DLLTOOL DLLTOOL for the host
1586 LD LD for the host
1587 LIPO LIPO for the host
1588 NM NM for the host
1589 RANLIB RANLIB for the host
1590 STRIP STRIP for the host
1591 WINDRES WINDRES for the host
1592 WINDMC WINDMC for the host
1593 OBJCOPY OBJCOPY for the host
1594 OBJDUMP OBJDUMP for the host
1595 READELF READELF for the host
1596 CC_FOR_TARGET
1597 CC for the target
1598 CXX_FOR_TARGET
1599 CXX for the target
1600 GCC_FOR_TARGET
1601 GCC for the target
1602 GCJ_FOR_TARGET
1603 GCJ for the target
1604 GFORTRAN_FOR_TARGET
1605 GFORTRAN for the target
1606 GOC_FOR_TARGET
1607 GOC for the target
1608 AR_FOR_TARGET
1609 AR for the target
1610 AS_FOR_TARGET
1611 AS for the target
1612 DLLTOOL_FOR_TARGET
1613 DLLTOOL for the target
1614 LD_FOR_TARGET
1615 LD for the target
1616 LIPO_FOR_TARGET
1617 LIPO for the target
1618 NM_FOR_TARGET
1619 NM for the target
1620 OBJDUMP_FOR_TARGET
1621 OBJDUMP for the target
1622 RANLIB_FOR_TARGET
1623 RANLIB for the target
1624 READELF_FOR_TARGET
1625 READELF for the target
1626 STRIP_FOR_TARGET
1627 STRIP for the target
1628 WINDRES_FOR_TARGET
1629 WINDRES for the target
1630 WINDMC_FOR_TARGET
1631 WINDMC for the target
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1636 Report bugs to the package provider.
1637 _ACEOF
1638 ac_status=$?
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
1647 ac_builddir=.
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1665 case $srcdir in
1666 .) # We are building in place.
1667 ac_srcdir=.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1689 else
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1693 done
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698 cat <<\_ACEOF
1699 configure
1700 generated by GNU Autoconf 2.64
1702 Copyright (C) 2009 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1705 _ACEOF
1706 exit
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=1
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1749 } # ac_fn_c_try_compile
1751 # ac_fn_cxx_try_compile LINENO
1752 # ----------------------------
1753 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_cxx_try_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext
1758 if { { ac_try="$ac_compile"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_compile") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_cxx_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest.$ac_objext; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=1
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1787 } # ac_fn_cxx_try_compile
1789 # ac_fn_cxx_try_link LINENO
1790 # -------------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_link ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 $as_test_x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 return $ac_retval
1833 } # ac_fn_cxx_try_link
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=1
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 return $ac_retval
1879 } # ac_fn_c_try_link
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1884 It was created by $as_me, which was
1885 generated by GNU Autoconf 2.64. Invocation command line was
1887 $ $0 $@
1889 _ACEOF
1890 exec 5>>config.log
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914 _ASUNAME
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1925 } >&5
1927 cat >&5 <<_ACEOF
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1934 _ACEOF
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1948 for ac_arg
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1977 as_fn_append ac_configure_args " '$ac_arg'"
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1993 echo
1995 cat <<\_ASBOX
1996 ## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##
1999 _ASBOX
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 esac |
2029 sort
2031 echo
2033 cat <<\_ASBOX
2034 ## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##
2037 _ASBOX
2038 echo
2039 for ac_var in $ac_subst_vars
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2049 if test -n "$ac_subst_files"; then
2050 cat <<\_ASBOX
2051 ## ------------------- ##
2052 ## File substitutions. ##
2053 ## ------------------- ##
2054 _ASBOX
2055 echo
2056 for ac_var in $ac_subst_files
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2067 if test -s confdefs.h; then
2068 cat <<\_ASBOX
2069 ## ----------- ##
2070 ## confdefs.h. ##
2071 ## ----------- ##
2072 _ASBOX
2073 echo
2074 cat confdefs.h
2075 echo
2077 test "$ac_signal" != 0 &&
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
2080 } >&5
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083 exit $exit_status
2085 for ac_signal in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 done
2088 ac_signal=0
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2093 $as_echo "/* confdefs.h */" > confdefs.h
2095 # Predefined preprocessor variables.
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2099 _ACEOF
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2103 _ACEOF
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2107 _ACEOF
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2111 _ACEOF
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2115 _ACEOF
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2119 _ACEOF
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2124 ac_site_file1=NONE
2125 ac_site_file2=NONE
2126 if test -n "$CONFIG_SITE"; then
2127 ac_site_file1=$CONFIG_SITE
2128 elif test "x$prefix" != xNONE; then
2129 ac_site_file1=$prefix/share/config.site
2130 ac_site_file2=$prefix/etc/config.site
2131 else
2132 ac_site_file1=$ac_default_prefix/share/config.site
2133 ac_site_file2=$ac_default_prefix/etc/config.site
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 test "x$ac_site_file" = xNONE && continue
2138 if test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2142 . "$ac_site_file"
2144 done
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special
2148 # files actually), so we avoid doing that.
2149 if test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238 progname=$0
2239 # if PWD already has a value, it is probably wrong.
2240 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242 # Export original configure arguments for use by sub-configures.
2243 # Quote arguments with shell meta charatcers.
2244 TOPLEVEL_CONFIGURE_ARGUMENTS=
2245 set -- "$progname" "$@"
2246 for ac_arg
2248 case "$ac_arg" in
2249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2251 # if the argument is of the form -foo=baz, quote the baz part only
2252 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2253 *) ;;
2254 esac
2255 # Add the quoted argument to the list.
2256 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2257 done
2258 if test "$silent" = yes; then
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261 # Remove the initial space we just introduced and, as these will be
2262 # expanded by make, quote '$'.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2266 # Find the build, host, and target systems.
2267 ac_aux_dir=
2268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2269 for ac_t in install-sh install.sh shtool; do
2270 if test -f "$ac_dir/$ac_t"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/$ac_t -c"
2273 break 2
2275 done
2276 done
2277 if test -z "$ac_aux_dir"; then
2278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290 # Make sure we can run config.sub.
2291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2295 $as_echo_n "checking build system type... " >&6; }
2296 if test "${ac_cv_build+set}" = set; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 ac_build_alias=$build_alias
2300 test "x$ac_build_alias" = x &&
2301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2302 test "x$ac_build_alias" = x &&
2303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2309 $as_echo "$ac_cv_build" >&6; }
2310 case $ac_cv_build in
2311 *-*-*) ;;
2312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2313 esac
2314 build=$ac_cv_build
2315 ac_save_IFS=$IFS; IFS='-'
2316 set x $ac_cv_build
2317 shift
2318 build_cpu=$1
2319 build_vendor=$2
2320 shift; shift
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2323 build_os=$*
2324 IFS=$ac_save_IFS
2325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2328 case ${build_alias} in
2329 "") build_noncanonical=${build} ;;
2330 *) build_noncanonical=${build_alias} ;;
2331 esac
2335 case ${host_alias} in
2336 "") host_noncanonical=${build_noncanonical} ;;
2337 *) host_noncanonical=${host_alias} ;;
2338 esac
2342 case ${target_alias} in
2343 "") target_noncanonical=${host_noncanonical} ;;
2344 *) target_noncanonical=${target_alias} ;;
2345 esac
2350 test "$host_noncanonical" = "$target_noncanonical" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_transform_name=s,y,y,
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2356 $as_echo_n "checking host system type... " >&6; }
2357 if test "${ac_cv_host+set}" = set; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test "x$host_alias" = x; then
2361 ac_cv_host=$ac_cv_build
2362 else
2363 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2364 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2369 $as_echo "$ac_cv_host" >&6; }
2370 case $ac_cv_host in
2371 *-*-*) ;;
2372 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2373 esac
2374 host=$ac_cv_host
2375 ac_save_IFS=$IFS; IFS='-'
2376 set x $ac_cv_host
2377 shift
2378 host_cpu=$1
2379 host_vendor=$2
2380 shift; shift
2381 # Remember, the first character of IFS is used to create $*,
2382 # except with old shells:
2383 host_os=$*
2384 IFS=$ac_save_IFS
2385 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2389 $as_echo_n "checking target system type... " >&6; }
2390 if test "${ac_cv_target+set}" = set; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 if test "x$target_alias" = x; then
2394 ac_cv_target=$ac_cv_host
2395 else
2396 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2397 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2402 $as_echo "$ac_cv_target" >&6; }
2403 case $ac_cv_target in
2404 *-*-*) ;;
2405 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2406 esac
2407 target=$ac_cv_target
2408 ac_save_IFS=$IFS; IFS='-'
2409 set x $ac_cv_target
2410 shift
2411 target_cpu=$1
2412 target_vendor=$2
2413 shift; shift
2414 # Remember, the first character of IFS is used to create $*,
2415 # except with old shells:
2416 target_os=$*
2417 IFS=$ac_save_IFS
2418 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2421 # The aliases save the names the user supplied, while $host etc.
2422 # will get canonicalized.
2423 test -n "$target_alias" &&
2424 test "$program_prefix$program_suffix$program_transform_name" = \
2425 NONENONEs,x,x, &&
2426 program_prefix=${target_alias}-
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440 # Get 'install' or 'install-sh' and its variants.
2441 # Find a good install program. We prefer a C program (faster),
2442 # so one script is as good as another. But avoid the broken or
2443 # incompatible versions:
2444 # SysV /etc/install, /usr/sbin/install
2445 # SunOS /usr/etc/install
2446 # IRIX /sbin/install
2447 # AIX /bin/install
2448 # AmigaOS /C/install, which installs bootblocks on floppy discs
2449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452 # OS/2's system install, which has a completely different semantic
2453 # ./install, which can be erroneously created by make from ./install.sh.
2454 # Reject install programs that cannot install multiple files.
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2457 if test -z "$INSTALL"; then
2458 if test "${ac_cv_path_install+set}" = set; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 # Account for people who put trailing slashes in PATH elements.
2467 case $as_dir/ in #((
2468 ./ | .// | /[cC]/* | \
2469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471 /usr/ucb/* ) ;;
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2475 # by default.
2476 for ac_prog in ginstall scoinst install; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2479 if test $ac_prog = install &&
2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2483 elif test $ac_prog = install &&
2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2487 else
2488 rm -rf conftest.one conftest.two conftest.dir
2489 echo one > conftest.one
2490 echo two > conftest.two
2491 mkdir conftest.dir
2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493 test -s conftest.one && test -s conftest.two &&
2494 test -s conftest.dir/conftest.one &&
2495 test -s conftest.dir/conftest.two
2496 then
2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498 break 3
2502 done
2503 done
2505 esac
2507 done
2508 IFS=$as_save_IFS
2510 rm -rf conftest.one conftest.two conftest.dir
2513 if test "${ac_cv_path_install+set}" = set; then
2514 INSTALL=$ac_cv_path_install
2515 else
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for INSTALL within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 INSTALL=$ac_install_sh
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524 $as_echo "$INSTALL" >&6; }
2526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527 # It thinks the first close brace ends the variable substitution.
2528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2535 $as_echo_n "checking whether ln works... " >&6; }
2536 if test "${acx_cv_prog_LN+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 rm -f conftestdata_t
2540 echo >conftestdata_f
2541 if ln conftestdata_f conftestdata_t 2>/dev/null
2542 then
2543 acx_cv_prog_LN=ln
2544 else
2545 acx_cv_prog_LN=no
2547 rm -f conftestdata_f conftestdata_t
2550 if test $acx_cv_prog_LN = no; then
2551 LN="cp"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2553 $as_echo "no, using $LN" >&6; }
2554 else
2555 LN="$acx_cv_prog_LN"
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2561 $as_echo_n "checking whether ln -s works... " >&6; }
2562 LN_S=$as_ln_s
2563 if test "$LN_S" = "ln -s"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2568 $as_echo "no, using $LN_S" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2572 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2573 if test "${ac_cv_path_SED+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2577 for ac_i in 1 2 3 4 5 6 7; do
2578 ac_script="$ac_script$as_nl$ac_script"
2579 done
2580 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2581 { ac_script=; unset ac_script;}
2582 if test -z "$SED"; then
2583 ac_path_SED_found=false
2584 # Loop through the user's path and test for each of PROGNAME-LIST
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_prog in sed gsed; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2593 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2594 # Check for GNU ac_path_SED and select it if it is found.
2595 # Check for GNU $ac_path_SED
2596 case `"$ac_path_SED" --version 2>&1` in
2597 *GNU*)
2598 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600 ac_count=0
2601 $as_echo_n 0123456789 >"conftest.in"
2602 while :
2604 cat "conftest.in" "conftest.in" >"conftest.tmp"
2605 mv "conftest.tmp" "conftest.in"
2606 cp "conftest.in" "conftest.nl"
2607 $as_echo '' >> "conftest.nl"
2608 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2610 as_fn_arith $ac_count + 1 && ac_count=$as_val
2611 if test $ac_count -gt ${ac_path_SED_max-0}; then
2612 # Best one so far, save it but keep looking for a better one
2613 ac_cv_path_SED="$ac_path_SED"
2614 ac_path_SED_max=$ac_count
2616 # 10*(2^10) chars as input seems more than enough
2617 test $ac_count -gt 10 && break
2618 done
2619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2620 esac
2622 $ac_path_SED_found && break 3
2623 done
2624 done
2625 done
2626 IFS=$as_save_IFS
2627 if test -z "$ac_cv_path_SED"; then
2628 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630 else
2631 ac_cv_path_SED=$SED
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2636 $as_echo "$ac_cv_path_SED" >&6; }
2637 SED="$ac_cv_path_SED"
2638 rm -f conftest.sed
2640 for ac_prog in gawk mawk nawk awk
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_AWK+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$AWK"; then
2650 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_AWK="$ac_prog"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2663 done
2664 done
2665 IFS=$as_save_IFS
2669 AWK=$ac_cv_prog_AWK
2670 if test -n "$AWK"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2672 $as_echo "$AWK" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2679 test -n "$AWK" && break
2680 done
2683 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2686 # a relative path.
2687 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2688 INSTALL="${srcpwd}/install-sh -c"
2691 # Set srcdir to "." if that's what it is.
2692 # This is important for multilib support.
2693 pwd=`${PWDCMD-pwd}`
2694 if test "${pwd}" = "${srcpwd}" ; then
2695 srcdir=.
2698 topsrcdir=$srcpwd
2700 extra_host_args=
2702 ### To add a new directory to the tree, first choose whether it is a target
2703 ### or a host dependent tool. Then put it into the appropriate list
2704 ### (library or tools, host or target), doing a dependency sort.
2706 # Subdirs will be configured in the order listed in build_configdirs,
2707 # configdirs, or target_configdirs; see the serialization section below.
2709 # Dependency sorting is only needed when *configuration* must be done in
2710 # a particular order. In all cases a dependency should be specified in
2711 # the Makefile, whether or not it's implicitly specified here.
2713 # Double entries in build_configdirs, configdirs, or target_configdirs may
2714 # cause circular dependencies and break everything horribly.
2716 # these library is used by various programs built for the build
2717 # environment
2719 build_libs="build-libiberty"
2721 # these tools are built for the build environment
2722 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724 # these libraries are used by various programs built for the host environment
2726 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2728 # these tools are built for the host environment
2729 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2730 # know that we are building the simulator.
2731 # binutils, gas and ld appear in that order because it makes sense to run
2732 # "make check" in that particular order.
2733 # If --enable-gold is used, "gold" may replace "ld".
2734 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2736 # libgcj represents the runtime libraries only used by gcj.
2737 libgcj="target-libffi \
2738 target-zlib \
2739 target-libjava"
2741 # these libraries are built for the target environment, and are built after
2742 # the host libraries and the host tools (which may be a cross compiler)
2743 # Note that libiberty is not a target library.
2744 target_libraries="target-libgcc \
2745 target-libbacktrace \
2746 target-libgloss \
2747 target-newlib \
2748 target-libgomp \
2749 target-libcilkrts \
2750 target-libatomic \
2751 target-libitm \
2752 target-libstdc++-v3 \
2753 target-libsanitizer \
2754 target-libvtv \
2755 target-libssp \
2756 target-libquadmath \
2757 target-libgfortran \
2758 target-boehm-gc \
2759 ${libgcj} \
2760 target-libobjc \
2761 target-libada \
2762 target-libgo"
2764 # these tools are built using the target libraries, and are intended to
2765 # run only in the target environment
2767 # note: any program that *uses* libraries that are in the "target_libraries"
2768 # list belongs in this list.
2770 target_tools="target-rda"
2772 ################################################################################
2774 ## All tools belong in one of the four categories, and are assigned above
2775 ## We assign ${configdirs} this way to remove all embedded newlines. This
2776 ## is important because configure will choke if they ever get through.
2777 ## ${configdirs} is directories we build using the host tools.
2778 ## ${target_configdirs} is directories we build using the target tools.
2779 configdirs=`echo ${host_libs} ${host_tools}`
2780 target_configdirs=`echo ${target_libraries} ${target_tools}`
2781 build_configdirs=`echo ${build_libs} ${build_tools}`
2785 ################################################################################
2787 srcname="gnu development package"
2789 # This gets set non-empty for some net releases of packages.
2790 appdirs=""
2792 # Define is_cross_compiler to save on calls to 'test'.
2793 is_cross_compiler=
2794 if test x"${host}" = x"${target}" ; then
2795 is_cross_compiler=no
2796 else
2797 is_cross_compiler=yes
2800 # Find the build and target subdir names.
2802 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2803 # have matching libraries, they should use host libraries: Makefile.tpl
2804 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2805 # However, they still use the build modules, because the corresponding
2806 # host modules (e.g. bison) are only built for the host when bootstrap
2807 # finishes. So:
2808 # - build_subdir is where we find build modules, and never changes.
2809 # - build_libsubdir is where we find build libraries, and can be overridden.
2811 # Prefix 'build-' so this never conflicts with target_subdir.
2812 build_subdir="build-${build_noncanonical}"
2814 # Check whether --with-build-libsubdir was given.
2815 if test "${with_build_libsubdir+set}" = set; then :
2816 withval=$with_build_libsubdir; build_libsubdir="$withval"
2817 else
2818 build_libsubdir="$build_subdir"
2821 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2822 if ( test $srcdir = . && test -d gcc ) \
2823 || test -d $srcdir/../host-${host_noncanonical}; then
2824 host_subdir="host-${host_noncanonical}"
2825 else
2826 host_subdir=.
2828 # No prefix.
2829 target_subdir=${target_noncanonical}
2831 # Be sure to cover against remnants of an in-tree build.
2832 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2833 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2834 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2837 # Skipdirs are removed silently.
2838 skipdirs=
2839 # Noconfigdirs are removed loudly.
2840 noconfigdirs=""
2842 use_gnu_ld=
2843 # Make sure we don't let GNU ld be added if we didn't want it.
2844 if test x$with_gnu_ld = xno ; then
2845 use_gnu_ld=no
2846 noconfigdirs="$noconfigdirs ld gold"
2849 use_gnu_as=
2850 # Make sure we don't let GNU as be added if we didn't want it.
2851 if test x$with_gnu_as = xno ; then
2852 use_gnu_as=no
2853 noconfigdirs="$noconfigdirs gas"
2856 use_included_zlib=
2857 # Make sure we don't let ZLIB be added if we didn't want it.
2858 if test x$with_system_zlib = xyes ; then
2859 use_included_zlib=no
2860 noconfigdirs="$noconfigdirs zlib"
2863 # some tools are so dependent upon X11 that if we're not building with X,
2864 # it's not even worth trying to configure, much less build, that tool.
2866 case ${with_x} in
2867 yes | "") ;; # the default value for this tree is that X11 is available
2869 skipdirs="${skipdirs} tk itcl libgui"
2870 # We won't be able to build gdbtk without X.
2871 enable_gdbtk=no
2873 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2874 esac
2876 # Some are only suitable for cross toolchains.
2877 # Remove these if host=target.
2878 cross_only="target-libgloss target-newlib target-opcodes"
2880 case $is_cross_compiler in
2881 no) skipdirs="${skipdirs} ${cross_only}" ;;
2882 esac
2884 # If both --with-headers and --with-libs are specified, default to
2885 # --without-newlib.
2886 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2887 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2888 if test x"${with_newlib}" = x ; then
2889 with_newlib=no
2893 # Recognize --with-newlib/--without-newlib.
2894 case ${with_newlib} in
2895 no) skipdirs="${skipdirs} target-newlib" ;;
2896 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2897 esac
2899 # Check whether --enable-offload-targets was given.
2900 if test "${enable_offload_targets+set}" = set; then :
2901 enableval=$enable_offload_targets;
2902 if test x"$enable_offload_targets" = x; then
2903 as_fn_error "no offload targets specified" "$LINENO" 5
2906 else
2907 enable_offload_targets=
2911 # Handle --enable-gold, --enable-ld.
2912 # --disable-gold [--enable-ld]
2913 # Build only ld. Default option.
2914 # --enable-gold [--enable-ld]
2915 # Build both gold and ld. Install gold as "ld.gold", install ld
2916 # as "ld.bfd" and "ld".
2917 # --enable-gold=default [--enable-ld]
2918 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2919 # install ld as "ld.bfd".
2920 # --enable-gold[=default] --disable-ld
2921 # Build only gold, which is then installed as both "ld.gold" and "ld".
2922 # --enable-gold --enable-ld=default
2923 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2924 # and ld.bfd).
2925 # In other words, ld is default
2926 # --enable-gold=default --enable-ld=default
2927 # Error.
2929 default_ld=
2930 # Check whether --enable-gold was given.
2931 if test "${enable_gold+set}" = set; then :
2932 enableval=$enable_gold; ENABLE_GOLD=$enableval
2933 else
2934 ENABLE_GOLD=no
2937 case "${ENABLE_GOLD}" in
2938 yes|default)
2939 # Check for ELF target.
2940 is_elf=no
2941 case "${target}" in
2942 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2943 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2944 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2945 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2946 case "${target}" in
2947 *-*-linux*aout* | *-*-linux*oldld*)
2950 is_elf=yes
2952 esac
2953 esac
2955 if test "$is_elf" = "yes"; then
2956 # Check for target supported by gold.
2957 case "${target}" in
2958 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2959 configdirs="$configdirs gold"
2960 if test x${ENABLE_GOLD} = xdefault; then
2961 default_ld=gold
2963 ENABLE_GOLD=yes
2965 esac
2971 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2973 esac
2975 # Check whether --enable-ld was given.
2976 if test "${enable_ld+set}" = set; then :
2977 enableval=$enable_ld; ENABLE_LD=$enableval
2978 else
2979 ENABLE_LD=yes
2983 case "${ENABLE_LD}" in
2984 default)
2985 if test x${default_ld} != x; then
2986 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2989 yes)
2992 if test x${ENABLE_GOLD} != xyes; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2994 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2996 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2999 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3001 esac
3003 # Configure extra directories which are host specific
3005 case "${host}" in
3006 *-cygwin*)
3007 configdirs="$configdirs libtermcap" ;;
3008 esac
3010 # A target can indicate whether a language isn't supported for some reason.
3011 # Only spaces may be used in this macro; not newlines or tabs.
3012 unsupported_languages=
3014 # Remove more programs from consideration, based on the host or
3015 # target this usually means that a port of the program doesn't
3016 # exist yet.
3018 case "${host}" in
3019 i[3456789]86-*-msdosdjgpp*)
3020 noconfigdirs="$noconfigdirs tcl tk itcl"
3022 esac
3025 # Check whether --enable-libquadmath was given.
3026 if test "${enable_libquadmath+set}" = set; then :
3027 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3028 else
3029 ENABLE_LIBQUADMATH=yes
3032 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3033 noconfigdirs="$noconfigdirs target-libquadmath"
3037 # Check whether --enable-libquadmath-support was given.
3038 if test "${enable_libquadmath_support+set}" = set; then :
3039 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3040 else
3041 ENABLE_LIBQUADMATH_SUPPORT=yes
3044 enable_libquadmath_support=
3045 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3046 enable_libquadmath_support=no
3050 # Check whether --enable-libada was given.
3051 if test "${enable_libada+set}" = set; then :
3052 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3053 else
3054 ENABLE_LIBADA=yes
3057 if test "${ENABLE_LIBADA}" != "yes" ; then
3058 noconfigdirs="$noconfigdirs gnattools"
3061 # Check whether --enable-libssp was given.
3062 if test "${enable_libssp+set}" = set; then :
3063 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3064 else
3065 ENABLE_LIBSSP=yes
3069 # Check whether --enable-libstdcxx was given.
3070 if test "${enable_libstdcxx+set}" = set; then :
3071 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3072 else
3073 ENABLE_LIBSTDCXX=default
3076 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3077 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3080 # Save it here so that, even in case of --enable-libgcj, if the Java
3081 # front-end isn't enabled, we still get libgcj disabled.
3082 libgcj_saved=$libgcj
3083 case $enable_libgcj in
3084 yes)
3085 # If we reset it here, it won't get added to noconfigdirs in the
3086 # target-specific build rules, so it will be forcibly enabled
3087 # (unless the Java language itself isn't enabled).
3088 libgcj=
3091 # Make sure we get it printed in the list of not supported target libs.
3092 # Don't disable libffi, though, other languages use it.
3093 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3094 # Clear libgcj_saved so that even if java is enabled libffi won't be
3095 # built.
3096 libgcj_saved=
3098 esac
3100 # Check whether --enable-static-libjava was given.
3101 if test "${enable_static_libjava+set}" = set; then :
3102 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3103 else
3104 ENABLE_STATIC_LIBJAVA=no
3107 enable_static_libjava=
3108 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3109 enable_static_libjava=yes
3112 if test x$enable_static_libjava != xyes ; then
3113 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3117 # Disable libgomp on non POSIX hosted systems.
3118 if test x$enable_libgomp = x ; then
3119 # Enable libgomp by default on hosted POSIX systems.
3120 case "${target}" in
3121 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3123 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3125 *-*-solaris2* | *-*-hpux11*)
3127 *-*-darwin* | *-*-aix*)
3130 noconfigdirs="$noconfigdirs target-libgomp"
3132 esac
3135 # Disable libatomic on unsupported systems.
3136 if test -d ${srcdir}/libatomic; then
3137 if test x$enable_libatomic = x; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3139 $as_echo_n "checking for libatomic support... " >&6; }
3140 if (srcdir=${srcdir}/libatomic; \
3141 . ${srcdir}/configure.tgt; \
3142 test -n "$UNSUPPORTED")
3143 then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 noconfigdirs="$noconfigdirs target-libatomic"
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149 $as_echo "yes" >&6; }
3154 # Disable libcilkrts on unsupported systems.
3155 if test -d ${srcdir}/libcilkrts; then
3156 if test x$enable_libcilkrts = x; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3158 $as_echo_n "checking for libcilkrts support... " >&6; }
3159 if (srcdir=${srcdir}/libcilkrts; \
3160 . ${srcdir}/configure.tgt; \
3161 test -n "$UNSUPPORTED")
3162 then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 noconfigdirs="$noconfigdirs target-libcilkrts"
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168 $as_echo "yes" >&6; }
3173 # Disable libitm on unsupported systems.
3174 if test -d ${srcdir}/libitm; then
3175 if test x$enable_libitm = x; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3177 $as_echo_n "checking for libitm support... " >&6; }
3178 if (srcdir=${srcdir}/libitm; \
3179 . ${srcdir}/configure.tgt; \
3180 test -n "$UNSUPPORTED")
3181 then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 noconfigdirs="$noconfigdirs target-libitm"
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3192 # Disable libsanitizer on unsupported systems.
3193 if test -d ${srcdir}/libsanitizer; then
3194 if test x$enable_libsanitizer = x; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3196 $as_echo_n "checking for libsanitizer support... " >&6; }
3197 if (srcdir=${srcdir}/libsanitizer; \
3198 . ${srcdir}/configure.tgt; \
3199 test -n "$UNSUPPORTED")
3200 then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 noconfigdirs="$noconfigdirs target-libsanitizer"
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3211 # Disable libvtv on unsupported systems.
3212 if test -d ${srcdir}/libvtv; then
3213 if test x$enable_libvtv = x; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3215 $as_echo_n "checking for libvtv support... " >&6; }
3216 if (srcdir=${srcdir}/libvtv; \
3217 . ${srcdir}/configure.tgt; \
3218 test "$VTV_SUPPORTED" != "yes")
3219 then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 noconfigdirs="$noconfigdirs target-libvtv"
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3230 # Disable libquadmath for some systems.
3231 case "${target}" in
3232 avr-*-*)
3233 noconfigdirs="$noconfigdirs target-libquadmath"
3235 # libquadmath is unused on AIX and libquadmath build process use of
3236 # LD_LIBRARY_PATH can break AIX bootstrap.
3237 powerpc-*-aix* | rs6000-*-aix*)
3238 noconfigdirs="$noconfigdirs target-libquadmath"
3240 esac
3242 # Disable libssp for some systems.
3243 case "${target}" in
3244 avr-*-*)
3245 # No hosted I/O support.
3246 noconfigdirs="$noconfigdirs target-libssp"
3248 powerpc-*-aix* | rs6000-*-aix*)
3249 noconfigdirs="$noconfigdirs target-libssp"
3251 rl78-*-*)
3252 # libssp uses a misaligned load to trigger a fault, but the RL78
3253 # doesn't fault for those - instead, it gives a build-time error
3254 # for explicit misaligned loads.
3255 noconfigdirs="$noconfigdirs target-libssp"
3257 esac
3259 # Disable libstdc++-v3 for some systems.
3260 # Allow user to override this if they pass --enable-libstdc++-v3
3261 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3262 case "${target}" in
3263 *-*-vxworks*)
3264 # VxWorks uses the Dinkumware C++ library.
3265 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3267 arm*-wince-pe*)
3268 # the C++ libraries don't build on top of CE's C libraries
3269 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3271 avr-*-*)
3272 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3274 esac
3277 # Disable Fortran for some systems.
3278 case "${target}" in
3279 mmix-*-*)
3280 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3281 unsupported_languages="$unsupported_languages fortran"
3283 esac
3285 # Disable Java if libffi is not supported.
3286 case "${target}" in
3287 aarch64-*-*)
3289 alpha*-*-*)
3291 arm*-*-*)
3293 cris-*-*)
3295 frv-*-*)
3297 hppa*-*-linux*)
3299 hppa*-*-hpux*)
3301 i?86-*-*)
3303 ia64*-*-*)
3305 m32r*-*-*)
3307 m68k-*-*)
3309 mips*-*-rtems*)
3311 mips*-*-linux*)
3313 powerpc*-*-linux*)
3315 powerpc-*-darwin*)
3317 powerpc-*-aix* | rs6000-*-aix*)
3319 powerpc-*-freebsd*)
3321 powerpc64-*-freebsd*)
3323 powerpc*-*-rtems*)
3325 s390-*-* | s390x-*-*)
3327 sh-*-* | sh[34]*-*-*)
3329 sh64-*-* | sh5*-*-*)
3331 sparc*-*-*)
3333 x86_64-*-*)
3335 *-*-*)
3336 unsupported_languages="$unsupported_languages java"
3338 esac
3340 # Disable Java, libgcj or related libraries for some systems.
3341 case "${target}" in
3342 powerpc-*-darwin*)
3344 i[3456789]86-*-darwin*)
3346 x86_64-*-darwin[912]*)
3348 *-*-darwin*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3351 *-*-netware*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3354 *-*-rtems*)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3357 *-*-tpf*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3360 *-*-uclinux*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3363 *-*-vxworks*)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3366 alpha*-*-*vms*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3369 arm-wince-pe)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3372 arm*-*-symbianelf*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3375 bfin-*-*)
3376 noconfigdirs="$noconfigdirs target-boehm-gc"
3378 cris-*-* | crisv32-*-*)
3379 unsupported_languages="$unsupported_languages java"
3380 case "${target}" in
3381 *-*-linux*)
3383 *) # See PR46792 regarding target-libffi.
3384 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3385 esac
3387 hppa*64*-*-linux*)
3388 # In this case, it's because the hppa64-linux target is for
3389 # the kernel only at this point and has no libc, and thus no
3390 # headers, crt*.o, etc., all of which are needed by these.
3391 unsupported_languages="$unsupported_languages java"
3393 hppa*64*-*-hpux*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3396 hppa*-hp-hpux11*)
3398 hppa*-*-hpux*)
3399 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3400 # build on HP-UX 10.20.
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3403 ia64*-*-*vms*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3406 i[3456789]86-w64-mingw*)
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3409 i[3456789]86-*-mingw*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3412 x86_64-*-mingw*)
3413 noconfigdirs="$noconfigdirs ${libgcj}"
3415 mmix-*-*)
3416 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3418 powerpc-*-aix*)
3419 # copied from rs6000-*-* entry
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3422 rs6000-*-aix*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3425 *-*-lynxos*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3428 esac
3430 # Disable libgo for some systems where it is known to not work.
3431 # For testing, you can easily override this with --enable-libgo.
3432 if test x$enable_libgo = x; then
3433 case "${target}" in
3434 *-*-darwin*)
3435 # PR 46986
3436 noconfigdirs="$noconfigdirs target-libgo"
3438 *-*-cygwin* | *-*-mingw*)
3439 noconfigdirs="$noconfigdirs target-libgo"
3441 *-*-aix*)
3442 noconfigdirs="$noconfigdirs target-libgo"
3444 esac
3447 # Default libgloss CPU subdirectory.
3448 libgloss_dir="$target_cpu"
3450 case "${target}" in
3451 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3452 libgloss_dir=wince
3454 aarch64*-*-* )
3455 libgloss_dir=aarch64
3457 arm*-*-*)
3458 libgloss_dir=arm
3460 cris-*-* | crisv32-*-*)
3461 libgloss_dir=cris
3463 hppa*-*-*)
3464 libgloss_dir=pa
3466 i[3456789]86-*-*)
3467 libgloss_dir=i386
3469 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3470 libgloss_dir=m68hc11
3472 m68*-*-* | fido-*-*)
3473 libgloss_dir=m68k
3475 mips*-*-*)
3476 libgloss_dir=mips
3478 powerpc*-*-*)
3479 libgloss_dir=rs6000
3481 sparc*-*-*)
3482 libgloss_dir=sparc
3484 esac
3486 # Disable newlib and libgloss for various target OSes.
3487 case "${target}" in
3488 alpha*-dec-osf*)
3489 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 i[3456789]86-*-linux*)
3492 # This section makes it possible to build newlib natively on linux.
3493 # If we are using a cross compiler then don't configure newlib.
3494 if test x${is_cross_compiler} != xno ; then
3495 noconfigdirs="$noconfigdirs target-newlib"
3497 noconfigdirs="$noconfigdirs target-libgloss"
3498 # If we are not using a cross compiler, do configure newlib.
3499 # Note however, that newlib will only be configured in this situation
3500 # if the --with-newlib option has been given, because otherwise
3501 # 'target-newlib' will appear in skipdirs.
3503 i[3456789]86-*-rdos*)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3509 sparc-*-sunos4*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 *-*-aix*)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 *-*-beos*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 *-*-chorusos)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 *-*-dragonfly*)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 *-*-freebsd*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 *-*-lynxos*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 *-*-mingw*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 *-*-netbsd*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-netware*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-tpf*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-uclinux*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-vxworks*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 esac
3553 case "${target}" in
3554 *-*-chorusos)
3556 powerpc-*-darwin*)
3557 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3558 noconfigdirs="$noconfigdirs sim target-rda"
3560 i[3456789]86-*-darwin*)
3561 noconfigdirs="$noconfigdirs ld gprof"
3562 noconfigdirs="$noconfigdirs sim target-rda"
3564 x86_64-*-darwin[912]*)
3565 noconfigdirs="$noconfigdirs ld gas gprof"
3566 noconfigdirs="$noconfigdirs sim target-rda"
3568 *-*-darwin*)
3569 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3570 noconfigdirs="$noconfigdirs sim target-rda"
3572 *-*-dragonfly*)
3574 *-*-freebsd*)
3575 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3576 && test -f /usr/local/include/gmp.h; then
3577 with_gmp=/usr/local
3580 *-*-kaos*)
3581 # Remove unsupported stuff on all kaOS configurations.
3582 noconfigdirs="$noconfigdirs target-libgloss"
3584 *-*-netbsd*)
3586 *-*-netware*)
3588 *-*-rtems*)
3589 noconfigdirs="$noconfigdirs target-libgloss"
3591 # The tpf target doesn't support gdb yet.
3592 *-*-tpf*)
3593 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3595 *-*-uclinux*)
3596 noconfigdirs="$noconfigdirs target-rda"
3598 *-*-vxworks*)
3600 alpha*-dec-osf*)
3601 # ld works, but does not support shared libraries.
3602 # gas doesn't generate exception information.
3603 noconfigdirs="$noconfigdirs gas ld"
3605 alpha*-*-*vms*)
3606 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3608 alpha*-*-*)
3609 # newlib is not 64 bit ready
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3613 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3615 arc-*-*|arceb-*-*)
3616 noconfigdirs="$noconfigdirs target-libgloss"
3618 arm-*-pe*)
3619 noconfigdirs="$noconfigdirs target-libgloss"
3621 arm-*-riscix*)
3622 noconfigdirs="$noconfigdirs ld target-libgloss"
3624 avr-*-rtems*)
3626 avr-*-*)
3627 if test x${with_avrlibc} != xno; then
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 c4x-*-* | tic4x-*-*)
3632 noconfigdirs="$noconfigdirs target-libgloss"
3634 tic54x-*-*)
3635 noconfigdirs="$noconfigdirs target-libgloss gdb"
3637 d10v-*-*)
3638 noconfigdirs="$noconfigdirs target-libgloss"
3640 d30v-*-*)
3641 noconfigdirs="$noconfigdirs gdb"
3643 fr30-*-elf*)
3644 noconfigdirs="$noconfigdirs gdb"
3646 moxie-*-*)
3647 noconfigdirs="$noconfigdirs gprof"
3649 h8300*-*-*)
3650 noconfigdirs="$noconfigdirs target-libgloss"
3652 h8500-*-*)
3653 noconfigdirs="$noconfigdirs target-libgloss"
3655 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3657 hppa*64*-*-linux*)
3659 hppa*-*-linux*)
3661 hppa*-*-*elf* | \
3662 hppa*-*-lites* | \
3663 hppa*-*-openbsd* | \
3664 hppa*64*-*-*)
3666 hppa*-hp-hpux11*)
3667 noconfigdirs="$noconfigdirs ld"
3669 hppa*-*-pro*)
3671 hppa*-*-*)
3672 noconfigdirs="$noconfigdirs ld"
3674 i960-*-*)
3675 noconfigdirs="$noconfigdirs gdb"
3677 ia64*-*-elf*)
3678 # No gdb support yet.
3679 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3681 ia64*-**-hpux*)
3682 # No ld support yet.
3683 noconfigdirs="$noconfigdirs libgui itcl ld"
3685 ia64*-*-*vms*)
3686 # No ld support yet.
3687 noconfigdirs="$noconfigdirs libgui itcl ld"
3689 i[3456789]86-w64-mingw*)
3691 i[3456789]86-*-mingw*)
3692 target_configdirs="$target_configdirs target-winsup"
3694 *-*-cygwin*)
3695 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3696 noconfigdirs="$noconfigdirs target-libgloss"
3697 # always build newlib if winsup directory is present.
3698 if test -d "$srcdir/winsup/cygwin"; then
3699 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3700 elif test -d "$srcdir/newlib"; then
3701 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3704 i[3456789]86-*-pe)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3707 i[3456789]86-*-sco3.2v5*)
3708 # The linker does not yet know about weak symbols in COFF,
3709 # and is not configured to handle mixed ELF and COFF.
3710 noconfigdirs="$noconfigdirs ld target-libgloss"
3712 i[3456789]86-*-sco*)
3713 noconfigdirs="$noconfigdirs gprof target-libgloss"
3715 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3716 noconfigdirs="$noconfigdirs target-libgloss"
3718 i[3456789]86-*-sysv4*)
3719 noconfigdirs="$noconfigdirs target-libgloss"
3721 i[3456789]86-*-beos*)
3722 noconfigdirs="$noconfigdirs gdb"
3724 i[3456789]86-*-rdos*)
3725 noconfigdirs="$noconfigdirs gdb"
3727 mmix-*-*)
3728 noconfigdirs="$noconfigdirs gdb"
3730 mt-*-*)
3731 noconfigdirs="$noconfigdirs sim"
3733 powerpc-*-aix*)
3734 # copied from rs6000-*-* entry
3735 noconfigdirs="$noconfigdirs gprof"
3737 powerpc*-*-winnt* | powerpc*-*-pe*)
3738 target_configdirs="$target_configdirs target-winsup"
3739 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3740 # always build newlib.
3741 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3743 # This is temporary until we can link against shared libraries
3744 powerpcle-*-solaris*)
3745 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3747 powerpc-*-beos*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 rs6000-*-lynxos*)
3751 noconfigdirs="$noconfigdirs gprof"
3753 rs6000-*-aix*)
3754 noconfigdirs="$noconfigdirs gprof"
3756 rs6000-*-*)
3757 noconfigdirs="$noconfigdirs gprof"
3759 m68k-apollo-*)
3760 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3762 microblaze*)
3763 noconfigdirs="$noconfigdirs gprof"
3765 mips*-sde-elf* | mips*-mti-elf*)
3766 if test x$with_newlib = xyes; then
3767 noconfigdirs="$noconfigdirs gprof"
3770 mips*-*-irix5*)
3771 noconfigdirs="$noconfigdirs gprof target-libgloss"
3773 mips*-*-irix6*)
3774 noconfigdirs="$noconfigdirs gprof target-libgloss"
3776 mips*-*-bsd*)
3777 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3779 mips*-*-linux*)
3781 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3782 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3783 noconfigdirs="$noconfigdirs ld gas gprof"
3785 mips*-*-*)
3786 noconfigdirs="$noconfigdirs gprof"
3788 sh-*-* | sh64-*-*)
3789 case "${target}" in
3790 sh*-*-elf)
3793 noconfigdirs="$noconfigdirs target-libgloss" ;;
3794 esac
3796 sparc-*-sunos4*)
3797 if test x${is_cross_compiler} = xno ; then
3798 use_gnu_ld=no
3801 tic6x-*-*)
3802 noconfigdirs="$noconfigdirs sim"
3804 tilepro*-*-* | tilegx*-*-*)
3805 noconfigdirs="$noconfigdirs sim"
3807 v810-*-*)
3808 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3810 vax-*-*)
3811 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3813 esac
3815 # If we aren't building newlib, then don't build libgloss, since libgloss
3816 # depends upon some newlib header files.
3817 case "${noconfigdirs}" in
3818 *target-libgloss*) ;;
3819 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3820 esac
3822 # Work in distributions that contain no compiler tools, like Autoconf.
3823 host_makefile_frag=/dev/null
3824 if test -d ${srcdir}/config ; then
3825 case "${host}" in
3826 i[3456789]86-*-msdosdjgpp*)
3827 host_makefile_frag="config/mh-djgpp"
3829 *-cygwin*)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3832 $as_echo_n "checking to see if cat works as expected... " >&6; }
3833 echo a >cygwin-cat-check
3834 if test `cat cygwin-cat-check` = a ; then
3835 rm cygwin-cat-check
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3838 else
3839 rm cygwin-cat-check
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 as_fn_error "The cat command does not ignore carriage return characters.
3843 Please either mount the build directory in binary mode or run the following
3844 commands before running any configure script:
3845 set -o igncr
3846 export SHELLOPTS
3847 " "$LINENO" 5
3850 host_makefile_frag="config/mh-cygwin"
3852 *-mingw*)
3853 host_makefile_frag="config/mh-mingw"
3855 alpha*-*-linux*)
3856 host_makefile_frag="config/mh-alpha-linux"
3858 hppa*-hp-hpux10*)
3859 host_makefile_frag="config/mh-pa-hpux10"
3861 hppa*-hp-hpux*)
3862 host_makefile_frag="config/mh-pa"
3864 hppa*-*)
3865 host_makefile_frag="config/mh-pa"
3867 *-*-darwin*)
3868 host_makefile_frag="config/mh-darwin"
3870 powerpc-*-aix*)
3871 host_makefile_frag="config/mh-ppc-aix"
3873 rs6000-*-aix*)
3874 host_makefile_frag="config/mh-ppc-aix"
3876 esac
3879 if test "${build}" != "${host}" ; then
3880 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3881 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3882 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3883 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3884 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3885 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3886 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3887 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3888 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3889 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3890 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3891 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3892 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3893 else
3894 AR_FOR_BUILD="\$(AR)"
3895 AS_FOR_BUILD="\$(AS)"
3896 CC_FOR_BUILD="\$(CC)"
3897 CXX_FOR_BUILD="\$(CXX)"
3898 GCJ_FOR_BUILD="\$(GCJ)"
3899 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3900 GOC_FOR_BUILD="\$(GOC)"
3901 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3902 LD_FOR_BUILD="\$(LD)"
3903 NM_FOR_BUILD="\$(NM)"
3904 RANLIB_FOR_BUILD="\$(RANLIB)"
3905 WINDRES_FOR_BUILD="\$(WINDRES)"
3906 WINDMC_FOR_BUILD="\$(WINDMC)"
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3936 done
3937 done
3938 IFS=$as_save_IFS
3942 CC=$ac_cv_prog_CC
3943 if test -n "$CC"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945 $as_echo "$CC" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3953 if test -z "$ac_cv_prog_CC"; then
3954 ac_ct_CC=$CC
3955 # Extract the first word of "gcc", so it can be a program name with args.
3956 set dummy gcc; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_ac_ct_CC="gcc"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3976 done
3977 done
3978 IFS=$as_save_IFS
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3991 if test "x$ac_ct_CC" = x; then
3992 CC=""
3993 else
3994 case $cross_compiling:$ac_tool_warned in
3995 yes:)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998 ac_tool_warned=yes ;;
3999 esac
4000 CC=$ac_ct_CC
4002 else
4003 CC="$ac_cv_prog_CC"
4006 if test -z "$CC"; then
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}cc; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$CC"; then
4016 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_CC="${ac_tool_prefix}cc"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4031 IFS=$as_save_IFS
4035 CC=$ac_cv_prog_CC
4036 if test -n "$CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038 $as_echo "$CC" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4047 if test -z "$CC"; then
4048 # Extract the first word of "cc", so it can be a program name with args.
4049 set dummy cc; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_CC+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4057 else
4058 ac_prog_rejected=no
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067 ac_prog_rejected=yes
4068 continue
4070 ac_cv_prog_CC="cc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4078 if test $ac_prog_rejected = yes; then
4079 # We found a bogon in the path, so make sure we never use it.
4080 set dummy $ac_cv_prog_CC
4081 shift
4082 if test $# != 0; then
4083 # We chose a different compiler from the bogus one.
4084 # However, it has the same basename, so the bogon will be chosen
4085 # first if we set CC to just the basename; use the full file name.
4086 shift
4087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4092 CC=$ac_cv_prog_CC
4093 if test -n "$CC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095 $as_echo "$CC" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4103 if test -z "$CC"; then
4104 if test -n "$ac_tool_prefix"; then
4105 for ac_prog in cl.exe
4107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_CC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$CC"; then
4115 ac_cv_prog_CC="$CC" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4128 done
4129 done
4130 IFS=$as_save_IFS
4134 CC=$ac_cv_prog_CC
4135 if test -n "$CC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137 $as_echo "$CC" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4144 test -n "$CC" && break
4145 done
4147 if test -z "$CC"; then
4148 ac_ct_CC=$CC
4149 for ac_prog in cl.exe
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152 set dummy $ac_prog; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_ac_ct_CC="$ac_prog"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4174 IFS=$as_save_IFS
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181 $as_echo "$ac_ct_CC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4188 test -n "$ac_ct_CC" && break
4189 done
4191 if test "x$ac_ct_CC" = x; then
4192 CC=""
4193 else
4194 case $cross_compiling:$ac_tool_warned in
4195 yes:)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198 ac_tool_warned=yes ;;
4199 esac
4200 CC=$ac_ct_CC
4207 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "no acceptable C compiler found in \$PATH
4210 See \`config.log' for more details." "$LINENO" 5; }
4212 # Provide some information about the compiler.
4213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4214 set X $ac_compile
4215 ac_compiler=$2
4216 for ac_option in --version -v -V -qversion; do
4217 { { ac_try="$ac_compiler $ac_option >&5"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4225 ac_status=$?
4226 if test -s conftest.err; then
4227 sed '10a\
4228 ... rest of stderr output deleted ...
4229 10q' conftest.err >conftest.er1
4230 cat conftest.er1 >&5
4231 rm -f conftest.er1 conftest.err
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4235 done
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4241 main ()
4245 return 0;
4247 _ACEOF
4248 ac_clean_files_save=$ac_clean_files
4249 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4250 # Try to create an executable without -o first, disregard a.out.
4251 # It will help us diagnose broken compilers, and finding out an intuition
4252 # of exeext.
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4254 $as_echo_n "checking for C compiler default output file name... " >&6; }
4255 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4257 # The possible output files:
4258 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4260 ac_rmfiles=
4261 for ac_file in $ac_files
4263 case $ac_file in
4264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4265 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4266 esac
4267 done
4268 rm -f $ac_rmfiles
4270 if { { ac_try="$ac_link_default"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 $as_echo "$ac_try_echo"; } >&5
4277 (eval "$ac_link_default") 2>&5
4278 ac_status=$?
4279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }; then :
4281 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4283 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4284 # so that the user can short-circuit this test for compilers unknown to
4285 # Autoconf.
4286 for ac_file in $ac_files ''
4288 test -f "$ac_file" || continue
4289 case $ac_file in
4290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4292 [ab].out )
4293 # We found the default executable, but exeext='' is most
4294 # certainly right.
4295 break;;
4296 *.* )
4297 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4298 then :; else
4299 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4301 # We set ac_cv_exeext here because the later test for it is not
4302 # safe: cross compilers may not add the suffix if given an `-o'
4303 # argument, so we may need to know it at that point already.
4304 # Even if this section looks crufty: it has the advantage of
4305 # actually working.
4306 break;;
4308 break;;
4309 esac
4310 done
4311 test "$ac_cv_exeext" = no && ac_cv_exeext=
4313 else
4314 ac_file=''
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4317 $as_echo "$ac_file" >&6; }
4318 if test -z "$ac_file"; then :
4319 $as_echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324 { as_fn_set_status 77
4325 as_fn_error "C compiler cannot create executables
4326 See \`config.log' for more details." "$LINENO" 5; }; }
4328 ac_exeext=$ac_cv_exeext
4330 # Check that the compiler produces executables we can run. If not, either
4331 # the compiler is broken, or we cross compile.
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4333 $as_echo_n "checking whether the C compiler works... " >&6; }
4334 # If not cross compiling, check that we can run a simple program.
4335 if test "$cross_compiling" != yes; then
4336 if { ac_try='./$ac_file'
4337 { { case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }; }; then
4347 cross_compiling=no
4348 else
4349 if test "$cross_compiling" = maybe; then
4350 cross_compiling=yes
4351 else
4352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error "cannot run C compiled programs.
4355 If you meant to cross compile, use \`--host'.
4356 See \`config.log' for more details." "$LINENO" 5; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 $as_echo "yes" >&6; }
4363 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4364 ac_clean_files=$ac_clean_files_save
4365 # Check that the compiler produces executables we can run. If not, either
4366 # the compiler is broken, or we cross compile.
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4368 $as_echo_n "checking whether we are cross compiling... " >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4370 $as_echo "$cross_compiling" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4373 $as_echo_n "checking for suffix of executables... " >&6; }
4374 if { { ac_try="$ac_link"
4375 case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_link") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; }; then :
4385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4386 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4387 # work properly (i.e., refer to `conftest.exe'), while it won't with
4388 # `rm'.
4389 for ac_file in conftest.exe conftest conftest.*; do
4390 test -f "$ac_file" || continue
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4394 break;;
4395 * ) break;;
4396 esac
4397 done
4398 else
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error "cannot compute suffix of executables: cannot compile and link
4402 See \`config.log' for more details." "$LINENO" 5; }
4404 rm -f conftest$ac_cv_exeext
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4406 $as_echo "$ac_cv_exeext" >&6; }
4408 rm -f conftest.$ac_ext
4409 EXEEXT=$ac_cv_exeext
4410 ac_exeext=$EXEEXT
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4412 $as_echo_n "checking for suffix of object files... " >&6; }
4413 if test "${ac_cv_objext+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4420 main ()
4424 return 0;
4426 _ACEOF
4427 rm -f conftest.o conftest.obj
4428 if { { ac_try="$ac_compile"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_compile") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; then :
4439 for ac_file in conftest.o conftest.obj conftest.*; do
4440 test -f "$ac_file" || continue;
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4444 break;;
4445 esac
4446 done
4447 else
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error "cannot compute suffix of object files: cannot compile
4454 See \`config.log' for more details." "$LINENO" 5; }
4456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4459 $as_echo "$ac_cv_objext" >&6; }
4460 OBJEXT=$ac_cv_objext
4461 ac_objext=$OBJEXT
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4464 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4471 main ()
4473 #ifndef __GNUC__
4474 choke me
4475 #endif
4478 return 0;
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_compiler_gnu=yes
4483 else
4484 ac_compiler_gnu=no
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4492 if test $ac_compiler_gnu = yes; then
4493 GCC=yes
4494 else
4495 GCC=
4497 ac_test_CFLAGS=${CFLAGS+set}
4498 ac_save_CFLAGS=$CFLAGS
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4501 if test "${ac_cv_prog_cc_g+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 ac_save_c_werror_flag=$ac_c_werror_flag
4505 ac_c_werror_flag=yes
4506 ac_cv_prog_cc_g=no
4507 CFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_prog_cc_g=yes
4521 else
4522 CFLAGS=""
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4531 return 0;
4533 _ACEOF
4534 if ac_fn_c_try_compile "$LINENO"; then :
4536 else
4537 ac_c_werror_flag=$ac_save_c_werror_flag
4538 CFLAGS="-g"
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4543 main ()
4547 return 0;
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_prog_cc_g=yes
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 ac_c_werror_flag=$ac_save_c_werror_flag
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4561 $as_echo "$ac_cv_prog_cc_g" >&6; }
4562 if test "$ac_test_CFLAGS" = set; then
4563 CFLAGS=$ac_save_CFLAGS
4564 elif test $ac_cv_prog_cc_g = yes; then
4565 if test "$GCC" = yes; then
4566 CFLAGS="-g -O2"
4567 else
4568 CFLAGS="-g"
4570 else
4571 if test "$GCC" = yes; then
4572 CFLAGS="-O2"
4573 else
4574 CFLAGS=
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4579 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 ac_cv_prog_cc_c89=no
4583 ac_save_CC=$CC
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <stdarg.h>
4587 #include <stdio.h>
4588 #include <sys/types.h>
4589 #include <sys/stat.h>
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4594 char **p;
4595 int i;
4597 return p[i];
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4601 char *s;
4602 va_list v;
4603 va_start (v,p);
4604 s = g (p, va_arg (v,int));
4605 va_end (v);
4606 return s;
4609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4610 function prototypes and stuff, but not '\xHH' hex character constants.
4611 These don't provoke an error unfortunately, instead are silently treated
4612 as 'x'. The following induces an error, until -std is added to get
4613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4614 array size at least. It's necessary to write '\x00'==0 to get something
4615 that's true only with -std. */
4616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4619 inside strings and character constants. */
4620 #define FOO(x) 'x'
4621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4623 int test (int i, double x);
4624 struct s1 {int (*f) (int a);};
4625 struct s2 {int (*f) (double a);};
4626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4627 int argc;
4628 char **argv;
4630 main ()
4632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4634 return 0;
4636 _ACEOF
4637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4640 CC="$ac_save_CC $ac_arg"
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_c89=$ac_arg
4644 rm -f core conftest.err conftest.$ac_objext
4645 test "x$ac_cv_prog_cc_c89" != "xno" && break
4646 done
4647 rm -f conftest.$ac_ext
4648 CC=$ac_save_CC
4651 # AC_CACHE_VAL
4652 case "x$ac_cv_prog_cc_c89" in
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 $as_echo "none needed" >&6; } ;;
4656 xno)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;;
4660 CC="$CC $ac_cv_prog_cc_c89"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4663 esac
4664 if test "x$ac_cv_prog_cc_c89" != xno; then :
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674 ac_ext=cpp
4675 ac_cpp='$CXXCPP $CPPFLAGS'
4676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4679 if test -z "$CXX"; then
4680 if test -n "$CCC"; then
4681 CXX=$CCC
4682 else
4683 if test -n "$ac_tool_prefix"; then
4684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_CXX+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$CXX"; then
4694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 CXX=$ac_cv_prog_CXX
4714 if test -n "$CXX"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4716 $as_echo "$CXX" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$CXX" && break
4724 done
4726 if test -z "$CXX"; then
4727 ac_ct_CXX=$CXX
4728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4730 # Extract the first word of "$ac_prog", so it can be a program name with args.
4731 set dummy $ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$ac_ct_CXX"; then
4738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_ac_ct_CXX="$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4753 IFS=$as_save_IFS
4757 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4758 if test -n "$ac_ct_CXX"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4760 $as_echo "$ac_ct_CXX" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$ac_ct_CXX" && break
4768 done
4770 if test "x$ac_ct_CXX" = x; then
4771 CXX="g++"
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779 CXX=$ac_ct_CXX
4785 # Provide some information about the compiler.
4786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4787 set X $ac_compile
4788 ac_compiler=$2
4789 for ac_option in --version -v -V -qversion; do
4790 { { ac_try="$ac_compiler $ac_option >&5"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4798 ac_status=$?
4799 if test -s conftest.err; then
4800 sed '10a\
4801 ... rest of stderr output deleted ...
4802 10q' conftest.err >conftest.er1
4803 cat conftest.er1 >&5
4804 rm -f conftest.er1 conftest.err
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }
4808 done
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4811 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4812 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 main ()
4821 #ifndef __GNUC__
4822 choke me
4823 #endif
4826 return 0;
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830 ac_compiler_gnu=yes
4831 else
4832 ac_compiler_gnu=no
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4839 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4840 if test $ac_compiler_gnu = yes; then
4841 GXX=yes
4842 else
4843 GXX=
4845 ac_test_CXXFLAGS=${CXXFLAGS+set}
4846 ac_save_CXXFLAGS=$CXXFLAGS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4848 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4849 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4853 ac_cxx_werror_flag=yes
4854 ac_cv_prog_cxx_g=no
4855 CXXFLAGS="-g"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4860 main ()
4864 return 0;
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4868 ac_cv_prog_cxx_g=yes
4869 else
4870 CXXFLAGS=""
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4875 main ()
4879 return 0;
4881 _ACEOF
4882 if ac_fn_cxx_try_compile "$LINENO"; then :
4884 else
4885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4886 CXXFLAGS="-g"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4891 main ()
4895 return 0;
4897 _ACEOF
4898 if ac_fn_cxx_try_compile "$LINENO"; then :
4899 ac_cv_prog_cxx_g=yes
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4909 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4910 if test "$ac_test_CXXFLAGS" = set; then
4911 CXXFLAGS=$ac_save_CXXFLAGS
4912 elif test $ac_cv_prog_cxx_g = yes; then
4913 if test "$GXX" = yes; then
4914 CXXFLAGS="-g -O2"
4915 else
4916 CXXFLAGS="-g"
4918 else
4919 if test "$GXX" = yes; then
4920 CXXFLAGS="-O2"
4921 else
4922 CXXFLAGS=
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 # We must set the default linker to the linker used by gcc for the correct
4933 # operation of libtool. If LD is not defined and we are using gcc, try to
4934 # set the LD default to the ld used by gcc.
4935 if test -z "$LD"; then
4936 if test "$GCC" = yes; then
4937 case $build in
4938 *-*-mingw*)
4939 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4941 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4942 esac
4943 case $gcc_prog_ld in
4944 # Accept absolute paths.
4945 [\\/]* | [A-Za-z]:[\\/]*)
4946 LD="$gcc_prog_ld" ;;
4947 esac
4951 # Check whether -static-libstdc++ -static-libgcc is supported.
4952 have_static_libs=no
4953 if test "$GCC" = yes; then
4954 saved_LDFLAGS="$LDFLAGS"
4956 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4958 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4959 ac_ext=cpp
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4969 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4970 #error -static-libstdc++ not implemented
4971 #endif
4972 int main() {}
4973 _ACEOF
4974 if ac_fn_cxx_try_link "$LINENO"; then :
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4976 $as_echo "yes" >&6; }; have_static_libs=yes
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext conftest.$ac_ext
4983 ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 LDFLAGS="$saved_LDFLAGS"
4996 if test -n "$ac_tool_prefix"; then
4997 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4998 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$GNATBIND"; then
5005 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5020 IFS=$as_save_IFS
5024 GNATBIND=$ac_cv_prog_GNATBIND
5025 if test -n "$GNATBIND"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5027 $as_echo "$GNATBIND" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5035 if test -z "$ac_cv_prog_GNATBIND"; then
5036 ac_ct_GNATBIND=$GNATBIND
5037 # Extract the first word of "gnatbind", so it can be a program name with args.
5038 set dummy gnatbind; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$ac_ct_GNATBIND"; then
5045 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5065 if test -n "$ac_ct_GNATBIND"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5067 $as_echo "$ac_ct_GNATBIND" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5073 if test "x$ac_ct_GNATBIND" = x; then
5074 GNATBIND="no"
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 GNATBIND=$ac_ct_GNATBIND
5084 else
5085 GNATBIND="$ac_cv_prog_GNATBIND"
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$GNATMAKE"; then
5097 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 GNATMAKE=$ac_cv_prog_GNATMAKE
5117 if test -n "$GNATMAKE"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5119 $as_echo "$GNATMAKE" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5127 if test -z "$ac_cv_prog_GNATMAKE"; then
5128 ac_ct_GNATMAKE=$GNATMAKE
5129 # Extract the first word of "gnatmake", so it can be a program name with args.
5130 set dummy gnatmake; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$ac_ct_GNATMAKE"; then
5137 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5157 if test -n "$ac_ct_GNATMAKE"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5159 $as_echo "$ac_ct_GNATMAKE" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5165 if test "x$ac_ct_GNATMAKE" = x; then
5166 GNATMAKE="no"
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174 GNATMAKE=$ac_ct_GNATMAKE
5176 else
5177 GNATMAKE="$ac_cv_prog_GNATMAKE"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5181 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5182 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat >conftest.adb <<EOF
5186 procedure conftest is begin null; end conftest;
5188 acx_cv_cc_gcc_supports_ada=no
5189 # There is a bug in old released versions of GCC which causes the
5190 # driver to exit successfully when the appropriate language module
5191 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5192 # Therefore we must check for the error message as well as an
5193 # unsuccessful exit.
5194 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5195 # given a .adb file, but produce no object file. So we must check
5196 # if an object file was really produced to guard against this.
5197 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5198 if test x"$errors" = x && test -f conftest.$ac_objext; then
5199 acx_cv_cc_gcc_supports_ada=yes
5201 rm -f conftest.*
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5204 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5206 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5207 have_gnat=yes
5208 else
5209 have_gnat=no
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5213 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5214 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 echo abfoo >t1
5218 echo cdfoo >t2
5219 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5220 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5221 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5223 else
5224 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5227 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5228 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5230 else
5231 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5234 rm t1 t2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5238 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5239 do_compare="$gcc_cv_prog_cmp_skip"
5243 # Check whether --enable-bootstrap was given.
5244 if test "${enable_bootstrap+set}" = set; then :
5245 enableval=$enable_bootstrap;
5246 else
5247 enable_bootstrap=default
5251 # Issue errors and warnings for invalid/strange bootstrap combinations.
5252 if test -r $srcdir/gcc/configure; then
5253 have_compiler=yes
5254 else
5255 have_compiler=no
5258 case "$have_compiler:$host:$target:$enable_bootstrap" in
5259 *:*:*:no) ;;
5261 # Default behavior. Enable bootstrap if we have a compiler
5262 # and we are in a native configuration.
5263 yes:$build:$build:default)
5264 enable_bootstrap=yes ;;
5266 *:*:*:default)
5267 enable_bootstrap=no ;;
5269 # We have a compiler and we are in a native configuration, bootstrap is ok
5270 yes:$build:$build:yes)
5273 # Other configurations, but we have a compiler. Assume the user knows
5274 # what he's doing.
5275 yes:*:*:yes)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5277 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5280 # No compiler: if they passed --enable-bootstrap explicitly, fail
5281 no:*:*:yes)
5282 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5284 # Fail if wrong command line
5286 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5288 esac
5290 # Used for setting $lt_cv_objdir
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5292 $as_echo_n "checking for objdir... " >&6; }
5293 if test "${lt_cv_objdir+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 rm -f .libs 2>/dev/null
5297 mkdir .libs 2>/dev/null
5298 if test -d .libs; then
5299 lt_cv_objdir=.libs
5300 else
5301 # MS-DOS does not allow filenames that begin with a dot.
5302 lt_cv_objdir=_libs
5304 rmdir .libs 2>/dev/null
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5307 $as_echo "$lt_cv_objdir" >&6; }
5308 objdir=$lt_cv_objdir
5314 cat >>confdefs.h <<_ACEOF
5315 #define LT_OBJDIR "$lt_cv_objdir/"
5316 _ACEOF
5320 # Check for GMP, MPFR and MPC
5321 gmplibs="-lmpc -lmpfr -lgmp"
5322 gmpinc=
5323 have_gmp=no
5325 # Specify a location for mpc
5326 # check for this first so it ends up on the link line before mpfr.
5328 # Check whether --with-mpc was given.
5329 if test "${with_mpc+set}" = set; then :
5330 withval=$with_mpc;
5334 # Check whether --with-mpc-include was given.
5335 if test "${with_mpc_include+set}" = set; then :
5336 withval=$with_mpc_include;
5340 # Check whether --with-mpc-lib was given.
5341 if test "${with_mpc_lib+set}" = set; then :
5342 withval=$with_mpc_lib;
5346 if test "x$with_mpc" != x; then
5347 gmplibs="-L$with_mpc/lib $gmplibs"
5348 gmpinc="-I$with_mpc/include $gmpinc"
5350 if test "x$with_mpc_include" != x; then
5351 gmpinc="-I$with_mpc_include $gmpinc"
5353 if test "x$with_mpc_lib" != x; then
5354 gmplibs="-L$with_mpc_lib $gmplibs"
5356 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5357 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5358 gmpinc='-I$$s/mpc/src '"$gmpinc"
5359 # Do not test the mpc version. Assume that it is sufficient, since
5360 # it is in the source tree, and the library has not been built yet
5361 # but it would be included on the link line in the version check below
5362 # hence making the test fail.
5363 have_gmp=yes
5366 # Specify a location for mpfr
5367 # check for this first so it ends up on the link line before gmp.
5369 # Check whether --with-mpfr-dir was given.
5370 if test "${with_mpfr_dir+set}" = set; then :
5371 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5372 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5377 # Check whether --with-mpfr was given.
5378 if test "${with_mpfr+set}" = set; then :
5379 withval=$with_mpfr;
5383 # Check whether --with-mpfr-include was given.
5384 if test "${with_mpfr_include+set}" = set; then :
5385 withval=$with_mpfr_include;
5389 # Check whether --with-mpfr-lib was given.
5390 if test "${with_mpfr_lib+set}" = set; then :
5391 withval=$with_mpfr_lib;
5395 if test "x$with_mpfr" != x; then
5396 gmplibs="-L$with_mpfr/lib $gmplibs"
5397 gmpinc="-I$with_mpfr/include $gmpinc"
5399 if test "x$with_mpfr_include" != x; then
5400 gmpinc="-I$with_mpfr_include $gmpinc"
5402 if test "x$with_mpfr_lib" != x; then
5403 gmplibs="-L$with_mpfr_lib $gmplibs"
5405 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5406 # MPFR v3.1.0 moved the sources into a src sub-directory.
5407 if test -d ${srcdir}/mpfr/src; then
5408 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5409 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5410 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5411 else
5412 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5413 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5414 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5416 # Do not test the mpfr version. Assume that it is sufficient, since
5417 # it is in the source tree, and the library has not been built yet
5418 # but it would be included on the link line in the version check below
5419 # hence making the test fail.
5420 have_gmp=yes
5423 # Specify a location for gmp
5425 # Check whether --with-gmp-dir was given.
5426 if test "${with_gmp_dir+set}" = set; then :
5427 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5428 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5433 # Check whether --with-gmp was given.
5434 if test "${with_gmp+set}" = set; then :
5435 withval=$with_gmp;
5439 # Check whether --with-gmp-include was given.
5440 if test "${with_gmp_include+set}" = set; then :
5441 withval=$with_gmp_include;
5445 # Check whether --with-gmp-lib was given.
5446 if test "${with_gmp_lib+set}" = set; then :
5447 withval=$with_gmp_lib;
5452 if test "x$with_gmp" != x; then
5453 gmplibs="-L$with_gmp/lib $gmplibs"
5454 gmpinc="-I$with_gmp/include $gmpinc"
5456 if test "x$with_gmp_include" != x; then
5457 gmpinc="-I$with_gmp_include $gmpinc"
5459 if test "x$with_gmp_lib" != x; then
5460 gmplibs="-L$with_gmp_lib $gmplibs"
5462 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5463 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5464 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5465 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5466 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5467 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5468 # Do not test the gmp version. Assume that it is sufficient, since
5469 # it is in the source tree, and the library has not been built yet
5470 # but it would be included on the link line in the version check below
5471 # hence making the test fail.
5472 have_gmp=yes
5475 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5476 have_gmp=yes
5477 saved_CFLAGS="$CFLAGS"
5478 CFLAGS="$CFLAGS $gmpinc"
5479 # Check for the recommended and required versions of GMP.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5481 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include "gmp.h"
5487 main ()
5490 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5491 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5492 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5493 choke me
5494 #endif
5497 return 0;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <gmp.h>
5505 main ()
5508 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5509 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5510 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5511 choke me
5512 #endif
5515 return 0;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5520 $as_echo "yes" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5523 $as_echo "buggy but acceptable" >&6; }
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }; have_gmp=no
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 # If we have GMP, check the MPFR version.
5533 if test x"$have_gmp" = xyes; then
5534 # Check for the recommended and required versions of MPFR.
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5536 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <gmp.h>
5540 #include <mpfr.h>
5542 main ()
5545 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5546 choke me
5547 #endif
5550 return 0;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <gmp.h>
5557 #include <mpfr.h>
5559 main ()
5562 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5563 choke me
5564 #endif
5567 return 0;
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5572 $as_echo "yes" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5575 $as_echo "buggy but acceptable" >&6; }
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }; have_gmp=no
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 # Check for the MPC header version.
5586 if test x"$have_gmp" = xyes ; then
5587 # Check for the recommended and required versions of MPC.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5589 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #include <mpc.h>
5594 main ()
5597 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5598 choke me
5599 #endif
5602 return 0;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <mpc.h>
5610 main ()
5613 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5614 choke me
5615 #endif
5618 return 0;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5623 $as_echo "yes" >&6; }
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5626 $as_echo "buggy but acceptable" >&6; }
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }; have_gmp=no
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 # Now check the MPFR library.
5637 if test x"$have_gmp" = xyes; then
5638 saved_LIBS="$LIBS"
5639 LIBS="$LIBS $gmplibs"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5641 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <mpc.h>
5646 main ()
5649 mpfr_t n;
5650 mpfr_t x;
5651 mpc_t c;
5652 int t;
5653 mpfr_init (n);
5654 mpfr_init (x);
5655 mpfr_atan2 (n, n, x, GMP_RNDN);
5656 mpfr_erfc (n, x, GMP_RNDN);
5657 mpfr_subnormalize (x, t, GMP_RNDN);
5658 mpfr_clear(n);
5659 mpfr_clear(x);
5660 mpc_init2 (c, 53);
5661 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5662 mpc_cosh (c, c, MPC_RNDNN);
5663 mpc_pow (c, c, c, MPC_RNDNN);
5664 mpc_acosh (c, c, MPC_RNDNN);
5665 mpc_clear (c);
5668 return 0;
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"; then :
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673 $as_echo "yes" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }; have_gmp=no
5678 rm -f core conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 LIBS="$saved_LIBS"
5683 CFLAGS="$saved_CFLAGS"
5685 # The library versions listed in the error message below should match
5686 # the HARD-minimums enforced above.
5687 if test x$have_gmp != xyes; then
5688 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5689 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5690 their locations. Source code for these libraries can be found at
5691 their respective hosting sites as well as at
5692 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5693 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5694 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5695 make sure that you have installed both the libraries and the header
5696 files. They may be located in separate packages." "$LINENO" 5
5700 # Flags needed for both GMP, MPFR and/or MPC.
5708 # Allow host libstdc++ to be specified for static linking with PPL.
5710 # Check whether --with-host-libstdcxx was given.
5711 if test "${with_host_libstdcxx+set}" = set; then :
5712 withval=$with_host_libstdcxx;
5716 case $with_host_libstdcxx in
5717 no|yes)
5718 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5720 esac
5722 # Libraries to use for stage1 or when not bootstrapping.
5724 # Check whether --with-stage1-libs was given.
5725 if test "${with_stage1_libs+set}" = set; then :
5726 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5727 stage1_libs=
5728 else
5729 stage1_libs=$withval
5731 else
5732 stage1_libs=$with_host_libstdcxx
5737 # Linker flags to use for stage1 or when not bootstrapping.
5739 # Check whether --with-stage1-ldflags was given.
5740 if test "${with_stage1_ldflags+set}" = set; then :
5741 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5742 stage1_ldflags=
5743 else
5744 stage1_ldflags=$withval
5746 else
5747 stage1_ldflags=
5748 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5749 # if supported. But if the user explicitly specified the libraries to use,
5750 # trust that they are doing what they want.
5751 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5752 stage1_ldflags="-static-libstdc++ -static-libgcc"
5758 # Libraries to use for stage2 and later builds. This defaults to the
5759 # argument passed to --with-host-libstdcxx.
5761 # Check whether --with-boot-libs was given.
5762 if test "${with_boot_libs+set}" = set; then :
5763 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5764 poststage1_libs=
5765 else
5766 poststage1_libs=$withval
5768 else
5769 poststage1_libs=$with_host_libstdcxx
5774 # Linker flags to use for stage2 and later builds.
5776 # Check whether --with-boot-ldflags was given.
5777 if test "${with_boot_ldflags+set}" = set; then :
5778 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5779 poststage1_ldflags=
5780 else
5781 poststage1_ldflags=$withval
5783 else
5784 poststage1_ldflags=
5785 # In stages 2 and 3, default to linking libstdc++ and libgcc
5786 # statically. But if the user explicitly specified the libraries to
5787 # use, trust that they are doing what they want.
5788 if test "$poststage1_libs" = ""; then
5789 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5795 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5796 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5797 # config/isl.m4
5800 # Check whether --with-cloog was given.
5801 if test "${with_cloog+set}" = set; then :
5802 withval=$with_cloog;
5806 # Check whether --with-isl was given.
5807 if test "${with_isl+set}" = set; then :
5808 withval=$with_isl;
5812 # Treat --without-isl as a request to disable
5813 # GRAPHITE support and skip all following checks.
5814 if test "x$with_isl" != "xno"; then
5815 # Check for ISL
5818 # Check whether --with-isl-include was given.
5819 if test "${with_isl_include+set}" = set; then :
5820 withval=$with_isl_include;
5824 # Check whether --with-isl-lib was given.
5825 if test "${with_isl_lib+set}" = set; then :
5826 withval=$with_isl_lib;
5830 # Check whether --enable-isl-version-check was given.
5831 if test "${enable_isl_version_check+set}" = set; then :
5832 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5833 else
5834 ENABLE_ISL_CHECK=yes
5838 # Initialize isllibs and islinc.
5839 case $with_isl in
5841 isllibs=
5842 islinc=
5844 "" | yes)
5847 isllibs="-L$with_isl/lib"
5848 islinc="-I$with_isl/include"
5850 esac
5851 if test "x${with_isl_include}" != x ; then
5852 islinc="-I$with_isl_include"
5854 if test "x${with_isl_lib}" != x; then
5855 isllibs="-L$with_isl_lib"
5857 if test "x${islinc}" = x && test "x${isllibs}" = x \
5858 && test -d ${srcdir}/isl; then
5859 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5860 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5861 ENABLE_ISL_CHECK=no
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5863 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5866 islinc="-DCLOOG_INT_GMP ${islinc}"
5867 isllibs="${isllibs} -lisl"
5871 if test "${ENABLE_ISL_CHECK}" = yes ; then
5872 _isl_saved_CFLAGS=$CFLAGS
5873 _isl_saved_LDFLAGS=$LDFLAGS
5874 _isl_saved_LIBS=$LIBS
5876 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5877 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5878 LIBS="${_isl_saved_LIBS} -lisl"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5881 $as_echo_n "checking for compatible ISL... " >&6; }
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <isl/val.h>
5886 main ()
5890 return 0;
5892 _ACEOF
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 gcc_cv_isl=yes
5895 else
5896 gcc_cv_isl=no
5898 rm -f core conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5901 $as_echo "$gcc_cv_isl" >&6; }
5903 CFLAGS=$_isl_saved_CFLAGS
5904 LDFLAGS=$_isl_saved_LDFLAGS
5905 LIBS=$_isl_saved_LIBS
5913 if test "x${with_isl}" = xno; then
5914 graphite_requested=no
5915 elif test "x${with_isl}" != x \
5916 || test "x${with_isl_include}" != x \
5917 || test "x${with_isl_lib}" != x ; then
5918 graphite_requested=yes
5919 else
5920 graphite_requested=no
5925 if test "${gcc_cv_isl}" = no ; then
5926 isllibs=
5927 islinc=
5930 if test "${graphite_requested}" = yes \
5931 && test "x${isllibs}" = x \
5932 && test "x${islinc}" = x ; then
5934 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5939 if test "x$gcc_cv_isl" != "xno"; then
5940 # Check for CLOOG
5943 # Check whether --with-cloog-include was given.
5944 if test "${with_cloog_include+set}" = set; then :
5945 withval=$with_cloog_include;
5949 # Check whether --with-cloog-lib was given.
5950 if test "${with_cloog_lib+set}" = set; then :
5951 withval=$with_cloog_lib;
5955 # Check whether --enable-cloog-version-check was given.
5956 if test "${enable_cloog_version_check+set}" = set; then :
5957 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5958 else
5959 ENABLE_CLOOG_CHECK=yes
5963 # Initialize clooglibs and clooginc.
5964 case $with_cloog in
5966 clooglibs=
5967 clooginc=
5969 "" | yes)
5972 clooglibs="-L$with_cloog/lib"
5973 clooginc="-I$with_cloog/include"
5975 esac
5976 if test "x${with_cloog_include}" != x ; then
5977 clooginc="-I$with_cloog_include"
5979 if test "x${with_cloog_lib}" != x; then
5980 clooglibs="-L$with_cloog_lib"
5982 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5983 && test -d ${srcdir}/cloog; then
5984 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5985 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
5986 ENABLE_CLOOG_CHECK=no
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
5988 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
5991 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5992 clooglibs="${clooglibs} -lcloog-isl"
5998 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5999 _cloog_saved_CFLAGS=$CFLAGS
6000 _cloog_saved_LDFLAGS=$LDFLAGS
6002 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6003 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6006 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include "cloog/version.h"
6011 main ()
6013 #if CLOOG_VERSION_MAJOR != 0 \
6014 || CLOOG_VERSION_MINOR != 18 \
6015 || CLOOG_VERSION_REVISION < 1
6016 choke me
6017 #endif
6019 return 0;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 gcc_cv_cloog=yes
6024 else
6025 gcc_cv_cloog=no
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6029 $as_echo "$gcc_cv_cloog" >&6; }
6031 CFLAGS=$_cloog_saved_CFLAGS
6032 LDFLAGS=$_cloog_saved_LDFLAGS
6041 if test "x${with_cloog}" = xno; then
6042 graphite_requested=no
6043 elif test "x${with_cloog}" != x \
6044 || test "x${with_cloog_include}" != x \
6045 || test "x${with_cloog_lib}" != x ; then
6046 graphite_requested=yes
6047 else
6048 graphite_requested=no
6053 if test "${gcc_cv_cloog}" = no ; then
6054 clooglibs=
6055 clooginc=
6058 if test "${graphite_requested}" = yes \
6059 && test "x${clooglibs}" = x \
6060 && test "x${clooginc}" = x ; then
6062 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6069 # If the ISL check failed, disable builds of in-tree
6070 # variants of both ISL and CLooG
6071 if test "x$with_isl" = xno ||
6072 test "x$gcc_cv_isl" = xno; then
6073 noconfigdirs="$noconfigdirs cloog isl"
6074 islinc=
6075 clooginc=
6076 clooglibs=
6079 # If the CLooG check failed, disable builds of in-tree
6080 # variants of CLooG
6081 if test "x$with_cloog" = xno ||
6082 test "x$gcc_cv_cloog" = xno; then
6083 noconfigdirs="$noconfigdirs cloog isl"
6084 clooginc=
6085 clooglibs=
6093 # Check for LTO support.
6094 # Check whether --enable-lto was given.
6095 if test "${enable_lto+set}" = set; then :
6096 enableval=$enable_lto; enable_lto=$enableval
6097 else
6098 enable_lto=yes; default_enable_lto=yes
6105 target_elf=no
6106 case $target in
6107 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6108 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6109 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6110 target_elf=no
6113 target_elf=yes
6115 esac
6117 if test $target_elf = yes; then :
6118 # ELF platforms build the lto-plugin always.
6119 build_lto_plugin=yes
6121 else
6122 if test x"$default_enable_lto" = x"yes" ; then
6123 case $target in
6124 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6125 # On other non-ELF platforms, LTO has yet to be validated.
6126 *) enable_lto=no ;;
6127 esac
6128 else
6129 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6130 # It would also be nice to check the binutils support, but we don't
6131 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6132 # warn during gcc/ subconfigure; unless you're bootstrapping with
6133 # -flto it won't be needed until after installation anyway.
6134 case $target in
6135 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6136 *) if test x"$enable_lto" = x"yes"; then
6137 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6140 esac
6142 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6143 # Build it unless LTO was explicitly disabled.
6144 case $target in
6145 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6146 *) ;;
6147 esac
6152 # Check whether --enable-linker-plugin-configure-flags was given.
6153 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6154 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6155 else
6156 extra_linker_plugin_configure_flags=
6160 # Check whether --enable-linker-plugin-flags was given.
6161 if test "${enable_linker_plugin_flags+set}" = set; then :
6162 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6163 else
6164 extra_linker_plugin_flags=
6170 # By default, C and C++ are the only stage 1 languages.
6171 stage1_languages=,c,
6173 # Target libraries that we bootstrap.
6174 bootstrap_target_libs=,target-libgcc,
6176 # Figure out what language subdirectories are present.
6177 # Look if the user specified --enable-languages="..."; if not, use
6178 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6179 # go away some day.
6180 # NB: embedded tabs in this IF block -- do not untabify
6181 if test -d ${srcdir}/gcc; then
6182 if test x"${enable_languages+set}" != xset; then
6183 if test x"${LANGUAGES+set}" = xset; then
6184 enable_languages="${LANGUAGES}"
6185 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6186 else
6187 enable_languages=all
6189 else
6190 if test x"${enable_languages}" = x ||
6191 test x"${enable_languages}" = xyes;
6192 then
6193 echo configure.in: --enable-languages needs at least one language argument 1>&2
6194 exit 1
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6199 # 'f95' is the old name for the 'fortran' language. We issue a warning
6200 # and make the substitution.
6201 case ,${enable_languages}, in
6202 *,f95,*)
6203 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6204 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6206 esac
6208 # If bootstrapping, C++ must be enabled.
6209 case ",$enable_languages,:$enable_bootstrap" in
6210 *,c++,*:*) ;;
6211 *:yes)
6212 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6213 enable_languages="${enable_languages},c++"
6214 else
6215 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6218 esac
6220 # First scan to see if an enabled language requires some other language.
6221 # We assume that a given config-lang.in will list all the language
6222 # front ends it requires, even if some are required indirectly.
6223 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6224 case ${lang_frag} in
6225 ..) ;;
6226 # The odd quoting in the next line works around
6227 # an apparent bug in bash 1.12 on linux.
6228 ${srcdir}/gcc/[*]/config-lang.in) ;;
6230 # From the config-lang.in, get $language, $lang_requires, and
6231 # $lang_requires_boot_languages.
6232 language=
6233 lang_requires=
6234 lang_requires_boot_languages=
6235 . ${lang_frag}
6236 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6237 case ,${enable_languages}, in
6238 *,$other,*) ;;
6239 *,all,*) ;;
6240 *,$language,*)
6241 echo " \`$other' language required by \`$language'; enabling" 1>&2
6242 enable_languages="${enable_languages},${other}"
6244 esac
6245 done
6246 for other in ${lang_requires_boot_languages} ; do
6247 if test "$other" != "c"; then
6248 case ,${enable_stage1_languages}, in
6249 *,$other,*) ;;
6250 *,all,*) ;;
6252 case ,${enable_languages}, in
6253 *,$language,*)
6254 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6255 enable_stage1_languages="$enable_stage1_languages,${other}"
6257 esac
6259 esac
6261 done
6263 esac
6264 done
6266 new_enable_languages=,c,
6268 # If LTO is enabled, add the LTO front end.
6269 extra_host_libiberty_configure_flags=
6270 if test "$enable_lto" = "yes" ; then
6271 case ,${enable_languages}, in
6272 *,lto,*) ;;
6273 *) enable_languages="${enable_languages},lto" ;;
6274 esac
6275 if test "${build_lto_plugin}" = "yes" ; then
6276 configdirs="$configdirs lto-plugin"
6277 extra_host_libiberty_configure_flags=--enable-shared
6282 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6283 potential_languages=,c,
6285 enabled_target_libs=
6286 disabled_target_libs=
6288 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6289 case ${lang_frag} in
6290 ..) ;;
6291 # The odd quoting in the next line works around
6292 # an apparent bug in bash 1.12 on linux.
6293 ${srcdir}/gcc/[*]/config-lang.in) ;;
6295 # From the config-lang.in, get $language, $target_libs,
6296 # $lang_dirs, $boot_language, and $build_by_default
6297 language=
6298 target_libs=
6299 lang_dirs=
6300 subdir_requires=
6301 boot_language=no
6302 build_by_default=yes
6303 . ${lang_frag}
6304 if test x${language} = x; then
6305 echo "${lang_frag} doesn't set \$language." 1>&2
6306 exit 1
6309 if test "$language" = "c++"; then
6310 boot_language=yes
6313 add_this_lang=no
6314 case ,${enable_languages}, in
6315 *,${language},*)
6316 # Language was explicitly selected; include it
6317 # unless it is C, which is enabled by default.
6318 if test "$language" != "c"; then
6319 add_this_lang=yes
6322 *,all,*)
6323 # 'all' was selected, select it if it is a default language
6324 if test "$language" != "c"; then
6325 add_this_lang=${build_by_default}
6328 esac
6330 # Disable languages that need other directories if these aren't available.
6331 for i in $subdir_requires; do
6332 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6333 case ,${enable_languages}, in
6334 *,${language},*)
6335 # Specifically requested language; tell them.
6336 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6339 # Silently disable.
6340 add_this_lang=unsupported
6342 esac
6343 done
6345 # Disable Ada if no preexisting GNAT is available.
6346 case ,${enable_languages},:${language}:${have_gnat} in
6347 *,${language},*:ada:no)
6348 # Specifically requested language; tell them.
6349 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6351 *:ada:no)
6352 # Silently disable.
6353 add_this_lang=unsupported
6355 esac
6357 # Disable a language that is unsupported by the target.
6358 case " $unsupported_languages " in
6359 *" $language "*)
6360 add_this_lang=unsupported
6362 esac
6364 case $add_this_lang in
6365 unsupported)
6366 # Remove language-dependent dirs.
6367 disabled_target_libs="$disabled_target_libs $target_libs"
6368 noconfigdirs="$noconfigdirs $lang_dirs"
6371 # Remove language-dependent dirs; still show language as supported.
6372 disabled_target_libs="$disabled_target_libs $target_libs"
6373 noconfigdirs="$noconfigdirs $lang_dirs"
6374 potential_languages="${potential_languages}${language},"
6376 yes)
6377 new_enable_languages="${new_enable_languages}${language},"
6378 potential_languages="${potential_languages}${language},"
6379 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6380 enabled_target_libs="$enabled_target_libs $target_libs"
6381 case "${boot_language}:,$enable_stage1_languages," in
6382 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6383 # Add to (comma-separated) list of stage 1 languages.
6384 case ",$stage1_languages," in
6385 *,$language,* | ,yes, | ,all,) ;;
6386 *) stage1_languages="${stage1_languages}${language}," ;;
6387 esac
6388 # We need to bootstrap any supporting libraries.
6389 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6391 esac
6393 esac
6395 esac
6396 done
6398 # Add target libraries which are only needed for disabled languages
6399 # to noconfigdirs.
6400 if test -n "$disabled_target_libs"; then
6401 for dir in $disabled_target_libs; do
6402 case " $enabled_target_libs " in
6403 *" ${dir} "*) ;;
6404 *) noconfigdirs="$noconfigdirs $dir" ;;
6405 esac
6406 done
6409 # Check whether --enable-stage1-languages was given.
6410 if test "${enable_stage1_languages+set}" = set; then :
6411 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6412 ,no,|,,)
6413 # Set it to something that will have no effect in the loop below
6414 enable_stage1_languages=c ;;
6415 ,yes,)
6416 enable_stage1_languages=`echo $new_enable_languages | \
6417 sed -e "s/^,//" -e "s/,$//" ` ;;
6418 *,all,*)
6419 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6420 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6421 esac
6423 # Add "good" languages from enable_stage1_languages to stage1_languages,
6424 # while "bad" languages go in missing_languages. Leave no duplicates.
6425 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6426 case $potential_languages in
6427 *,$i,*)
6428 case $stage1_languages in
6429 *,$i,*) ;;
6430 *) stage1_languages="$stage1_languages$i," ;;
6431 esac ;;
6433 case $missing_languages in
6434 *,$i,*) ;;
6435 *) missing_languages="$missing_languages$i," ;;
6436 esac ;;
6437 esac
6438 done
6442 # Remove leading/trailing commas that were added for simplicity
6443 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6444 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6445 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6446 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6448 if test "x$missing_languages" != x; then
6449 as_fn_error "
6450 The following requested languages could not be built: ${missing_languages}
6451 Supported languages are: ${potential_languages}" "$LINENO" 5
6453 if test "x$new_enable_languages" != "x$enable_languages"; then
6454 echo The following languages will be built: ${new_enable_languages}
6455 enable_languages="$new_enable_languages"
6459 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6462 # Handle --disable-<component> generically.
6463 for dir in $configdirs $build_configdirs $target_configdirs ; do
6464 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6465 varname=`echo $dirname | sed -e s/+/_/g`
6466 if eval test x\${enable_${varname}} "=" xno ; then
6467 noconfigdirs="$noconfigdirs $dir"
6469 done
6471 # Check for Boehm's garbage collector
6472 # Check whether --enable-objc-gc was given.
6473 if test "${enable_objc_gc+set}" = set; then :
6474 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6475 *,objc,*:*:yes:*target-boehm-gc*)
6476 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6478 esac
6482 # Make sure we only build Boehm's garbage collector if required.
6483 case ,${enable_languages},:${enable_objc_gc} in
6484 *,objc,*:yes)
6485 # Keep target-boehm-gc if requested for Objective-C.
6488 # Otherwise remove target-boehm-gc depending on target-libjava.
6489 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6490 noconfigdirs="$noconfigdirs target-boehm-gc"
6493 esac
6495 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6496 case ,${enable_languages}, in
6497 *,c++,*)
6498 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6499 case "${noconfigdirs}" in
6500 *target-libstdc++-v3*)
6501 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6503 *) ;;
6504 esac
6507 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6509 esac
6511 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6512 # $build_configdirs and $target_configdirs.
6513 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6515 notsupp=""
6516 for dir in . $skipdirs $noconfigdirs ; do
6517 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6518 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6520 if test -r $srcdir/$dirname/configure ; then
6521 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522 true
6523 else
6524 notsupp="$notsupp $dir"
6528 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529 build_configdirs=`echo " ${build_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 " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6539 target_configdirs=`echo " ${target_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 done
6550 # Quietly strip out all directories which aren't configurable in this tree.
6551 # This relies on all configurable subdirectories being autoconfiscated, which
6552 # is now the case.
6553 build_configdirs_all="$build_configdirs"
6554 build_configdirs=
6555 for i in ${build_configdirs_all} ; do
6556 j=`echo $i | sed -e s/build-//g`
6557 if test -f ${srcdir}/$j/configure ; then
6558 build_configdirs="${build_configdirs} $i"
6560 done
6562 configdirs_all="$configdirs"
6563 configdirs=
6564 for i in ${configdirs_all} ; do
6565 if test -f ${srcdir}/$i/configure ; then
6566 configdirs="${configdirs} $i"
6568 done
6570 target_configdirs_all="$target_configdirs"
6571 target_configdirs=
6572 for i in ${target_configdirs_all} ; do
6573 j=`echo $i | sed -e s/target-//g`
6574 if test -f ${srcdir}/$j/configure ; then
6575 target_configdirs="${target_configdirs} $i"
6577 done
6579 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6580 # so we have to add it after the preceding checks.
6581 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6582 then
6583 case " $configdirs " in
6584 *" libiberty "*)
6585 # If we can build libiberty, we can also build libiberty-linker-plugin.
6586 configdirs="$configdirs libiberty-linker-plugin"
6587 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6588 --with-libiberty=../libiberty-linker-plugin";;
6590 as_fn_error "libiberty missing" "$LINENO" 5;;
6591 esac
6594 # Produce a warning message for the subdirs we can't configure.
6595 # This isn't especially interesting in the Cygnus tree, but in the individual
6596 # FSF releases, it's important to let people know when their machine isn't
6597 # supported by the one or two programs in a package.
6599 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6600 # If $appdirs is non-empty, at least one of those directories must still
6601 # be configured, or we error out. (E.g., if the gas release supports a
6602 # specified target in some subdirs but not the gas subdir, we shouldn't
6603 # pretend that all is well.)
6604 if test -n "$appdirs" ; then
6605 for dir in $appdirs ; do
6606 if test -r $dir/Makefile.in ; then
6607 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 appdirs=""
6609 break
6611 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6612 appdirs=""
6613 break
6616 done
6617 if test -n "$appdirs" ; then
6618 echo "*** This configuration is not supported by this package." 1>&2
6619 exit 1
6622 # Okay, some application will build, or we don't care to check. Still
6623 # notify of subdirs not getting built.
6624 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6625 echo " ${notsupp}" 1>&2
6626 echo " (Any other directories should still work fine.)" 1>&2
6629 case "$host" in
6630 *msdosdjgpp*)
6631 enable_gdbtk=no ;;
6632 esac
6634 # To find our prefix, in gcc_cv_tool_prefix.
6636 # The user is always right.
6637 if test "${PATH_SEPARATOR+set}" != set; then
6638 echo "#! /bin/sh" >conf$$.sh
6639 echo "exit 0" >>conf$$.sh
6640 chmod +x conf$$.sh
6641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6642 PATH_SEPARATOR=';'
6643 else
6644 PATH_SEPARATOR=:
6646 rm -f conf$$.sh
6651 if test "x$exec_prefix" = xNONE; then
6652 if test "x$prefix" = xNONE; then
6653 gcc_cv_tool_prefix=$ac_default_prefix
6654 else
6655 gcc_cv_tool_prefix=$prefix
6657 else
6658 gcc_cv_tool_prefix=$exec_prefix
6661 # If there is no compiler in the tree, use the PATH only. In any
6662 # case, if there is no compiler in the tree nobody should use
6663 # AS_FOR_TARGET and LD_FOR_TARGET.
6664 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6665 gcc_version=`cat $srcdir/gcc/BASE-VER`
6666 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6667 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6668 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6672 else
6673 gcc_cv_tool_dirs=
6676 if test x$build = x$target && test -n "$md_exec_prefix"; then
6677 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6682 copy_dirs=
6685 # Check whether --with-build-sysroot was given.
6686 if test "${with_build_sysroot+set}" = set; then :
6687 withval=$with_build_sysroot; if test x"$withval" != x ; then
6688 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6690 else
6691 SYSROOT_CFLAGS_FOR_TARGET=
6697 # Check whether --with-debug-prefix-map was given.
6698 if test "${with_debug_prefix_map+set}" = set; then :
6699 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6700 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6701 for debug_map in $withval; do
6702 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6703 done
6705 else
6706 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6711 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6712 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6713 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6714 # We want to ensure that TARGET libraries (which we know are built with
6715 # gcc) are built with "-O2 -g", so include those options when setting
6716 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6717 if test "x$CFLAGS_FOR_TARGET" = x; then
6718 CFLAGS_FOR_TARGET=$CFLAGS
6719 case " $CFLAGS " in
6720 *" -O2 "*) ;;
6721 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6722 esac
6723 case " $CFLAGS " in
6724 *" -g "* | *" -g3 "*) ;;
6725 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6726 esac
6730 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6731 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6732 case " $CXXFLAGS " in
6733 *" -O2 "*) ;;
6734 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6735 esac
6736 case " $CXXFLAGS " in
6737 *" -g "* | *" -g3 "*) ;;
6738 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6739 esac
6745 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6746 # the named directory are copied to $(tooldir)/sys-include.
6747 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6748 if test x${is_cross_compiler} = xno ; then
6749 echo 1>&2 '***' --with-headers is only supported when cross compiling
6750 exit 1
6752 if test x"${with_headers}" != xyes ; then
6753 x=${gcc_cv_tool_prefix}
6754 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6758 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6759 # the name directories are copied to $(tooldir)/lib. Multiple directories
6760 # are permitted.
6761 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6762 if test x${is_cross_compiler} = xno ; then
6763 echo 1>&2 '***' --with-libs is only supported when cross compiling
6764 exit 1
6766 if test x"${with_libs}" != xyes ; then
6767 # Copy the libraries in reverse order, so that files in the first named
6768 # library override files in subsequent libraries.
6769 x=${gcc_cv_tool_prefix}
6770 for l in ${with_libs}; do
6771 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6772 done
6776 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6778 # This is done by determining whether or not the appropriate directory
6779 # is available, and by checking whether or not specific configurations
6780 # have requested that this magic not happen.
6782 # The command line options always override the explicit settings in
6783 # configure.in, and the settings in configure.in override this magic.
6785 # If the default for a toolchain is to use GNU as and ld, and you don't
6786 # want to do that, then you should use the --without-gnu-as and
6787 # --without-gnu-ld options for the configure script. Similarly, if
6788 # the default is to use the included zlib and you don't want to do that,
6789 # you should use the --with-system-zlib option for the configure script.
6791 if test x${use_gnu_as} = x &&
6792 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6793 with_gnu_as=yes
6794 extra_host_args="$extra_host_args --with-gnu-as"
6797 if test x${use_gnu_ld} = x &&
6798 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6799 with_gnu_ld=yes
6800 extra_host_args="$extra_host_args --with-gnu-ld"
6803 if test x${use_included_zlib} = x &&
6804 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6806 else
6807 with_system_zlib=yes
6808 extra_host_args="$extra_host_args --with-system-zlib"
6811 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6812 # can detect this case.
6814 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6815 with_newlib=yes
6816 extra_host_args="$extra_host_args --with-newlib"
6819 # Handle ${copy_dirs}
6820 set fnord ${copy_dirs}
6821 shift
6822 while test $# != 0 ; do
6823 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6825 else
6826 echo Copying $1 to $2
6828 # Use the install script to create the directory and all required
6829 # parent directories.
6830 if test -d $2 ; then
6832 else
6833 echo >config.temp
6834 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6837 # Copy the directory, assuming we have tar.
6838 # FIXME: Should we use B in the second tar? Not all systems support it.
6839 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6841 # It is the responsibility of the user to correctly adjust all
6842 # symlinks. If somebody can figure out how to handle them correctly
6843 # here, feel free to add the code.
6845 echo $1 > $2/COPIED
6847 shift; shift
6848 done
6850 # Determine a target-dependent exec_prefix that the installed
6851 # gcc will search in. Keep this list sorted by triplet, with
6852 # the *-*-osname triplets last.
6853 md_exec_prefix=
6854 case "${target}" in
6855 i[34567]86-pc-msdosdjgpp*)
6856 md_exec_prefix=/dev/env/DJDIR/bin
6858 *-*-hpux* | \
6859 *-*-nto-qnx* | \
6860 *-*-solaris2*)
6861 md_exec_prefix=/usr/ccs/bin
6863 esac
6865 extra_arflags_for_target=
6866 extra_nmflags_for_target=
6867 extra_ranlibflags_for_target=
6868 target_makefile_frag=/dev/null
6869 case "${target}" in
6870 spu-*-*)
6871 target_makefile_frag="config/mt-spu"
6873 mips*-sde-elf* | mips*-mti-elf*)
6874 target_makefile_frag="config/mt-sde"
6876 mipsisa*-*-elfoabi*)
6877 target_makefile_frag="config/mt-mips-elfoabi"
6879 mips*-*-*linux* | mips*-*-gnu*)
6880 target_makefile_frag="config/mt-mips-gnu"
6882 nios2-*-elf*)
6883 target_makefile_frag="config/mt-nios2-elf"
6885 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6886 target_makefile_frag="config/mt-gnu"
6888 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6889 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6890 # commands to handle both 32-bit and 64-bit objects. These flags are
6891 # harmless if we're using GNU nm or ar.
6892 extra_arflags_for_target=" -X32_64"
6893 extra_nmflags_for_target=" -B -X32_64"
6895 esac
6897 alphaieee_frag=/dev/null
6898 case $target in
6899 alpha*-*-*)
6900 # This just makes sure to use the -mieee option to build target libs.
6901 # This should probably be set individually by each library.
6902 alphaieee_frag="config/mt-alphaieee"
6904 esac
6906 # If --enable-target-optspace always use -Os instead of -O2 to build
6907 # the target libraries, similarly if it is not specified, use -Os
6908 # on selected platforms.
6909 ospace_frag=/dev/null
6910 case "${enable_target_optspace}:${target}" in
6911 yes:*)
6912 ospace_frag="config/mt-ospace"
6914 :d30v-*)
6915 ospace_frag="config/mt-d30v"
6917 :m32r-* | :d10v-* | :fr30-*)
6918 ospace_frag="config/mt-ospace"
6920 no:* | :*)
6923 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6925 esac
6927 # Some systems (e.g., one of the i386-aix systems the gas testers are
6928 # using) don't handle "\$" correctly, so don't use it here.
6929 tooldir='${exec_prefix}'/${target_noncanonical}
6930 build_tooldir=${tooldir}
6932 # Create a .gdbinit file which runs the one in srcdir
6933 # and tells GDB to look there for source files.
6935 if test -r ${srcdir}/.gdbinit ; then
6936 case ${srcdir} in
6937 .) ;;
6938 *) cat > ./.gdbinit <<EOF
6939 # ${NO_EDIT}
6940 dir ${srcdir}
6941 dir .
6942 source ${srcdir}/.gdbinit
6945 esac
6948 # Make sure that the compiler is able to generate an executable. If it
6949 # can't, we are probably in trouble. We don't care whether we can run the
6950 # executable--we might be using a cross compiler--we only care whether it
6951 # can be created. At this point the main configure script has set CC.
6952 we_are_ok=no
6953 echo "int main () { return 0; }" > conftest.c
6954 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6955 if test $? = 0 ; then
6956 if test -s conftest || test -s conftest.exe ; then
6957 we_are_ok=yes
6960 case $we_are_ok in
6962 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6963 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6964 rm -f conftest*
6965 exit 1
6967 esac
6968 rm -f conftest*
6970 # Decide which environment variable is used to find dynamic libraries.
6971 case "${host}" in
6972 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6973 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6974 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6975 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6976 esac
6978 # On systems where the dynamic library environment variable is PATH,
6979 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6980 # built executables to PATH.
6981 if test "$RPATH_ENVVAR" = PATH; then
6982 GCC_SHLIB_SUBDIR=/shlib
6983 else
6984 GCC_SHLIB_SUBDIR=
6987 # Adjust the toplevel makefile according to whether bootstrap was selected.
6988 case $enable_bootstrap in
6989 yes)
6990 bootstrap_suffix=bootstrap
6991 BUILD_CONFIG=bootstrap-debug
6994 bootstrap_suffix=no-bootstrap
6995 BUILD_CONFIG=
6997 esac
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7000 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7003 # Check whether --with-build-config was given.
7004 if test "${with_build_config+set}" = set; then :
7005 withval=$with_build_config; case $with_build_config in
7006 yes) with_build_config= ;;
7007 no) with_build_config= BUILD_CONFIG= ;;
7008 esac
7012 if test "x${with_build_config}" != x; then
7013 BUILD_CONFIG=$with_build_config
7014 else
7015 case $BUILD_CONFIG in
7016 bootstrap-debug)
7017 if echo "int f (void) { return 0; }" > conftest.c &&
7018 ${CC} -c conftest.c &&
7019 mv conftest.o conftest.o.g0 &&
7020 ${CC} -c -g conftest.c &&
7021 mv conftest.o conftest.o.g &&
7022 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7024 else
7025 BUILD_CONFIG=
7027 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7029 esac
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7032 $as_echo "$BUILD_CONFIG" >&6; }
7035 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7037 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7038 # Check whether --enable-vtable-verify was given.
7039 if test "${enable_vtable_verify+set}" = set; then :
7040 enableval=$enable_vtable_verify; case "$enableval" in
7041 yes) enable_vtable_verify=yes ;;
7042 no) enable_vtable_verify=no ;;
7043 *) enable_vtable_verify=no;;
7044 esac
7045 else
7046 enable_vtable_verify=no
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7050 $as_echo "$enable_vtable_verify" >&6; }
7052 # Record target_configdirs and the configure arguments for target and
7053 # build configuration in Makefile.
7054 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7055 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7056 bootstrap_fixincludes=no
7058 # If we are building libgomp, bootstrap it.
7059 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7060 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7063 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7064 # or bootstrap-ubsan, bootstrap it.
7065 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7066 case "$BUILD_CONFIG" in
7067 *bootstrap-asan* | *bootstrap-ubsan* )
7068 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7069 bootstrap_fixincludes=yes
7071 esac
7074 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7075 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7076 test "$enable_vtable_verify" != no; then
7077 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7080 # Determine whether gdb needs tk/tcl or not.
7081 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7082 # and in that case we want gdb to be built without tk. Ugh!
7083 # In fact I believe gdb is the *only* package directly dependent on tk,
7084 # so we should be able to put the 'maybe's in unconditionally and
7085 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7086 # 100% sure that that's safe though.
7088 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7089 case "$enable_gdbtk" in
7091 GDB_TK="" ;;
7092 yes)
7093 GDB_TK="${gdb_tk}" ;;
7095 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7096 # distro. Eventually someone will fix this and move Insight, nee
7097 # gdbtk to a separate directory.
7098 if test -d ${srcdir}/gdb/gdbtk ; then
7099 GDB_TK="${gdb_tk}"
7100 else
7101 GDB_TK=""
7104 esac
7105 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7106 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7108 # Strip out unwanted targets.
7110 # While at that, we remove Makefiles if we were started for recursive
7111 # configuration, so that the top-level Makefile reconfigures them,
7112 # like we used to do when configure itself was recursive.
7114 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7115 # but now we're fixing up the Makefile ourselves with the additional
7116 # commands passed to AC_CONFIG_FILES. Use separate variables
7117 # extrasub-{build,host,target} not because there is any reason to split
7118 # the substitutions up that way, but only to remain below the limit of
7119 # 99 commands in a script, for HP-UX sed.
7120 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7122 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7123 yes:yes:*\ gold\ *:*,c++,*) ;;
7124 yes:yes:*\ gold\ *:*)
7125 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7127 esac
7129 extrasub_build=
7130 for module in ${build_configdirs} ; do
7131 if test -z "${no_recursion}" \
7132 && test -f ${build_subdir}/${module}/Makefile; then
7133 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7134 rm -f ${build_subdir}/${module}/Makefile
7136 extrasub_build="$extrasub_build
7137 /^@if build-$module\$/d
7138 /^@endif build-$module\$/d
7139 /^@if build-$module-$bootstrap_suffix\$/d
7140 /^@endif build-$module-$bootstrap_suffix\$/d"
7141 done
7142 extrasub_host=
7143 for module in ${configdirs} ; do
7144 if test -z "${no_recursion}"; then
7145 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7146 if test -f ${file}; then
7147 echo 1>&2 "*** removing ${file} to force reconfigure"
7148 rm -f ${file}
7150 done
7152 case ${module},${bootstrap_fixincludes} in
7153 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7154 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7155 esac
7156 extrasub_host="$extrasub_host
7157 /^@if $module\$/d
7158 /^@endif $module\$/d
7159 /^@if $module-$host_bootstrap_suffix\$/d
7160 /^@endif $module-$host_bootstrap_suffix\$/d"
7161 done
7162 extrasub_target=
7163 for module in ${target_configdirs} ; do
7164 if test -z "${no_recursion}" \
7165 && test -f ${target_subdir}/${module}/Makefile; then
7166 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7167 rm -f ${target_subdir}/${module}/Makefile
7170 # We only bootstrap target libraries listed in bootstrap_target_libs.
7171 case $bootstrap_target_libs in
7172 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7173 *) target_bootstrap_suffix=no-bootstrap ;;
7174 esac
7176 extrasub_target="$extrasub_target
7177 /^@if target-$module\$/d
7178 /^@endif target-$module\$/d
7179 /^@if target-$module-$target_bootstrap_suffix\$/d
7180 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7181 done
7183 # Do the final fixup along with target modules.
7184 extrasub_target="$extrasub_target
7185 /^@if /,/^@endif /d"
7187 # Create the serialization dependencies. This uses a temporary file.
7189 # Check whether --enable-serial-configure was given.
7190 if test "${enable_serial_configure+set}" = set; then :
7191 enableval=$enable_serial_configure;
7195 case ${enable_serial_configure} in
7196 yes)
7197 enable_serial_build_configure=yes
7198 enable_serial_host_configure=yes
7199 enable_serial_target_configure=yes
7201 esac
7203 # These force 'configure's to be done one at a time, to avoid problems
7204 # with contention over a shared config.cache.
7205 rm -f serdep.tmp
7206 echo '# serdep.tmp' > serdep.tmp
7207 olditem=
7208 test "x${enable_serial_build_configure}" = xyes &&
7209 for item in ${build_configdirs} ; do
7210 case ${olditem} in
7211 "") ;;
7212 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7213 esac
7214 olditem=${item}
7215 done
7216 olditem=
7217 test "x${enable_serial_host_configure}" = xyes &&
7218 for item in ${configdirs} ; do
7219 case ${olditem} in
7220 "") ;;
7221 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7222 esac
7223 olditem=${item}
7224 done
7225 olditem=
7226 test "x${enable_serial_target_configure}" = xyes &&
7227 for item in ${target_configdirs} ; do
7228 case ${olditem} in
7229 "") ;;
7230 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7231 esac
7232 olditem=${item}
7233 done
7234 serialization_dependencies=serdep.tmp
7237 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7238 # target, nonopt, and variable assignments. These are the ones we
7239 # might not want to pass down to subconfigures. The exception being
7240 # --cache-file=/dev/null, which is used to turn off the use of cache
7241 # files altogether, and which should be passed on to subconfigures.
7242 # Also strip program-prefix, program-suffix, and program-transform-name,
7243 # so that we can pass down a consistent program-transform-name.
7244 baseargs=
7245 tbaseargs=
7246 keep_next=no
7247 skip_next=no
7248 eval "set -- $ac_configure_args"
7249 for ac_arg
7251 if test X"$skip_next" = X"yes"; then
7252 skip_next=no
7253 continue
7255 if test X"$keep_next" = X"yes"; then
7256 case $ac_arg in
7257 *\'*)
7258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7259 esac
7260 baseargs="$baseargs '$ac_arg'"
7261 tbaseargs="$tbaseargs '$ac_arg'"
7262 keep_next=no
7263 continue
7266 # Handle separated arguments. Based on the logic generated by
7267 # autoconf 2.59.
7268 case $ac_arg in
7269 *=* | --config-cache | -C | -disable-* | --disable-* \
7270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7272 | -with-* | --with-* | -without-* | --without-* | --x)
7273 separate_arg=no
7276 separate_arg=yes
7279 separate_arg=no
7281 esac
7283 skip_targ=no
7284 case $ac_arg in
7286 --with-* | --without-*)
7287 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7289 case $libopt in
7290 *[-_]include)
7291 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7293 *[-_]lib)
7294 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7297 lib=$libopt
7299 esac
7302 case $lib in
7303 mpc | mpfr | gmp | isl | cloog)
7304 # If we're processing --with-$lib, --with-$lib-include or
7305 # --with-$lib-lib, for one of the libs above, and target is
7306 # different from host, don't pass the current argument to any
7307 # target library's configure.
7308 if test x$is_cross_compiler = xyes; then
7309 skip_targ=yes
7312 esac
7314 esac
7316 case "$ac_arg" in
7317 --cache-file=/dev/null | \
7318 -cache-file=/dev/null )
7319 # Handled here to avoid the test to skip args below.
7320 baseargs="$baseargs '$ac_arg'"
7321 tbaseargs="$tbaseargs '$ac_arg'"
7322 # Assert: $separate_arg should always be no.
7323 keep_next=$separate_arg
7325 --no*)
7326 continue
7328 --c* | \
7329 --sr* | \
7330 --ho* | \
7331 --bu* | \
7332 --t* | \
7333 --program-* | \
7334 -cache_file* | \
7335 -srcdir* | \
7336 -host* | \
7337 -build* | \
7338 -target* | \
7339 -program-prefix* | \
7340 -program-suffix* | \
7341 -program-transform-name* )
7342 skip_next=$separate_arg
7343 continue
7346 # An option. Add it.
7347 case $ac_arg in
7348 *\'*)
7349 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7350 esac
7351 baseargs="$baseargs '$ac_arg'"
7352 if test X"$skip_targ" = Xno; then
7353 tbaseargs="$tbaseargs '$ac_arg'"
7355 keep_next=$separate_arg
7358 # Either a variable assignment, or a nonopt (triplet). Don't
7359 # pass it down; let the Makefile handle this.
7360 continue
7362 esac
7363 done
7364 # Remove the initial space we just introduced and, as these will be
7365 # expanded by make, quote '$'.
7366 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7368 # Add in --program-transform-name, after --program-prefix and
7369 # --program-suffix have been applied to it. Autoconf has already
7370 # doubled dollar signs and backslashes in program_transform_name; we want
7371 # the backslashes un-doubled, and then the entire thing wrapped in single
7372 # quotes, because this will be expanded first by make and then by the shell.
7373 # Also, because we want to override the logic in subdir configure scripts to
7374 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7375 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7376 ${program_transform_name}
7377 EOF_SED
7378 gcc_transform_name=`cat conftestsed.out`
7379 rm -f conftestsed.out
7380 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7381 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7382 if test "$silent" = yes; then
7383 baseargs="$baseargs --silent"
7384 tbaseargs="$tbaseargs --silent"
7386 baseargs="$baseargs --disable-option-checking"
7387 tbaseargs="$tbaseargs --disable-option-checking"
7389 # Record and document user additions to sub configure arguments.
7394 # For the build-side libraries, we just need to pretend we're native,
7395 # and not use the same cache file. Multilibs are neither needed nor
7396 # desired.
7397 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7399 # For host modules, accept cache file option, or specification as blank.
7400 case "${cache_file}" in
7401 "") # empty
7402 cache_file_option="" ;;
7403 /* | [A-Za-z]:[\\/]* ) # absolute path
7404 cache_file_option="--cache-file=${cache_file}" ;;
7405 *) # relative path
7406 cache_file_option="--cache-file=../${cache_file}" ;;
7407 esac
7409 # Host dirs don't like to share a cache file either, horribly enough.
7410 # This seems to be due to autoconf 2.5x stupidity.
7411 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7413 target_configargs="$target_configargs ${tbaseargs}"
7415 # Passing a --with-cross-host argument lets the target libraries know
7416 # whether they are being built with a cross-compiler or being built
7417 # native. However, it would be better to use other mechanisms to make the
7418 # sorts of decisions they want to make on this basis. Please consider
7419 # this option to be deprecated. FIXME.
7420 if test x${is_cross_compiler} = xyes ; then
7421 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7424 # Special user-friendly check for native x86_64-linux build, if
7425 # multilib is not explicitly enabled.
7426 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7427 x86_64-*linux*:yes:$build:$build:)
7428 # Make sure we have a developement environment that handles 32-bit
7429 dev64=no
7430 echo "int main () { return 0; }" > conftest.c
7431 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7432 if test $? = 0 ; then
7433 if test -s conftest || test -s conftest.exe ; then
7434 dev64=yes
7437 rm -f conftest*
7438 if test x${dev64} != xyes ; then
7439 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
7442 esac
7444 # Default to --enable-multilib.
7445 if test x${enable_multilib} = x ; then
7446 target_configargs="--enable-multilib ${target_configargs}"
7449 # Pass --with-newlib if appropriate. Note that target_configdirs has
7450 # changed from the earlier setting of with_newlib.
7451 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7452 target_configargs="--with-newlib ${target_configargs}"
7455 # Different target subdirs use different values of certain variables
7456 # (notably CXX). Worse, multilibs use *lots* of different values.
7457 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7458 # it doesn't automatically accept command-line overrides of them.
7459 # This means it's not safe for target subdirs to share a cache file,
7460 # which is disgusting, but there you have it. Hopefully this can be
7461 # fixed in future. It's still worthwhile to use a cache file for each
7462 # directory. I think.
7464 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7465 # We need to pass --target, as newer autoconf's requires consistency
7466 # for target_alias and gcc doesn't manage it consistently.
7467 target_configargs="--cache-file=./config.cache ${target_configargs}"
7469 FLAGS_FOR_TARGET=
7470 case " $target_configdirs " in
7471 *" newlib "*)
7472 case " $target_configargs " in
7473 *" --with-newlib "*)
7474 case "$target" in
7475 *-cygwin*)
7476 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7478 esac
7480 # If we're not building GCC, don't discard standard headers.
7481 if test -d ${srcdir}/gcc; then
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7484 if test "${build}" != "${host}"; then
7485 # On Canadian crosses, CC_FOR_TARGET will have already been set
7486 # by `configure', so we won't have an opportunity to add -Bgcc/
7487 # to it. This is right: we don't want to search that directory
7488 # for binaries, but we want the header files in there, so add
7489 # them explicitly.
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7492 # Someone might think of using the pre-installed headers on
7493 # Canadian crosses, in case the installed compiler is not fully
7494 # compatible with the compiler being built. In this case, it
7495 # would be better to flag an error than risking having
7496 # incompatible object files being constructed. We can't
7497 # guarantee that an error will be flagged, but let's hope the
7498 # compiler will do it, when presented with incompatible header
7499 # files.
7503 case "${target}-${is_cross_compiler}" in
7504 i[3456789]86-*-linux*-no)
7505 # Here host == target, so we don't need to build gcc,
7506 # so we don't want to discard standard headers.
7507 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7510 # If we're building newlib, use its generic headers last, but search
7511 # for any libc-related directories first (so make it the last -B
7512 # switch).
7513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7515 # If we're building libgloss, find the startup file, simulator library
7516 # and linker script.
7517 case " $target_configdirs " in
7518 *" libgloss "*)
7519 # Look for startup file, simulator library and maybe linker script.
7520 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7521 # Look for libnosys.a in case the target needs it.
7522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7523 # Most targets have the linker script in the source directory.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7526 esac
7528 esac
7530 esac
7532 esac
7534 case "$target" in
7535 x86_64-*mingw* | *-w64-mingw*)
7536 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7537 # however, use a symlink named 'mingw' in ${prefix} .
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7540 *-mingw*)
7541 # MinGW can't be handled as Cygwin above since it does not use newlib.
7542 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'
7544 esac
7546 # Allow the user to override the flags for
7547 # our build compiler if desired.
7548 if test x"${build}" = x"${host}" ; then
7549 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7550 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7551 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7554 # On Canadian crosses, we'll be searching the right directories for
7555 # the previously-installed cross compiler, so don't bother to add
7556 # flags for directories within the install tree of the compiler
7557 # being built; programs in there won't even run.
7558 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7559 # Search for pre-installed headers if nothing else fits.
7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7563 if test "x${use_gnu_ld}" = x &&
7564 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7565 # Arrange for us to find uninstalled linker scripts.
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7569 # Search for other target-specific linker scripts and such.
7570 case "${target}" in
7571 mep*)
7572 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7574 esac
7576 # Makefile fragments.
7577 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7579 eval fragval=\$$frag
7580 if test $fragval != /dev/null; then
7581 eval $frag=${srcdir}/$fragval
7583 done
7589 # Miscellanea: directories, flags, etc.
7598 # Build module lists & subconfigure args.
7602 # Host module lists & subconfigure args.
7607 # Target module lists & subconfigure args.
7611 # Build tools.
7629 # Generate default definitions for YACC, M4, LEX and other programs that run
7630 # on the build machine. These are used if the Makefile can't locate these
7631 # programs in objdir.
7632 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7634 for ac_prog in 'bison -y' byacc yacc
7636 # Extract the first word of "$ac_prog", so it can be a program name with args.
7637 set dummy $ac_prog; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_YACC+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$YACC"; then
7644 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_YACC="$ac_prog"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7663 YACC=$ac_cv_prog_YACC
7664 if test -n "$YACC"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7666 $as_echo "$YACC" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7673 test -n "$YACC" && break
7674 done
7675 test -n "$YACC" || YACC="$MISSING bison -y"
7677 case " $build_configdirs " in
7678 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7679 esac
7681 for ac_prog in bison
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if test "${ac_cv_prog_BISON+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$BISON"; then
7691 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_BISON="$ac_prog"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7706 IFS=$as_save_IFS
7710 BISON=$ac_cv_prog_BISON
7711 if test -n "$BISON"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7713 $as_echo "$BISON" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7720 test -n "$BISON" && break
7721 done
7722 test -n "$BISON" || BISON="$MISSING bison"
7724 case " $build_configdirs " in
7725 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7726 esac
7728 for ac_prog in gm4 gnum4 m4
7730 # Extract the first word of "$ac_prog", so it can be a program name with args.
7731 set dummy $ac_prog; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_M4+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$M4"; then
7738 ac_cv_prog_M4="$M4" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_prog_M4="$ac_prog"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7757 M4=$ac_cv_prog_M4
7758 if test -n "$M4"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7760 $as_echo "$M4" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7767 test -n "$M4" && break
7768 done
7769 test -n "$M4" || M4="$MISSING m4"
7771 case " $build_configdirs " in
7772 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7773 esac
7775 for ac_prog in flex lex
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if test "${ac_cv_prog_LEX+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$LEX"; then
7785 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_LEX="$ac_prog"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7804 LEX=$ac_cv_prog_LEX
7805 if test -n "$LEX"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7807 $as_echo "$LEX" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7814 test -n "$LEX" && break
7815 done
7816 test -n "$LEX" || LEX="$MISSING flex"
7818 case " $build_configdirs " in
7819 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7820 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7821 esac
7823 for ac_prog in flex
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_prog_FLEX+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$FLEX"; then
7833 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_FLEX="$ac_prog"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 FLEX=$ac_cv_prog_FLEX
7853 if test -n "$FLEX"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7855 $as_echo "$FLEX" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 test -n "$FLEX" && break
7863 done
7864 test -n "$FLEX" || FLEX="$MISSING flex"
7866 case " $build_configdirs " in
7867 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7868 esac
7870 for ac_prog in makeinfo
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$MAKEINFO"; then
7880 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_prog_MAKEINFO="$ac_prog"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7895 IFS=$as_save_IFS
7899 MAKEINFO=$ac_cv_prog_MAKEINFO
7900 if test -n "$MAKEINFO"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7902 $as_echo "$MAKEINFO" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7909 test -n "$MAKEINFO" && break
7910 done
7911 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7913 case " $build_configdirs " in
7914 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7917 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7918 # higher, else we use the "missing" dummy.
7919 if ${MAKEINFO} --version \
7920 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7922 else
7923 MAKEINFO="$MISSING makeinfo"
7927 esac
7929 # FIXME: expect and dejagnu may become build tools?
7931 for ac_prog in expect
7933 # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy $ac_prog; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$EXPECT"; then
7941 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_EXPECT="$ac_prog"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7960 EXPECT=$ac_cv_prog_EXPECT
7961 if test -n "$EXPECT"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7963 $as_echo "$EXPECT" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$EXPECT" && break
7971 done
7972 test -n "$EXPECT" || EXPECT="expect"
7974 case " $configdirs " in
7975 *" expect "*)
7976 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7978 esac
7980 for ac_prog in runtest
7982 # Extract the first word of "$ac_prog", so it can be a program name with args.
7983 set dummy $ac_prog; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$RUNTEST"; then
7990 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_RUNTEST="$ac_prog"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8009 RUNTEST=$ac_cv_prog_RUNTEST
8010 if test -n "$RUNTEST"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8012 $as_echo "$RUNTEST" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8019 test -n "$RUNTEST" && break
8020 done
8021 test -n "$RUNTEST" || RUNTEST="runtest"
8023 case " $configdirs " in
8024 *" dejagnu "*)
8025 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8027 esac
8030 # Host tools.
8031 ncn_tool_prefix=
8032 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8033 ncn_target_tool_prefix=
8034 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8038 if test -n "$AR"; then
8039 ac_cv_prog_AR=$AR
8040 elif test -n "$ac_cv_prog_AR"; then
8041 AR=$ac_cv_prog_AR
8044 if test -n "$ac_cv_prog_AR"; then
8045 for ncn_progname in ar; do
8046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8047 set dummy ${ncn_progname}; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_AR+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$AR"; then
8054 ac_cv_prog_AR="$AR" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_AR="${ncn_progname}"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8069 IFS=$as_save_IFS
8073 AR=$ac_cv_prog_AR
8074 if test -n "$AR"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8076 $as_echo "$AR" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8083 done
8086 for ncn_progname in ar; do
8087 if test -n "$ncn_tool_prefix"; then
8088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8089 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_prog_AR+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$AR"; then
8096 ac_cv_prog_AR="$AR" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8111 IFS=$as_save_IFS
8115 AR=$ac_cv_prog_AR
8116 if test -n "$AR"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8118 $as_echo "$AR" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8126 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
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; }
8165 test -n "$ac_cv_prog_AR" && break
8166 done
8168 if test -z "$ac_cv_prog_AR" ; then
8169 set dummy ar
8170 if test $build = $host ; then
8171 AR="$2"
8172 else
8173 AR="${ncn_tool_prefix}$2"
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS=$AS
8181 elif test -n "$ac_cv_prog_AS"; then
8182 AS=$ac_cv_prog_AS
8185 if test -n "$ac_cv_prog_AS"; then
8186 for ncn_progname in as; do
8187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_progname}; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_AS+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$AS"; then
8195 ac_cv_prog_AS="$AS" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_AS="${ncn_progname}"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8214 AS=$ac_cv_prog_AS
8215 if test -n "$AS"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8217 $as_echo "$AS" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8224 done
8227 for ncn_progname in as; do
8228 if test -n "$ncn_tool_prefix"; then
8229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8230 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if test "${ac_cv_prog_AS+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$AS"; then
8237 ac_cv_prog_AS="$AS" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8250 done
8251 done
8252 IFS=$as_save_IFS
8256 AS=$ac_cv_prog_AS
8257 if test -n "$AS"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8259 $as_echo "$AS" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8267 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
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; }
8306 test -n "$ac_cv_prog_AS" && break
8307 done
8309 if test -z "$ac_cv_prog_AS" ; then
8310 set dummy as
8311 if test $build = $host ; then
8312 AS="$2"
8313 else
8314 AS="${ncn_tool_prefix}$2"
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL=$DLLTOOL
8322 elif test -n "$ac_cv_prog_DLLTOOL"; then
8323 DLLTOOL=$ac_cv_prog_DLLTOOL
8326 if test -n "$ac_cv_prog_DLLTOOL"; then
8327 for ncn_progname in dlltool; do
8328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8329 set dummy ${ncn_progname}; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$DLLTOOL"; then
8336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_DLLTOOL="${ncn_progname}"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 DLLTOOL=$ac_cv_prog_DLLTOOL
8356 if test -n "$DLLTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8358 $as_echo "$DLLTOOL" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 done
8368 for ncn_progname in dlltool; do
8369 if test -n "$ncn_tool_prefix"; then
8370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test -n "$DLLTOOL"; then
8378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8397 DLLTOOL=$ac_cv_prog_DLLTOOL
8398 if test -n "$DLLTOOL"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8400 $as_echo "$DLLTOOL" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8408 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
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; }
8447 test -n "$ac_cv_prog_DLLTOOL" && break
8448 done
8450 if test -z "$ac_cv_prog_DLLTOOL" ; then
8451 set dummy dlltool
8452 if test $build = $host ; then
8453 DLLTOOL="$2"
8454 else
8455 DLLTOOL="${ncn_tool_prefix}$2"
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD=$LD
8463 elif test -n "$ac_cv_prog_LD"; then
8464 LD=$ac_cv_prog_LD
8467 if test -n "$ac_cv_prog_LD"; then
8468 for ncn_progname in ld; do
8469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8470 set dummy ${ncn_progname}; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_LD+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$LD"; then
8477 ac_cv_prog_LD="$LD" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_LD="${ncn_progname}"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8496 LD=$ac_cv_prog_LD
8497 if test -n "$LD"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499 $as_echo "$LD" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8506 done
8509 for ncn_progname in ld; do
8510 if test -n "$ncn_tool_prefix"; then
8511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8512 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if test "${ac_cv_prog_LD+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 if test -n "$LD"; then
8519 ac_cv_prog_LD="$LD" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8538 LD=$ac_cv_prog_LD
8539 if test -n "$LD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8541 $as_echo "$LD" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8549 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
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; }
8588 test -n "$ac_cv_prog_LD" && break
8589 done
8591 if test -z "$ac_cv_prog_LD" ; then
8592 set dummy ld
8593 if test $build = $host ; then
8594 LD="$2"
8595 else
8596 LD="${ncn_tool_prefix}$2"
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO=$LIPO
8604 elif test -n "$ac_cv_prog_LIPO"; then
8605 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$ac_cv_prog_LIPO"; then
8609 for ncn_progname in lipo; do
8610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8611 set dummy ${ncn_progname}; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$LIPO"; then
8618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_LIPO="${ncn_progname}"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 LIPO=$ac_cv_prog_LIPO
8638 if test -n "$LIPO"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8640 $as_echo "$LIPO" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8647 done
8650 for ncn_progname in lipo; do
8651 if test -n "$ncn_tool_prefix"; then
8652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8653 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if test "${ac_cv_prog_LIPO+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$LIPO"; then
8660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8679 LIPO=$ac_cv_prog_LIPO
8680 if test -n "$LIPO"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8682 $as_echo "$LIPO" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8690 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
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; }
8729 test -n "$ac_cv_prog_LIPO" && break
8730 done
8732 if test -z "$ac_cv_prog_LIPO" ; then
8733 set dummy lipo
8734 if test $build = $host ; then
8735 LIPO="$2"
8736 else
8737 LIPO="${ncn_tool_prefix}$2"
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM=$NM
8745 elif test -n "$ac_cv_prog_NM"; then
8746 NM=$ac_cv_prog_NM
8749 if test -n "$ac_cv_prog_NM"; then
8750 for ncn_progname in nm; do
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_NM+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 if test -n "$NM"; then
8759 ac_cv_prog_NM="$NM" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_NM="${ncn_progname}"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8778 NM=$ac_cv_prog_NM
8779 if test -n "$NM"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8781 $as_echo "$NM" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8788 done
8791 for ncn_progname in nm; do
8792 if test -n "$ncn_tool_prefix"; then
8793 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8794 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_NM+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test -n "$NM"; then
8801 ac_cv_prog_NM="$NM" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8814 done
8815 done
8816 IFS=$as_save_IFS
8820 NM=$ac_cv_prog_NM
8821 if test -n "$NM"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8823 $as_echo "$NM" >&6; }
8824 else
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8831 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
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; }
8870 test -n "$ac_cv_prog_NM" && break
8871 done
8873 if test -z "$ac_cv_prog_NM" ; then
8874 set dummy nm
8875 if test $build = $host ; then
8876 NM="$2"
8877 else
8878 NM="${ncn_tool_prefix}$2"
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB=$RANLIB
8886 elif test -n "$ac_cv_prog_RANLIB"; then
8887 RANLIB=$ac_cv_prog_RANLIB
8890 if test -n "$ac_cv_prog_RANLIB"; then
8891 for ncn_progname in ranlib; do
8892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8893 set dummy ${ncn_progname}; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 if test -n "$RANLIB"; then
8900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_RANLIB="${ncn_progname}"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8919 RANLIB=$ac_cv_prog_RANLIB
8920 if test -n "$RANLIB"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8922 $as_echo "$RANLIB" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8929 done
8932 for ncn_progname in ranlib; do
8933 if test -n "$ncn_tool_prefix"; then
8934 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8935 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$RANLIB"; then
8942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 RANLIB=$ac_cv_prog_RANLIB
8962 if test -n "$RANLIB"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8964 $as_echo "$RANLIB" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8972 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
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; }
9011 test -n "$ac_cv_prog_RANLIB" && break
9012 done
9014 if test -z "$ac_cv_prog_RANLIB" ; then
9015 RANLIB="true"
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP=$STRIP
9022 elif test -n "$ac_cv_prog_STRIP"; then
9023 STRIP=$ac_cv_prog_STRIP
9026 if test -n "$ac_cv_prog_STRIP"; then
9027 for ncn_progname in strip; do
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029 set dummy ${ncn_progname}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_prog_STRIP+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 if test -n "$STRIP"; then
9036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_STRIP="${ncn_progname}"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9055 STRIP=$ac_cv_prog_STRIP
9056 if test -n "$STRIP"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9058 $as_echo "$STRIP" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9065 done
9068 for ncn_progname in strip; do
9069 if test -n "$ncn_tool_prefix"; then
9070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if test "${ac_cv_prog_STRIP+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 if test -n "$STRIP"; then
9078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9097 STRIP=$ac_cv_prog_STRIP
9098 if test -n "$STRIP"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9100 $as_echo "$STRIP" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9108 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
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; }
9147 test -n "$ac_cv_prog_STRIP" && break
9148 done
9150 if test -z "$ac_cv_prog_STRIP" ; then
9151 STRIP="true"
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES=$WINDRES
9158 elif test -n "$ac_cv_prog_WINDRES"; then
9159 WINDRES=$ac_cv_prog_WINDRES
9162 if test -n "$ac_cv_prog_WINDRES"; then
9163 for ncn_progname in windres; do
9164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9165 set dummy ${ncn_progname}; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 if test -n "$WINDRES"; then
9172 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9173 else
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in $PATH
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_prog_WINDRES="${ncn_progname}"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9185 done
9186 done
9187 IFS=$as_save_IFS
9191 WINDRES=$ac_cv_prog_WINDRES
9192 if test -n "$WINDRES"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9194 $as_echo "$WINDRES" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9201 done
9204 for ncn_progname in windres; do
9205 if test -n "$ncn_tool_prefix"; then
9206 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9207 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 if test -n "$WINDRES"; then
9214 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9233 WINDRES=$ac_cv_prog_WINDRES
9234 if test -n "$WINDRES"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9236 $as_echo "$WINDRES" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9244 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
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; }
9283 test -n "$ac_cv_prog_WINDRES" && break
9284 done
9286 if test -z "$ac_cv_prog_WINDRES" ; then
9287 set dummy windres
9288 if test $build = $host ; then
9289 WINDRES="$2"
9290 else
9291 WINDRES="${ncn_tool_prefix}$2"
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC=$WINDMC
9299 elif test -n "$ac_cv_prog_WINDMC"; then
9300 WINDMC=$ac_cv_prog_WINDMC
9303 if test -n "$ac_cv_prog_WINDMC"; then
9304 for ncn_progname in windmc; do
9305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9306 set dummy ${ncn_progname}; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 if test -n "$WINDMC"; then
9313 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_prog_WINDMC="${ncn_progname}"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9332 WINDMC=$ac_cv_prog_WINDMC
9333 if test -n "$WINDMC"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9335 $as_echo "$WINDMC" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9342 done
9345 for ncn_progname in windmc; do
9346 if test -n "$ncn_tool_prefix"; then
9347 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9348 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350 $as_echo_n "checking for $ac_word... " >&6; }
9351 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 if test -n "$WINDMC"; then
9355 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9368 done
9369 done
9370 IFS=$as_save_IFS
9374 WINDMC=$ac_cv_prog_WINDMC
9375 if test -n "$WINDMC"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9377 $as_echo "$WINDMC" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9385 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
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; }
9424 test -n "$ac_cv_prog_WINDMC" && break
9425 done
9427 if test -z "$ac_cv_prog_WINDMC" ; then
9428 set dummy windmc
9429 if test $build = $host ; then
9430 WINDMC="$2"
9431 else
9432 WINDMC="${ncn_tool_prefix}$2"
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY=$OBJCOPY
9440 elif test -n "$ac_cv_prog_OBJCOPY"; then
9441 OBJCOPY=$ac_cv_prog_OBJCOPY
9444 if test -n "$ac_cv_prog_OBJCOPY"; then
9445 for ncn_progname in objcopy; do
9446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 if test -n "$OBJCOPY"; then
9454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_prog_OBJCOPY="${ncn_progname}"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9473 OBJCOPY=$ac_cv_prog_OBJCOPY
9474 if test -n "$OBJCOPY"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9476 $as_echo "$OBJCOPY" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9483 done
9486 for ncn_progname in objcopy; do
9487 if test -n "$ncn_tool_prefix"; then
9488 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9489 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -n "$OBJCOPY"; then
9496 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9509 done
9510 done
9511 IFS=$as_save_IFS
9515 OBJCOPY=$ac_cv_prog_OBJCOPY
9516 if test -n "$OBJCOPY"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9518 $as_echo "$OBJCOPY" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9526 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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; }
9565 test -n "$ac_cv_prog_OBJCOPY" && break
9566 done
9568 if test -z "$ac_cv_prog_OBJCOPY" ; then
9569 set dummy objcopy
9570 if test $build = $host ; then
9571 OBJCOPY="$2"
9572 else
9573 OBJCOPY="${ncn_tool_prefix}$2"
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP=$OBJDUMP
9581 elif test -n "$ac_cv_prog_OBJDUMP"; then
9582 OBJDUMP=$ac_cv_prog_OBJDUMP
9585 if test -n "$ac_cv_prog_OBJDUMP"; then
9586 for ncn_progname in objdump; do
9587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9588 set dummy ${ncn_progname}; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 if test -n "$OBJDUMP"; then
9595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9596 else
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_OBJDUMP="${ncn_progname}"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9608 done
9609 done
9610 IFS=$as_save_IFS
9614 OBJDUMP=$ac_cv_prog_OBJDUMP
9615 if test -n "$OBJDUMP"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9617 $as_echo "$OBJDUMP" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9624 done
9627 for ncn_progname in objdump; do
9628 if test -n "$ncn_tool_prefix"; then
9629 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9630 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 if test -n "$OBJDUMP"; then
9637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9638 else
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9650 done
9651 done
9652 IFS=$as_save_IFS
9656 OBJDUMP=$ac_cv_prog_OBJDUMP
9657 if test -n "$OBJDUMP"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9659 $as_echo "$OBJDUMP" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9667 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
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; }
9706 test -n "$ac_cv_prog_OBJDUMP" && break
9707 done
9709 if test -z "$ac_cv_prog_OBJDUMP" ; then
9710 set dummy objdump
9711 if test $build = $host ; then
9712 OBJDUMP="$2"
9713 else
9714 OBJDUMP="${ncn_tool_prefix}$2"
9720 if test -n "$READELF"; then
9721 ac_cv_prog_READELF=$READELF
9722 elif test -n "$ac_cv_prog_READELF"; then
9723 READELF=$ac_cv_prog_READELF
9726 if test -n "$ac_cv_prog_READELF"; then
9727 for ncn_progname in readelf; do
9728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9729 set dummy ${ncn_progname}; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_prog_READELF+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 if test -n "$READELF"; then
9736 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9737 else
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_READELF="${ncn_progname}"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9755 READELF=$ac_cv_prog_READELF
9756 if test -n "$READELF"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9758 $as_echo "$READELF" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9765 done
9768 for ncn_progname in readelf; do
9769 if test -n "$ncn_tool_prefix"; then
9770 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9771 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if test "${ac_cv_prog_READELF+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 if test -n "$READELF"; then
9778 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9779 else
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 break 2
9791 done
9792 done
9793 IFS=$as_save_IFS
9797 READELF=$ac_cv_prog_READELF
9798 if test -n "$READELF"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9800 $as_echo "$READELF" >&6; }
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9808 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
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; }
9847 test -n "$ac_cv_prog_READELF" && break
9848 done
9850 if test -z "$ac_cv_prog_READELF" ; then
9851 set dummy readelf
9852 if test $build = $host ; then
9853 READELF="$2"
9854 else
9855 READELF="${ncn_tool_prefix}$2"
9864 # Target tools.
9866 # Check whether --with-build-time-tools was given.
9867 if test "${with_build_time_tools+set}" = set; then :
9868 withval=$with_build_time_tools; case x"$withval" in
9869 x/*) ;;
9871 with_build_time_tools=
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9873 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9875 esac
9876 else
9877 with_build_time_tools=
9883 if test -n "$CC_FOR_TARGET"; then
9884 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9885 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9886 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9889 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9890 for ncn_progname in cc gcc; do
9891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9892 set dummy ${ncn_progname}; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if test -n "$CC_FOR_TARGET"; then
9899 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9918 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9919 if test -n "$CC_FOR_TARGET"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9921 $as_echo "$CC_FOR_TARGET" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9928 done
9931 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9932 for ncn_progname in cc gcc; do
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9935 if test -x $with_build_time_tools/${ncn_progname}; then
9936 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9938 $as_echo "yes" >&6; }
9939 break
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9944 done
9947 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9948 for ncn_progname in cc gcc; do
9949 if test -n "$ncn_target_tool_prefix"; then
9950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 if test -n "$CC_FOR_TARGET"; then
9958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9959 else
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9967 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9971 done
9972 done
9973 IFS=$as_save_IFS
9977 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9978 if test -n "$CC_FOR_TARGET"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9980 $as_echo "$CC_FOR_TARGET" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9988 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9990 set dummy ${ncn_progname}; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 if test -n "$CC_FOR_TARGET"; then
9997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9998 else
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10010 done
10011 done
10012 IFS=$as_save_IFS
10016 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10017 if test -n "$CC_FOR_TARGET"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10019 $as_echo "$CC_FOR_TARGET" >&6; }
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10027 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10028 done
10031 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10032 set dummy cc gcc
10033 if test $build = $target ; then
10034 CC_FOR_TARGET="$2"
10035 else
10036 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10038 else
10039 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10044 if test -n "$CXX_FOR_TARGET"; then
10045 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10046 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10047 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10050 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10051 for ncn_progname in c++ g++ cxx gxx; do
10052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10053 set dummy ${ncn_progname}; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 if test -n "$CXX_FOR_TARGET"; then
10060 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10061 else
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10079 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10080 if test -n "$CXX_FOR_TARGET"; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10082 $as_echo "$CXX_FOR_TARGET" >&6; }
10083 else
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10089 done
10092 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10093 for ncn_progname in c++ g++ cxx gxx; do
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10095 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10096 if test -x $with_build_time_tools/${ncn_progname}; then
10097 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10099 $as_echo "yes" >&6; }
10100 break
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10105 done
10108 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10109 for ncn_progname in c++ g++ cxx gxx; do
10110 if test -n "$ncn_target_tool_prefix"; then
10111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 if test -n "$CXX_FOR_TARGET"; then
10119 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10120 else
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10128 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130 break 2
10132 done
10133 done
10134 IFS=$as_save_IFS
10138 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10139 if test -n "$CXX_FOR_TARGET"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10141 $as_echo "$CXX_FOR_TARGET" >&6; }
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10149 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10151 set dummy ${ncn_progname}; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 if test -n "$CXX_FOR_TARGET"; then
10158 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10159 else
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10171 done
10172 done
10173 IFS=$as_save_IFS
10177 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10178 if test -n "$CXX_FOR_TARGET"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10180 $as_echo "$CXX_FOR_TARGET" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10189 done
10192 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10193 set dummy c++ g++ cxx gxx
10194 if test $build = $target ; then
10195 CXX_FOR_TARGET="$2"
10196 else
10197 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10199 else
10200 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10205 if test -n "$GCC_FOR_TARGET"; then
10206 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10207 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10208 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10211 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10212 for ncn_progname in gcc; do
10213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10214 set dummy ${ncn_progname}; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 if test -n "$GCC_FOR_TARGET"; then
10221 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10222 else
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10230 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10234 done
10235 done
10236 IFS=$as_save_IFS
10240 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10241 if test -n "$GCC_FOR_TARGET"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10243 $as_echo "$GCC_FOR_TARGET" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10250 done
10253 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10254 for ncn_progname in gcc; do
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10256 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10257 if test -x $with_build_time_tools/${ncn_progname}; then
10258 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10260 $as_echo "yes" >&6; }
10261 break
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10266 done
10269 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10270 for ncn_progname in gcc; do
10271 if test -n "$ncn_target_tool_prefix"; then
10272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 if test -n "$GCC_FOR_TARGET"; then
10280 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10293 done
10294 done
10295 IFS=$as_save_IFS
10299 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10300 if test -n "$GCC_FOR_TARGET"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10302 $as_echo "$GCC_FOR_TARGET" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10310 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10312 set dummy ${ncn_progname}; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test -n "$GCC_FOR_TARGET"; then
10319 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10338 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10339 if test -n "$GCC_FOR_TARGET"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10341 $as_echo "$GCC_FOR_TARGET" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10350 done
10353 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10354 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10355 else
10356 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10361 if test -n "$GCJ_FOR_TARGET"; then
10362 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10363 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10364 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10367 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10368 for ncn_progname in gcj; do
10369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10370 set dummy ${ncn_progname}; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 if test -n "$GCJ_FOR_TARGET"; then
10377 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10378 else
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10390 done
10391 done
10392 IFS=$as_save_IFS
10396 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10397 if test -n "$GCJ_FOR_TARGET"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10399 $as_echo "$GCJ_FOR_TARGET" >&6; }
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10406 done
10409 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10410 for ncn_progname in gcj; do
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10412 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10413 if test -x $with_build_time_tools/${ncn_progname}; then
10414 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10416 $as_echo "yes" >&6; }
10417 break
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10422 done
10425 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10426 for ncn_progname in gcj; do
10427 if test -n "$ncn_target_tool_prefix"; then
10428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10429 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 if test -n "$GCJ_FOR_TARGET"; then
10436 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10437 else
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10455 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10456 if test -n "$GCJ_FOR_TARGET"; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10458 $as_echo "$GCJ_FOR_TARGET" >&6; }
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10466 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10468 set dummy ${ncn_progname}; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10488 done
10489 done
10490 IFS=$as_save_IFS
10494 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495 if test -n "$GCJ_FOR_TARGET"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10497 $as_echo "$GCJ_FOR_TARGET" >&6; }
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10505 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10506 done
10509 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10510 set dummy gcj
10511 if test $build = $target ; then
10512 GCJ_FOR_TARGET="$2"
10513 else
10514 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10516 else
10517 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10522 if test -n "$GFORTRAN_FOR_TARGET"; then
10523 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10524 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10525 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10528 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10529 for ncn_progname in gfortran; do
10530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10531 set dummy ${ncn_progname}; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test -n "$GFORTRAN_FOR_TARGET"; then
10538 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10551 done
10552 done
10553 IFS=$as_save_IFS
10557 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10558 if test -n "$GFORTRAN_FOR_TARGET"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10560 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10567 done
10570 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10571 for ncn_progname in gfortran; do
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10573 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10574 if test -x $with_build_time_tools/${ncn_progname}; then
10575 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; }
10578 break
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10583 done
10586 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10587 for ncn_progname in gfortran; do
10588 if test -n "$ncn_target_tool_prefix"; then
10589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10590 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 if test -n "$GFORTRAN_FOR_TARGET"; then
10597 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10610 done
10611 done
10612 IFS=$as_save_IFS
10616 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10617 if test -n "$GFORTRAN_FOR_TARGET"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10619 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10627 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10629 set dummy ${ncn_progname}; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10649 done
10650 done
10651 IFS=$as_save_IFS
10655 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10656 if test -n "$GFORTRAN_FOR_TARGET"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10658 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10667 done
10670 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10671 set dummy gfortran
10672 if test $build = $target ; then
10673 GFORTRAN_FOR_TARGET="$2"
10674 else
10675 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10677 else
10678 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10683 if test -n "$GOC_FOR_TARGET"; then
10684 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10685 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10686 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10689 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10690 for ncn_progname in gccgo; do
10691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10692 set dummy ${ncn_progname}; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 if test -n "$GOC_FOR_TARGET"; then
10699 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10712 done
10713 done
10714 IFS=$as_save_IFS
10718 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10719 if test -n "$GOC_FOR_TARGET"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10721 $as_echo "$GOC_FOR_TARGET" >&6; }
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10728 done
10731 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10732 for ncn_progname in gccgo; do
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10734 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10735 if test -x $with_build_time_tools/${ncn_progname}; then
10736 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738 $as_echo "yes" >&6; }
10739 break
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10744 done
10747 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10748 for ncn_progname in gccgo; do
10749 if test -n "$ncn_target_tool_prefix"; then
10750 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 if test -n "$GOC_FOR_TARGET"; then
10758 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10771 done
10772 done
10773 IFS=$as_save_IFS
10777 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10778 if test -n "$GOC_FOR_TARGET"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10780 $as_echo "$GOC_FOR_TARGET" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10788 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 if test -n "$GOC_FOR_TARGET"; then
10797 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10810 done
10811 done
10812 IFS=$as_save_IFS
10816 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817 if test -n "$GOC_FOR_TARGET"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10819 $as_echo "$GOC_FOR_TARGET" >&6; }
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10827 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10828 done
10831 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10832 set dummy gccgo
10833 if test $build = $target ; then
10834 GOC_FOR_TARGET="$2"
10835 else
10836 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10838 else
10839 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10844 cat > conftest.c << \EOF
10845 #ifdef __GNUC__
10846 gcc_yay;
10847 #endif
10849 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10850 have_gcc_for_target=yes
10851 else
10852 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10853 have_gcc_for_target=no
10855 rm conftest.c
10860 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10861 if test -n "$with_build_time_tools"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10863 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10864 if test -x $with_build_time_tools/ar; then
10865 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10866 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10868 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10873 elif test $build != $host && test $have_gcc_for_target = yes; then
10874 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10875 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10876 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10879 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10880 # Extract the first word of "ar", so it can be a program name with args.
10881 set dummy ar; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 case $AR_FOR_TARGET in
10888 [\\/]* | ?:[\\/]*)
10889 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in $gcc_cv_tool_dirs
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10899 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10903 done
10904 done
10905 IFS=$as_save_IFS
10908 esac
10910 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10911 if test -n "$AR_FOR_TARGET"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10913 $as_echo "$AR_FOR_TARGET" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10921 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10924 if test -n "$AR_FOR_TARGET"; then
10925 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10926 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10927 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10930 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10931 for ncn_progname in ar; do
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$AR_FOR_TARGET"; then
10940 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10949 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10953 done
10954 done
10955 IFS=$as_save_IFS
10959 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10960 if test -n "$AR_FOR_TARGET"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10962 $as_echo "$AR_FOR_TARGET" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10969 done
10972 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10973 for ncn_progname in ar; do
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10975 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10976 if test -x $with_build_time_tools/${ncn_progname}; then
10977 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 break
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10985 done
10988 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10989 for ncn_progname in ar; do
10990 if test -n "$ncn_target_tool_prefix"; then
10991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10992 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 if test -n "$AR_FOR_TARGET"; then
10999 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11012 done
11013 done
11014 IFS=$as_save_IFS
11018 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11019 if test -n "$AR_FOR_TARGET"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11021 $as_echo "$AR_FOR_TARGET" >&6; }
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11029 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11031 set dummy ${ncn_progname}; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$AR_FOR_TARGET"; then
11038 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11051 done
11052 done
11053 IFS=$as_save_IFS
11057 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11058 if test -n "$AR_FOR_TARGET"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11060 $as_echo "$AR_FOR_TARGET" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11068 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11069 done
11072 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11073 set dummy ar
11074 if test $build = $target ; then
11075 AR_FOR_TARGET="$2"
11076 else
11077 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11079 else
11080 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11083 else
11084 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11090 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11093 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11094 if test -x $with_build_time_tools/as; then
11095 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11096 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11098 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11105 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11106 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11109 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11110 # Extract the first word of "as", so it can be a program name with args.
11111 set dummy as; ac_word=$2
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113 $as_echo_n "checking for $ac_word... " >&6; }
11114 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 case $AS_FOR_TARGET in
11118 [\\/]* | ?:[\\/]*)
11119 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $gcc_cv_tool_dirs
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11133 done
11134 done
11135 IFS=$as_save_IFS
11138 esac
11140 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11141 if test -n "$AS_FOR_TARGET"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11143 $as_echo "$AS_FOR_TARGET" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11151 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11154 if test -n "$AS_FOR_TARGET"; then
11155 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11156 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11157 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11160 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11161 for ncn_progname in as; do
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163 set dummy ${ncn_progname}; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test -n "$AS_FOR_TARGET"; then
11170 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11171 else
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11179 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11183 done
11184 done
11185 IFS=$as_save_IFS
11189 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11190 if test -n "$AS_FOR_TARGET"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11192 $as_echo "$AS_FOR_TARGET" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11199 done
11202 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11203 for ncn_progname in as; do
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11205 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11206 if test -x $with_build_time_tools/${ncn_progname}; then
11207 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; }
11210 break
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11215 done
11218 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11219 for ncn_progname in as; do
11220 if test -n "$ncn_target_tool_prefix"; then
11221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$AS_FOR_TARGET"; then
11229 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11242 done
11243 done
11244 IFS=$as_save_IFS
11248 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11249 if test -n "$AS_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11251 $as_echo "$AS_FOR_TARGET" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11259 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261 set dummy ${ncn_progname}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$AS_FOR_TARGET"; then
11268 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11281 done
11282 done
11283 IFS=$as_save_IFS
11287 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11288 if test -n "$AS_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11290 $as_echo "$AS_FOR_TARGET" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11299 done
11302 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11303 set dummy as
11304 if test $build = $target ; then
11305 AS_FOR_TARGET="$2"
11306 else
11307 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11309 else
11310 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11313 else
11314 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11320 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11323 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11324 if test -x $with_build_time_tools/dlltool; then
11325 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11326 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11328 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11335 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11336 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11339 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11340 # Extract the first word of "dlltool", so it can be a program name with args.
11341 set dummy dlltool; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $DLLTOOL_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $gcc_cv_tool_dirs
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11363 done
11364 done
11365 IFS=$as_save_IFS
11368 esac
11370 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11371 if test -n "$DLLTOOL_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11373 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11381 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11384 if test -n "$DLLTOOL_FOR_TARGET"; then
11385 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11386 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11387 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11390 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11391 for ncn_progname in dlltool; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393 set dummy ${ncn_progname}; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test -n "$DLLTOOL_FOR_TARGET"; then
11400 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11409 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11419 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11420 if test -n "$DLLTOOL_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11422 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11429 done
11432 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11433 for ncn_progname in dlltool; do
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439 $as_echo "yes" >&6; }
11440 break
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11445 done
11448 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11449 for ncn_progname in dlltool; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$DLLTOOL_FOR_TARGET"; then
11459 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11478 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11479 if test -n "$DLLTOOL_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11481 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11489 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11511 done
11512 done
11513 IFS=$as_save_IFS
11517 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11518 if test -n "$DLLTOOL_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11520 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11529 done
11532 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11533 set dummy dlltool
11534 if test $build = $target ; then
11535 DLLTOOL_FOR_TARGET="$2"
11536 else
11537 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11539 else
11540 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11543 else
11544 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11550 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11553 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11554 if test -x $with_build_time_tools/ld; then
11555 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11556 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11558 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11565 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11566 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11569 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "ld", so it can be a program name with args.
11571 set dummy ld; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 case $LD_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
11579 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $gcc_cv_tool_dirs
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11593 done
11594 done
11595 IFS=$as_save_IFS
11598 esac
11600 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11601 if test -n "$LD_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11603 $as_echo "$LD_FOR_TARGET" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11611 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11614 if test -n "$LD_FOR_TARGET"; then
11615 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11616 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11617 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11620 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11621 for ncn_progname in ld; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$LD_FOR_TARGET"; then
11630 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11649 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11650 if test -n "$LD_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11652 $as_echo "$LD_FOR_TARGET" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 done
11662 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11663 for ncn_progname in ld; do
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669 $as_echo "yes" >&6; }
11670 break
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11675 done
11678 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11679 for ncn_progname in ld; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$LD_FOR_TARGET"; then
11689 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11709 if test -n "$LD_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11711 $as_echo "$LD_FOR_TARGET" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$LD_FOR_TARGET"; then
11728 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11747 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11748 if test -n "$LD_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11750 $as_echo "$LD_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11759 done
11762 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11763 set dummy ld
11764 if test $build = $target ; then
11765 LD_FOR_TARGET="$2"
11766 else
11767 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11769 else
11770 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11773 else
11774 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11780 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11783 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11784 if test -x $with_build_time_tools/lipo; then
11785 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11786 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11788 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11795 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11796 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11799 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11800 # Extract the first word of "lipo", so it can be a program name with args.
11801 set dummy lipo; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $LIPO_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $gcc_cv_tool_dirs
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11831 if test -n "$LIPO_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11833 $as_echo "$LIPO_FOR_TARGET" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11844 if test -n "$LIPO_FOR_TARGET"; then
11845 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11846 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11847 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11850 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11851 for ncn_progname in lipo; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$LIPO_FOR_TARGET"; then
11860 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11873 done
11874 done
11875 IFS=$as_save_IFS
11879 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11880 if test -n "$LIPO_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11882 $as_echo "$LIPO_FOR_TARGET" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 done
11892 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11893 for ncn_progname in lipo; do
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 break
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11905 done
11908 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11909 for ncn_progname in lipo; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$LIPO_FOR_TARGET"; then
11919 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11938 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11939 if test -n "$LIPO_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11941 $as_echo "$LIPO_FOR_TARGET" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11971 done
11972 done
11973 IFS=$as_save_IFS
11977 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11978 if test -n "$LIPO_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11980 $as_echo "$LIPO_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11989 done
11992 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11993 set dummy lipo
11994 if test $build = $target ; then
11995 LIPO_FOR_TARGET="$2"
11996 else
11997 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11999 else
12000 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12003 else
12004 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12010 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12013 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12014 if test -x $with_build_time_tools/nm; then
12015 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12016 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12018 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12025 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12026 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12029 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "nm", so it can be a program name with args.
12031 set dummy nm; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 case $NM_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $gcc_cv_tool_dirs
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12053 done
12054 done
12055 IFS=$as_save_IFS
12058 esac
12060 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12061 if test -n "$NM_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12063 $as_echo "$NM_FOR_TARGET" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12071 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12074 if test -n "$NM_FOR_TARGET"; then
12075 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12076 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12077 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12080 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12081 for ncn_progname in nm; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$NM_FOR_TARGET"; then
12090 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12103 done
12104 done
12105 IFS=$as_save_IFS
12109 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12110 if test -n "$NM_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12112 $as_echo "$NM_FOR_TARGET" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12119 done
12122 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12123 for ncn_progname in nm; do
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 break
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12135 done
12138 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12139 for ncn_progname in nm; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$NM_FOR_TARGET"; then
12149 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12158 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12168 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12169 if test -n "$NM_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12171 $as_echo "$NM_FOR_TARGET" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12179 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$NM_FOR_TARGET"; then
12188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12201 done
12202 done
12203 IFS=$as_save_IFS
12207 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12208 if test -n "$NM_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12210 $as_echo "$NM_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12218 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12219 done
12222 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12223 set dummy nm
12224 if test $build = $target ; then
12225 NM_FOR_TARGET="$2"
12226 else
12227 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12229 else
12230 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12233 else
12234 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12240 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12243 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12244 if test -x $with_build_time_tools/objdump; then
12245 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12246 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12248 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12255 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12256 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12259 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "objdump", so it can be a program name with args.
12261 set dummy objdump; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 case $OBJDUMP_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $gcc_cv_tool_dirs
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12288 esac
12290 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12291 if test -n "$OBJDUMP_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12293 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12301 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12304 if test -n "$OBJDUMP_FOR_TARGET"; then
12305 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12306 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12307 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12310 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12311 for ncn_progname in objdump; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$OBJDUMP_FOR_TARGET"; then
12320 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12339 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12340 if test -n "$OBJDUMP_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12342 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12349 done
12352 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12353 for ncn_progname in objdump; do
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12360 break
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12365 done
12368 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12369 for ncn_progname in objdump; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$OBJDUMP_FOR_TARGET"; then
12379 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12399 if test -n "$OBJDUMP_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12401 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12431 done
12432 done
12433 IFS=$as_save_IFS
12437 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12440 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12449 done
12452 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12453 set dummy objdump
12454 if test $build = $target ; then
12455 OBJDUMP_FOR_TARGET="$2"
12456 else
12457 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12459 else
12460 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12463 else
12464 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12470 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12473 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12474 if test -x $with_build_time_tools/ranlib; then
12475 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12476 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12478 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12485 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12486 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12489 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12490 # Extract the first word of "ranlib", so it can be a program name with args.
12491 set dummy ranlib; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $RANLIB_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $gcc_cv_tool_dirs
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12518 esac
12520 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12521 if test -n "$RANLIB_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12523 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12531 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12534 if test -n "$RANLIB_FOR_TARGET"; then
12535 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12536 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12537 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12540 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12541 for ncn_progname in ranlib; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543 set dummy ${ncn_progname}; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$RANLIB_FOR_TARGET"; then
12550 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12569 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12570 if test -n "$RANLIB_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12572 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12579 done
12582 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12583 for ncn_progname in ranlib; do
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590 break
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12595 done
12598 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12599 for ncn_progname in ranlib; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$RANLIB_FOR_TARGET"; then
12609 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12622 done
12623 done
12624 IFS=$as_save_IFS
12628 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12629 if test -n "$RANLIB_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12631 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12639 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12661 done
12662 done
12663 IFS=$as_save_IFS
12667 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12670 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12679 done
12682 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12683 set dummy ranlib
12684 if test $build = $target ; then
12685 RANLIB_FOR_TARGET="$2"
12686 else
12687 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12689 else
12690 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12693 else
12694 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12700 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12703 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/readelf; then
12705 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12706 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12708 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12715 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12716 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12719 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "readelf", so it can be a program name with args.
12721 set dummy readelf; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 case $READELF_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $gcc_cv_tool_dirs
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12743 done
12744 done
12745 IFS=$as_save_IFS
12748 esac
12750 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12751 if test -n "$READELF_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12753 $as_echo "$READELF_FOR_TARGET" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12761 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12764 if test -n "$READELF_FOR_TARGET"; then
12765 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12766 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12767 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12770 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12771 for ncn_progname in readelf; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -n "$READELF_FOR_TARGET"; then
12780 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12789 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12793 done
12794 done
12795 IFS=$as_save_IFS
12799 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12800 if test -n "$READELF_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12802 $as_echo "$READELF_FOR_TARGET" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12809 done
12812 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in readelf; do
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820 break
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12825 done
12828 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12829 for ncn_progname in readelf; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$READELF_FOR_TARGET"; then
12839 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12859 if test -n "$READELF_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12861 $as_echo "$READELF_FOR_TARGET" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12869 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$READELF_FOR_TARGET"; then
12878 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12897 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12898 if test -n "$READELF_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12900 $as_echo "$READELF_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12909 done
12912 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12913 set dummy readelf
12914 if test $build = $target ; then
12915 READELF_FOR_TARGET="$2"
12916 else
12917 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12919 else
12920 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12923 else
12924 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12930 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12933 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/strip; then
12935 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12936 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12938 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12945 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12946 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12949 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "strip", so it can be a program name with args.
12951 set dummy strip; ac_word=$2
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953 $as_echo_n "checking for $ac_word... " >&6; }
12954 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 case $STRIP_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $gcc_cv_tool_dirs
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12978 esac
12980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12981 if test -n "$STRIP_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12983 $as_echo "$STRIP_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12991 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12994 if test -n "$STRIP_FOR_TARGET"; then
12995 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12996 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12997 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003 set dummy ${ncn_progname}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$STRIP_FOR_TARGET"; then
13010 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13029 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13030 if test -n "$STRIP_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13032 $as_echo "$STRIP_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13039 done
13042 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in strip; do
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049 $as_echo "yes" >&6; }
13050 break
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13055 done
13058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13059 for ncn_progname in strip; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13082 done
13083 done
13084 IFS=$as_save_IFS
13088 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13089 if test -n "$STRIP_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13091 $as_echo "$STRIP_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13127 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130 $as_echo "$STRIP_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13138 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13139 done
13142 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13143 set dummy strip
13144 if test $build = $target ; then
13145 STRIP_FOR_TARGET="$2"
13146 else
13147 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13149 else
13150 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13153 else
13154 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13163 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13164 if test -x $with_build_time_tools/windres; then
13165 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13166 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13168 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13175 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13176 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13179 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13180 # Extract the first word of "windres", so it can be a program name with args.
13181 set dummy windres; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 case $WINDRES_FOR_TARGET in
13188 [\\/]* | ?:[\\/]*)
13189 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $gcc_cv_tool_dirs
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13208 esac
13210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13211 if test -n "$WINDRES_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13213 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13221 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13224 if test -n "$WINDRES_FOR_TARGET"; then
13225 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13226 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13227 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$WINDRES_FOR_TARGET"; then
13240 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13253 done
13254 done
13255 IFS=$as_save_IFS
13259 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13260 if test -n "$WINDRES_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13262 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13269 done
13272 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273 for ncn_progname in windres; do
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280 break
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13285 done
13288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13289 for ncn_progname in windres; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13318 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13319 if test -n "$WINDRES_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13321 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13351 done
13352 done
13353 IFS=$as_save_IFS
13357 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13369 done
13372 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13373 set dummy windres
13374 if test $build = $target ; then
13375 WINDRES_FOR_TARGET="$2"
13376 else
13377 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13379 else
13380 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13383 else
13384 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13390 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13393 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13394 if test -x $with_build_time_tools/windmc; then
13395 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13396 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13398 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13405 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13406 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13409 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "windmc", so it can be a program name with args.
13411 set dummy windmc; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 case $WINDMC_FOR_TARGET in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $gcc_cv_tool_dirs
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13438 esac
13440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13441 if test -n "$WINDMC_FOR_TARGET"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13443 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13451 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13454 if test -n "$WINDMC_FOR_TARGET"; then
13455 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13456 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13457 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463 set dummy ${ncn_progname}; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$WINDMC_FOR_TARGET"; then
13470 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13483 done
13484 done
13485 IFS=$as_save_IFS
13489 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13490 if test -n "$WINDMC_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13492 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13499 done
13502 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in windmc; do
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13510 break
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13515 done
13518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13519 for ncn_progname in windmc; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13530 else
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 break 2
13542 done
13543 done
13544 IFS=$as_save_IFS
13548 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549 if test -n "$WINDMC_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13551 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13552 else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13559 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13581 done
13582 done
13583 IFS=$as_save_IFS
13587 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13598 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13599 done
13602 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13603 set dummy windmc
13604 if test $build = $target ; then
13605 WINDMC_FOR_TARGET="$2"
13606 else
13607 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13609 else
13610 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13613 else
13614 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13618 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13621 $as_echo_n "checking where to find the target ar... " >&6; }
13622 if test "x${build}" != "x${host}" ; then
13623 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
13625 ac_dir=`dirname $AR_FOR_TARGET`
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627 $as_echo "pre-installed in $ac_dir" >&6; }
13628 else
13629 # Canadian cross, just use what we found
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13633 else
13634 ok=yes
13635 case " ${configdirs} " in
13636 *" binutils "*) ;;
13637 *) ok=no ;;
13638 esac
13640 if test $ok = yes; then
13641 # An in-tree tool is available and we can use it
13642 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13644 $as_echo "just compiled" >&6; }
13645 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
13647 ac_dir=`dirname $AR_FOR_TARGET`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649 $as_echo "pre-installed in $ac_dir" >&6; }
13650 elif test "x$target" = "x$host"; then
13651 # We can use an host tool
13652 AR_FOR_TARGET='$(AR)'
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13654 $as_echo "host tool" >&6; }
13655 else
13656 # We need a cross tool
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13663 $as_echo_n "checking where to find the target as... " >&6; }
13664 if test "x${build}" != "x${host}" ; then
13665 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
13667 ac_dir=`dirname $AS_FOR_TARGET`
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13670 else
13671 # Canadian cross, just use what we found
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13673 $as_echo "pre-installed" >&6; }
13675 else
13676 ok=yes
13677 case " ${configdirs} " in
13678 *" gas "*) ;;
13679 *) ok=no ;;
13680 esac
13682 if test $ok = yes; then
13683 # An in-tree tool is available and we can use it
13684 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13686 $as_echo "just compiled" >&6; }
13687 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
13689 ac_dir=`dirname $AS_FOR_TARGET`
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691 $as_echo "pre-installed in $ac_dir" >&6; }
13692 elif test "x$target" = "x$host"; then
13693 # We can use an host tool
13694 AS_FOR_TARGET='$(AS)'
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13696 $as_echo "host tool" >&6; }
13697 else
13698 # We need a cross tool
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13705 $as_echo_n "checking where to find the target cc... " >&6; }
13706 if test "x${build}" != "x${host}" ; then
13707 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $CC_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13712 else
13713 # Canadian cross, just use what we found
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715 $as_echo "pre-installed" >&6; }
13717 else
13718 ok=yes
13719 case " ${configdirs} " in
13720 *" gcc "*) ;;
13721 *) ok=no ;;
13722 esac
13724 if test $ok = yes; then
13725 # An in-tree tool is available and we can use it
13726 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13728 $as_echo "just compiled" >&6; }
13729 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
13731 ac_dir=`dirname $CC_FOR_TARGET`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733 $as_echo "pre-installed in $ac_dir" >&6; }
13734 elif test "x$target" = "x$host"; then
13735 # We can use an host tool
13736 CC_FOR_TARGET='$(CC)'
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13738 $as_echo "host tool" >&6; }
13739 else
13740 # We need a cross tool
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13747 $as_echo_n "checking where to find the target c++... " >&6; }
13748 if test "x${build}" != "x${host}" ; then
13749 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
13751 ac_dir=`dirname $CXX_FOR_TARGET`
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753 $as_echo "pre-installed in $ac_dir" >&6; }
13754 else
13755 # Canadian cross, just use what we found
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13759 else
13760 ok=yes
13761 case " ${configdirs} " in
13762 *" gcc "*) ;;
13763 *) ok=no ;;
13764 esac
13765 case ,${enable_languages}, in
13766 *,c++,*) ;;
13767 *) ok=no ;;
13768 esac
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 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'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773 $as_echo "just compiled" >&6; }
13774 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
13776 ac_dir=`dirname $CXX_FOR_TARGET`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778 $as_echo "pre-installed in $ac_dir" >&6; }
13779 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 CXX_FOR_TARGET='$(CXX)'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783 $as_echo "host tool" >&6; }
13784 else
13785 # We need a cross tool
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13792 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13793 if test "x${build}" != "x${host}" ; then
13794 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 else
13800 # Canadian cross, just use what we found
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13804 else
13805 ok=yes
13806 case " ${configdirs} " in
13807 *" gcc "*) ;;
13808 *) ok=no ;;
13809 esac
13810 case ,${enable_languages}, in
13811 *,c++,*) ;;
13812 *) ok=no ;;
13813 esac
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 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'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818 $as_echo "just compiled" >&6; }
13819 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 RAW_CXX_FOR_TARGET='$(CXX)'
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828 $as_echo "host tool" >&6; }
13829 else
13830 # We need a cross tool
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13837 $as_echo_n "checking where to find the target dlltool... " >&6; }
13838 if test "x${build}" != "x${host}" ; then
13839 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
13841 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843 $as_echo "pre-installed in $ac_dir" >&6; }
13844 else
13845 # Canadian cross, just use what we found
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847 $as_echo "pre-installed" >&6; }
13849 else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" binutils "*) ;;
13853 *) ok=no ;;
13854 esac
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860 $as_echo "just compiled" >&6; }
13861 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865 $as_echo "pre-installed in $ac_dir" >&6; }
13866 elif test "x$target" = "x$host"; then
13867 # We can use an host tool
13868 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13870 $as_echo "host tool" >&6; }
13871 else
13872 # We need a cross tool
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13879 $as_echo_n "checking where to find the target gcc... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $GCC_FOR_TARGET`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13886 else
13887 # Canadian cross, just use what we found
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13891 else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" gcc "*) ;;
13895 *) ok=no ;;
13896 esac
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
13905 ac_dir=`dirname $GCC_FOR_TARGET`
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907 $as_echo "pre-installed in $ac_dir" >&6; }
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 GCC_FOR_TARGET='$()'
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912 $as_echo "host tool" >&6; }
13913 else
13914 # We need a cross tool
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13921 $as_echo_n "checking where to find the target gcj... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
13925 ac_dir=`dirname $GCJ_FOR_TARGET`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13928 else
13929 # Canadian cross, just use what we found
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13933 else
13934 ok=yes
13935 case " ${configdirs} " in
13936 *" gcc "*) ;;
13937 *) ok=no ;;
13938 esac
13939 case ,${enable_languages}, in
13940 *,java,*) ;;
13941 *) ok=no ;;
13942 esac
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947 $as_echo "just compiled" >&6; }
13948 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
13950 ac_dir=`dirname $GCJ_FOR_TARGET`
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952 $as_echo "pre-installed in $ac_dir" >&6; }
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 GCJ_FOR_TARGET='$(GCJ)'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957 $as_echo "host tool" >&6; }
13958 else
13959 # We need a cross tool
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13966 $as_echo_n "checking where to find the target gfortran... " >&6; }
13967 if test "x${build}" != "x${host}" ; then
13968 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
13970 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972 $as_echo "pre-installed in $ac_dir" >&6; }
13973 else
13974 # Canadian cross, just use what we found
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13978 else
13979 ok=yes
13980 case " ${configdirs} " in
13981 *" gcc "*) ;;
13982 *) ok=no ;;
13983 esac
13984 case ,${enable_languages}, in
13985 *,fortran,*) ;;
13986 *) ok=no ;;
13987 esac
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14003 else
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14011 $as_echo_n "checking where to find the target gccgo... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $GOC_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14018 else
14019 # Canadian cross, just use what we found
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14023 else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" gcc "*) ;;
14027 *) ok=no ;;
14028 esac
14029 case ,${enable_languages}, in
14030 *,go,*) ;;
14031 *) ok=no ;;
14032 esac
14033 if test $ok = yes; then
14034 # An in-tree tool is available and we can use it
14035 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14037 $as_echo "just compiled" >&6; }
14038 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14039 # We already found the complete path
14040 ac_dir=`dirname $GOC_FOR_TARGET`
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14042 $as_echo "pre-installed in $ac_dir" >&6; }
14043 elif test "x$target" = "x$host"; then
14044 # We can use an host tool
14045 GOC_FOR_TARGET='$(GOC)'
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14047 $as_echo "host tool" >&6; }
14048 else
14049 # We need a cross tool
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14056 $as_echo_n "checking where to find the target ld... " >&6; }
14057 if test "x${build}" != "x${host}" ; then
14058 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14059 # We already found the complete path
14060 ac_dir=`dirname $LD_FOR_TARGET`
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063 else
14064 # Canadian cross, just use what we found
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14068 else
14069 ok=yes
14070 case " ${configdirs} " in
14071 *" ld "*) ;;
14072 *) ok=no ;;
14073 esac
14075 if test $ok = yes; then
14076 # An in-tree tool is available and we can use it
14077 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14079 $as_echo "just compiled" >&6; }
14080 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14081 # We already found the complete path
14082 ac_dir=`dirname $LD_FOR_TARGET`
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084 $as_echo "pre-installed in $ac_dir" >&6; }
14085 elif test "x$target" = "x$host"; then
14086 # We can use an host tool
14087 LD_FOR_TARGET='$(LD)'
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14089 $as_echo "host tool" >&6; }
14090 else
14091 # We need a cross tool
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14098 $as_echo_n "checking where to find the target lipo... " >&6; }
14099 if test "x${build}" != "x${host}" ; then
14100 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14101 # We already found the complete path
14102 ac_dir=`dirname $LIPO_FOR_TARGET`
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14104 $as_echo "pre-installed in $ac_dir" >&6; }
14105 else
14106 # Canadian cross, just use what we found
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14110 else
14111 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14112 # We already found the complete path
14113 ac_dir=`dirname $LIPO_FOR_TARGET`
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14115 $as_echo "pre-installed in $ac_dir" >&6; }
14116 elif test "x$target" = "x$host"; then
14117 # We can use an host tool
14118 LIPO_FOR_TARGET='$(LIPO)'
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14120 $as_echo "host tool" >&6; }
14121 else
14122 # We need a cross tool
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14129 $as_echo_n "checking where to find the target nm... " >&6; }
14130 if test "x${build}" != "x${host}" ; then
14131 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
14133 ac_dir=`dirname $NM_FOR_TARGET`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136 else
14137 # Canadian cross, just use what we found
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139 $as_echo "pre-installed" >&6; }
14141 else
14142 ok=yes
14143 case " ${configdirs} " in
14144 *" binutils "*) ;;
14145 *) ok=no ;;
14146 esac
14148 if test $ok = yes; then
14149 # An in-tree tool is available and we can use it
14150 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14152 $as_echo "just compiled" >&6; }
14153 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
14155 ac_dir=`dirname $NM_FOR_TARGET`
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157 $as_echo "pre-installed in $ac_dir" >&6; }
14158 elif test "x$target" = "x$host"; then
14159 # We can use an host tool
14160 NM_FOR_TARGET='$(NM)'
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14162 $as_echo "host tool" >&6; }
14163 else
14164 # We need a cross tool
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14171 $as_echo_n "checking where to find the target objdump... " >&6; }
14172 if test "x${build}" != "x${host}" ; then
14173 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14174 # We already found the complete path
14175 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14177 $as_echo "pre-installed in $ac_dir" >&6; }
14178 else
14179 # Canadian cross, just use what we found
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181 $as_echo "pre-installed" >&6; }
14183 else
14184 ok=yes
14185 case " ${configdirs} " in
14186 *" binutils "*) ;;
14187 *) ok=no ;;
14188 esac
14190 if test $ok = yes; then
14191 # An in-tree tool is available and we can use it
14192 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14194 $as_echo "just compiled" >&6; }
14195 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
14197 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199 $as_echo "pre-installed in $ac_dir" >&6; }
14200 elif test "x$target" = "x$host"; then
14201 # We can use an host tool
14202 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14204 $as_echo "host tool" >&6; }
14205 else
14206 # We need a cross tool
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208 $as_echo "pre-installed" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14213 $as_echo_n "checking where to find the target ranlib... " >&6; }
14214 if test "x${build}" != "x${host}" ; then
14215 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14216 # We already found the complete path
14217 ac_dir=`dirname $RANLIB_FOR_TARGET`
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14219 $as_echo "pre-installed in $ac_dir" >&6; }
14220 else
14221 # Canadian cross, just use what we found
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223 $as_echo "pre-installed" >&6; }
14225 else
14226 ok=yes
14227 case " ${configdirs} " in
14228 *" binutils "*) ;;
14229 *) ok=no ;;
14230 esac
14232 if test $ok = yes; then
14233 # An in-tree tool is available and we can use it
14234 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14236 $as_echo "just compiled" >&6; }
14237 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14238 # We already found the complete path
14239 ac_dir=`dirname $RANLIB_FOR_TARGET`
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14241 $as_echo "pre-installed in $ac_dir" >&6; }
14242 elif test "x$target" = "x$host"; then
14243 # We can use an host tool
14244 RANLIB_FOR_TARGET='$(RANLIB)'
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14246 $as_echo "host tool" >&6; }
14247 else
14248 # We need a cross tool
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14250 $as_echo "pre-installed" >&6; }
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14255 $as_echo_n "checking where to find the target readelf... " >&6; }
14256 if test "x${build}" != "x${host}" ; then
14257 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14258 # We already found the complete path
14259 ac_dir=`dirname $READELF_FOR_TARGET`
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261 $as_echo "pre-installed in $ac_dir" >&6; }
14262 else
14263 # Canadian cross, just use what we found
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265 $as_echo "pre-installed" >&6; }
14267 else
14268 ok=yes
14269 case " ${configdirs} " in
14270 *" binutils "*) ;;
14271 *) ok=no ;;
14272 esac
14274 if test $ok = yes; then
14275 # An in-tree tool is available and we can use it
14276 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14278 $as_echo "just compiled" >&6; }
14279 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14280 # We already found the complete path
14281 ac_dir=`dirname $READELF_FOR_TARGET`
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14283 $as_echo "pre-installed in $ac_dir" >&6; }
14284 elif test "x$target" = "x$host"; then
14285 # We can use an host tool
14286 READELF_FOR_TARGET='$(READELF)'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14288 $as_echo "host tool" >&6; }
14289 else
14290 # We need a cross tool
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292 $as_echo "pre-installed" >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14297 $as_echo_n "checking where to find the target strip... " >&6; }
14298 if test "x${build}" != "x${host}" ; then
14299 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14300 # We already found the complete path
14301 ac_dir=`dirname $STRIP_FOR_TARGET`
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14303 $as_echo "pre-installed in $ac_dir" >&6; }
14304 else
14305 # Canadian cross, just use what we found
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307 $as_echo "pre-installed" >&6; }
14309 else
14310 ok=yes
14311 case " ${configdirs} " in
14312 *" binutils "*) ;;
14313 *) ok=no ;;
14314 esac
14316 if test $ok = yes; then
14317 # An in-tree tool is available and we can use it
14318 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14320 $as_echo "just compiled" >&6; }
14321 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14322 # We already found the complete path
14323 ac_dir=`dirname $STRIP_FOR_TARGET`
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14325 $as_echo "pre-installed in $ac_dir" >&6; }
14326 elif test "x$target" = "x$host"; then
14327 # We can use an host tool
14328 STRIP_FOR_TARGET='$(STRIP)'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14330 $as_echo "host tool" >&6; }
14331 else
14332 # We need a cross tool
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14339 $as_echo_n "checking where to find the target windres... " >&6; }
14340 if test "x${build}" != "x${host}" ; then
14341 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14342 # We already found the complete path
14343 ac_dir=`dirname $WINDRES_FOR_TARGET`
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14345 $as_echo "pre-installed in $ac_dir" >&6; }
14346 else
14347 # Canadian cross, just use what we found
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349 $as_echo "pre-installed" >&6; }
14351 else
14352 ok=yes
14353 case " ${configdirs} " in
14354 *" binutils "*) ;;
14355 *) ok=no ;;
14356 esac
14358 if test $ok = yes; then
14359 # An in-tree tool is available and we can use it
14360 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14362 $as_echo "just compiled" >&6; }
14363 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14364 # We already found the complete path
14365 ac_dir=`dirname $WINDRES_FOR_TARGET`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14367 $as_echo "pre-installed in $ac_dir" >&6; }
14368 elif test "x$target" = "x$host"; then
14369 # We can use an host tool
14370 WINDRES_FOR_TARGET='$(WINDRES)'
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14372 $as_echo "host tool" >&6; }
14373 else
14374 # We need a cross tool
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376 $as_echo "pre-installed" >&6; }
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14381 $as_echo_n "checking where to find the target windmc... " >&6; }
14382 if test "x${build}" != "x${host}" ; then
14383 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14384 # We already found the complete path
14385 ac_dir=`dirname $WINDMC_FOR_TARGET`
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14387 $as_echo "pre-installed in $ac_dir" >&6; }
14388 else
14389 # Canadian cross, just use what we found
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391 $as_echo "pre-installed" >&6; }
14393 else
14394 ok=yes
14395 case " ${configdirs} " in
14396 *" binutils "*) ;;
14397 *) ok=no ;;
14398 esac
14400 if test $ok = yes; then
14401 # An in-tree tool is available and we can use it
14402 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14404 $as_echo "just compiled" >&6; }
14405 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $WINDMC_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409 $as_echo "pre-installed in $ac_dir" >&6; }
14410 elif test "x$target" = "x$host"; then
14411 # We can use an host tool
14412 WINDMC_FOR_TARGET='$(WINDMC)'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14414 $as_echo "host tool" >&6; }
14415 else
14416 # We need a cross tool
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14426 # Certain tools may need extra flags.
14427 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14428 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14429 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14431 # When building target libraries, except in a Canadian cross, we use
14432 # the same toolchain as the compiler we just built.
14433 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14434 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14435 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14436 if test $host = $build; then
14437 case " $configdirs " in
14438 *" gcc "*)
14439 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14440 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14441 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14443 esac
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14451 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14452 # Check whether --enable-maintainer-mode was given.
14453 if test "${enable_maintainer_mode+set}" = set; then :
14454 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14455 else
14456 USE_MAINTAINER_MODE=no
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14460 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14463 if test "$USE_MAINTAINER_MODE" = yes; then
14464 MAINTAINER_MODE_TRUE=
14465 MAINTAINER_MODE_FALSE='#'
14466 else
14467 MAINTAINER_MODE_TRUE='#'
14468 MAINTAINER_MODE_FALSE=
14470 MAINT=$MAINTAINER_MODE_TRUE
14472 # ---------------------
14473 # GCC bootstrap support
14474 # ---------------------
14476 # Stage specific cflags for build.
14477 stage1_cflags="-g"
14478 case $build in
14479 vax-*-*)
14480 case ${GCC} in
14481 yes) stage1_cflags="-g -Wa,-J" ;;
14482 *) stage1_cflags="-g -J" ;;
14483 esac ;;
14484 esac
14488 # Enable --enable-checking in stage1 of the compiler.
14489 # Check whether --enable-stage1-checking was given.
14490 if test "${enable_stage1_checking+set}" = set; then :
14491 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14492 else
14493 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14494 stage1_checking=--enable-checking=yes,types
14495 else
14496 stage1_checking=--enable-checking=$enable_checking,types
14502 # Enable -Werror in bootstrap stage2 and later.
14503 # Check whether --enable-werror was given.
14504 if test "${enable_werror+set}" = set; then :
14505 enableval=$enable_werror;
14506 else
14507 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14508 enable_werror=yes
14509 else
14510 enable_werror=no
14514 case ${enable_werror} in
14515 yes) stage2_werror_flag="--enable-werror-always" ;;
14516 *) stage2_werror_flag="" ;;
14517 esac
14520 # Enable --enable-host-shared.
14521 # Check whether --enable-host-shared was given.
14522 if test "${enable_host_shared+set}" = set; then :
14523 enableval=$enable_host_shared; host_shared=$enableval
14524 else
14525 host_shared=no
14530 # Specify what files to not compare during bootstrap.
14532 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14533 case "$target" in
14534 hppa*64*-*-hpux*) ;;
14535 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14536 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14537 esac
14540 ac_config_files="$ac_config_files Makefile"
14542 cat >confcache <<\_ACEOF
14543 # This file is a shell script that caches the results of configure
14544 # tests run on this system so they can be shared between configure
14545 # scripts and configure runs, see configure's option --config-cache.
14546 # It is not useful on other systems. If it contains results you don't
14547 # want to keep, you may remove or edit it.
14549 # config.status only pays attention to the cache file if you give it
14550 # the --recheck option to rerun configure.
14552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14554 # following values.
14556 _ACEOF
14558 # The following way of writing the cache mishandles newlines in values,
14559 # but we know of no workaround that is simple, portable, and efficient.
14560 # So, we kill variables containing newlines.
14561 # Ultrix sh set writes to stderr and can't be redirected directly,
14562 # and sets the high bit in the cache file unless we assign to the vars.
14564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14565 eval ac_val=\$$ac_var
14566 case $ac_val in #(
14567 *${as_nl}*)
14568 case $ac_var in #(
14569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14571 esac
14572 case $ac_var in #(
14573 _ | IFS | as_nl) ;; #(
14574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14575 *) { eval $ac_var=; unset $ac_var;} ;;
14576 esac ;;
14577 esac
14578 done
14580 (set) 2>&1 |
14581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14582 *${as_nl}ac_space=\ *)
14583 # `set' does not quote correctly, so add quotes: double-quote
14584 # substitution turns \\\\ into \\, and sed turns \\ into \.
14585 sed -n \
14586 "s/'/'\\\\''/g;
14587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14588 ;; #(
14590 # `set' quotes correctly as required by POSIX, so do not add quotes.
14591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14593 esac |
14594 sort
14596 sed '
14597 /^ac_cv_env_/b end
14598 t clear
14599 :clear
14600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14601 t end
14602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14603 :end' >>confcache
14604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14605 if test -w "$cache_file"; then
14606 test "x$cache_file" != "x/dev/null" &&
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14608 $as_echo "$as_me: updating cache $cache_file" >&6;}
14609 cat confcache >$cache_file
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14615 rm -f confcache
14617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14618 # Let make expand exec_prefix.
14619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14621 # Transform confdefs.h into DEFS.
14622 # Protect against shell expansion while executing Makefile rules.
14623 # Protect against Makefile macro expansion.
14625 # If the first sed substitution is executed (which looks for macros that
14626 # take arguments), then branch to the quote section. Otherwise,
14627 # look for a macro that doesn't take arguments.
14628 ac_script='
14629 :mline
14630 /\\$/{
14632 s,\\\n,,
14633 b mline
14635 t clear
14636 :clear
14637 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14638 t quote
14639 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14640 t quote
14641 b any
14642 :quote
14643 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14644 s/\[/\\&/g
14645 s/\]/\\&/g
14646 s/\$/$$/g
14648 :any
14651 s/^\n//
14652 s/\n/ /g
14656 DEFS=`sed -n "$ac_script" confdefs.h`
14659 ac_libobjs=
14660 ac_ltlibobjs=
14661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14662 # 1. Remove the extension, and $U if already installed.
14663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14666 # will be set to the directory where LIBOBJS objects are built.
14667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14669 done
14670 LIBOBJS=$ac_libobjs
14672 LTLIBOBJS=$ac_ltlibobjs
14676 : ${CONFIG_STATUS=./config.status}
14677 ac_write_fail=0
14678 ac_clean_files_save=$ac_clean_files
14679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14682 as_write_fail=0
14683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14684 #! $SHELL
14685 # Generated by $as_me.
14686 # Run this file to recreate the current configuration.
14687 # Compiler output produced by configure, useful for debugging
14688 # configure, is in config.log if it exists.
14690 debug=false
14691 ac_cs_recheck=false
14692 ac_cs_silent=false
14694 SHELL=\${CONFIG_SHELL-$SHELL}
14695 export SHELL
14696 _ASEOF
14697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14698 ## -------------------- ##
14699 ## M4sh Initialization. ##
14700 ## -------------------- ##
14702 # Be more Bourne compatible
14703 DUALCASE=1; export DUALCASE # for MKS sh
14704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14705 emulate sh
14706 NULLCMD=:
14707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14708 # is contrary to our usage. Disable this feature.
14709 alias -g '${1+"$@"}'='"$@"'
14710 setopt NO_GLOB_SUBST
14711 else
14712 case `(set -o) 2>/dev/null` in #(
14713 *posix*) :
14714 set -o posix ;; #(
14715 *) :
14717 esac
14721 as_nl='
14723 export as_nl
14724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14728 # Prefer a ksh shell builtin over an external printf program on Solaris,
14729 # but without wasting forks for bash or zsh.
14730 if test -z "$BASH_VERSION$ZSH_VERSION" \
14731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14732 as_echo='print -r --'
14733 as_echo_n='print -rn --'
14734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14735 as_echo='printf %s\n'
14736 as_echo_n='printf %s'
14737 else
14738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14740 as_echo_n='/usr/ucb/echo -n'
14741 else
14742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14743 as_echo_n_body='eval
14744 arg=$1;
14745 case $arg in #(
14746 *"$as_nl"*)
14747 expr "X$arg" : "X\\(.*\\)$as_nl";
14748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14749 esac;
14750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14752 export as_echo_n_body
14753 as_echo_n='sh -c $as_echo_n_body as_echo'
14755 export as_echo_body
14756 as_echo='sh -c $as_echo_body as_echo'
14759 # The user is always right.
14760 if test "${PATH_SEPARATOR+set}" != set; then
14761 PATH_SEPARATOR=:
14762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14764 PATH_SEPARATOR=';'
14769 # IFS
14770 # We need space, tab and new line, in precisely that order. Quoting is
14771 # there to prevent editors from complaining about space-tab.
14772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14773 # splitting by setting IFS to empty value.)
14774 IFS=" "" $as_nl"
14776 # Find who we are. Look in the path if we contain no directory separator.
14777 case $0 in #((
14778 *[\\/]* ) as_myself=$0 ;;
14779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14780 for as_dir in $PATH
14782 IFS=$as_save_IFS
14783 test -z "$as_dir" && as_dir=.
14784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14785 done
14786 IFS=$as_save_IFS
14789 esac
14790 # We did not find ourselves, most probably we were run as `sh COMMAND'
14791 # in which case we are not to be found in the path.
14792 if test "x$as_myself" = x; then
14793 as_myself=$0
14795 if test ! -f "$as_myself"; then
14796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14797 exit 1
14800 # Unset variables that we do not need and which cause bugs (e.g. in
14801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14802 # suppresses any "Segmentation fault" message there. '((' could
14803 # trigger a bug in pdksh 5.2.14.
14804 for as_var in BASH_ENV ENV MAIL MAILPATH
14805 do eval test x\${$as_var+set} = xset \
14806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14807 done
14808 PS1='$ '
14809 PS2='> '
14810 PS4='+ '
14812 # NLS nuisances.
14813 LC_ALL=C
14814 export LC_ALL
14815 LANGUAGE=C
14816 export LANGUAGE
14818 # CDPATH.
14819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14822 # as_fn_error ERROR [LINENO LOG_FD]
14823 # ---------------------------------
14824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14826 # script with status $?, using 1 if that was 0.
14827 as_fn_error ()
14829 as_status=$?; test $as_status -eq 0 && as_status=1
14830 if test "$3"; then
14831 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14834 $as_echo "$as_me: error: $1" >&2
14835 as_fn_exit $as_status
14836 } # as_fn_error
14839 # as_fn_set_status STATUS
14840 # -----------------------
14841 # Set $? to STATUS, without forking.
14842 as_fn_set_status ()
14844 return $1
14845 } # as_fn_set_status
14847 # as_fn_exit STATUS
14848 # -----------------
14849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14850 as_fn_exit ()
14852 set +e
14853 as_fn_set_status $1
14854 exit $1
14855 } # as_fn_exit
14857 # as_fn_unset VAR
14858 # ---------------
14859 # Portably unset VAR.
14860 as_fn_unset ()
14862 { eval $1=; unset $1;}
14864 as_unset=as_fn_unset
14865 # as_fn_append VAR VALUE
14866 # ----------------------
14867 # Append the text in VALUE to the end of the definition contained in VAR. Take
14868 # advantage of any shell optimizations that allow amortized linear growth over
14869 # repeated appends, instead of the typical quadratic growth present in naive
14870 # implementations.
14871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14872 eval 'as_fn_append ()
14874 eval $1+=\$2
14876 else
14877 as_fn_append ()
14879 eval $1=\$$1\$2
14881 fi # as_fn_append
14883 # as_fn_arith ARG...
14884 # ------------------
14885 # Perform arithmetic evaluation on the ARGs, and store the result in the
14886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14887 # must be portable across $(()) and expr.
14888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14889 eval 'as_fn_arith ()
14891 as_val=$(( $* ))
14893 else
14894 as_fn_arith ()
14896 as_val=`expr "$@" || test $? -eq 1`
14898 fi # as_fn_arith
14901 if expr a : '\(a\)' >/dev/null 2>&1 &&
14902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14903 as_expr=expr
14904 else
14905 as_expr=false
14908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14909 as_basename=basename
14910 else
14911 as_basename=false
14914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14915 as_dirname=dirname
14916 else
14917 as_dirname=false
14920 as_me=`$as_basename -- "$0" ||
14921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14922 X"$0" : 'X\(//\)$' \| \
14923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14924 $as_echo X/"$0" |
14925 sed '/^.*\/\([^/][^/]*\)\/*$/{
14926 s//\1/
14929 /^X\/\(\/\/\)$/{
14930 s//\1/
14933 /^X\/\(\/\).*/{
14934 s//\1/
14937 s/.*/./; q'`
14939 # Avoid depending upon Character Ranges.
14940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14943 as_cr_digits='0123456789'
14944 as_cr_alnum=$as_cr_Letters$as_cr_digits
14946 ECHO_C= ECHO_N= ECHO_T=
14947 case `echo -n x` in #(((((
14948 -n*)
14949 case `echo 'xy\c'` in
14950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14951 xy) ECHO_C='\c';;
14952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14953 ECHO_T=' ';;
14954 esac;;
14956 ECHO_N='-n';;
14957 esac
14959 rm -f conf$$ conf$$.exe conf$$.file
14960 if test -d conf$$.dir; then
14961 rm -f conf$$.dir/conf$$.file
14962 else
14963 rm -f conf$$.dir
14964 mkdir conf$$.dir 2>/dev/null
14966 if (echo >conf$$.file) 2>/dev/null; then
14967 if ln -s conf$$.file conf$$ 2>/dev/null; then
14968 as_ln_s='ln -s'
14969 # ... but there are two gotchas:
14970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14972 # In both cases, we have to default to `cp -p'.
14973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14974 as_ln_s='cp -p'
14975 elif ln conf$$.file conf$$ 2>/dev/null; then
14976 as_ln_s=ln
14977 else
14978 as_ln_s='cp -p'
14980 else
14981 as_ln_s='cp -p'
14983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14984 rmdir conf$$.dir 2>/dev/null
14987 # as_fn_mkdir_p
14988 # -------------
14989 # Create "$as_dir" as a directory, including parents if necessary.
14990 as_fn_mkdir_p ()
14993 case $as_dir in #(
14994 -*) as_dir=./$as_dir;;
14995 esac
14996 test -d "$as_dir" || eval $as_mkdir_p || {
14997 as_dirs=
14998 while :; do
14999 case $as_dir in #(
15000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15001 *) as_qdir=$as_dir;;
15002 esac
15003 as_dirs="'$as_qdir' $as_dirs"
15004 as_dir=`$as_dirname -- "$as_dir" ||
15005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15006 X"$as_dir" : 'X\(//\)[^/]' \| \
15007 X"$as_dir" : 'X\(//\)$' \| \
15008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15009 $as_echo X"$as_dir" |
15010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15011 s//\1/
15014 /^X\(\/\/\)[^/].*/{
15015 s//\1/
15018 /^X\(\/\/\)$/{
15019 s//\1/
15022 /^X\(\/\).*/{
15023 s//\1/
15026 s/.*/./; q'`
15027 test -d "$as_dir" && break
15028 done
15029 test -z "$as_dirs" || eval "mkdir $as_dirs"
15030 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15033 } # as_fn_mkdir_p
15034 if mkdir -p . 2>/dev/null; then
15035 as_mkdir_p='mkdir -p "$as_dir"'
15036 else
15037 test -d ./-p && rmdir ./-p
15038 as_mkdir_p=false
15041 if test -x / >/dev/null 2>&1; then
15042 as_test_x='test -x'
15043 else
15044 if ls -dL / >/dev/null 2>&1; then
15045 as_ls_L_option=L
15046 else
15047 as_ls_L_option=
15049 as_test_x='
15050 eval sh -c '\''
15051 if test -d "$1"; then
15052 test -d "$1/.";
15053 else
15054 case $1 in #(
15055 -*)set "./$1";;
15056 esac;
15057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15058 ???[sx]*):;;*)false;;esac;fi
15059 '\'' sh
15062 as_executable_p=$as_test_x
15064 # Sed expression to map a string onto a valid CPP name.
15065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15067 # Sed expression to map a string onto a valid variable name.
15068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15071 exec 6>&1
15072 ## ----------------------------------- ##
15073 ## Main body of $CONFIG_STATUS script. ##
15074 ## ----------------------------------- ##
15075 _ASEOF
15076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15079 # Save the log message, to keep $0 and so on meaningful, and to
15080 # report actual input values of CONFIG_FILES etc. instead of their
15081 # values after options handling.
15082 ac_log="
15083 This file was extended by $as_me, which was
15084 generated by GNU Autoconf 2.64. Invocation command line was
15086 CONFIG_FILES = $CONFIG_FILES
15087 CONFIG_HEADERS = $CONFIG_HEADERS
15088 CONFIG_LINKS = $CONFIG_LINKS
15089 CONFIG_COMMANDS = $CONFIG_COMMANDS
15090 $ $0 $@
15092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15095 _ACEOF
15097 case $ac_config_files in *"
15098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15099 esac
15103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15104 # Files that config.status was made for.
15105 config_files="$ac_config_files"
15107 _ACEOF
15109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 ac_cs_usage="\
15111 \`$as_me' instantiates files and other configuration actions
15112 from templates according to the current configuration. Unless the files
15113 and actions are specified as TAGs, all are instantiated by default.
15115 Usage: $0 [OPTION]... [TAG]...
15117 -h, --help print this help, then exit
15118 -V, --version print version number and configuration settings, then exit
15119 -q, --quiet, --silent
15120 do not print progress messages
15121 -d, --debug don't remove temporary files
15122 --recheck update $as_me by reconfiguring in the same conditions
15123 --file=FILE[:TEMPLATE]
15124 instantiate the configuration file FILE
15126 Configuration files:
15127 $config_files
15129 Report bugs to the package provider."
15131 _ACEOF
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15133 ac_cs_version="\\
15134 config.status
15135 configured by $0, generated by GNU Autoconf 2.64,
15136 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15138 Copyright (C) 2009 Free Software Foundation, Inc.
15139 This config.status script is free software; the Free Software Foundation
15140 gives unlimited permission to copy, distribute and modify it."
15142 ac_pwd='$ac_pwd'
15143 srcdir='$srcdir'
15144 INSTALL='$INSTALL'
15145 AWK='$AWK'
15146 test -n "\$AWK" || AWK=awk
15147 _ACEOF
15149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15150 # The default lists apply if the user does not specify any file.
15151 ac_need_defaults=:
15152 while test $# != 0
15154 case $1 in
15155 --*=*)
15156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15158 ac_shift=:
15161 ac_option=$1
15162 ac_optarg=$2
15163 ac_shift=shift
15165 esac
15167 case $ac_option in
15168 # Handling of the options.
15169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15170 ac_cs_recheck=: ;;
15171 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15172 $as_echo "$ac_cs_version"; exit ;;
15173 --debug | --debu | --deb | --de | --d | -d )
15174 debug=: ;;
15175 --file | --fil | --fi | --f )
15176 $ac_shift
15177 case $ac_optarg in
15178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15179 esac
15180 as_fn_append CONFIG_FILES " '$ac_optarg'"
15181 ac_need_defaults=false;;
15182 --he | --h | --help | --hel | -h )
15183 $as_echo "$ac_cs_usage"; exit ;;
15184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15186 ac_cs_silent=: ;;
15188 # This is an error.
15189 -*) as_fn_error "unrecognized option: \`$1'
15190 Try \`$0 --help' for more information." ;;
15192 *) as_fn_append ac_config_targets " $1"
15193 ac_need_defaults=false ;;
15195 esac
15196 shift
15197 done
15199 ac_configure_extra_args=
15201 if $ac_cs_silent; then
15202 exec 6>/dev/null
15203 ac_configure_extra_args="$ac_configure_extra_args --silent"
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 if \$ac_cs_recheck; then
15209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15210 shift
15211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15212 CONFIG_SHELL='$SHELL'
15213 export CONFIG_SHELL
15214 exec "\$@"
15217 _ACEOF
15218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219 exec 5>>config.log
15221 echo
15222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15223 ## Running $as_me. ##
15224 _ASBOX
15225 $as_echo "$ac_log"
15226 } >&5
15228 _ACEOF
15229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15231 # INIT-COMMANDS
15233 extrasub_build="$extrasub_build"
15234 extrasub_host="$extrasub_host"
15235 extrasub_target="$extrasub_target"
15237 _ACEOF
15239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 # Handling of arguments.
15242 for ac_config_target in $ac_config_targets
15244 case $ac_config_target in
15245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15247 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15248 esac
15249 done
15252 # If the user did not use the arguments to specify the items to instantiate,
15253 # then the envvar interface is used. Set only those that are not.
15254 # We use the long form for the default assignment because of an extremely
15255 # bizarre bug on SunOS 4.1.3.
15256 if $ac_need_defaults; then
15257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15260 # Have a temporary directory for convenience. Make it in the build tree
15261 # simply because there is no reason against having it here, and in addition,
15262 # creating and moving files from /tmp can sometimes cause problems.
15263 # Hook for its removal unless debugging.
15264 # Note that there is a small window in which the directory will not be cleaned:
15265 # after its creation but before its name has been assigned to `$tmp'.
15266 $debug ||
15268 tmp=
15269 trap 'exit_status=$?
15270 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15272 trap 'as_fn_exit 1' 1 2 13 15
15274 # Create a (secure) tmp directory for tmp files.
15277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15278 test -n "$tmp" && test -d "$tmp"
15279 } ||
15281 tmp=./conf$$-$RANDOM
15282 (umask 077 && mkdir "$tmp")
15283 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15285 # Set up the scripts for CONFIG_FILES section.
15286 # No need to generate them if there are no CONFIG_FILES.
15287 # This happens for instance with `./config.status config.h'.
15288 if test -n "$CONFIG_FILES"; then
15290 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15291 ac_cs_awk_getline=:
15292 ac_cs_awk_pipe_init=
15293 ac_cs_awk_read_file='
15294 while ((getline aline < (F[key])) > 0)
15295 print(aline)
15296 close(F[key])'
15297 ac_cs_awk_pipe_fini=
15298 else
15299 ac_cs_awk_getline=false
15300 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15301 ac_cs_awk_read_file='
15302 print "|#_!!_#|"
15303 print "cat " F[key] " &&"
15304 '$ac_cs_awk_pipe_init
15305 # The final `:' finishes the AND list.
15306 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15308 ac_cr=`echo X | tr X '\015'`
15309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15310 # But we know of no other shell where ac_cr would be empty at this
15311 # point, so we can use a bashism as a fallback.
15312 if test "x$ac_cr" = x; then
15313 eval ac_cr=\$\'\\r\'
15315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15317 ac_cs_awk_cr='\r'
15318 else
15319 ac_cs_awk_cr=$ac_cr
15322 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15323 _ACEOF
15325 # Create commands to substitute file output variables.
15327 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15328 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15329 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15330 echo "_ACAWK" &&
15331 echo "_ACEOF"
15332 } >conf$$files.sh &&
15333 . ./conf$$files.sh ||
15334 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15335 rm -f conf$$files.sh
15338 echo "cat >conf$$subs.awk <<_ACEOF" &&
15339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15340 echo "_ACEOF"
15341 } >conf$$subs.sh ||
15342 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15344 ac_delim='%!_!# '
15345 for ac_last_try in false false false false false :; do
15346 . ./conf$$subs.sh ||
15347 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15350 if test $ac_delim_n = $ac_delim_num; then
15351 break
15352 elif $ac_last_try; then
15353 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15354 else
15355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15357 done
15358 rm -f conf$$subs.sh
15360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15361 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15362 _ACEOF
15363 sed -n '
15365 s/^/S["/; s/!.*/"]=/
15368 s/^[^!]*!//
15369 :repl
15370 t repl
15371 s/'"$ac_delim"'$//
15372 t delim
15375 s/\(.\{148\}\).*/\1/
15376 t more1
15377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15380 b repl
15381 :more1
15382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15385 s/.\{148\}//
15386 t nl
15387 :delim
15389 s/\(.\{148\}\).*/\1/
15390 t more2
15391 s/["\\]/\\&/g; s/^/"/; s/$/"/
15394 :more2
15395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15398 s/.\{148\}//
15399 t delim
15400 ' <conf$$subs.awk | sed '
15401 /^[^""]/{
15403 s/\n//
15405 ' >>$CONFIG_STATUS || ac_write_fail=1
15406 rm -f conf$$subs.awk
15407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15408 _ACAWK
15409 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15410 for (key in S) S_is_set[key] = 1
15411 FS = "\a"
15412 \$ac_cs_awk_pipe_init
15415 line = $ 0
15416 nfields = split(line, field, "@")
15417 substed = 0
15418 len = length(field[1])
15419 for (i = 2; i < nfields; i++) {
15420 key = field[i]
15421 keylen = length(key)
15422 if (S_is_set[key]) {
15423 value = S[key]
15424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15425 len += length(value) + length(field[++i])
15426 substed = 1
15427 } else
15428 len += 1 + keylen
15430 if (nfields == 3 && !substed) {
15431 key = field[2]
15432 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15433 \$ac_cs_awk_read_file
15434 next
15437 print line
15439 \$ac_cs_awk_pipe_fini
15440 _ACAWK
15441 _ACEOF
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15445 else
15447 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15448 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15449 _ACEOF
15451 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15452 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15453 # trailing colons and then remove the whole line if VPATH becomes empty
15454 # (actually we leave an empty line to preserve line numbers).
15455 if test "x$srcdir" = x.; then
15456 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15457 s/:*\$(srcdir):*/:/
15458 s/:*\${srcdir}:*/:/
15459 s/:*@srcdir@:*/:/
15460 s/^\([^=]*=[ ]*\):*/\1/
15461 s/:*$//
15462 s/^[^=]*=[ ]*$//
15466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 fi # test -n "$CONFIG_FILES"
15470 eval set X " :F $CONFIG_FILES "
15471 shift
15472 for ac_tag
15474 case $ac_tag in
15475 :[FHLC]) ac_mode=$ac_tag; continue;;
15476 esac
15477 case $ac_mode$ac_tag in
15478 :[FHL]*:*);;
15479 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15480 :[FH]-) ac_tag=-:-;;
15481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15482 esac
15483 ac_save_IFS=$IFS
15484 IFS=:
15485 set x $ac_tag
15486 IFS=$ac_save_IFS
15487 shift
15488 ac_file=$1
15489 shift
15491 case $ac_mode in
15492 :L) ac_source=$1;;
15493 :[FH])
15494 ac_file_inputs=
15495 for ac_f
15497 case $ac_f in
15498 -) ac_f="$tmp/stdin";;
15499 *) # Look for the file first in the build tree, then in the source tree
15500 # (if the path is not absolute). The absolute path cannot be DOS-style,
15501 # because $ac_f cannot contain `:'.
15502 test -f "$ac_f" ||
15503 case $ac_f in
15504 [\\/$]*) false;;
15505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15506 esac ||
15507 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15508 esac
15509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15510 as_fn_append ac_file_inputs " '$ac_f'"
15511 done
15513 # Let's still pretend it is `configure' which instantiates (i.e., don't
15514 # use $as_me), people would be surprised to read:
15515 # /* config.h. Generated by config.status. */
15516 configure_input='Generated from '`
15517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15518 `' by configure.'
15519 if test x"$ac_file" != x-; then
15520 configure_input="$ac_file. $configure_input"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15522 $as_echo "$as_me: creating $ac_file" >&6;}
15524 # Neutralize special characters interpreted by sed in replacement strings.
15525 case $configure_input in #(
15526 *\&* | *\|* | *\\* )
15527 ac_sed_conf_input=`$as_echo "$configure_input" |
15528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15529 *) ac_sed_conf_input=$configure_input;;
15530 esac
15532 case $ac_tag in
15533 *:-:* | *:-) cat >"$tmp/stdin" \
15534 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15535 esac
15537 esac
15539 ac_dir=`$as_dirname -- "$ac_file" ||
15540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15541 X"$ac_file" : 'X\(//\)[^/]' \| \
15542 X"$ac_file" : 'X\(//\)$' \| \
15543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15544 $as_echo X"$ac_file" |
15545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15546 s//\1/
15549 /^X\(\/\/\)[^/].*/{
15550 s//\1/
15553 /^X\(\/\/\)$/{
15554 s//\1/
15557 /^X\(\/\).*/{
15558 s//\1/
15561 s/.*/./; q'`
15562 as_dir="$ac_dir"; as_fn_mkdir_p
15563 ac_builddir=.
15565 case "$ac_dir" in
15566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15569 # A ".." for each directory in $ac_dir_suffix.
15570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15571 case $ac_top_builddir_sub in
15572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15574 esac ;;
15575 esac
15576 ac_abs_top_builddir=$ac_pwd
15577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15578 # for backward compatibility:
15579 ac_top_builddir=$ac_top_build_prefix
15581 case $srcdir in
15582 .) # We are building in place.
15583 ac_srcdir=.
15584 ac_top_srcdir=$ac_top_builddir_sub
15585 ac_abs_top_srcdir=$ac_pwd ;;
15586 [\\/]* | ?:[\\/]* ) # Absolute name.
15587 ac_srcdir=$srcdir$ac_dir_suffix;
15588 ac_top_srcdir=$srcdir
15589 ac_abs_top_srcdir=$srcdir ;;
15590 *) # Relative name.
15591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15592 ac_top_srcdir=$ac_top_build_prefix$srcdir
15593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15594 esac
15595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15598 case $ac_mode in
15601 # CONFIG_FILE
15604 case $INSTALL in
15605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15607 esac
15608 _ACEOF
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611 # If the template does not know about datarootdir, expand it.
15612 # FIXME: This hack should be removed a few years after 2.60.
15613 ac_datarootdir_hack=; ac_datarootdir_seen=
15614 ac_sed_dataroot='
15615 /datarootdir/ {
15619 /@datadir@/p
15620 /@docdir@/p
15621 /@infodir@/p
15622 /@localedir@/p
15623 /@mandir@/p'
15624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15625 *datarootdir*) ac_datarootdir_seen=yes;;
15626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15629 _ACEOF
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 ac_datarootdir_hack='
15632 s&@datadir@&$datadir&g
15633 s&@docdir@&$docdir&g
15634 s&@infodir@&$infodir&g
15635 s&@localedir@&$localedir&g
15636 s&@mandir@&$mandir&g
15637 s&\\\${datarootdir}&$datarootdir&g' ;;
15638 esac
15639 _ACEOF
15641 # Neutralize VPATH when `$srcdir' = `.'.
15642 # Shell code in configure.ac might set extrasub.
15643 # FIXME: do we really want to maintain this feature?
15644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 ac_sed_extra="$ac_vpsub
15646 $extrasub
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15651 s|@configure_input@|$ac_sed_conf_input|;t t
15652 s&@top_builddir@&$ac_top_builddir_sub&;t t
15653 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15654 s&@srcdir@&$ac_srcdir&;t t
15655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15656 s&@top_srcdir@&$ac_top_srcdir&;t t
15657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15658 s&@builddir@&$ac_builddir&;t t
15659 s&@abs_builddir@&$ac_abs_builddir&;t t
15660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15661 s&@INSTALL@&$ac_INSTALL&;t t
15662 $ac_datarootdir_hack
15664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15665 if $ac_cs_awk_getline; then
15666 $AWK -f "$tmp/subs.awk"
15667 else
15668 $AWK -f "$tmp/subs.awk" | $SHELL
15669 fi >$tmp/out \
15670 || as_fn_error "could not create $ac_file" "$LINENO" 5
15672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15673 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15676 which seems to be undefined. Please make sure it is defined." >&5
15677 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15678 which seems to be undefined. Please make sure it is defined." >&2;}
15680 rm -f "$tmp/stdin"
15681 case $ac_file in
15682 -) cat "$tmp/out" && rm -f "$tmp/out";;
15683 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15684 esac \
15685 || as_fn_error "could not create $ac_file" "$LINENO" 5
15690 esac
15693 case $ac_file$ac_mode in
15694 "Makefile":F) sed "$extrasub_build" Makefile |
15695 sed "$extrasub_host" |
15696 sed "$extrasub_target" > mf$$
15697 mv -f mf$$ Makefile ;;
15699 esac
15700 done # for ac_tag
15703 as_fn_exit 0
15704 _ACEOF
15705 ac_clean_files=$ac_clean_files_save
15707 test $ac_write_fail = 0 ||
15708 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15711 # configure is writing to config.log, and then calls config.status.
15712 # config.status does its own redirection, appending to config.log.
15713 # Unfortunately, on DOS this fails, as config.log is still kept open
15714 # by configure, so config.status won't be able to write to it; its
15715 # output is simply discarded. So we exec the FD to /dev/null,
15716 # effectively closing config.log, so it can be properly (re)opened and
15717 # appended to by config.status. When coming back to configure, we
15718 # need to make the FD available again.
15719 if test "$no_create" != yes; then
15720 ac_cs_success=:
15721 ac_config_status_args=
15722 test "$silent" = yes &&
15723 ac_config_status_args="$ac_config_status_args --quiet"
15724 exec 5>/dev/null
15725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15726 exec 5>>config.log
15727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15728 # would make configure fail if this is the last instruction.
15729 $ac_cs_success || as_fn_exit $?
15731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}