Integrate GUPC into cc1.
[official-gcc.git] / configure
blob37f4540d6c423f95948af3044f2bbe36ca067ab1
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 GUPC_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GUPC_FOR_BUILD
618 GOC_FOR_BUILD
619 GFORTRAN_FOR_BUILD
620 GCJ_FOR_BUILD
621 DLLTOOL_FOR_BUILD
622 CXX_FOR_BUILD
623 CXXFLAGS_FOR_BUILD
624 CFLAGS_FOR_BUILD
625 CC_FOR_BUILD
626 AS_FOR_BUILD
627 AR_FOR_BUILD
628 target_configdirs
629 configdirs
630 build_configdirs
631 INSTALL_GDB_TK
632 GDB_TK
633 CONFIGURE_GDB_TK
634 build_tooldir
635 tooldir
636 GCC_SHLIB_SUBDIR
637 RPATH_ENVVAR
638 target_configargs
639 host_configargs
640 build_configargs
641 BUILD_CONFIG
642 LDFLAGS_FOR_TARGET
643 CXXFLAGS_FOR_TARGET
644 CFLAGS_FOR_TARGET
645 DEBUG_PREFIX_CFLAGS_FOR_TARGET
646 SYSROOT_CFLAGS_FOR_TARGET
647 stage1_languages
648 extra_host_libiberty_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 EXTRA_CONFIGARGS_LIBJAVA
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_gold
750 enable_ld
751 enable_libquadmath
752 enable_libquadmath_support
753 enable_libada
754 enable_libssp
755 enable_libstdcxx
756 enable_static_libjava
757 enable_bootstrap
758 with_mpc
759 with_mpc_include
760 with_mpc_lib
761 with_mpfr_dir
762 with_mpfr
763 with_mpfr_include
764 with_mpfr_lib
765 with_gmp_dir
766 with_gmp
767 with_gmp_include
768 with_gmp_lib
769 with_host_libstdcxx
770 with_stage1_libs
771 with_stage1_ldflags
772 with_boot_libs
773 with_boot_ldflags
774 with_cloog
775 with_isl
776 with_isl_include
777 with_isl_lib
778 enable_isl_version_check
779 with_cloog_include
780 with_cloog_lib
781 enable_cloog_version_check
782 enable_lto
783 enable_stage1_languages
784 enable_objc_gc
785 with_upc_pts
786 with_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_serial_configure
790 enable_upc_link_script
791 with_build_time_tools
792 enable_maintainer_mode
793 enable_stage1_checking
794 enable_werror
795 enable_host_shared
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
806 CXXFLAGS
808 build_configargs
809 host_configargs
810 target_configargs
813 DLLTOOL
815 LIPO
817 RANLIB
818 STRIP
819 WINDRES
820 WINDMC
821 OBJCOPY
822 OBJDUMP
823 READELF
824 CC_FOR_TARGET
825 CXX_FOR_TARGET
826 GCC_FOR_TARGET
827 GCJ_FOR_TARGET
828 GFORTRAN_FOR_TARGET
829 GOC_FOR_TARGET
830 GUPC_FOR_TARGET
831 AR_FOR_TARGET
832 AS_FOR_TARGET
833 DLLTOOL_FOR_TARGET
834 LD_FOR_TARGET
835 LIPO_FOR_TARGET
836 NM_FOR_TARGET
837 OBJDUMP_FOR_TARGET
838 RANLIB_FOR_TARGET
839 READELF_FOR_TARGET
840 STRIP_FOR_TARGET
841 WINDRES_FOR_TARGET
842 WINDMC_FOR_TARGET'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
893 ac_prev=
894 ac_dashdash=
895 for ac_option
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
904 case $ac_option in
905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *) ac_optarg=yes ;;
907 esac
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
913 ac_dashdash=yes ;;
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
932 --config-cache | -C)
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information."
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 case $srcdir in
1371 *" "*)
1372 as_fn_error "path to source, $srcdir, contains spaces"
1374 esac
1375 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1460 if test -n "$ac_init_help"; then
1462 cat <<\_ACEOF
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1469 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1470 --disable-libquadmath do not build libquadmath directory
1471 --disable-libquadmath-support
1472 disable libquadmath support for Fortran
1473 --enable-libada build libada directory
1474 --enable-libssp build libssp directory
1475 --disable-libstdcxx do not build libstdc++-v3 directory
1476 --enable-static-libjava[=ARG]
1477 build static libjava [default=no]
1478 --enable-bootstrap enable bootstrapping [yes if native build]
1479 --disable-isl-version-check
1480 disable check for ISL version
1481 --disable-cloog-version-check
1482 disable check for CLooG version
1483 --enable-lto enable link time optimization support
1484 --enable-stage1-languages[=all]
1485 choose additional languages to build during stage1.
1486 Mostly useful for compiler development
1487 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1488 Objective-C runtime
1489 --enable-serial-[{host,target,build}-]configure
1490 force sequential configuration of sub-packages for
1491 the host, target or build machine, or all
1492 sub-packages
1493 --enable-upc-link-script
1494 enable UPC's use of a custom linker script; this
1495 will define the UPC shared section as a no load
1496 section on targets where this feature is supported
1497 (requires GNU LD)
1498 --enable-maintainer-mode
1499 enable make rules and dependencies not useful (and
1500 sometimes confusing) to the casual installer
1501 --enable-stage1-checking[=all]
1502 choose additional checking for stage1 of the
1503 compiler
1504 --enable-werror enable -Werror in bootstrap stage2 and later
1505 --enable-host-shared build host code as shared libraries
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-build-libsubdir=DIR Directory where to find libraries for build system
1511 --with-mpc=PATH specify prefix directory for installed MPC package.
1512 Equivalent to --with-mpc-include=PATH/include plus
1513 --with-mpc-lib=PATH/lib
1514 --with-mpc-include=PATH specify directory for installed MPC include files
1515 --with-mpc-lib=PATH specify directory for the installed MPC library
1516 --with-mpfr-dir=PATH this option has been REMOVED
1517 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1518 Equivalent to --with-mpfr-include=PATH/include plus
1519 --with-mpfr-lib=PATH/lib
1520 --with-mpfr-include=PATH
1521 specify directory for installed MPFR include files
1522 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1523 --with-gmp-dir=PATH this option has been REMOVED
1524 --with-gmp=PATH specify prefix directory for the installed GMP
1525 package. Equivalent to
1526 --with-gmp-include=PATH/include plus
1527 --with-gmp-lib=PATH/lib
1528 --with-gmp-include=PATH specify directory for installed GMP include files
1529 --with-gmp-lib=PATH specify directory for the installed GMP library
1530 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1531 linking with PPL
1532 --with-stage1-libs=LIBS libraries for stage1
1533 --with-stage1-ldflags=FLAGS
1534 linker flags for stage1
1535 --with-boot-libs=LIBS libraries for stage2 and later
1536 --with-boot-ldflags=FLAGS
1537 linker flags for stage2 and later
1538 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1539 package. Equivalent to
1540 --with-cloog-include=PATH/include plus
1541 --with-cloog-lib=PATH/lib
1542 --with-isl=PATH Specify prefix directory for the installed ISL
1543 package. Equivalent to
1544 --with-isl-include=PATH/include plus
1545 --with-isl-lib=PATH/lib
1546 --with-isl-include=PATH Specify directory for installed ISL include files
1547 --with-isl-lib=PATH Specify the directory for the installed ISL library
1548 --with-cloog-include=PATH
1549 Specify directory for installed CLooG include files
1550 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1551 library
1552 --with-upc-pts={struct,packed}
1553 choose the default representation of a UPC
1554 pointer-to-shared
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 GUPC_FOR_TARGET
1606 GUPC for the target
1607 AR_FOR_TARGET
1608 AR for the target
1609 AS_FOR_TARGET
1610 AS for the target
1611 DLLTOOL_FOR_TARGET
1612 DLLTOOL for the target
1613 LD_FOR_TARGET
1614 LD for the target
1615 LIPO_FOR_TARGET
1616 LIPO for the target
1617 NM_FOR_TARGET
1618 NM for the target
1619 OBJDUMP_FOR_TARGET
1620 OBJDUMP for the target
1621 RANLIB_FOR_TARGET
1622 RANLIB for the target
1623 READELF_FOR_TARGET
1624 READELF for the target
1625 STRIP_FOR_TARGET
1626 STRIP for the target
1627 WINDRES_FOR_TARGET
1628 WINDRES for the target
1629 WINDMC_FOR_TARGET
1630 WINDMC for the target
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.64
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_cxx_try_link LINENO
1789 # -------------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_link ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_link
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1878 } # ac_fn_c_try_link
1880 # ac_fn_c_try_run LINENO
1881 # ----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883 # that executables *can* be run.
1884 ac_fn_c_try_run ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>&5
1895 ac_status=$?
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1898 { { case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_try") 2>&5
1905 ac_status=$?
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; }; }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: program exited with status $ac_status" >&5
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=$ac_status
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 return $ac_retval
1920 } # ac_fn_c_try_run
1921 cat >config.log <<_ACEOF
1922 This file contains any messages produced by compilers while
1923 running configure, to aid debugging if configure makes a mistake.
1925 It was created by $as_me, which was
1926 generated by GNU Autoconf 2.64. Invocation command line was
1928 $ $0 $@
1930 _ACEOF
1931 exec 5>>config.log
1933 cat <<_ASUNAME
1934 ## --------- ##
1935 ## Platform. ##
1936 ## --------- ##
1938 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1939 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1940 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1941 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1942 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1945 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1947 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1948 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1949 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1950 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1951 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1952 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1953 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1955 _ASUNAME
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 $as_echo "PATH: $as_dir"
1963 done
1964 IFS=$as_save_IFS
1966 } >&5
1968 cat >&5 <<_ACEOF
1971 ## ----------- ##
1972 ## Core tests. ##
1973 ## ----------- ##
1975 _ACEOF
1978 # Keep a trace of the command line.
1979 # Strip out --no-create and --no-recursion so they do not pile up.
1980 # Strip out --silent because we don't want to record it for future runs.
1981 # Also quote any args containing shell meta-characters.
1982 # Make two passes to allow for proper duplicate-argument suppression.
1983 ac_configure_args=
1984 ac_configure_args0=
1985 ac_configure_args1=
1986 ac_must_keep_next=false
1987 for ac_pass in 1 2
1989 for ac_arg
1991 case $ac_arg in
1992 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1994 | -silent | --silent | --silen | --sile | --sil)
1995 continue ;;
1996 *\'*)
1997 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 esac
1999 case $ac_pass in
2000 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002 as_fn_append ac_configure_args1 " '$ac_arg'"
2003 if test $ac_must_keep_next = true; then
2004 ac_must_keep_next=false # Got value, back to normal.
2005 else
2006 case $ac_arg in
2007 *=* | --config-cache | -C | -disable-* | --disable-* \
2008 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2009 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2010 | -with-* | --with-* | -without-* | --without-* | --x)
2011 case "$ac_configure_args0 " in
2012 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2013 esac
2015 -* ) ac_must_keep_next=true ;;
2016 esac
2018 as_fn_append ac_configure_args " '$ac_arg'"
2020 esac
2021 done
2022 done
2023 { ac_configure_args0=; unset ac_configure_args0;}
2024 { ac_configure_args1=; unset ac_configure_args1;}
2026 # When interrupted or exit'd, cleanup temporary files, and complete
2027 # config.log. We remove comments because anyway the quotes in there
2028 # would cause problems or look ugly.
2029 # WARNING: Use '\'' to represent an apostrophe within the trap.
2030 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2031 trap 'exit_status=$?
2032 # Save into config.log some information that might help in debugging.
2034 echo
2036 cat <<\_ASBOX
2037 ## ---------------- ##
2038 ## Cache variables. ##
2039 ## ---------------- ##
2040 _ASBOX
2041 echo
2042 # The following way of writing the cache mishandles newlines in values,
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055 *) { eval $ac_var=; unset $ac_var;} ;;
2056 esac ;;
2057 esac
2058 done
2059 (set) 2>&1 |
2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
2062 sed -n \
2063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 esac |
2070 sort
2072 echo
2074 cat <<\_ASBOX
2075 ## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##
2078 _ASBOX
2079 echo
2080 for ac_var in $ac_subst_vars
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 $as_echo "$ac_var='\''$ac_val'\''"
2087 done | sort
2088 echo
2090 if test -n "$ac_subst_files"; then
2091 cat <<\_ASBOX
2092 ## ------------------- ##
2093 ## File substitutions. ##
2094 ## ------------------- ##
2095 _ASBOX
2096 echo
2097 for ac_var in $ac_subst_files
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2108 if test -s confdefs.h; then
2109 cat <<\_ASBOX
2110 ## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##
2113 _ASBOX
2114 echo
2115 cat confdefs.h
2116 echo
2118 test "$ac_signal" != 0 &&
2119 $as_echo "$as_me: caught signal $ac_signal"
2120 $as_echo "$as_me: exit $exit_status"
2121 } >&5
2122 rm -f core *.core core.conftest.* &&
2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2124 exit $exit_status
2126 for ac_signal in 1 2 13 15; do
2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2128 done
2129 ac_signal=0
2131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2132 rm -f -r conftest* confdefs.h
2134 $as_echo "/* confdefs.h */" > confdefs.h
2136 # Predefined preprocessor variables.
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_NAME "$PACKAGE_NAME"
2140 _ACEOF
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_STRING "$PACKAGE_STRING"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_URL "$PACKAGE_URL"
2160 _ACEOF
2163 # Let the site file select an alternate cache file if it wants to.
2164 # Prefer an explicitly selected file to automatically selected ones.
2165 ac_site_file1=NONE
2166 ac_site_file2=NONE
2167 if test -n "$CONFIG_SITE"; then
2168 ac_site_file1=$CONFIG_SITE
2169 elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172 else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2176 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2178 test "x$ac_site_file" = xNONE && continue
2179 if test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file"
2185 done
2187 if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special
2189 # files actually), so we avoid doing that.
2190 if test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192 $as_echo "$as_me: loading cache $cache_file" >&6;}
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200 $as_echo "$as_me: creating cache $cache_file" >&6;}
2201 >$cache_file
2204 # Check that the precious variables saved in the cache have kept the same
2205 # value.
2206 ac_cache_corrupted=false
2207 for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,set)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,);;
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251 esac
2253 done
2254 if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2261 ## -------------------- ##
2262 ## Main body of script. ##
2263 ## -------------------- ##
2265 ac_ext=c
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279 progname=$0
2280 # if PWD already has a value, it is probably wrong.
2281 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2283 # Export original configure arguments for use by sub-configures.
2284 # Quote arguments with shell meta charatcers.
2285 TOPLEVEL_CONFIGURE_ARGUMENTS=
2286 set -- "$progname" "$@"
2287 for ac_arg
2289 case "$ac_arg" in
2290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2292 # if the argument is of the form -foo=baz, quote the baz part only
2293 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2294 *) ;;
2295 esac
2296 # Add the quoted argument to the list.
2297 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2298 done
2299 if test "$silent" = yes; then
2300 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2302 # Remove the initial space we just introduced and, as these will be
2303 # expanded by make, quote '$'.
2304 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2307 # Find the build, host, and target systems.
2308 ac_aux_dir=
2309 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310 for ac_t in install-sh install.sh shtool; do
2311 if test -f "$ac_dir/$ac_t"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/$ac_t -c"
2314 break 2
2316 done
2317 done
2318 if test -z "$ac_aux_dir"; then
2319 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336 $as_echo_n "checking build system type... " >&6; }
2337 if test "${ac_cv_build+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 ac_build_alias=$build_alias
2341 test "x$ac_build_alias" = x &&
2342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343 test "x$ac_build_alias" = x &&
2344 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2346 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350 $as_echo "$ac_cv_build" >&6; }
2351 case $ac_cv_build in
2352 *-*-*) ;;
2353 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2354 esac
2355 build=$ac_cv_build
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_build
2358 shift
2359 build_cpu=$1
2360 build_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 build_os=$*
2365 IFS=$ac_save_IFS
2366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2369 case ${build_alias} in
2370 "") build_noncanonical=${build} ;;
2371 *) build_noncanonical=${build_alias} ;;
2372 esac
2376 case ${host_alias} in
2377 "") host_noncanonical=${build_noncanonical} ;;
2378 *) host_noncanonical=${host_alias} ;;
2379 esac
2383 case ${target_alias} in
2384 "") target_noncanonical=${host_noncanonical} ;;
2385 *) target_noncanonical=${target_alias} ;;
2386 esac
2391 test "$host_noncanonical" = "$target_noncanonical" &&
2392 test "$program_prefix$program_suffix$program_transform_name" = \
2393 NONENONEs,x,x, &&
2394 program_transform_name=s,y,y,
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2397 $as_echo_n "checking host system type... " >&6; }
2398 if test "${ac_cv_host+set}" = set; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403 else
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2410 $as_echo "$ac_cv_host" >&6; }
2411 case $ac_cv_host in
2412 *-*-*) ;;
2413 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2414 esac
2415 host=$ac_cv_host
2416 ac_save_IFS=$IFS; IFS='-'
2417 set x $ac_cv_host
2418 shift
2419 host_cpu=$1
2420 host_vendor=$2
2421 shift; shift
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2424 host_os=$*
2425 IFS=$ac_save_IFS
2426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2430 $as_echo_n "checking target system type... " >&6; }
2431 if test "${ac_cv_target+set}" = set; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 if test "x$target_alias" = x; then
2435 ac_cv_target=$ac_cv_host
2436 else
2437 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2438 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2443 $as_echo "$ac_cv_target" >&6; }
2444 case $ac_cv_target in
2445 *-*-*) ;;
2446 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2447 esac
2448 target=$ac_cv_target
2449 ac_save_IFS=$IFS; IFS='-'
2450 set x $ac_cv_target
2451 shift
2452 target_cpu=$1
2453 target_vendor=$2
2454 shift; shift
2455 # Remember, the first character of IFS is used to create $*,
2456 # except with old shells:
2457 target_os=$*
2458 IFS=$ac_save_IFS
2459 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2462 # The aliases save the names the user supplied, while $host etc.
2463 # will get canonicalized.
2464 test -n "$target_alias" &&
2465 test "$program_prefix$program_suffix$program_transform_name" = \
2466 NONENONEs,x,x, &&
2467 program_prefix=${target_alias}-
2469 test "$program_prefix" != NONE &&
2470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2471 # Use a double $ so make ignores it.
2472 test "$program_suffix" != NONE &&
2473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2474 # Double any \ or $.
2475 # By default was `s,x,x', remove it if useless.
2476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2481 # Get 'install' or 'install-sh' and its variants.
2482 # Find a good install program. We prefer a C program (faster),
2483 # so one script is as good as another. But avoid the broken or
2484 # incompatible versions:
2485 # SysV /etc/install, /usr/sbin/install
2486 # SunOS /usr/etc/install
2487 # IRIX /sbin/install
2488 # AIX /bin/install
2489 # AmigaOS /C/install, which installs bootblocks on floppy discs
2490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2493 # OS/2's system install, which has a completely different semantic
2494 # ./install, which can be erroneously created by make from ./install.sh.
2495 # Reject install programs that cannot install multiple files.
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2497 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2498 if test -z "$INSTALL"; then
2499 if test "${ac_cv_path_install+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508 case $as_dir/ in #((
2509 ./ | .// | /[cC]/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2512 /usr/ucb/* ) ;;
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2528 else
2529 rm -rf conftest.one conftest.two conftest.dir
2530 echo one > conftest.one
2531 echo two > conftest.two
2532 mkdir conftest.dir
2533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2534 test -s conftest.one && test -s conftest.two &&
2535 test -s conftest.dir/conftest.one &&
2536 test -s conftest.dir/conftest.two
2537 then
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2543 done
2544 done
2546 esac
2548 done
2549 IFS=$as_save_IFS
2551 rm -rf conftest.one conftest.two conftest.dir
2554 if test "${ac_cv_path_install+set}" = set; then
2555 INSTALL=$ac_cv_path_install
2556 else
2557 # As a last resort, use the slow shell script. Don't cache a
2558 # value for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the value is a relative name.
2561 INSTALL=$ac_install_sh
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2565 $as_echo "$INSTALL" >&6; }
2567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568 # It thinks the first close brace ends the variable substitution.
2569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2576 $as_echo_n "checking whether ln works... " >&6; }
2577 if test "${acx_cv_prog_LN+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 rm -f conftestdata_t
2581 echo >conftestdata_f
2582 if ln conftestdata_f conftestdata_t 2>/dev/null
2583 then
2584 acx_cv_prog_LN=ln
2585 else
2586 acx_cv_prog_LN=no
2588 rm -f conftestdata_f conftestdata_t
2591 if test $acx_cv_prog_LN = no; then
2592 LN="cp"
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2594 $as_echo "no, using $LN" >&6; }
2595 else
2596 LN="$acx_cv_prog_LN"
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2602 $as_echo_n "checking whether ln -s works... " >&6; }
2603 LN_S=$as_ln_s
2604 if test "$LN_S" = "ln -s"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2606 $as_echo "yes" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2609 $as_echo "no, using $LN_S" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2613 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2614 if test "${ac_cv_path_SED+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2618 for ac_i in 1 2 3 4 5 6 7; do
2619 ac_script="$ac_script$as_nl$ac_script"
2620 done
2621 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2622 { ac_script=; unset ac_script;}
2623 if test -z "$SED"; then
2624 ac_path_SED_found=false
2625 # Loop through the user's path and test for each of PROGNAME-LIST
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in sed gsed; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2634 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2635 # Check for GNU ac_path_SED and select it if it is found.
2636 # Check for GNU $ac_path_SED
2637 case `"$ac_path_SED" --version 2>&1` in
2638 *GNU*)
2639 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2641 ac_count=0
2642 $as_echo_n 0123456789 >"conftest.in"
2643 while :
2645 cat "conftest.in" "conftest.in" >"conftest.tmp"
2646 mv "conftest.tmp" "conftest.in"
2647 cp "conftest.in" "conftest.nl"
2648 $as_echo '' >> "conftest.nl"
2649 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2651 as_fn_arith $ac_count + 1 && ac_count=$as_val
2652 if test $ac_count -gt ${ac_path_SED_max-0}; then
2653 # Best one so far, save it but keep looking for a better one
2654 ac_cv_path_SED="$ac_path_SED"
2655 ac_path_SED_max=$ac_count
2657 # 10*(2^10) chars as input seems more than enough
2658 test $ac_count -gt 10 && break
2659 done
2660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2661 esac
2663 $ac_path_SED_found && break 3
2664 done
2665 done
2666 done
2667 IFS=$as_save_IFS
2668 if test -z "$ac_cv_path_SED"; then
2669 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2671 else
2672 ac_cv_path_SED=$SED
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2677 $as_echo "$ac_cv_path_SED" >&6; }
2678 SED="$ac_cv_path_SED"
2679 rm -f conftest.sed
2681 for ac_prog in gawk mawk nawk awk
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if test "${ac_cv_prog_AWK+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$AWK"; then
2691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_AWK="$ac_prog"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2704 done
2705 done
2706 IFS=$as_save_IFS
2710 AWK=$ac_cv_prog_AWK
2711 if test -n "$AWK"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2713 $as_echo "$AWK" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2720 test -n "$AWK" && break
2721 done
2724 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2726 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2727 # a relative path.
2728 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2729 INSTALL="${srcpwd}/install-sh -c"
2732 # Set srcdir to "." if that's what it is.
2733 # This is important for multilib support.
2734 pwd=`${PWDCMD-pwd}`
2735 if test "${pwd}" = "${srcpwd}" ; then
2736 srcdir=.
2739 topsrcdir=$srcpwd
2741 extra_host_args=
2743 ### To add a new directory to the tree, first choose whether it is a target
2744 ### or a host dependent tool. Then put it into the appropriate list
2745 ### (library or tools, host or target), doing a dependency sort.
2747 # Subdirs will be configured in the order listed in build_configdirs,
2748 # configdirs, or target_configdirs; see the serialization section below.
2750 # Dependency sorting is only needed when *configuration* must be done in
2751 # a particular order. In all cases a dependency should be specified in
2752 # the Makefile, whether or not it's implicitly specified here.
2754 # Double entries in build_configdirs, configdirs, or target_configdirs may
2755 # cause circular dependencies and break everything horribly.
2757 # these library is used by various programs built for the build
2758 # environment
2760 build_libs="build-libiberty"
2762 # these tools are built for the build environment
2763 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2765 # these libraries are used by various programs built for the host environment
2767 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2769 # these tools are built for the host environment
2770 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2771 # know that we are building the simulator.
2772 # binutils, gas and ld appear in that order because it makes sense to run
2773 # "make check" in that particular order.
2774 # If --enable-gold is used, "gold" may replace "ld".
2775 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2777 # libgcj represents the runtime libraries only used by gcj.
2778 libgcj="target-libffi \
2779 target-zlib \
2780 target-libjava"
2782 # these libraries are built for the target environment, and are built after
2783 # the host libraries and the host tools (which may be a cross compiler)
2784 # Note that libiberty is not a target library.
2785 target_libraries="target-libgcc \
2786 target-libbacktrace \
2787 target-libgloss \
2788 target-newlib \
2789 target-libgomp \
2790 target-libcilkrts \
2791 target-libatomic \
2792 target-libitm \
2793 target-libstdc++-v3 \
2794 target-libsanitizer \
2795 target-libvtv \
2796 target-libssp \
2797 target-libquadmath \
2798 target-libgfortran \
2799 target-boehm-gc \
2800 ${libgcj} \
2801 target-libobjc \
2802 target-libgupc \
2803 target-libada \
2804 target-libgo"
2806 # these tools are built using the target libraries, and are intended to
2807 # run only in the target environment
2809 # note: any program that *uses* libraries that are in the "target_libraries"
2810 # list belongs in this list.
2812 target_tools="target-rda"
2814 ################################################################################
2816 ## All tools belong in one of the four categories, and are assigned above
2817 ## We assign ${configdirs} this way to remove all embedded newlines. This
2818 ## is important because configure will choke if they ever get through.
2819 ## ${configdirs} is directories we build using the host tools.
2820 ## ${target_configdirs} is directories we build using the target tools.
2821 configdirs=`echo ${host_libs} ${host_tools}`
2822 target_configdirs=`echo ${target_libraries} ${target_tools}`
2823 build_configdirs=`echo ${build_libs} ${build_tools}`
2827 ################################################################################
2829 srcname="gnu development package"
2831 # This gets set non-empty for some net releases of packages.
2832 appdirs=""
2834 # Define is_cross_compiler to save on calls to 'test'.
2835 is_cross_compiler=
2836 if test x"${host}" = x"${target}" ; then
2837 is_cross_compiler=no
2838 else
2839 is_cross_compiler=yes
2842 # Find the build and target subdir names.
2844 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2845 # have matching libraries, they should use host libraries: Makefile.tpl
2846 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2847 # However, they still use the build modules, because the corresponding
2848 # host modules (e.g. bison) are only built for the host when bootstrap
2849 # finishes. So:
2850 # - build_subdir is where we find build modules, and never changes.
2851 # - build_libsubdir is where we find build libraries, and can be overridden.
2853 # Prefix 'build-' so this never conflicts with target_subdir.
2854 build_subdir="build-${build_noncanonical}"
2856 # Check whether --with-build-libsubdir was given.
2857 if test "${with_build_libsubdir+set}" = set; then :
2858 withval=$with_build_libsubdir; build_libsubdir="$withval"
2859 else
2860 build_libsubdir="$build_subdir"
2863 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2864 if ( test $srcdir = . && test -d gcc ) \
2865 || test -d $srcdir/../host-${host_noncanonical}; then
2866 host_subdir="host-${host_noncanonical}"
2867 else
2868 host_subdir=.
2870 # No prefix.
2871 target_subdir=${target_noncanonical}
2873 # Be sure to cover against remnants of an in-tree build.
2874 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2875 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2876 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2879 # Skipdirs are removed silently.
2880 skipdirs=
2881 # Noconfigdirs are removed loudly.
2882 noconfigdirs=""
2884 use_gnu_ld=
2885 # Make sure we don't let GNU ld be added if we didn't want it.
2886 if test x$with_gnu_ld = xno ; then
2887 use_gnu_ld=no
2888 noconfigdirs="$noconfigdirs ld gold"
2891 use_gnu_as=
2892 # Make sure we don't let GNU as be added if we didn't want it.
2893 if test x$with_gnu_as = xno ; then
2894 use_gnu_as=no
2895 noconfigdirs="$noconfigdirs gas"
2898 use_included_zlib=
2899 # Make sure we don't let ZLIB be added if we didn't want it.
2900 if test x$with_system_zlib = xyes ; then
2901 use_included_zlib=no
2902 noconfigdirs="$noconfigdirs zlib"
2905 # some tools are so dependent upon X11 that if we're not building with X,
2906 # it's not even worth trying to configure, much less build, that tool.
2908 case ${with_x} in
2909 yes | "") ;; # the default value for this tree is that X11 is available
2911 skipdirs="${skipdirs} tk itcl libgui"
2912 # We won't be able to build gdbtk without X.
2913 enable_gdbtk=no
2915 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2916 esac
2918 # Some are only suitable for cross toolchains.
2919 # Remove these if host=target.
2920 cross_only="target-libgloss target-newlib target-opcodes"
2922 case $is_cross_compiler in
2923 no) skipdirs="${skipdirs} ${cross_only}" ;;
2924 esac
2926 # If both --with-headers and --with-libs are specified, default to
2927 # --without-newlib.
2928 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2929 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2930 if test x"${with_newlib}" = x ; then
2931 with_newlib=no
2935 # Recognize --with-newlib/--without-newlib.
2936 case ${with_newlib} in
2937 no) skipdirs="${skipdirs} target-newlib" ;;
2938 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2939 esac
2941 # Handle --enable-gold, --enable-ld.
2942 # --disable-gold [--enable-ld]
2943 # Build only ld. Default option.
2944 # --enable-gold [--enable-ld]
2945 # Build both gold and ld. Install gold as "ld.gold", install ld
2946 # as "ld.bfd" and "ld".
2947 # --enable-gold=default [--enable-ld]
2948 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2949 # install ld as "ld.bfd".
2950 # --enable-gold[=default] --disable-ld
2951 # Build only gold, which is then installed as both "ld.gold" and "ld".
2952 # --enable-gold --enable-ld=default
2953 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2954 # and ld.bfd).
2955 # In other words, ld is default
2956 # --enable-gold=default --enable-ld=default
2957 # Error.
2959 default_ld=
2960 # Check whether --enable-gold was given.
2961 if test "${enable_gold+set}" = set; then :
2962 enableval=$enable_gold; ENABLE_GOLD=$enableval
2963 else
2964 ENABLE_GOLD=no
2967 case "${ENABLE_GOLD}" in
2968 yes|default)
2969 # Check for ELF target.
2970 is_elf=no
2971 case "${target}" in
2972 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2973 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2974 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2975 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2976 case "${target}" in
2977 *-*-linux*aout* | *-*-linux*oldld*)
2980 is_elf=yes
2982 esac
2983 esac
2985 if test "$is_elf" = "yes"; then
2986 # Check for target supported by gold.
2987 case "${target}" in
2988 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2989 configdirs="$configdirs gold"
2990 if test x${ENABLE_GOLD} = xdefault; then
2991 default_ld=gold
2993 ENABLE_GOLD=yes
2995 esac
3001 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3003 esac
3005 # Check whether --enable-ld was given.
3006 if test "${enable_ld+set}" = set; then :
3007 enableval=$enable_ld; ENABLE_LD=$enableval
3008 else
3009 ENABLE_LD=yes
3013 case "${ENABLE_LD}" in
3014 default)
3015 if test x${default_ld} != x; then
3016 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3019 yes)
3022 if test x${ENABLE_GOLD} != xyes; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3024 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3026 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3029 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3031 esac
3033 # Configure extra directories which are host specific
3035 case "${host}" in
3036 *-cygwin*)
3037 configdirs="$configdirs libtermcap" ;;
3038 esac
3040 # A target can indicate whether a language isn't supported for some reason.
3041 # Only spaces may be used in this macro; not newlines or tabs.
3042 unsupported_languages=
3044 # Remove more programs from consideration, based on the host or
3045 # target this usually means that a port of the program doesn't
3046 # exist yet.
3048 case "${host}" in
3049 i[3456789]86-*-msdosdjgpp*)
3050 noconfigdirs="$noconfigdirs tcl tk itcl"
3052 esac
3055 # Check whether --enable-libquadmath was given.
3056 if test "${enable_libquadmath+set}" = set; then :
3057 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3058 else
3059 ENABLE_LIBQUADMATH=yes
3062 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3063 noconfigdirs="$noconfigdirs target-libquadmath"
3067 # Check whether --enable-libquadmath-support was given.
3068 if test "${enable_libquadmath_support+set}" = set; then :
3069 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3070 else
3071 ENABLE_LIBQUADMATH_SUPPORT=yes
3074 enable_libquadmath_support=
3075 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3076 enable_libquadmath_support=no
3080 # Check whether --enable-libada was given.
3081 if test "${enable_libada+set}" = set; then :
3082 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3083 else
3084 ENABLE_LIBADA=yes
3087 if test "${ENABLE_LIBADA}" != "yes" ; then
3088 noconfigdirs="$noconfigdirs gnattools"
3091 # Check whether --enable-libssp was given.
3092 if test "${enable_libssp+set}" = set; then :
3093 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3094 else
3095 ENABLE_LIBSSP=yes
3099 # Check whether --enable-libstdcxx was given.
3100 if test "${enable_libstdcxx+set}" = set; then :
3101 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3102 else
3103 ENABLE_LIBSTDCXX=default
3106 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3107 noconfigdirs="$noconfigdirs libstdc++-v3"
3110 # Save it here so that, even in case of --enable-libgcj, if the Java
3111 # front-end isn't enabled, we still get libgcj disabled.
3112 libgcj_saved=$libgcj
3113 case $enable_libgcj in
3114 yes)
3115 # If we reset it here, it won't get added to noconfigdirs in the
3116 # target-specific build rules, so it will be forcibly enabled
3117 # (unless the Java language itself isn't enabled).
3118 libgcj=
3121 # Make sure we get it printed in the list of not supported target libs.
3122 # Don't disable libffi, though, other languages use it.
3123 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3124 # Clear libgcj_saved so that even if java is enabled libffi won't be
3125 # built.
3126 libgcj_saved=
3128 esac
3130 # Check whether --enable-static-libjava was given.
3131 if test "${enable_static_libjava+set}" = set; then :
3132 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3133 else
3134 ENABLE_STATIC_LIBJAVA=no
3137 enable_static_libjava=
3138 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3139 enable_static_libjava=yes
3142 if test x$enable_static_libjava != xyes ; then
3143 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3147 posix_based_os="yes"
3148 case "${target}" in
3149 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3151 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3153 *-*-solaris2* | *-*-hpux11*)
3155 *-*-darwin* | *-*-aix*)
3158 posix_based_os="no"
3160 esac
3162 # Enable libgomp by default on POSIX hosted systems.
3163 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3164 # Disable libgomp on non POSIX hosted systems.
3165 noconfigdirs="$noconfigdirs target-libgomp"
3168 # Enable libgupc by default on POSIX hosted systems.
3169 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3170 # Disable libgupc on non POSIX hosted systems.
3171 noconfigdirs="$noconfigdirs target-libgupc"
3174 # Disable libatomic on unsupported systems.
3175 if test -d ${srcdir}/libatomic; then
3176 if test x$enable_libatomic = x; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3178 $as_echo_n "checking for libatomic support... " >&6; }
3179 if (srcdir=${srcdir}/libatomic; \
3180 . ${srcdir}/configure.tgt; \
3181 test -n "$UNSUPPORTED")
3182 then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 noconfigdirs="$noconfigdirs target-libatomic"
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188 $as_echo "yes" >&6; }
3193 # Disable libcilkrts on unsupported systems.
3194 if test -d ${srcdir}/libcilkrts; then
3195 if test x$enable_libcilkrts = x; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3197 $as_echo_n "checking for libcilkrts support... " >&6; }
3198 if (srcdir=${srcdir}/libcilkrts; \
3199 . ${srcdir}/configure.tgt; \
3200 test -n "$UNSUPPORTED")
3201 then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 noconfigdirs="$noconfigdirs target-libcilkrts"
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3212 # Disable libitm on unsupported systems.
3213 if test -d ${srcdir}/libitm; then
3214 if test x$enable_libitm = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3216 $as_echo_n "checking for libitm support... " >&6; }
3217 if (srcdir=${srcdir}/libitm; \
3218 . ${srcdir}/configure.tgt; \
3219 test -n "$UNSUPPORTED")
3220 then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libitm"
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3231 # Disable libsanitizer on unsupported systems.
3232 if test -d ${srcdir}/libsanitizer; then
3233 if test x$enable_libsanitizer = x; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3235 $as_echo_n "checking for libsanitizer support... " >&6; }
3236 if (srcdir=${srcdir}/libsanitizer; \
3237 . ${srcdir}/configure.tgt; \
3238 test -n "$UNSUPPORTED")
3239 then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 noconfigdirs="$noconfigdirs target-libsanitizer"
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3250 # Disable libvtv on unsupported systems.
3251 if test -d ${srcdir}/libvtv; then
3252 if test x$enable_libvtv = x; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3254 $as_echo_n "checking for libvtv support... " >&6; }
3255 if (srcdir=${srcdir}/libvtv; \
3256 . ${srcdir}/configure.tgt; \
3257 test "$VTV_SUPPORTED" != "yes")
3258 then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 noconfigdirs="$noconfigdirs target-libvtv"
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3269 # Disable libquadmath for some systems.
3270 case "${target}" in
3271 avr-*-*)
3272 noconfigdirs="$noconfigdirs target-libquadmath"
3274 # libquadmath is unused on AIX and libquadmath build process use of
3275 # LD_LIBRARY_PATH can break AIX bootstrap.
3276 powerpc-*-aix* | rs6000-*-aix*)
3277 noconfigdirs="$noconfigdirs target-libquadmath"
3279 esac
3281 # Disable libssp for some systems.
3282 case "${target}" in
3283 avr-*-*)
3284 # No hosted I/O support.
3285 noconfigdirs="$noconfigdirs target-libssp"
3287 powerpc-*-aix* | rs6000-*-aix*)
3288 noconfigdirs="$noconfigdirs target-libssp"
3290 rl78-*-*)
3291 # libssp uses a misaligned load to trigger a fault, but the RL78
3292 # doesn't fault for those - instead, it gives a build-time error
3293 # for explicit misaligned loads.
3294 noconfigdirs="$noconfigdirs target-libssp"
3296 esac
3298 # Disable libstdc++-v3 for some systems.
3299 # Allow user to override this if they pass --enable-libstdc++-v3
3300 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3301 case "${target}" in
3302 *-*-vxworks*)
3303 # VxWorks uses the Dinkumware C++ library.
3304 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3306 arm*-wince-pe*)
3307 # the C++ libraries don't build on top of CE's C libraries
3308 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3310 avr-*-*)
3311 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3313 esac
3316 # Disable Fortran for some systems.
3317 case "${target}" in
3318 mmix-*-*)
3319 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3320 unsupported_languages="$unsupported_languages fortran"
3322 esac
3324 # Disable Java if libffi is not supported.
3325 case "${target}" in
3326 aarch64-*-*)
3328 alpha*-*-*)
3330 arm*-*-*)
3332 cris-*-*)
3334 frv-*-*)
3336 hppa*-*-linux*)
3338 hppa*-*-hpux*)
3340 i?86-*-*)
3342 ia64*-*-*)
3344 m32r*-*-*)
3346 m68k-*-*)
3348 mips*-*-rtems*)
3350 mips*-*-linux*)
3352 powerpc*-*-linux*)
3354 powerpc-*-darwin*)
3356 powerpc-*-aix* | rs6000-*-aix*)
3358 powerpc-*-freebsd*)
3360 powerpc64-*-freebsd*)
3362 powerpc*-*-rtems*)
3364 s390-*-* | s390x-*-*)
3366 sh-*-* | sh[34]*-*-*)
3368 sh64-*-* | sh5*-*-*)
3370 sparc*-*-*)
3372 x86_64-*-*)
3374 *-*-*)
3375 unsupported_languages="$unsupported_languages java"
3377 esac
3379 # Disable Java, libgcj or related libraries for some systems.
3380 case "${target}" in
3381 powerpc-*-darwin*)
3383 i[3456789]86-*-darwin*)
3385 x86_64-*-darwin[912]*)
3387 *-*-darwin*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 *-*-netware*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3393 *-*-rtems*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3396 *-*-tpf*)
3397 noconfigdirs="$noconfigdirs ${libgcj}"
3399 *-*-uclinux*)
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3402 *-*-vxworks*)
3403 noconfigdirs="$noconfigdirs ${libgcj}"
3405 alpha*-*-*vms*)
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3408 arm-wince-pe)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3411 arm*-*-symbianelf*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3414 bfin-*-*)
3415 noconfigdirs="$noconfigdirs target-boehm-gc"
3417 cris-*-* | crisv32-*-*)
3418 unsupported_languages="$unsupported_languages java"
3419 case "${target}" in
3420 *-*-linux*)
3422 *) # See PR46792 regarding target-libffi.
3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3424 esac
3426 hppa*64*-*-linux*)
3427 # In this case, it's because the hppa64-linux target is for
3428 # the kernel only at this point and has no libc, and thus no
3429 # headers, crt*.o, etc., all of which are needed by these.
3430 unsupported_languages="$unsupported_languages java"
3432 hppa*64*-*-hpux*)
3433 noconfigdirs="$noconfigdirs ${libgcj}"
3435 hppa*-hp-hpux11*)
3437 hppa*-*-hpux*)
3438 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3439 # build on HP-UX 10.20.
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3442 ia64*-*-*vms*)
3443 noconfigdirs="$noconfigdirs ${libgcj}"
3445 i[3456789]86-w64-mingw*)
3446 noconfigdirs="$noconfigdirs ${libgcj}"
3448 i[3456789]86-*-mingw*)
3449 noconfigdirs="$noconfigdirs ${libgcj}"
3451 x86_64-*-mingw*)
3452 noconfigdirs="$noconfigdirs ${libgcj}"
3454 mmix-*-*)
3455 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3457 powerpc-*-aix*)
3458 # copied from rs6000-*-* entry
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3461 rs6000-*-aix*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 *-*-lynxos*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 esac
3469 # Disable libgo for some systems where it is known to not work.
3470 # For testing, you can easily override this with --enable-libgo.
3471 if test x$enable_libgo = x; then
3472 case "${target}" in
3473 *-*-darwin*)
3474 # PR 46986
3475 noconfigdirs="$noconfigdirs target-libgo"
3477 *-*-cygwin* | *-*-mingw*)
3478 noconfigdirs="$noconfigdirs target-libgo"
3480 *-*-aix*)
3481 noconfigdirs="$noconfigdirs target-libgo"
3483 esac
3486 # Default libgloss CPU subdirectory.
3487 libgloss_dir="$target_cpu"
3489 case "${target}" in
3490 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3491 libgloss_dir=wince
3493 aarch64*-*-* )
3494 libgloss_dir=aarch64
3496 arm*-*-*)
3497 libgloss_dir=arm
3499 cris-*-* | crisv32-*-*)
3500 libgloss_dir=cris
3502 hppa*-*-*)
3503 libgloss_dir=pa
3505 i[3456789]86-*-*)
3506 libgloss_dir=i386
3508 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3509 libgloss_dir=m68hc11
3511 m68*-*-* | fido-*-*)
3512 libgloss_dir=m68k
3514 mips*-*-*)
3515 libgloss_dir=mips
3517 powerpc*-*-*)
3518 libgloss_dir=rs6000
3520 sparc*-*-*)
3521 libgloss_dir=sparc
3523 esac
3525 # Disable newlib and libgloss for various target OSes.
3526 case "${target}" in
3527 alpha*-dec-osf*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 i[3456789]86-*-linux*)
3531 # This section makes it possible to build newlib natively on linux.
3532 # If we are using a cross compiler then don't configure newlib.
3533 if test x${is_cross_compiler} != xno ; then
3534 noconfigdirs="$noconfigdirs target-newlib"
3536 noconfigdirs="$noconfigdirs target-libgloss"
3537 # If we are not using a cross compiler, do configure newlib.
3538 # Note however, that newlib will only be configured in this situation
3539 # if the --with-newlib option has been given, because otherwise
3540 # 'target-newlib' will appear in skipdirs.
3542 i[3456789]86-*-rdos*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 sparc-*-sunos4*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-aix*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-beos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-chorusos)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-dragonfly*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-freebsd*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-lynxos*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 *-*-netbsd*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 *-*-netware*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 *-*-tpf*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 *-*-uclinux*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 *-*-vxworks*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 esac
3592 case "${target}" in
3593 *-*-chorusos)
3595 powerpc-*-darwin*)
3596 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3597 noconfigdirs="$noconfigdirs sim target-rda"
3599 i[3456789]86-*-darwin*)
3600 noconfigdirs="$noconfigdirs ld gprof"
3601 noconfigdirs="$noconfigdirs sim target-rda"
3603 x86_64-*-darwin[912]*)
3604 noconfigdirs="$noconfigdirs ld gas gprof"
3605 noconfigdirs="$noconfigdirs sim target-rda"
3607 *-*-darwin*)
3608 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3609 noconfigdirs="$noconfigdirs sim target-rda"
3611 *-*-dragonfly*)
3613 *-*-freebsd*)
3614 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3615 && test -f /usr/local/include/gmp.h; then
3616 with_gmp=/usr/local
3619 *-*-kaos*)
3620 # Remove unsupported stuff on all kaOS configurations.
3621 noconfigdirs="$noconfigdirs target-libgloss"
3623 *-*-netbsd*)
3625 *-*-netware*)
3627 *-*-rtems*)
3628 noconfigdirs="$noconfigdirs target-libgloss"
3630 # The tpf target doesn't support gdb yet.
3631 *-*-tpf*)
3632 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3634 *-*-uclinux*)
3635 noconfigdirs="$noconfigdirs target-rda"
3637 *-*-vxworks*)
3639 alpha*-dec-osf*)
3640 # ld works, but does not support shared libraries.
3641 # gas doesn't generate exception information.
3642 noconfigdirs="$noconfigdirs gas ld"
3644 alpha*-*-*vms*)
3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3647 alpha*-*-*)
3648 # newlib is not 64 bit ready
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3652 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3654 arc-*-*|arceb-*-*)
3655 noconfigdirs="$noconfigdirs target-libgloss"
3657 arm-*-pe*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3660 arm-*-riscix*)
3661 noconfigdirs="$noconfigdirs ld target-libgloss"
3663 avr-*-rtems*)
3665 avr-*-*)
3666 if test x${with_avrlibc} != xno; then
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 c4x-*-* | tic4x-*-*)
3671 noconfigdirs="$noconfigdirs target-libgloss"
3673 tic54x-*-*)
3674 noconfigdirs="$noconfigdirs target-libgloss gdb"
3676 d10v-*-*)
3677 noconfigdirs="$noconfigdirs target-libgloss"
3679 d30v-*-*)
3680 noconfigdirs="$noconfigdirs gdb"
3682 fr30-*-elf*)
3683 noconfigdirs="$noconfigdirs gdb"
3685 moxie-*-*)
3686 noconfigdirs="$noconfigdirs gprof"
3688 h8300*-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3691 h8500-*-*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3694 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3696 hppa*64*-*-linux*)
3698 hppa*-*-linux*)
3700 hppa*-*-*elf* | \
3701 hppa*-*-lites* | \
3702 hppa*-*-openbsd* | \
3703 hppa*64*-*-*)
3705 hppa*-hp-hpux11*)
3706 noconfigdirs="$noconfigdirs ld"
3708 hppa*-*-pro*)
3710 hppa*-*-*)
3711 noconfigdirs="$noconfigdirs ld"
3713 i960-*-*)
3714 noconfigdirs="$noconfigdirs gdb"
3716 ia64*-*-elf*)
3717 # No gdb support yet.
3718 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3720 ia64*-**-hpux*)
3721 # No ld support yet.
3722 noconfigdirs="$noconfigdirs libgui itcl ld"
3724 ia64*-*-*vms*)
3725 # No ld support yet.
3726 noconfigdirs="$noconfigdirs libgui itcl ld"
3728 i[3456789]86-w64-mingw*)
3730 i[3456789]86-*-mingw*)
3731 target_configdirs="$target_configdirs target-winsup"
3733 *-*-cygwin*)
3734 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3735 noconfigdirs="$noconfigdirs target-libgloss"
3736 # always build newlib if winsup directory is present.
3737 if test -d "$srcdir/winsup/cygwin"; then
3738 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3739 elif test -d "$srcdir/newlib"; then
3740 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3743 i[3456789]86-*-pe)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3746 i[3456789]86-*-sco3.2v5*)
3747 # The linker does not yet know about weak symbols in COFF,
3748 # and is not configured to handle mixed ELF and COFF.
3749 noconfigdirs="$noconfigdirs ld target-libgloss"
3751 i[3456789]86-*-sco*)
3752 noconfigdirs="$noconfigdirs gprof target-libgloss"
3754 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3755 noconfigdirs="$noconfigdirs target-libgloss"
3757 i[3456789]86-*-sysv4*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3760 i[3456789]86-*-beos*)
3761 noconfigdirs="$noconfigdirs gdb"
3763 i[3456789]86-*-rdos*)
3764 noconfigdirs="$noconfigdirs gdb"
3766 mmix-*-*)
3767 noconfigdirs="$noconfigdirs gdb"
3769 mt-*-*)
3770 noconfigdirs="$noconfigdirs sim"
3772 powerpc-*-aix*)
3773 # copied from rs6000-*-* entry
3774 noconfigdirs="$noconfigdirs gprof"
3776 powerpc*-*-winnt* | powerpc*-*-pe*)
3777 target_configdirs="$target_configdirs target-winsup"
3778 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3779 # always build newlib.
3780 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3782 # This is temporary until we can link against shared libraries
3783 powerpcle-*-solaris*)
3784 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3786 powerpc-*-beos*)
3787 noconfigdirs="$noconfigdirs gdb"
3789 rs6000-*-lynxos*)
3790 noconfigdirs="$noconfigdirs gprof"
3792 rs6000-*-aix*)
3793 noconfigdirs="$noconfigdirs gprof"
3795 rs6000-*-*)
3796 noconfigdirs="$noconfigdirs gprof"
3798 m68k-apollo-*)
3799 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3801 microblaze*)
3802 noconfigdirs="$noconfigdirs gprof"
3804 mips*-sde-elf* | mips*-mti-elf*)
3805 if test x$with_newlib = xyes; then
3806 noconfigdirs="$noconfigdirs gprof"
3809 mips*-*-irix5*)
3810 noconfigdirs="$noconfigdirs gprof target-libgloss"
3812 mips*-*-irix6*)
3813 noconfigdirs="$noconfigdirs gprof target-libgloss"
3815 mips*-*-bsd*)
3816 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3818 mips*-*-linux*)
3820 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3821 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3822 noconfigdirs="$noconfigdirs ld gas gprof"
3824 mips*-*-*)
3825 noconfigdirs="$noconfigdirs gprof"
3827 sh-*-* | sh64-*-*)
3828 case "${target}" in
3829 sh*-*-elf)
3832 noconfigdirs="$noconfigdirs target-libgloss" ;;
3833 esac
3835 sparc-*-sunos4*)
3836 if test x${is_cross_compiler} = xno ; then
3837 use_gnu_ld=no
3840 tic6x-*-*)
3841 noconfigdirs="$noconfigdirs sim"
3843 tilepro-*-* | tilegx-*-*)
3844 noconfigdirs="$noconfigdirs sim"
3846 v810-*-*)
3847 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3849 vax-*-*)
3850 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3852 esac
3854 # If we aren't building newlib, then don't build libgloss, since libgloss
3855 # depends upon some newlib header files.
3856 case "${noconfigdirs}" in
3857 *target-libgloss*) ;;
3858 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3859 esac
3861 # Work in distributions that contain no compiler tools, like Autoconf.
3862 host_makefile_frag=/dev/null
3863 if test -d ${srcdir}/config ; then
3864 case "${host}" in
3865 i[3456789]86-*-msdosdjgpp*)
3866 host_makefile_frag="config/mh-djgpp"
3868 *-cygwin*)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3871 $as_echo_n "checking to see if cat works as expected... " >&6; }
3872 echo a >cygwin-cat-check
3873 if test `cat cygwin-cat-check` = a ; then
3874 rm cygwin-cat-check
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3876 $as_echo "yes" >&6; }
3877 else
3878 rm cygwin-cat-check
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 as_fn_error "The cat command does not ignore carriage return characters.
3882 Please either mount the build directory in binary mode or run the following
3883 commands before running any configure script:
3884 set -o igncr
3885 export SHELLOPTS
3886 " "$LINENO" 5
3889 host_makefile_frag="config/mh-cygwin"
3891 *-mingw*)
3892 host_makefile_frag="config/mh-mingw"
3894 hppa*-hp-hpux10*)
3895 host_makefile_frag="config/mh-pa-hpux10"
3897 hppa*-hp-hpux*)
3898 host_makefile_frag="config/mh-pa"
3900 hppa*-*)
3901 host_makefile_frag="config/mh-pa"
3903 *-*-darwin*)
3904 host_makefile_frag="config/mh-darwin"
3906 powerpc-*-aix*)
3907 host_makefile_frag="config/mh-ppc-aix"
3909 rs6000-*-aix*)
3910 host_makefile_frag="config/mh-ppc-aix"
3912 esac
3915 if test "${build}" != "${host}" ; then
3916 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3917 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3918 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3919 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3920 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3921 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3922 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3923 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
3924 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3925 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3926 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3927 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3928 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3929 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3930 else
3931 AR_FOR_BUILD="\$(AR)"
3932 AS_FOR_BUILD="\$(AS)"
3933 CC_FOR_BUILD="\$(CC)"
3934 CXX_FOR_BUILD="\$(CXX)"
3935 GCJ_FOR_BUILD="\$(GCJ)"
3936 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3937 GOC_FOR_BUILD="\$(GOC)"
3938 GUPC_FOR_BUILD="\$(GUPC)"
3939 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3940 LD_FOR_BUILD="\$(LD)"
3941 NM_FOR_BUILD="\$(NM)"
3942 RANLIB_FOR_BUILD="\$(RANLIB)"
3943 WINDRES_FOR_BUILD="\$(WINDRES)"
3944 WINDMC_FOR_BUILD="\$(WINDMC)"
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 if test -n "$ac_tool_prefix"; then
3953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if test "${ac_cv_prog_CC+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 if test -n "$CC"; then
3961 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3974 done
3975 done
3976 IFS=$as_save_IFS
3980 CC=$ac_cv_prog_CC
3981 if test -n "$CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983 $as_echo "$CC" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3991 if test -z "$ac_cv_prog_CC"; then
3992 ac_ct_CC=$CC
3993 # Extract the first word of "gcc", so it can be a program name with args.
3994 set dummy gcc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_prog_ac_ct_CC="gcc"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4014 done
4015 done
4016 IFS=$as_save_IFS
4020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021 if test -n "$ac_ct_CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023 $as_echo "$ac_ct_CC" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4029 if test "x$ac_ct_CC" = x; then
4030 CC=""
4031 else
4032 case $cross_compiling:$ac_tool_warned in
4033 yes:)
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4036 ac_tool_warned=yes ;;
4037 esac
4038 CC=$ac_ct_CC
4040 else
4041 CC="$ac_cv_prog_CC"
4044 if test -z "$CC"; then
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}cc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="${ac_tool_prefix}cc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4067 done
4068 done
4069 IFS=$as_save_IFS
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4085 if test -z "$CC"; then
4086 # Extract the first word of "cc", so it can be a program name with args.
4087 set dummy cc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if test "${ac_cv_prog_CC+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test -n "$CC"; then
4094 ac_cv_prog_CC="$CC" # Let the user override the test.
4095 else
4096 ac_prog_rejected=no
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4105 ac_prog_rejected=yes
4106 continue
4108 ac_cv_prog_CC="cc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4114 IFS=$as_save_IFS
4116 if test $ac_prog_rejected = yes; then
4117 # We found a bogon in the path, so make sure we never use it.
4118 set dummy $ac_cv_prog_CC
4119 shift
4120 if test $# != 0; then
4121 # We chose a different compiler from the bogus one.
4122 # However, it has the same basename, so the bogon will be chosen
4123 # first if we set CC to just the basename; use the full file name.
4124 shift
4125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4130 CC=$ac_cv_prog_CC
4131 if test -n "$CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in cl.exe
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4182 test -n "$CC" && break
4183 done
4185 if test -z "$CC"; then
4186 ac_ct_CC=$CC
4187 for ac_prog in cl.exe
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$ac_ct_CC"; then
4197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CC="$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4219 $as_echo "$ac_ct_CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226 test -n "$ac_ct_CC" && break
4227 done
4229 if test "x$ac_ct_CC" = x; then
4230 CC=""
4231 else
4232 case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4237 esac
4238 CC=$ac_ct_CC
4245 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error "no acceptable C compiler found in \$PATH
4248 See \`config.log' for more details." "$LINENO" 5; }
4250 # Provide some information about the compiler.
4251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4252 set X $ac_compile
4253 ac_compiler=$2
4254 for ac_option in --version -v -V -qversion; do
4255 { { ac_try="$ac_compiler $ac_option >&5"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4263 ac_status=$?
4264 if test -s conftest.err; then
4265 sed '10a\
4266 ... rest of stderr output deleted ...
4267 10q' conftest.err >conftest.er1
4268 cat conftest.er1 >&5
4269 rm -f conftest.er1 conftest.err
4271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272 test $ac_status = 0; }
4273 done
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4279 main ()
4283 return 0;
4285 _ACEOF
4286 ac_clean_files_save=$ac_clean_files
4287 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4288 # Try to create an executable without -o first, disregard a.out.
4289 # It will help us diagnose broken compilers, and finding out an intuition
4290 # of exeext.
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4292 $as_echo_n "checking for C compiler default output file name... " >&6; }
4293 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4295 # The possible output files:
4296 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4298 ac_rmfiles=
4299 for ac_file in $ac_files
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4304 esac
4305 done
4306 rm -f $ac_rmfiles
4308 if { { ac_try="$ac_link_default"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_link_default") 2>&5
4316 ac_status=$?
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
4319 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4321 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4322 # so that the user can short-circuit this test for compilers unknown to
4323 # Autoconf.
4324 for ac_file in $ac_files ''
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4330 [ab].out )
4331 # We found the default executable, but exeext='' is most
4332 # certainly right.
4333 break;;
4334 *.* )
4335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4336 then :; else
4337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4339 # We set ac_cv_exeext here because the later test for it is not
4340 # safe: cross compilers may not add the suffix if given an `-o'
4341 # argument, so we may need to know it at that point already.
4342 # Even if this section looks crufty: it has the advantage of
4343 # actually working.
4344 break;;
4346 break;;
4347 esac
4348 done
4349 test "$ac_cv_exeext" = no && ac_cv_exeext=
4351 else
4352 ac_file=''
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4355 $as_echo "$ac_file" >&6; }
4356 if test -z "$ac_file"; then :
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 { as_fn_set_status 77
4363 as_fn_error "C compiler cannot create executables
4364 See \`config.log' for more details." "$LINENO" 5; }; }
4366 ac_exeext=$ac_cv_exeext
4368 # Check that the compiler produces executables we can run. If not, either
4369 # the compiler is broken, or we cross compile.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4371 $as_echo_n "checking whether the C compiler works... " >&6; }
4372 # If not cross compiling, check that we can run a simple program.
4373 if test "$cross_compiling" != yes; then
4374 if { ac_try='./$ac_file'
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_try") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; }; }; then
4385 cross_compiling=no
4386 else
4387 if test "$cross_compiling" = maybe; then
4388 cross_compiling=yes
4389 else
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error "cannot run C compiled programs.
4393 If you meant to cross compile, use \`--host'.
4394 See \`config.log' for more details." "$LINENO" 5; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4401 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4402 ac_clean_files=$ac_clean_files_save
4403 # Check that the compiler produces executables we can run. If not, either
4404 # the compiler is broken, or we cross compile.
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4406 $as_echo_n "checking whether we are cross compiling... " >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4408 $as_echo "$cross_compiling" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4411 $as_echo_n "checking for suffix of executables... " >&6; }
4412 if { { ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_link") 2>&5
4420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; then :
4423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4424 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4425 # work properly (i.e., refer to `conftest.exe'), while it won't with
4426 # `rm'.
4427 for ac_file in conftest.exe conftest conftest.*; do
4428 test -f "$ac_file" || continue
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 break;;
4433 * ) break;;
4434 esac
4435 done
4436 else
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error "cannot compute suffix of executables: cannot compile and link
4440 See \`config.log' for more details." "$LINENO" 5; }
4442 rm -f conftest$ac_cv_exeext
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4444 $as_echo "$ac_cv_exeext" >&6; }
4446 rm -f conftest.$ac_ext
4447 EXEEXT=$ac_cv_exeext
4448 ac_exeext=$EXEEXT
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4450 $as_echo_n "checking for suffix of object files... " >&6; }
4451 if test "${ac_cv_objext+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 main ()
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.o conftest.obj
4466 if { { ac_try="$ac_compile"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_compile") 2>&5
4474 ac_status=$?
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 for ac_file in conftest.o conftest.obj conftest.*; do
4478 test -f "$ac_file" || continue;
4479 case $ac_file in
4480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4482 break;;
4483 esac
4484 done
4485 else
4486 $as_echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4491 as_fn_error "cannot compute suffix of object files: cannot compile
4492 See \`config.log' for more details." "$LINENO" 5; }
4494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4497 $as_echo "$ac_cv_objext" >&6; }
4498 OBJEXT=$ac_cv_objext
4499 ac_objext=$OBJEXT
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4502 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4511 #ifndef __GNUC__
4512 choke me
4513 #endif
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_compiler_gnu=yes
4521 else
4522 ac_compiler_gnu=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4530 if test $ac_compiler_gnu = yes; then
4531 GCC=yes
4532 else
4533 GCC=
4535 ac_test_CFLAGS=${CFLAGS+set}
4536 ac_save_CFLAGS=$CFLAGS
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4539 if test "${ac_cv_prog_cc_g+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 ac_save_c_werror_flag=$ac_c_werror_flag
4543 ac_c_werror_flag=yes
4544 ac_cv_prog_cc_g=no
4545 CFLAGS="-g"
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 ac_cv_prog_cc_g=yes
4559 else
4560 CFLAGS=""
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4569 return 0;
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"; then :
4574 else
4575 ac_c_werror_flag=$ac_save_c_werror_flag
4576 CFLAGS="-g"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 main ()
4585 return 0;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_prog_cc_g=yes
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 ac_c_werror_flag=$ac_save_c_werror_flag
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4599 $as_echo "$ac_cv_prog_cc_g" >&6; }
4600 if test "$ac_test_CFLAGS" = set; then
4601 CFLAGS=$ac_save_CFLAGS
4602 elif test $ac_cv_prog_cc_g = yes; then
4603 if test "$GCC" = yes; then
4604 CFLAGS="-g -O2"
4605 else
4606 CFLAGS="-g"
4608 else
4609 if test "$GCC" = yes; then
4610 CFLAGS="-O2"
4611 else
4612 CFLAGS=
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4617 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 ac_cv_prog_cc_c89=no
4621 ac_save_CC=$CC
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <stdarg.h>
4625 #include <stdio.h>
4626 #include <sys/types.h>
4627 #include <sys/stat.h>
4628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4629 struct buf { int x; };
4630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4631 static char *e (p, i)
4632 char **p;
4633 int i;
4635 return p[i];
4637 static char *f (char * (*g) (char **, int), char **p, ...)
4639 char *s;
4640 va_list v;
4641 va_start (v,p);
4642 s = g (p, va_arg (v,int));
4643 va_end (v);
4644 return s;
4647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4648 function prototypes and stuff, but not '\xHH' hex character constants.
4649 These don't provoke an error unfortunately, instead are silently treated
4650 as 'x'. The following induces an error, until -std is added to get
4651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4652 array size at least. It's necessary to write '\x00'==0 to get something
4653 that's true only with -std. */
4654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4657 inside strings and character constants. */
4658 #define FOO(x) 'x'
4659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4661 int test (int i, double x);
4662 struct s1 {int (*f) (int a);};
4663 struct s2 {int (*f) (double a);};
4664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4665 int argc;
4666 char **argv;
4668 main ()
4670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4672 return 0;
4674 _ACEOF
4675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4678 CC="$ac_save_CC $ac_arg"
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_prog_cc_c89=$ac_arg
4682 rm -f core conftest.err conftest.$ac_objext
4683 test "x$ac_cv_prog_cc_c89" != "xno" && break
4684 done
4685 rm -f conftest.$ac_ext
4686 CC=$ac_save_CC
4689 # AC_CACHE_VAL
4690 case "x$ac_cv_prog_cc_c89" in
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4693 $as_echo "none needed" >&6; } ;;
4694 xno)
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4696 $as_echo "unsupported" >&6; } ;;
4698 CC="$CC $ac_cv_prog_cc_c89"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4701 esac
4702 if test "x$ac_cv_prog_cc_c89" != xno; then :
4706 ac_ext=c
4707 ac_cpp='$CPP $CPPFLAGS'
4708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712 ac_ext=cpp
4713 ac_cpp='$CXXCPP $CPPFLAGS'
4714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4717 if test -z "$CXX"; then
4718 if test -n "$CCC"; then
4719 CXX=$CCC
4720 else
4721 if test -n "$ac_tool_prefix"; then
4722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_CXX+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$CXX"; then
4732 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4745 done
4746 done
4747 IFS=$as_save_IFS
4751 CXX=$ac_cv_prog_CXX
4752 if test -n "$CXX"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4754 $as_echo "$CXX" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4761 test -n "$CXX" && break
4762 done
4764 if test -z "$CXX"; then
4765 ac_ct_CXX=$CXX
4766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4768 # Extract the first word of "$ac_prog", so it can be a program name with args.
4769 set dummy $ac_prog; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$ac_ct_CXX"; then
4776 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_ac_ct_CXX="$ac_prog"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4796 if test -n "$ac_ct_CXX"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4798 $as_echo "$ac_ct_CXX" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4805 test -n "$ac_ct_CXX" && break
4806 done
4808 if test "x$ac_ct_CXX" = x; then
4809 CXX="g++"
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 CXX=$ac_ct_CXX
4823 # Provide some information about the compiler.
4824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4825 set X $ac_compile
4826 ac_compiler=$2
4827 for ac_option in --version -v -V -qversion; do
4828 { { ac_try="$ac_compiler $ac_option >&5"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4834 $as_echo "$ac_try_echo"; } >&5
4835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4836 ac_status=$?
4837 if test -s conftest.err; then
4838 sed '10a\
4839 ... rest of stderr output deleted ...
4840 10q' conftest.err >conftest.er1
4841 cat conftest.er1 >&5
4842 rm -f conftest.er1 conftest.err
4844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4845 test $ac_status = 0; }
4846 done
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4849 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4850 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4857 main ()
4859 #ifndef __GNUC__
4860 choke me
4861 #endif
4864 return 0;
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4868 ac_compiler_gnu=yes
4869 else
4870 ac_compiler_gnu=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4877 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4878 if test $ac_compiler_gnu = yes; then
4879 GXX=yes
4880 else
4881 GXX=
4883 ac_test_CXXFLAGS=${CXXFLAGS+set}
4884 ac_save_CXXFLAGS=$CXXFLAGS
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4886 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4887 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4891 ac_cxx_werror_flag=yes
4892 ac_cv_prog_cxx_g=no
4893 CXXFLAGS="-g"
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4898 main ()
4902 return 0;
4904 _ACEOF
4905 if ac_fn_cxx_try_compile "$LINENO"; then :
4906 ac_cv_prog_cxx_g=yes
4907 else
4908 CXXFLAGS=""
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4913 main ()
4917 return 0;
4919 _ACEOF
4920 if ac_fn_cxx_try_compile "$LINENO"; then :
4922 else
4923 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4924 CXXFLAGS="-g"
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4929 main ()
4933 return 0;
4935 _ACEOF
4936 if ac_fn_cxx_try_compile "$LINENO"; then :
4937 ac_cv_prog_cxx_g=yes
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4947 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4948 if test "$ac_test_CXXFLAGS" = set; then
4949 CXXFLAGS=$ac_save_CXXFLAGS
4950 elif test $ac_cv_prog_cxx_g = yes; then
4951 if test "$GXX" = yes; then
4952 CXXFLAGS="-g -O2"
4953 else
4954 CXXFLAGS="-g"
4956 else
4957 if test "$GXX" = yes; then
4958 CXXFLAGS="-O2"
4959 else
4960 CXXFLAGS=
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 # We must set the default linker to the linker used by gcc for the correct
4971 # operation of libtool. If LD is not defined and we are using gcc, try to
4972 # set the LD default to the ld used by gcc.
4973 if test -z "$LD"; then
4974 if test "$GCC" = yes; then
4975 case $build in
4976 *-*-mingw*)
4977 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4979 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4980 esac
4981 case $gcc_prog_ld in
4982 # Accept absolute paths.
4983 [\\/]* | [A-Za-z]:[\\/]*)
4984 LD="$gcc_prog_ld" ;;
4985 esac
4989 # Check whether -static-libstdc++ -static-libgcc is supported.
4990 have_static_libs=no
4991 if test "$GCC" = yes; then
4992 saved_LDFLAGS="$LDFLAGS"
4994 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4996 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4997 ac_ext=cpp
4998 ac_cpp='$CXXCPP $CPPFLAGS'
4999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5007 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5008 #error -static-libstdc++ not implemented
5009 #endif
5010 int main() {}
5011 _ACEOF
5012 if ac_fn_cxx_try_link "$LINENO"; then :
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5014 $as_echo "yes" >&6; }; have_static_libs=yes
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5019 rm -f core conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028 LDFLAGS="$saved_LDFLAGS"
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$GNATBIND"; then
5043 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5058 IFS=$as_save_IFS
5062 GNATBIND=$ac_cv_prog_GNATBIND
5063 if test -n "$GNATBIND"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5065 $as_echo "$GNATBIND" >&6; }
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5073 if test -z "$ac_cv_prog_GNATBIND"; then
5074 ac_ct_GNATBIND=$GNATBIND
5075 # Extract the first word of "gnatbind", so it can be a program name with args.
5076 set dummy gnatbind; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$ac_ct_GNATBIND"; then
5083 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5096 done
5097 done
5098 IFS=$as_save_IFS
5102 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5103 if test -n "$ac_ct_GNATBIND"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5105 $as_echo "$ac_ct_GNATBIND" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5111 if test "x$ac_ct_GNATBIND" = x; then
5112 GNATBIND="no"
5113 else
5114 case $cross_compiling:$ac_tool_warned in
5115 yes:)
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118 ac_tool_warned=yes ;;
5119 esac
5120 GNATBIND=$ac_ct_GNATBIND
5122 else
5123 GNATBIND="$ac_cv_prog_GNATBIND"
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$GNATMAKE"; then
5135 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 GNATMAKE=$ac_cv_prog_GNATMAKE
5155 if test -n "$GNATMAKE"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5157 $as_echo "$GNATMAKE" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_GNATMAKE"; then
5166 ac_ct_GNATMAKE=$GNATMAKE
5167 # Extract the first word of "gnatmake", so it can be a program name with args.
5168 set dummy gnatmake; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$ac_ct_GNATMAKE"; then
5175 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5195 if test -n "$ac_ct_GNATMAKE"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5197 $as_echo "$ac_ct_GNATMAKE" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_GNATMAKE" = x; then
5204 GNATMAKE="no"
5205 else
5206 case $cross_compiling:$ac_tool_warned in
5207 yes:)
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5211 esac
5212 GNATMAKE=$ac_ct_GNATMAKE
5214 else
5215 GNATMAKE="$ac_cv_prog_GNATMAKE"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5219 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5220 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat >conftest.adb <<EOF
5224 procedure conftest is begin null; end conftest;
5226 acx_cv_cc_gcc_supports_ada=no
5227 # There is a bug in old released versions of GCC which causes the
5228 # driver to exit successfully when the appropriate language module
5229 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5230 # Therefore we must check for the error message as well as an
5231 # unsuccessful exit.
5232 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5233 # given a .adb file, but produce no object file. So we must check
5234 # if an object file was really produced to guard against this.
5235 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5236 if test x"$errors" = x && test -f conftest.$ac_objext; then
5237 acx_cv_cc_gcc_supports_ada=yes
5239 rm -f conftest.*
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5242 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5244 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5245 have_gnat=yes
5246 else
5247 have_gnat=no
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5251 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5252 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 echo abfoo >t1
5256 echo cdfoo >t2
5257 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5258 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5259 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5261 else
5262 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5265 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5266 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5268 else
5269 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5272 rm t1 t2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5276 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5277 do_compare="$gcc_cv_prog_cmp_skip"
5281 # Check whether --enable-bootstrap was given.
5282 if test "${enable_bootstrap+set}" = set; then :
5283 enableval=$enable_bootstrap;
5284 else
5285 enable_bootstrap=default
5289 # Issue errors and warnings for invalid/strange bootstrap combinations.
5290 if test -r $srcdir/gcc/configure; then
5291 have_compiler=yes
5292 else
5293 have_compiler=no
5296 case "$have_compiler:$host:$target:$enable_bootstrap" in
5297 *:*:*:no) ;;
5299 # Default behavior. Enable bootstrap if we have a compiler
5300 # and we are in a native configuration.
5301 yes:$build:$build:default)
5302 enable_bootstrap=yes ;;
5304 *:*:*:default)
5305 enable_bootstrap=no ;;
5307 # We have a compiler and we are in a native configuration, bootstrap is ok
5308 yes:$build:$build:yes)
5311 # Other configurations, but we have a compiler. Assume the user knows
5312 # what he's doing.
5313 yes:*:*:yes)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5315 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5318 # No compiler: if they passed --enable-bootstrap explicitly, fail
5319 no:*:*:yes)
5320 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5322 # Fail if wrong command line
5324 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5326 esac
5328 # Used for setting $lt_cv_objdir
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5330 $as_echo_n "checking for objdir... " >&6; }
5331 if test "${lt_cv_objdir+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 rm -f .libs 2>/dev/null
5335 mkdir .libs 2>/dev/null
5336 if test -d .libs; then
5337 lt_cv_objdir=.libs
5338 else
5339 # MS-DOS does not allow filenames that begin with a dot.
5340 lt_cv_objdir=_libs
5342 rmdir .libs 2>/dev/null
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5345 $as_echo "$lt_cv_objdir" >&6; }
5346 objdir=$lt_cv_objdir
5352 cat >>confdefs.h <<_ACEOF
5353 #define LT_OBJDIR "$lt_cv_objdir/"
5354 _ACEOF
5358 # Check for GMP, MPFR and MPC
5359 gmplibs="-lmpc -lmpfr -lgmp"
5360 gmpinc=
5361 have_gmp=no
5363 # Specify a location for mpc
5364 # check for this first so it ends up on the link line before mpfr.
5366 # Check whether --with-mpc was given.
5367 if test "${with_mpc+set}" = set; then :
5368 withval=$with_mpc;
5372 # Check whether --with-mpc-include was given.
5373 if test "${with_mpc_include+set}" = set; then :
5374 withval=$with_mpc_include;
5378 # Check whether --with-mpc-lib was given.
5379 if test "${with_mpc_lib+set}" = set; then :
5380 withval=$with_mpc_lib;
5384 if test "x$with_mpc" != x; then
5385 gmplibs="-L$with_mpc/lib $gmplibs"
5386 gmpinc="-I$with_mpc/include $gmpinc"
5388 if test "x$with_mpc_include" != x; then
5389 gmpinc="-I$with_mpc_include $gmpinc"
5391 if test "x$with_mpc_lib" != x; then
5392 gmplibs="-L$with_mpc_lib $gmplibs"
5394 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5395 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5396 gmpinc='-I$$s/mpc/src '"$gmpinc"
5397 # Do not test the mpc version. Assume that it is sufficient, since
5398 # it is in the source tree, and the library has not been built yet
5399 # but it would be included on the link line in the version check below
5400 # hence making the test fail.
5401 have_gmp=yes
5404 # Specify a location for mpfr
5405 # check for this first so it ends up on the link line before gmp.
5407 # Check whether --with-mpfr-dir was given.
5408 if test "${with_mpfr_dir+set}" = set; then :
5409 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5410 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5415 # Check whether --with-mpfr was given.
5416 if test "${with_mpfr+set}" = set; then :
5417 withval=$with_mpfr;
5421 # Check whether --with-mpfr-include was given.
5422 if test "${with_mpfr_include+set}" = set; then :
5423 withval=$with_mpfr_include;
5427 # Check whether --with-mpfr-lib was given.
5428 if test "${with_mpfr_lib+set}" = set; then :
5429 withval=$with_mpfr_lib;
5433 if test "x$with_mpfr" != x; then
5434 gmplibs="-L$with_mpfr/lib $gmplibs"
5435 gmpinc="-I$with_mpfr/include $gmpinc"
5437 if test "x$with_mpfr_include" != x; then
5438 gmpinc="-I$with_mpfr_include $gmpinc"
5440 if test "x$with_mpfr_lib" != x; then
5441 gmplibs="-L$with_mpfr_lib $gmplibs"
5443 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5444 # MPFR v3.1.0 moved the sources into a src sub-directory.
5445 if test -d ${srcdir}/mpfr/src; then
5446 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5447 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5448 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5449 else
5450 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5451 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5452 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5454 # Do not test the mpfr version. Assume that it is sufficient, since
5455 # it is in the source tree, and the library has not been built yet
5456 # but it would be included on the link line in the version check below
5457 # hence making the test fail.
5458 have_gmp=yes
5461 # Specify a location for gmp
5463 # Check whether --with-gmp-dir was given.
5464 if test "${with_gmp_dir+set}" = set; then :
5465 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5466 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5471 # Check whether --with-gmp was given.
5472 if test "${with_gmp+set}" = set; then :
5473 withval=$with_gmp;
5477 # Check whether --with-gmp-include was given.
5478 if test "${with_gmp_include+set}" = set; then :
5479 withval=$with_gmp_include;
5483 # Check whether --with-gmp-lib was given.
5484 if test "${with_gmp_lib+set}" = set; then :
5485 withval=$with_gmp_lib;
5490 if test "x$with_gmp" != x; then
5491 gmplibs="-L$with_gmp/lib $gmplibs"
5492 gmpinc="-I$with_gmp/include $gmpinc"
5494 if test "x$with_gmp_include" != x; then
5495 gmpinc="-I$with_gmp_include $gmpinc"
5497 if test "x$with_gmp_lib" != x; then
5498 gmplibs="-L$with_gmp_lib $gmplibs"
5500 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5501 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5502 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5503 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5504 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5505 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5506 # Do not test the gmp version. Assume that it is sufficient, since
5507 # it is in the source tree, and the library has not been built yet
5508 # but it would be included on the link line in the version check below
5509 # hence making the test fail.
5510 have_gmp=yes
5513 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5514 have_gmp=yes
5515 saved_CFLAGS="$CFLAGS"
5516 CFLAGS="$CFLAGS $gmpinc"
5517 # Check for the recommended and required versions of GMP.
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5519 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include "gmp.h"
5525 main ()
5528 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5529 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5530 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5531 choke me
5532 #endif
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <gmp.h>
5543 main ()
5546 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5547 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5548 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5549 choke me
5550 #endif
5553 return 0;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5561 $as_echo "buggy but acceptable" >&6; }
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }; have_gmp=no
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 # If we have GMP, check the MPFR version.
5571 if test x"$have_gmp" = xyes; then
5572 # Check for the recommended and required versions of MPFR.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5574 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <gmp.h>
5578 #include <mpfr.h>
5580 main ()
5583 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5584 choke me
5585 #endif
5588 return 0;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <gmp.h>
5595 #include <mpfr.h>
5597 main ()
5600 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5601 choke me
5602 #endif
5605 return 0;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5613 $as_echo "buggy but acceptable" >&6; }
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }; have_gmp=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 # Check for the MPC header version.
5624 if test x"$have_gmp" = xyes ; then
5625 # Check for the recommended and required versions of MPC.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5627 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <mpc.h>
5632 main ()
5635 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5636 choke me
5637 #endif
5640 return 0;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <mpc.h>
5648 main ()
5651 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5652 choke me
5653 #endif
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5664 $as_echo "buggy but acceptable" >&6; }
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }; have_gmp=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 # Now check the MPFR library.
5675 if test x"$have_gmp" = xyes; then
5676 saved_LIBS="$LIBS"
5677 LIBS="$LIBS $gmplibs"
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5679 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <mpc.h>
5684 main ()
5687 mpfr_t n;
5688 mpfr_t x;
5689 mpc_t c;
5690 int t;
5691 mpfr_init (n);
5692 mpfr_init (x);
5693 mpfr_atan2 (n, n, x, GMP_RNDN);
5694 mpfr_erfc (n, x, GMP_RNDN);
5695 mpfr_subnormalize (x, t, GMP_RNDN);
5696 mpfr_clear(n);
5697 mpfr_clear(x);
5698 mpc_init2 (c, 53);
5699 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5700 mpc_cosh (c, c, MPC_RNDNN);
5701 mpc_pow (c, c, c, MPC_RNDNN);
5702 mpc_acosh (c, c, MPC_RNDNN);
5703 mpc_clear (c);
5706 return 0;
5708 _ACEOF
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }; have_gmp=no
5716 rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 LIBS="$saved_LIBS"
5721 CFLAGS="$saved_CFLAGS"
5723 # The library versions listed in the error message below should match
5724 # the HARD-minimums enforced above.
5725 if test x$have_gmp != xyes; then
5726 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5727 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5728 their locations. Source code for these libraries can be found at
5729 their respective hosting sites as well as at
5730 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5731 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5732 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5733 make sure that you have installed both the libraries and the header
5734 files. They may be located in separate packages." "$LINENO" 5
5738 # Flags needed for both GMP, MPFR and/or MPC.
5746 # Allow host libstdc++ to be specified for static linking with PPL.
5748 # Check whether --with-host-libstdcxx was given.
5749 if test "${with_host_libstdcxx+set}" = set; then :
5750 withval=$with_host_libstdcxx;
5754 case $with_host_libstdcxx in
5755 no|yes)
5756 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5758 esac
5760 # Libraries to use for stage1 or when not bootstrapping.
5762 # Check whether --with-stage1-libs was given.
5763 if test "${with_stage1_libs+set}" = set; then :
5764 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_libs=
5766 else
5767 stage1_libs=$withval
5769 else
5770 stage1_libs=$with_host_libstdcxx
5775 # Linker flags to use for stage1 or when not bootstrapping.
5777 # Check whether --with-stage1-ldflags was given.
5778 if test "${with_stage1_ldflags+set}" = set; then :
5779 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5780 stage1_ldflags=
5781 else
5782 stage1_ldflags=$withval
5784 else
5785 stage1_ldflags=
5786 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5787 # if supported. But if the user explicitly specified the libraries to use,
5788 # trust that they are doing what they want.
5789 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5790 stage1_ldflags="-static-libstdc++ -static-libgcc"
5796 # Libraries to use for stage2 and later builds. This defaults to the
5797 # argument passed to --with-host-libstdcxx.
5799 # Check whether --with-boot-libs was given.
5800 if test "${with_boot_libs+set}" = set; then :
5801 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_libs=
5803 else
5804 poststage1_libs=$withval
5806 else
5807 poststage1_libs=$with_host_libstdcxx
5812 # Linker flags to use for stage2 and later builds.
5814 # Check whether --with-boot-ldflags was given.
5815 if test "${with_boot_ldflags+set}" = set; then :
5816 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5817 poststage1_ldflags=
5818 else
5819 poststage1_ldflags=$withval
5821 else
5822 poststage1_ldflags=
5823 # In stages 2 and 3, default to linking libstdc++ and libgcc
5824 # statically. But if the user explicitly specified the libraries to
5825 # use, trust that they are doing what they want.
5826 if test "$poststage1_libs" = ""; then
5827 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5833 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5834 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5835 # config/isl.m4
5838 # Check whether --with-cloog was given.
5839 if test "${with_cloog+set}" = set; then :
5840 withval=$with_cloog;
5844 # Check whether --with-isl was given.
5845 if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
5850 # Treat either --without-cloog or --without-isl as a request to disable
5851 # GRAPHITE support and skip all following checks.
5852 if test "x$with_isl" != "xno" &&
5853 test "x$with_cloog" != "xno"; then
5854 # Check for ISL
5857 # Check whether --with-isl-include was given.
5858 if test "${with_isl_include+set}" = set; then :
5859 withval=$with_isl_include;
5863 # Check whether --with-isl-lib was given.
5864 if test "${with_isl_lib+set}" = set; then :
5865 withval=$with_isl_lib;
5869 # Check whether --enable-isl-version-check was given.
5870 if test "${enable_isl_version_check+set}" = set; then :
5871 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5872 else
5873 ENABLE_ISL_CHECK=yes
5877 # Initialize isllibs and islinc.
5878 case $with_isl in
5880 isllibs=
5881 islinc=
5883 "" | yes)
5886 isllibs="-L$with_isl/lib"
5887 islinc="-I$with_isl/include"
5889 esac
5890 if test "x${with_isl_include}" != x ; then
5891 islinc="-I$with_isl_include"
5893 if test "x${with_isl_lib}" != x; then
5894 isllibs="-L$with_isl_lib"
5896 if test "x${islinc}" = x && test "x${isllibs}" = x \
5897 && test -d ${srcdir}/isl; then
5898 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5899 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5900 ENABLE_ISL_CHECK=no
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5902 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5907 if test "${ENABLE_ISL_CHECK}" = yes ; then
5908 _isl_saved_CFLAGS=$CFLAGS
5909 _isl_saved_LDFLAGS=$LDFLAGS
5910 _isl_saved_LIBS=$LIBS
5912 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5913 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5914 LIBS="${_isl_saved_LIBS} -lisl"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5917 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5918 if test "$cross_compiling" = yes; then :
5919 gcc_cv_isl=yes
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 #include <isl/version.h>
5924 #include <string.h>
5926 main ()
5928 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5929 return 1;
5932 return 0;
5934 _ACEOF
5935 if ac_fn_c_try_run "$LINENO"; then :
5936 gcc_cv_isl=yes
5937 else
5938 gcc_cv_isl=no
5940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5941 conftest.$ac_objext conftest.beam conftest.$ac_ext
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5945 $as_echo "$gcc_cv_isl" >&6; }
5947 CFLAGS=$_isl_saved_CFLAGS
5948 LDFLAGS=$_isl_saved_LDFLAGS
5949 LIBS=$_isl_saved_LIBS
5953 if test "${gcc_cv_isl}" = no ; then
5955 if test "${ENABLE_ISL_CHECK}" = yes ; then
5956 _isl_saved_CFLAGS=$CFLAGS
5957 _isl_saved_LDFLAGS=$LDFLAGS
5958 _isl_saved_LIBS=$LIBS
5960 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5961 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5962 LIBS="${_isl_saved_LIBS} -lisl"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5965 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5966 if test "$cross_compiling" = yes; then :
5967 gcc_cv_isl=yes
5968 else
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <isl/version.h>
5972 #include <string.h>
5974 main ()
5976 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5977 return 1;
5980 return 0;
5982 _ACEOF
5983 if ac_fn_c_try_run "$LINENO"; then :
5984 gcc_cv_isl=yes
5985 else
5986 gcc_cv_isl=no
5988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5989 conftest.$ac_objext conftest.beam conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5993 $as_echo "$gcc_cv_isl" >&6; }
5995 CFLAGS=$_isl_saved_CFLAGS
5996 LDFLAGS=$_isl_saved_LDFLAGS
5997 LIBS=$_isl_saved_LIBS
6001 if test "${gcc_cv_isl}" = no ; then
6003 if test "${ENABLE_ISL_CHECK}" = yes ; then
6004 _isl_saved_CFLAGS=$CFLAGS
6005 _isl_saved_LDFLAGS=$LDFLAGS
6006 _isl_saved_LIBS=$LIBS
6008 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6009 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6010 LIBS="${_isl_saved_LIBS} -lisl"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6013 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6014 if test "$cross_compiling" = yes; then :
6015 gcc_cv_isl=yes
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <isl/version.h>
6020 #include <string.h>
6022 main ()
6024 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6025 return 1;
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_run "$LINENO"; then :
6032 gcc_cv_isl=yes
6033 else
6034 gcc_cv_isl=no
6036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6037 conftest.$ac_objext conftest.beam conftest.$ac_ext
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6041 $as_echo "$gcc_cv_isl" >&6; }
6043 CFLAGS=$_isl_saved_CFLAGS
6044 LDFLAGS=$_isl_saved_LDFLAGS
6045 LIBS=$_isl_saved_LIBS
6055 if test "x${with_isl}" = xno; then
6056 graphite_requested=no
6057 elif test "x${with_isl}" != x \
6058 || test "x${with_isl_include}" != x \
6059 || test "x${with_isl_lib}" != x ; then
6060 graphite_requested=yes
6061 else
6062 graphite_requested=no
6067 if test "${gcc_cv_isl}" = no ; then
6068 isllibs=
6069 islinc=
6072 if test "${graphite_requested}" = yes \
6073 && test "x${isllibs}" = x \
6074 && test "x${islinc}" = x ; then
6076 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6081 if test "x$gcc_cv_isl" != "xno"; then
6082 # Check for CLOOG
6085 # Check whether --with-cloog-include was given.
6086 if test "${with_cloog_include+set}" = set; then :
6087 withval=$with_cloog_include;
6091 # Check whether --with-cloog-lib was given.
6092 if test "${with_cloog_lib+set}" = set; then :
6093 withval=$with_cloog_lib;
6097 # Check whether --enable-cloog-version-check was given.
6098 if test "${enable_cloog_version_check+set}" = set; then :
6099 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6100 else
6101 ENABLE_CLOOG_CHECK=yes
6105 # Initialize clooglibs and clooginc.
6106 case $with_cloog in
6108 clooglibs=
6109 clooginc=
6111 "" | yes)
6114 clooglibs="-L$with_cloog/lib"
6115 clooginc="-I$with_cloog/include"
6117 esac
6118 if test "x${with_cloog_include}" != x ; then
6119 clooginc="-I$with_cloog_include"
6121 if test "x${with_cloog_lib}" != x; then
6122 clooglibs="-L$with_cloog_lib"
6124 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6125 && test -d ${srcdir}/cloog; then
6126 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6127 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6128 ENABLE_CLOOG_CHECK=no
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6130 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6133 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6134 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6140 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6141 _cloog_saved_CFLAGS=$CFLAGS
6142 _cloog_saved_LDFLAGS=$LDFLAGS
6144 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6145 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6148 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include "cloog/version.h"
6153 main ()
6155 #if CLOOG_VERSION_MAJOR != 0 \
6156 || CLOOG_VERSION_MINOR != 17 \
6157 || CLOOG_VERSION_REVISION < 0
6158 choke me
6159 #endif
6161 return 0;
6163 _ACEOF
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 gcc_cv_cloog=yes
6166 else
6167 gcc_cv_cloog=no
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6171 $as_echo "$gcc_cv_cloog" >&6; }
6173 CFLAGS=$_cloog_saved_CFLAGS
6174 LDFLAGS=$_cloog_saved_LDFLAGS
6178 if test "${gcc_cv_cloog}" = no ; then
6182 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6183 _cloog_saved_CFLAGS=$CFLAGS
6184 _cloog_saved_LDFLAGS=$LDFLAGS
6186 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6187 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6190 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include "cloog/version.h"
6195 main ()
6197 #if CLOOG_VERSION_MAJOR != 0 \
6198 || CLOOG_VERSION_MINOR != 18 \
6199 || CLOOG_VERSION_REVISION < 0
6200 choke me
6201 #endif
6203 return 0;
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207 gcc_cv_cloog=yes
6208 else
6209 gcc_cv_cloog=no
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6213 $as_echo "$gcc_cv_cloog" >&6; }
6215 CFLAGS=$_cloog_saved_CFLAGS
6216 LDFLAGS=$_cloog_saved_LDFLAGS
6226 if test "x${with_cloog}" = xno; then
6227 graphite_requested=no
6228 elif test "x${with_cloog}" != x \
6229 || test "x${with_cloog_include}" != x \
6230 || test "x${with_cloog_lib}" != x ; then
6231 graphite_requested=yes
6232 else
6233 graphite_requested=no
6238 if test "${gcc_cv_cloog}" = no ; then
6239 clooglibs=
6240 clooginc=
6243 if test "${graphite_requested}" = yes \
6244 && test "x${clooglibs}" = x \
6245 && test "x${clooginc}" = x ; then
6247 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6254 # If either the ISL or the CLooG check failed, disable builds of in-tree
6255 # variants of both
6256 if test "x$with_isl" = xno ||
6257 test "x$with_cloog" = xno ||
6258 test "x$gcc_cv_cloog" = xno ||
6259 test "x$gcc_cv_isl" = xno; then
6260 noconfigdirs="$noconfigdirs cloog isl"
6261 islinc=
6262 clooginc=
6263 clooglibs=
6271 # Check for LTO support.
6272 # Check whether --enable-lto was given.
6273 if test "${enable_lto+set}" = set; then :
6274 enableval=$enable_lto; enable_lto=$enableval
6275 else
6276 enable_lto=yes; default_enable_lto=yes
6283 target_elf=no
6284 case $target in
6285 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6286 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6287 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6288 target_elf=no
6291 target_elf=yes
6293 esac
6295 if test $target_elf = yes; then :
6296 # ELF platforms build the lto-plugin always.
6297 build_lto_plugin=yes
6299 else
6300 if test x"$default_enable_lto" = x"yes" ; then
6301 case $target in
6302 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6303 # On other non-ELF platforms, LTO has yet to be validated.
6304 *) enable_lto=no ;;
6305 esac
6306 else
6307 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6308 # It would also be nice to check the binutils support, but we don't
6309 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6310 # warn during gcc/ subconfigure; unless you're bootstrapping with
6311 # -flto it won't be needed until after installation anyway.
6312 case $target in
6313 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6314 *) if test x"$enable_lto" = x"yes"; then
6315 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6318 esac
6320 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6321 # Build it unless LTO was explicitly disabled.
6322 case $target in
6323 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6324 *) ;;
6325 esac
6331 # By default, C and C++ are the only stage 1 languages.
6332 stage1_languages=,c,
6334 # Target libraries that we bootstrap.
6335 bootstrap_target_libs=,target-libgcc,
6337 # Figure out what language subdirectories are present.
6338 # Look if the user specified --enable-languages="..."; if not, use
6339 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6340 # go away some day.
6341 # NB: embedded tabs in this IF block -- do not untabify
6342 if test -d ${srcdir}/gcc; then
6343 if test x"${enable_languages+set}" != xset; then
6344 if test x"${LANGUAGES+set}" = xset; then
6345 enable_languages="${LANGUAGES}"
6346 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6347 else
6348 enable_languages=all
6350 else
6351 if test x"${enable_languages}" = x ||
6352 test x"${enable_languages}" = xyes;
6353 then
6354 echo configure.in: --enable-languages needs at least one language argument 1>&2
6355 exit 1
6358 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6360 # 'f95' is the old name for the 'fortran' language. We issue a warning
6361 # and make the substitution.
6362 case ,${enable_languages}, in
6363 *,f95,*)
6364 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6365 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6367 esac
6369 # If bootstrapping, C++ must be enabled.
6370 case ",$enable_languages,:$enable_bootstrap" in
6371 *,c++,*:*) ;;
6372 *:yes)
6373 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6374 enable_languages="${enable_languages},c++"
6375 else
6376 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6379 esac
6381 # First scan to see if an enabled language requires some other language.
6382 # We assume that a given config-lang.in will list all the language
6383 # front ends it requires, even if some are required indirectly.
6384 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6385 case ${lang_frag} in
6386 ..) ;;
6387 # The odd quoting in the next line works around
6388 # an apparent bug in bash 1.12 on linux.
6389 ${srcdir}/gcc/[*]/config-lang.in) ;;
6391 # From the config-lang.in, get $language, $lang_requires, and
6392 # $lang_requires_boot_languages.
6393 language=
6394 lang_requires=
6395 lang_requires_boot_languages=
6396 . ${lang_frag}
6397 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6398 case ,${enable_languages}, in
6399 *,$other,*) ;;
6400 *,all,*) ;;
6401 *,$language,*)
6402 echo " \`$other' language required by \`$language'; enabling" 1>&2
6403 enable_languages="${enable_languages},${other}"
6405 esac
6406 done
6407 for other in ${lang_requires_boot_languages} ; do
6408 if test "$other" != "c"; then
6409 case ,${enable_stage1_languages}, in
6410 *,$other,*) ;;
6411 *,all,*) ;;
6413 case ,${enable_languages}, in
6414 *,$language,*)
6415 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6416 enable_stage1_languages="$enable_stage1_languages,${other}"
6418 esac
6420 esac
6422 done
6424 esac
6425 done
6427 new_enable_languages=,c,
6429 # If LTO is enabled, add the LTO front end.
6430 extra_host_libiberty_configure_flags=
6431 if test "$enable_lto" = "yes" ; then
6432 case ,${enable_languages}, in
6433 *,lto,*) ;;
6434 *) enable_languages="${enable_languages},lto" ;;
6435 esac
6436 if test "${build_lto_plugin}" = "yes" ; then
6437 configdirs="$configdirs lto-plugin"
6438 extra_host_libiberty_configure_flags=--enable-shared
6443 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6444 potential_languages=,c,
6446 enabled_target_libs=
6447 disabled_target_libs=
6449 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6450 case ${lang_frag} in
6451 ..) ;;
6452 # The odd quoting in the next line works around
6453 # an apparent bug in bash 1.12 on linux.
6454 ${srcdir}/gcc/[*]/config-lang.in) ;;
6456 # From the config-lang.in, get $language, $target_libs,
6457 # $lang_dirs, $boot_language, and $build_by_default
6458 language=
6459 target_libs=
6460 lang_dirs=
6461 subdir_requires=
6462 boot_language=no
6463 build_by_default=yes
6464 . ${lang_frag}
6465 if test x${language} = x; then
6466 echo "${lang_frag} doesn't set \$language." 1>&2
6467 exit 1
6470 if test "$language" = "c++"; then
6471 boot_language=yes
6474 add_this_lang=no
6475 case ,${enable_languages}, in
6476 *,${language},*)
6477 # Language was explicitly selected; include it
6478 # unless it is C, which is enabled by default.
6479 if test "$language" != "c"; then
6480 add_this_lang=yes
6483 *,all,*)
6484 # 'all' was selected, select it if it is a default language
6485 if test "$language" != "c"; then
6486 add_this_lang=${build_by_default}
6489 esac
6491 # Disable languages that need other directories if these aren't available.
6492 for i in $subdir_requires; do
6493 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6494 case ,${enable_languages}, in
6495 *,${language},*)
6496 # Specifically requested language; tell them.
6497 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6500 # Silently disable.
6501 add_this_lang=unsupported
6503 esac
6504 done
6506 # Disable Ada if no preexisting GNAT is available.
6507 case ,${enable_languages},:${language}:${have_gnat} in
6508 *,${language},*:ada:no)
6509 # Specifically requested language; tell them.
6510 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6512 *:ada:no)
6513 # Silently disable.
6514 add_this_lang=unsupported
6516 esac
6518 # Disable a language that is unsupported by the target.
6519 case " $unsupported_languages " in
6520 *" $language "*)
6521 add_this_lang=unsupported
6523 esac
6525 case $add_this_lang in
6526 unsupported)
6527 # Remove language-dependent dirs.
6528 disabled_target_libs="$disabled_target_libs $target_libs"
6529 noconfigdirs="$noconfigdirs $lang_dirs"
6532 # Remove language-dependent dirs; still show language as supported.
6533 disabled_target_libs="$disabled_target_libs $target_libs"
6534 noconfigdirs="$noconfigdirs $lang_dirs"
6535 potential_languages="${potential_languages}${language},"
6537 yes)
6538 new_enable_languages="${new_enable_languages}${language},"
6539 potential_languages="${potential_languages}${language},"
6540 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6541 enabled_target_libs="$enabled_target_libs $target_libs"
6542 case "${boot_language}:,$enable_stage1_languages," in
6543 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6544 # Add to (comma-separated) list of stage 1 languages.
6545 case ",$stage1_languages," in
6546 *,$language,* | ,yes, | ,all,) ;;
6547 *) stage1_languages="${stage1_languages}${language}," ;;
6548 esac
6549 # We need to bootstrap any supporting libraries.
6550 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6552 esac
6554 esac
6556 esac
6557 done
6559 # Add target libraries which are only needed for disabled languages
6560 # to noconfigdirs.
6561 if test -n "$disabled_target_libs"; then
6562 for dir in $disabled_target_libs; do
6563 case " $enabled_target_libs " in
6564 *" ${dir} "*) ;;
6565 *) noconfigdirs="$noconfigdirs $dir" ;;
6566 esac
6567 done
6570 # Check whether --enable-stage1-languages was given.
6571 if test "${enable_stage1_languages+set}" = set; then :
6572 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6573 ,no,|,,)
6574 # Set it to something that will have no effect in the loop below
6575 enable_stage1_languages=c ;;
6576 ,yes,)
6577 enable_stage1_languages=`echo $new_enable_languages | \
6578 sed -e "s/^,//" -e "s/,$//" ` ;;
6579 *,all,*)
6580 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6581 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6582 esac
6584 # Add "good" languages from enable_stage1_languages to stage1_languages,
6585 # while "bad" languages go in missing_languages. Leave no duplicates.
6586 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6587 case $potential_languages in
6588 *,$i,*)
6589 case $stage1_languages in
6590 *,$i,*) ;;
6591 *) stage1_languages="$stage1_languages$i," ;;
6592 esac ;;
6594 case $missing_languages in
6595 *,$i,*) ;;
6596 *) missing_languages="$missing_languages$i," ;;
6597 esac ;;
6598 esac
6599 done
6603 # Remove leading/trailing commas that were added for simplicity
6604 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6605 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6606 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6607 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6609 if test "x$missing_languages" != x; then
6610 as_fn_error "
6611 The following requested languages could not be built: ${missing_languages}
6612 Supported languages are: ${potential_languages}" "$LINENO" 5
6614 if test "x$new_enable_languages" != "x$enable_languages"; then
6615 echo The following languages will be built: ${new_enable_languages}
6616 enable_languages="$new_enable_languages"
6620 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6623 # Handle --disable-<component> generically.
6624 for dir in $configdirs $build_configdirs $target_configdirs ; do
6625 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6626 varname=`echo $dirname | sed -e s/+/_/g`
6627 if eval test x\${enable_${varname}} "=" xno ; then
6628 noconfigdirs="$noconfigdirs $dir"
6630 done
6632 # Check for Boehm's garbage collector
6633 # Check whether --enable-objc-gc was given.
6634 if test "${enable_objc_gc+set}" = set; then :
6635 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6636 *,objc,*:*:yes:*target-boehm-gc*)
6637 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6639 esac
6643 # Make sure we only build Boehm's garbage collector if required.
6644 case ,${enable_languages},:${enable_objc_gc} in
6645 *,objc,*:yes)
6646 # Keep target-boehm-gc if requested for Objective-C.
6649 # Otherwise remove target-boehm-gc depending on target-libjava.
6650 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6651 noconfigdirs="$noconfigdirs target-boehm-gc"
6654 esac
6657 # Check whether --with-upc-pts was given.
6658 if test "${with_upc_pts+set}" = set; then :
6659 withval=$with_upc_pts;
6660 if test "$withval"x != "struct"x && test "$withval"x != "packed"x; then \
6661 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6667 # Disable libitm, libsanitizer, libvtv if we're not building C++
6668 case ,${enable_languages}, in
6669 *,c++,*) ;;
6671 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6673 esac
6675 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6676 # $build_configdirs and $target_configdirs.
6677 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6679 notsupp=""
6680 for dir in . $skipdirs $noconfigdirs ; do
6681 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6682 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6683 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6684 if test -r $srcdir/$dirname/configure ; then
6685 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6686 true
6687 else
6688 notsupp="$notsupp $dir"
6692 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6693 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6694 if test -r $srcdir/$dirname/configure ; then
6695 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6696 true
6697 else
6698 notsupp="$notsupp $dir"
6702 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6703 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6704 if test -r $srcdir/$dirname/configure ; then
6705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6706 true
6707 else
6708 notsupp="$notsupp $dir"
6712 done
6714 # Quietly strip out all directories which aren't configurable in this tree.
6715 # This relies on all configurable subdirectories being autoconfiscated, which
6716 # is now the case.
6717 build_configdirs_all="$build_configdirs"
6718 build_configdirs=
6719 for i in ${build_configdirs_all} ; do
6720 j=`echo $i | sed -e s/build-//g`
6721 if test -f ${srcdir}/$j/configure ; then
6722 build_configdirs="${build_configdirs} $i"
6724 done
6726 configdirs_all="$configdirs"
6727 configdirs=
6728 for i in ${configdirs_all} ; do
6729 if test -f ${srcdir}/$i/configure ; then
6730 configdirs="${configdirs} $i"
6732 done
6734 target_configdirs_all="$target_configdirs"
6735 target_configdirs=
6736 for i in ${target_configdirs_all} ; do
6737 j=`echo $i | sed -e s/target-//g`
6738 if test -f ${srcdir}/$j/configure ; then
6739 target_configdirs="${target_configdirs} $i"
6741 done
6743 # Produce a warning message for the subdirs we can't configure.
6744 # This isn't especially interesting in the Cygnus tree, but in the individual
6745 # FSF releases, it's important to let people know when their machine isn't
6746 # supported by the one or two programs in a package.
6748 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6749 # If $appdirs is non-empty, at least one of those directories must still
6750 # be configured, or we error out. (E.g., if the gas release supports a
6751 # specified target in some subdirs but not the gas subdir, we shouldn't
6752 # pretend that all is well.)
6753 if test -n "$appdirs" ; then
6754 for dir in $appdirs ; do
6755 if test -r $dir/Makefile.in ; then
6756 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6757 appdirs=""
6758 break
6760 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6761 appdirs=""
6762 break
6765 done
6766 if test -n "$appdirs" ; then
6767 echo "*** This configuration is not supported by this package." 1>&2
6768 exit 1
6771 # Okay, some application will build, or we don't care to check. Still
6772 # notify of subdirs not getting built.
6773 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6774 echo " ${notsupp}" 1>&2
6775 echo " (Any other directories should still work fine.)" 1>&2
6778 case "$host" in
6779 *msdosdjgpp*)
6780 enable_gdbtk=no ;;
6781 esac
6783 # To find our prefix, in gcc_cv_tool_prefix.
6785 # The user is always right.
6786 if test "${PATH_SEPARATOR+set}" != set; then
6787 echo "#! /bin/sh" >conf$$.sh
6788 echo "exit 0" >>conf$$.sh
6789 chmod +x conf$$.sh
6790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6791 PATH_SEPARATOR=';'
6792 else
6793 PATH_SEPARATOR=:
6795 rm -f conf$$.sh
6800 if test "x$exec_prefix" = xNONE; then
6801 if test "x$prefix" = xNONE; then
6802 gcc_cv_tool_prefix=$ac_default_prefix
6803 else
6804 gcc_cv_tool_prefix=$prefix
6806 else
6807 gcc_cv_tool_prefix=$exec_prefix
6810 # If there is no compiler in the tree, use the PATH only. In any
6811 # case, if there is no compiler in the tree nobody should use
6812 # AS_FOR_TARGET and LD_FOR_TARGET.
6813 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6814 gcc_version=`cat $srcdir/gcc/BASE-VER`
6815 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6816 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6817 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6818 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6819 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6820 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6821 else
6822 gcc_cv_tool_dirs=
6825 if test x$build = x$target && test -n "$md_exec_prefix"; then
6826 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6831 copy_dirs=
6834 # Check whether --with-build-sysroot was given.
6835 if test "${with_build_sysroot+set}" = set; then :
6836 withval=$with_build_sysroot; if test x"$withval" != x ; then
6837 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6839 else
6840 SYSROOT_CFLAGS_FOR_TARGET=
6846 # Check whether --with-debug-prefix-map was given.
6847 if test "${with_debug_prefix_map+set}" = set; then :
6848 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6849 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6850 for debug_map in $withval; do
6851 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6852 done
6854 else
6855 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6860 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6861 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6862 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6863 # We want to ensure that TARGET libraries (which we know are built with
6864 # gcc) are built with "-O2 -g", so include those options when setting
6865 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6866 if test "x$CFLAGS_FOR_TARGET" = x; then
6867 CFLAGS_FOR_TARGET=$CFLAGS
6868 case " $CFLAGS " in
6869 *" -O2 "*) ;;
6870 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6871 esac
6872 case " $CFLAGS " in
6873 *" -g "* | *" -g3 "*) ;;
6874 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6875 esac
6879 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6880 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6881 case " $CXXFLAGS " in
6882 *" -O2 "*) ;;
6883 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6884 esac
6885 case " $CXXFLAGS " in
6886 *" -g "* | *" -g3 "*) ;;
6887 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6888 esac
6894 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6895 # the named directory are copied to $(tooldir)/sys-include.
6896 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6897 if test x${is_cross_compiler} = xno ; then
6898 echo 1>&2 '***' --with-headers is only supported when cross compiling
6899 exit 1
6901 if test x"${with_headers}" != xyes ; then
6902 x=${gcc_cv_tool_prefix}
6903 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6907 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6908 # the name directories are copied to $(tooldir)/lib. Multiple directories
6909 # are permitted.
6910 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6911 if test x${is_cross_compiler} = xno ; then
6912 echo 1>&2 '***' --with-libs is only supported when cross compiling
6913 exit 1
6915 if test x"${with_libs}" != xyes ; then
6916 # Copy the libraries in reverse order, so that files in the first named
6917 # library override files in subsequent libraries.
6918 x=${gcc_cv_tool_prefix}
6919 for l in ${with_libs}; do
6920 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6921 done
6925 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6927 # This is done by determining whether or not the appropriate directory
6928 # is available, and by checking whether or not specific configurations
6929 # have requested that this magic not happen.
6931 # The command line options always override the explicit settings in
6932 # configure.in, and the settings in configure.in override this magic.
6934 # If the default for a toolchain is to use GNU as and ld, and you don't
6935 # want to do that, then you should use the --without-gnu-as and
6936 # --without-gnu-ld options for the configure script. Similarly, if
6937 # the default is to use the included zlib and you don't want to do that,
6938 # you should use the --with-system-zlib option for the configure script.
6940 if test x${use_gnu_as} = x &&
6941 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6942 with_gnu_as=yes
6943 extra_host_args="$extra_host_args --with-gnu-as"
6946 if test x${use_gnu_ld} = x &&
6947 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6948 with_gnu_ld=yes
6949 extra_host_args="$extra_host_args --with-gnu-ld"
6952 if test x${use_included_zlib} = x &&
6953 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6955 else
6956 with_system_zlib=yes
6957 extra_host_args="$extra_host_args --with-system-zlib"
6960 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6961 # can detect this case.
6963 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6964 with_newlib=yes
6965 extra_host_args="$extra_host_args --with-newlib"
6968 # Handle ${copy_dirs}
6969 set fnord ${copy_dirs}
6970 shift
6971 while test $# != 0 ; do
6972 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6974 else
6975 echo Copying $1 to $2
6977 # Use the install script to create the directory and all required
6978 # parent directories.
6979 if test -d $2 ; then
6981 else
6982 echo >config.temp
6983 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6986 # Copy the directory, assuming we have tar.
6987 # FIXME: Should we use B in the second tar? Not all systems support it.
6988 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6990 # It is the responsibility of the user to correctly adjust all
6991 # symlinks. If somebody can figure out how to handle them correctly
6992 # here, feel free to add the code.
6994 echo $1 > $2/COPIED
6996 shift; shift
6997 done
6999 # Determine a target-dependent exec_prefix that the installed
7000 # gcc will search in. Keep this list sorted by triplet, with
7001 # the *-*-osname triplets last.
7002 md_exec_prefix=
7003 case "${target}" in
7004 i[34567]86-pc-msdosdjgpp*)
7005 md_exec_prefix=/dev/env/DJDIR/bin
7007 *-*-hpux* | \
7008 *-*-nto-qnx* | \
7009 *-*-solaris2*)
7010 md_exec_prefix=/usr/ccs/bin
7012 esac
7014 extra_arflags_for_target=
7015 extra_nmflags_for_target=
7016 extra_ranlibflags_for_target=
7017 target_makefile_frag=/dev/null
7018 case "${target}" in
7019 spu-*-*)
7020 target_makefile_frag="config/mt-spu"
7022 mips*-sde-elf* | mips*-mti-elf*)
7023 target_makefile_frag="config/mt-sde"
7025 mipsisa*-*-elfoabi*)
7026 target_makefile_frag="config/mt-mips-elfoabi"
7028 mips*-*-*linux* | mips*-*-gnu*)
7029 target_makefile_frag="config/mt-mips-gnu"
7031 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7032 target_makefile_frag="config/mt-gnu"
7034 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7035 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7036 # commands to handle both 32-bit and 64-bit objects. These flags are
7037 # harmless if we're using GNU nm or ar.
7038 extra_arflags_for_target=" -X32_64"
7039 extra_nmflags_for_target=" -B -X32_64"
7041 esac
7043 alphaieee_frag=/dev/null
7044 case $target in
7045 alpha*-*-*)
7046 # This just makes sure to use the -mieee option to build target libs.
7047 # This should probably be set individually by each library.
7048 alphaieee_frag="config/mt-alphaieee"
7050 esac
7052 # If --enable-target-optspace always use -Os instead of -O2 to build
7053 # the target libraries, similarly if it is not specified, use -Os
7054 # on selected platforms.
7055 ospace_frag=/dev/null
7056 case "${enable_target_optspace}:${target}" in
7057 yes:*)
7058 ospace_frag="config/mt-ospace"
7060 :d30v-*)
7061 ospace_frag="config/mt-d30v"
7063 :m32r-* | :d10v-* | :fr30-*)
7064 ospace_frag="config/mt-ospace"
7066 no:* | :*)
7069 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7071 esac
7073 # Some systems (e.g., one of the i386-aix systems the gas testers are
7074 # using) don't handle "\$" correctly, so don't use it here.
7075 tooldir='${exec_prefix}'/${target_noncanonical}
7076 build_tooldir=${tooldir}
7078 # Create a .gdbinit file which runs the one in srcdir
7079 # and tells GDB to look there for source files.
7081 if test -r ${srcdir}/.gdbinit ; then
7082 case ${srcdir} in
7083 .) ;;
7084 *) cat > ./.gdbinit <<EOF
7085 # ${NO_EDIT}
7086 dir ${srcdir}
7087 dir .
7088 source ${srcdir}/.gdbinit
7091 esac
7094 # Make sure that the compiler is able to generate an executable. If it
7095 # can't, we are probably in trouble. We don't care whether we can run the
7096 # executable--we might be using a cross compiler--we only care whether it
7097 # can be created. At this point the main configure script has set CC.
7098 we_are_ok=no
7099 echo "int main () { return 0; }" > conftest.c
7100 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7101 if test $? = 0 ; then
7102 if test -s conftest || test -s conftest.exe ; then
7103 we_are_ok=yes
7106 case $we_are_ok in
7108 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7109 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7110 rm -f conftest*
7111 exit 1
7113 esac
7114 rm -f conftest*
7116 # Decide which environment variable is used to find dynamic libraries.
7117 case "${host}" in
7118 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7119 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7120 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7121 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7122 esac
7124 # On systems where the dynamic library environment variable is PATH,
7125 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7126 # built executables to PATH.
7127 if test "$RPATH_ENVVAR" = PATH; then
7128 GCC_SHLIB_SUBDIR=/shlib
7129 else
7130 GCC_SHLIB_SUBDIR=
7133 # Record target_configdirs and the configure arguments for target and
7134 # build configuration in Makefile.
7135 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7136 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7138 # If we are building libgomp, bootstrap it.
7139 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7140 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7143 # If we are building libsanitizer, bootstrap it.
7144 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7148 # If we are building libvtv, bootstrap it.
7149 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7150 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7153 # Determine whether gdb needs tk/tcl or not.
7154 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7155 # and in that case we want gdb to be built without tk. Ugh!
7156 # In fact I believe gdb is the *only* package directly dependent on tk,
7157 # so we should be able to put the 'maybe's in unconditionally and
7158 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7159 # 100% sure that that's safe though.
7161 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7162 case "$enable_gdbtk" in
7164 GDB_TK="" ;;
7165 yes)
7166 GDB_TK="${gdb_tk}" ;;
7168 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7169 # distro. Eventually someone will fix this and move Insight, nee
7170 # gdbtk to a separate directory.
7171 if test -d ${srcdir}/gdb/gdbtk ; then
7172 GDB_TK="${gdb_tk}"
7173 else
7174 GDB_TK=""
7177 esac
7178 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7179 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7181 # Strip out unwanted targets.
7183 # While at that, we remove Makefiles if we were started for recursive
7184 # configuration, so that the top-level Makefile reconfigures them,
7185 # like we used to do when configure itself was recursive.
7187 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7188 # but now we're fixing up the Makefile ourselves with the additional
7189 # commands passed to AC_CONFIG_FILES. Use separate variables
7190 # extrasub-{build,host,target} not because there is any reason to split
7191 # the substitutions up that way, but only to remain below the limit of
7192 # 99 commands in a script, for HP-UX sed.
7193 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7195 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7196 yes:yes:*\ gold\ *:*,c++,*) ;;
7197 yes:yes:*\ gold\ *:*)
7198 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7200 esac
7202 # Adjust the toplevel makefile according to whether bootstrap was selected.
7203 case $enable_bootstrap in
7204 yes)
7205 bootstrap_suffix=bootstrap
7206 BUILD_CONFIG=bootstrap-debug
7209 bootstrap_suffix=no-bootstrap
7210 BUILD_CONFIG=
7212 esac
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7215 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7218 # Check whether --with-build-config was given.
7219 if test "${with_build_config+set}" = set; then :
7220 withval=$with_build_config; case $with_build_config in
7221 yes) with_build_config= ;;
7222 no) with_build_config= BUILD_CONFIG= ;;
7223 esac
7227 if test "x${with_build_config}" != x; then
7228 BUILD_CONFIG=$with_build_config
7229 else
7230 case $BUILD_CONFIG in
7231 bootstrap-debug)
7232 if echo "int f (void) { return 0; }" > conftest.c &&
7233 ${CC} -c conftest.c &&
7234 mv conftest.o conftest.o.g0 &&
7235 ${CC} -c -g conftest.c &&
7236 mv conftest.o conftest.o.g &&
7237 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7239 else
7240 BUILD_CONFIG=
7242 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7244 esac
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7247 $as_echo "$BUILD_CONFIG" >&6; }
7250 extrasub_build=
7251 for module in ${build_configdirs} ; do
7252 if test -z "${no_recursion}" \
7253 && test -f ${build_subdir}/${module}/Makefile; then
7254 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7255 rm -f ${build_subdir}/${module}/Makefile
7257 extrasub_build="$extrasub_build
7258 /^@if build-$module\$/d
7259 /^@endif build-$module\$/d
7260 /^@if build-$module-$bootstrap_suffix\$/d
7261 /^@endif build-$module-$bootstrap_suffix\$/d"
7262 done
7263 extrasub_host=
7264 for module in ${configdirs} ; do
7265 if test -z "${no_recursion}"; then
7266 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7267 if test -f ${file}; then
7268 echo 1>&2 "*** removing ${file} to force reconfigure"
7269 rm -f ${file}
7271 done
7273 extrasub_host="$extrasub_host
7274 /^@if $module\$/d
7275 /^@endif $module\$/d
7276 /^@if $module-$bootstrap_suffix\$/d
7277 /^@endif $module-$bootstrap_suffix\$/d"
7278 done
7279 extrasub_target=
7280 for module in ${target_configdirs} ; do
7281 if test -z "${no_recursion}" \
7282 && test -f ${target_subdir}/${module}/Makefile; then
7283 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7284 rm -f ${target_subdir}/${module}/Makefile
7287 # We only bootstrap target libraries listed in bootstrap_target_libs.
7288 case $bootstrap_target_libs in
7289 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7290 *) target_bootstrap_suffix=no-bootstrap ;;
7291 esac
7293 extrasub_target="$extrasub_target
7294 /^@if target-$module\$/d
7295 /^@endif target-$module\$/d
7296 /^@if target-$module-$target_bootstrap_suffix\$/d
7297 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7298 done
7300 # Do the final fixup along with target modules.
7301 extrasub_target="$extrasub_target
7302 /^@if /,/^@endif /d"
7304 # Create the serialization dependencies. This uses a temporary file.
7306 # Check whether --enable-serial-configure was given.
7307 if test "${enable_serial_configure+set}" = set; then :
7308 enableval=$enable_serial_configure;
7312 case ${enable_serial_configure} in
7313 yes)
7314 enable_serial_build_configure=yes
7315 enable_serial_host_configure=yes
7316 enable_serial_target_configure=yes
7318 esac
7320 # These force 'configure's to be done one at a time, to avoid problems
7321 # with contention over a shared config.cache.
7322 rm -f serdep.tmp
7323 echo '# serdep.tmp' > serdep.tmp
7324 olditem=
7325 test "x${enable_serial_build_configure}" = xyes &&
7326 for item in ${build_configdirs} ; do
7327 case ${olditem} in
7328 "") ;;
7329 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7330 esac
7331 olditem=${item}
7332 done
7333 olditem=
7334 test "x${enable_serial_host_configure}" = xyes &&
7335 for item in ${configdirs} ; do
7336 case ${olditem} in
7337 "") ;;
7338 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7339 esac
7340 olditem=${item}
7341 done
7342 olditem=
7343 test "x${enable_serial_target_configure}" = xyes &&
7344 for item in ${target_configdirs} ; do
7345 case ${olditem} in
7346 "") ;;
7347 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7348 esac
7349 olditem=${item}
7350 done
7351 serialization_dependencies=serdep.tmp
7354 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7355 # target, nonopt, and variable assignments. These are the ones we
7356 # might not want to pass down to subconfigures. The exception being
7357 # --cache-file=/dev/null, which is used to turn off the use of cache
7358 # files altogether, and which should be passed on to subconfigures.
7359 # Also strip program-prefix, program-suffix, and program-transform-name,
7360 # so that we can pass down a consistent program-transform-name.
7361 baseargs=
7362 tbaseargs=
7363 keep_next=no
7364 skip_next=no
7365 eval "set -- $ac_configure_args"
7366 for ac_arg
7368 if test X"$skip_next" = X"yes"; then
7369 skip_next=no
7370 continue
7372 if test X"$keep_next" = X"yes"; then
7373 case $ac_arg in
7374 *\'*)
7375 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376 esac
7377 baseargs="$baseargs '$ac_arg'"
7378 tbaseargs="$tbaseargs '$ac_arg'"
7379 keep_next=no
7380 continue
7383 # Handle separated arguments. Based on the logic generated by
7384 # autoconf 2.59.
7385 case $ac_arg in
7386 *=* | --config-cache | -C | -disable-* | --disable-* \
7387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7389 | -with-* | --with-* | -without-* | --without-* | --x)
7390 separate_arg=no
7393 separate_arg=yes
7396 separate_arg=no
7398 esac
7400 skip_targ=no
7401 case $ac_arg in
7403 --with-* | --without-*)
7404 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7406 case $libopt in
7407 *[-_]include)
7408 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7410 *[-_]lib)
7411 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7414 lib=$libopt
7416 esac
7419 case $lib in
7420 mpc | mpfr | gmp | cloog)
7421 # If we're processing --with-$lib, --with-$lib-include or
7422 # --with-$lib-lib, for one of the libs above, and target is
7423 # different from host, don't pass the current argument to any
7424 # target library's configure.
7425 if test x$is_cross_compiler = xyes; then
7426 skip_targ=yes
7429 esac
7431 esac
7433 case "$ac_arg" in
7434 --cache-file=/dev/null | \
7435 -cache-file=/dev/null )
7436 # Handled here to avoid the test to skip args below.
7437 baseargs="$baseargs '$ac_arg'"
7438 tbaseargs="$tbaseargs '$ac_arg'"
7439 # Assert: $separate_arg should always be no.
7440 keep_next=$separate_arg
7442 --no*)
7443 continue
7445 --c* | \
7446 --sr* | \
7447 --ho* | \
7448 --bu* | \
7449 --t* | \
7450 --program-* | \
7451 -cache_file* | \
7452 -srcdir* | \
7453 -host* | \
7454 -build* | \
7455 -target* | \
7456 -program-prefix* | \
7457 -program-suffix* | \
7458 -program-transform-name* )
7459 skip_next=$separate_arg
7460 continue
7463 # An option. Add it.
7464 case $ac_arg in
7465 *\'*)
7466 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7467 esac
7468 baseargs="$baseargs '$ac_arg'"
7469 if test X"$skip_targ" = Xno; then
7470 tbaseargs="$tbaseargs '$ac_arg'"
7472 keep_next=$separate_arg
7475 # Either a variable assignment, or a nonopt (triplet). Don't
7476 # pass it down; let the Makefile handle this.
7477 continue
7479 esac
7480 done
7481 # Remove the initial space we just introduced and, as these will be
7482 # expanded by make, quote '$'.
7483 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7485 # Add in --program-transform-name, after --program-prefix and
7486 # --program-suffix have been applied to it. Autoconf has already
7487 # doubled dollar signs and backslashes in program_transform_name; we want
7488 # the backslashes un-doubled, and then the entire thing wrapped in single
7489 # quotes, because this will be expanded first by make and then by the shell.
7490 # Also, because we want to override the logic in subdir configure scripts to
7491 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7492 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7493 ${program_transform_name}
7494 EOF_SED
7495 gcc_transform_name=`cat conftestsed.out`
7496 rm -f conftestsed.out
7497 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7498 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7499 if test "$silent" = yes; then
7500 baseargs="$baseargs --silent"
7501 tbaseargs="$tbaseargs --silent"
7503 baseargs="$baseargs --disable-option-checking"
7504 tbaseargs="$tbaseargs --disable-option-checking"
7506 # Record and document user additions to sub configure arguments.
7511 # For the build-side libraries, we just need to pretend we're native,
7512 # and not use the same cache file. Multilibs are neither needed nor
7513 # desired.
7514 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7516 # For host modules, accept cache file option, or specification as blank.
7517 case "${cache_file}" in
7518 "") # empty
7519 cache_file_option="" ;;
7520 /* | [A-Za-z]:[\\/]* ) # absolute path
7521 cache_file_option="--cache-file=${cache_file}" ;;
7522 *) # relative path
7523 cache_file_option="--cache-file=../${cache_file}" ;;
7524 esac
7526 # Host dirs don't like to share a cache file either, horribly enough.
7527 # This seems to be due to autoconf 2.5x stupidity.
7528 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7530 target_configargs="$target_configargs ${tbaseargs}"
7532 # Passing a --with-cross-host argument lets the target libraries know
7533 # whether they are being built with a cross-compiler or being built
7534 # native. However, it would be better to use other mechanisms to make the
7535 # sorts of decisions they want to make on this basis. Please consider
7536 # this option to be deprecated. FIXME.
7537 if test x${is_cross_compiler} = xyes ; then
7538 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7541 # Special user-friendly check for native x86_64-linux build, if
7542 # multilib is not explicitly enabled.
7543 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7544 x86_64-*linux*:yes:$build:$build:)
7545 # Make sure we have a developement environment that handles 32-bit
7546 dev64=no
7547 echo "int main () { return 0; }" > conftest.c
7548 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7549 if test $? = 0 ; then
7550 if test -s conftest || test -s conftest.exe ; then
7551 dev64=yes
7554 rm -f conftest*
7555 if test x${dev64} != xyes ; then
7556 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
7559 esac
7561 # Default to --enable-multilib.
7562 if test x${enable_multilib} = x ; then
7563 target_configargs="--enable-multilib ${target_configargs}"
7566 # Pass --with-newlib if appropriate. Note that target_configdirs has
7567 # changed from the earlier setting of with_newlib.
7568 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7569 target_configargs="--with-newlib ${target_configargs}"
7572 # Different target subdirs use different values of certain variables
7573 # (notably CXX). Worse, multilibs use *lots* of different values.
7574 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7575 # it doesn't automatically accept command-line overrides of them.
7576 # This means it's not safe for target subdirs to share a cache file,
7577 # which is disgusting, but there you have it. Hopefully this can be
7578 # fixed in future. It's still worthwhile to use a cache file for each
7579 # directory. I think.
7581 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7582 # We need to pass --target, as newer autoconf's requires consistency
7583 # for target_alias and gcc doesn't manage it consistently.
7584 target_configargs="--cache-file=./config.cache ${target_configargs}"
7586 FLAGS_FOR_TARGET=
7587 case " $target_configdirs " in
7588 *" newlib "*)
7589 case " $target_configargs " in
7590 *" --with-newlib "*)
7591 case "$target" in
7592 *-cygwin*)
7593 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7595 esac
7597 # If we're not building GCC, don't discard standard headers.
7598 if test -d ${srcdir}/gcc; then
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7601 if test "${build}" != "${host}"; then
7602 # On Canadian crosses, CC_FOR_TARGET will have already been set
7603 # by `configure', so we won't have an opportunity to add -Bgcc/
7604 # to it. This is right: we don't want to search that directory
7605 # for binaries, but we want the header files in there, so add
7606 # them explicitly.
7607 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7609 # Someone might think of using the pre-installed headers on
7610 # Canadian crosses, in case the installed compiler is not fully
7611 # compatible with the compiler being built. In this case, it
7612 # would be better to flag an error than risking having
7613 # incompatible object files being constructed. We can't
7614 # guarantee that an error will be flagged, but let's hope the
7615 # compiler will do it, when presented with incompatible header
7616 # files.
7620 case "${target}-${is_cross_compiler}" in
7621 i[3456789]86-*-linux*-no)
7622 # Here host == target, so we don't need to build gcc,
7623 # so we don't want to discard standard headers.
7624 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7627 # If we're building newlib, use its generic headers last, but search
7628 # for any libc-related directories first (so make it the last -B
7629 # switch).
7630 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7632 # If we're building libgloss, find the startup file, simulator library
7633 # and linker script.
7634 case " $target_configdirs " in
7635 *" libgloss "*)
7636 # Look for startup file, simulator library and maybe linker script.
7637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7638 # Look for libnosys.a in case the target needs it.
7639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7640 # Most targets have the linker script in the source directory.
7641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7643 esac
7645 esac
7647 esac
7649 esac
7651 case "$target" in
7652 x86_64-*mingw* | *-w64-mingw*)
7653 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7654 # however, use a symlink named 'mingw' in ${prefix} .
7655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7657 *-mingw*)
7658 # MinGW can't be handled as Cygwin above since it does not use newlib.
7659 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'
7661 esac
7663 # Allow the user to override the flags for
7664 # our build compiler if desired.
7665 if test x"${build}" = x"${host}" ; then
7666 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7667 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7668 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7671 # On Canadian crosses, we'll be searching the right directories for
7672 # the previously-installed cross compiler, so don't bother to add
7673 # flags for directories within the install tree of the compiler
7674 # being built; programs in there won't even run.
7675 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7676 # Search for pre-installed headers if nothing else fits.
7677 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7680 if test "x${use_gnu_ld}" = x &&
7681 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7682 # Arrange for us to find uninstalled linker scripts.
7683 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7686 # Search for other target-specific linker scripts and such.
7687 case "${target}" in
7688 mep*)
7689 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7691 esac
7693 # UPC linker script check
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7695 $as_echo_n "checking for UPC link script support... " >&6; }
7696 # Check whether --enable-upc-link-script was given.
7697 if test "${enable_upc_link_script+set}" = set; then :
7698 enableval=$enable_upc_link_script;
7699 case $enableval in
7700 yes | no) ;;
7702 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7704 esac
7706 else
7708 if test x${use_gnu_ld} != xno ; then
7709 case "$target" in
7710 # disable linker script for Apple Mac OS X
7711 *-*-darwin*)
7712 enable_upc_link_script=no
7715 enable_upc_link_script=yes
7717 esac
7718 else
7719 enable_upc_link_script=no
7721 if test "$enable_upc_link_script" = yes; then
7722 target_configargs="${target_configargs} --enable-upc-link-script"
7723 host_configargs="${host_configargs} --enable-upc-link-script"
7728 if test "$enable_upc_link_script" = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730 $as_echo "yes" >&6; };
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; };
7737 # Makefile fragments.
7738 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7740 eval fragval=\$$frag
7741 if test $fragval != /dev/null; then
7742 eval $frag=${srcdir}/$fragval
7744 done
7750 # Miscellanea: directories, flags, etc.
7759 # Build module lists & subconfigure args.
7763 # Host module lists & subconfigure args.
7768 # Target module lists & subconfigure args.
7772 # Build tools.
7791 # Generate default definitions for YACC, M4, LEX and other programs that run
7792 # on the build machine. These are used if the Makefile can't locate these
7793 # programs in objdir.
7794 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7796 for ac_prog in 'bison -y' byacc yacc
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_YACC+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$YACC"; then
7806 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_YACC="$ac_prog"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7819 done
7820 done
7821 IFS=$as_save_IFS
7825 YACC=$ac_cv_prog_YACC
7826 if test -n "$YACC"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7828 $as_echo "$YACC" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7835 test -n "$YACC" && break
7836 done
7837 test -n "$YACC" || YACC="$MISSING bison -y"
7839 case " $build_configdirs " in
7840 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7841 esac
7843 for ac_prog in bison
7845 # Extract the first word of "$ac_prog", so it can be a program name with args.
7846 set dummy $ac_prog; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_BISON+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$BISON"; then
7853 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_BISON="$ac_prog"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7872 BISON=$ac_cv_prog_BISON
7873 if test -n "$BISON"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7875 $as_echo "$BISON" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7882 test -n "$BISON" && break
7883 done
7884 test -n "$BISON" || BISON="$MISSING bison"
7886 case " $build_configdirs " in
7887 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7888 esac
7890 for ac_prog in gm4 gnum4 m4
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_M4+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$M4"; then
7900 ac_cv_prog_M4="$M4" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_M4="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7919 M4=$ac_cv_prog_M4
7920 if test -n "$M4"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7922 $as_echo "$M4" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7929 test -n "$M4" && break
7930 done
7931 test -n "$M4" || M4="$MISSING m4"
7933 case " $build_configdirs " in
7934 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7935 esac
7937 for ac_prog in flex lex
7939 # Extract the first word of "$ac_prog", so it can be a program name with args.
7940 set dummy $ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_LEX+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$LEX"; then
7947 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_LEX="$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 LEX=$ac_cv_prog_LEX
7967 if test -n "$LEX"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7969 $as_echo "$LEX" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976 test -n "$LEX" && break
7977 done
7978 test -n "$LEX" || LEX="$MISSING flex"
7980 case " $build_configdirs " in
7981 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7982 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7983 esac
7985 for ac_prog in flex
7987 # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy $ac_prog; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_FLEX+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$FLEX"; then
7995 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_FLEX="$ac_prog"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8008 done
8009 done
8010 IFS=$as_save_IFS
8014 FLEX=$ac_cv_prog_FLEX
8015 if test -n "$FLEX"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8017 $as_echo "$FLEX" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8024 test -n "$FLEX" && break
8025 done
8026 test -n "$FLEX" || FLEX="$MISSING flex"
8028 case " $build_configdirs " in
8029 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8030 esac
8032 for ac_prog in makeinfo
8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
8035 set dummy $ac_prog; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$MAKEINFO"; then
8042 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_prog_MAKEINFO="$ac_prog"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8055 done
8056 done
8057 IFS=$as_save_IFS
8061 MAKEINFO=$ac_cv_prog_MAKEINFO
8062 if test -n "$MAKEINFO"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8064 $as_echo "$MAKEINFO" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8071 test -n "$MAKEINFO" && break
8072 done
8073 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8075 case " $build_configdirs " in
8076 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8079 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8080 # higher, else we use the "missing" dummy.
8081 if ${MAKEINFO} --version \
8082 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8084 else
8085 MAKEINFO="$MISSING makeinfo"
8089 esac
8091 # FIXME: expect and dejagnu may become build tools?
8093 for ac_prog in expect
8095 # Extract the first word of "$ac_prog", so it can be a program name with args.
8096 set dummy $ac_prog; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 if test -n "$EXPECT"; then
8103 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8112 ac_cv_prog_EXPECT="$ac_prog"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 break 2
8116 done
8117 done
8118 IFS=$as_save_IFS
8122 EXPECT=$ac_cv_prog_EXPECT
8123 if test -n "$EXPECT"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8125 $as_echo "$EXPECT" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8132 test -n "$EXPECT" && break
8133 done
8134 test -n "$EXPECT" || EXPECT="expect"
8136 case " $configdirs " in
8137 *" expect "*)
8138 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8140 esac
8142 for ac_prog in runtest
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 if test -n "$RUNTEST"; then
8152 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_RUNTEST="$ac_prog"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8165 done
8166 done
8167 IFS=$as_save_IFS
8171 RUNTEST=$ac_cv_prog_RUNTEST
8172 if test -n "$RUNTEST"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8174 $as_echo "$RUNTEST" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8181 test -n "$RUNTEST" && break
8182 done
8183 test -n "$RUNTEST" || RUNTEST="runtest"
8185 case " $configdirs " in
8186 *" dejagnu "*)
8187 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8189 esac
8192 # Host tools.
8193 ncn_tool_prefix=
8194 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8195 ncn_target_tool_prefix=
8196 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8200 if test -n "$AR"; then
8201 ac_cv_prog_AR=$AR
8202 elif test -n "$ac_cv_prog_AR"; then
8203 AR=$ac_cv_prog_AR
8206 if test -n "$ac_cv_prog_AR"; then
8207 for ncn_progname in ar; do
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_progname}; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_prog_AR+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$AR"; then
8216 ac_cv_prog_AR="$AR" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_prog_AR="${ncn_progname}"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8235 AR=$ac_cv_prog_AR
8236 if test -n "$AR"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8238 $as_echo "$AR" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8245 done
8248 for ncn_progname in ar; do
8249 if test -n "$ncn_tool_prefix"; then
8250 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8251 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_AR+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$AR"; then
8258 ac_cv_prog_AR="$AR" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8277 AR=$ac_cv_prog_AR
8278 if test -n "$AR"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8280 $as_echo "$AR" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8288 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8290 set dummy ${ncn_progname}; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_prog_AR+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 if test -n "$AR"; then
8297 ac_cv_prog_AR="$AR" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_prog_AR="${ncn_progname}"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8316 AR=$ac_cv_prog_AR
8317 if test -n "$AR"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8319 $as_echo "$AR" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8327 test -n "$ac_cv_prog_AR" && break
8328 done
8330 if test -z "$ac_cv_prog_AR" ; then
8331 set dummy ar
8332 if test $build = $host ; then
8333 AR="$2"
8334 else
8335 AR="${ncn_tool_prefix}$2"
8341 if test -n "$AS"; then
8342 ac_cv_prog_AS=$AS
8343 elif test -n "$ac_cv_prog_AS"; then
8344 AS=$ac_cv_prog_AS
8347 if test -n "$ac_cv_prog_AS"; then
8348 for ncn_progname in as; do
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350 set dummy ${ncn_progname}; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_AS+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$AS"; then
8357 ac_cv_prog_AS="$AS" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_AS="${ncn_progname}"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 AS=$ac_cv_prog_AS
8377 if test -n "$AS"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8379 $as_echo "$AS" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8386 done
8389 for ncn_progname in as; do
8390 if test -n "$ncn_tool_prefix"; then
8391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8392 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_AS+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$AS"; then
8399 ac_cv_prog_AS="$AS" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 AS=$ac_cv_prog_AS
8419 if test -n "$AS"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8421 $as_echo "$AS" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8431 set dummy ${ncn_progname}; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if test "${ac_cv_prog_AS+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 if test -n "$AS"; then
8438 ac_cv_prog_AS="$AS" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447 ac_cv_prog_AS="${ncn_progname}"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8451 done
8452 done
8453 IFS=$as_save_IFS
8457 AS=$ac_cv_prog_AS
8458 if test -n "$AS"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8460 $as_echo "$AS" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8468 test -n "$ac_cv_prog_AS" && break
8469 done
8471 if test -z "$ac_cv_prog_AS" ; then
8472 set dummy as
8473 if test $build = $host ; then
8474 AS="$2"
8475 else
8476 AS="${ncn_tool_prefix}$2"
8482 if test -n "$DLLTOOL"; then
8483 ac_cv_prog_DLLTOOL=$DLLTOOL
8484 elif test -n "$ac_cv_prog_DLLTOOL"; then
8485 DLLTOOL=$ac_cv_prog_DLLTOOL
8488 if test -n "$ac_cv_prog_DLLTOOL"; then
8489 for ncn_progname in dlltool; do
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491 set dummy ${ncn_progname}; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$DLLTOOL"; then
8498 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_prog_DLLTOOL="${ncn_progname}"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 DLLTOOL=$ac_cv_prog_DLLTOOL
8518 if test -n "$DLLTOOL"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8520 $as_echo "$DLLTOOL" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8527 done
8530 for ncn_progname in dlltool; do
8531 if test -n "$ncn_tool_prefix"; then
8532 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8533 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$DLLTOOL"; then
8540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8559 DLLTOOL=$ac_cv_prog_DLLTOOL
8560 if test -n "$DLLTOOL"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8562 $as_echo "$DLLTOOL" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8570 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8572 set dummy ${ncn_progname}; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 if test -n "$DLLTOOL"; then
8579 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_prog_DLLTOOL="${ncn_progname}"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8592 done
8593 done
8594 IFS=$as_save_IFS
8598 DLLTOOL=$ac_cv_prog_DLLTOOL
8599 if test -n "$DLLTOOL"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8601 $as_echo "$DLLTOOL" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8609 test -n "$ac_cv_prog_DLLTOOL" && break
8610 done
8612 if test -z "$ac_cv_prog_DLLTOOL" ; then
8613 set dummy dlltool
8614 if test $build = $host ; then
8615 DLLTOOL="$2"
8616 else
8617 DLLTOOL="${ncn_tool_prefix}$2"
8623 if test -n "$LD"; then
8624 ac_cv_prog_LD=$LD
8625 elif test -n "$ac_cv_prog_LD"; then
8626 LD=$ac_cv_prog_LD
8629 if test -n "$ac_cv_prog_LD"; then
8630 for ncn_progname in ld; do
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632 set dummy ${ncn_progname}; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if test "${ac_cv_prog_LD+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$LD"; then
8639 ac_cv_prog_LD="$LD" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_prog_LD="${ncn_progname}"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8658 LD=$ac_cv_prog_LD
8659 if test -n "$LD"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8661 $as_echo "$LD" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8668 done
8671 for ncn_progname in ld; do
8672 if test -n "$ncn_tool_prefix"; then
8673 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8674 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_prog_LD+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$LD"; then
8681 ac_cv_prog_LD="$LD" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8696 IFS=$as_save_IFS
8700 LD=$ac_cv_prog_LD
8701 if test -n "$LD"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8703 $as_echo "$LD" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713 set dummy ${ncn_progname}; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if test "${ac_cv_prog_LD+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 if test -n "$LD"; then
8720 ac_cv_prog_LD="$LD" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_prog_LD="${ncn_progname}"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8733 done
8734 done
8735 IFS=$as_save_IFS
8739 LD=$ac_cv_prog_LD
8740 if test -n "$LD"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8742 $as_echo "$LD" >&6; }
8743 else
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8750 test -n "$ac_cv_prog_LD" && break
8751 done
8753 if test -z "$ac_cv_prog_LD" ; then
8754 set dummy ld
8755 if test $build = $host ; then
8756 LD="$2"
8757 else
8758 LD="${ncn_tool_prefix}$2"
8764 if test -n "$LIPO"; then
8765 ac_cv_prog_LIPO=$LIPO
8766 elif test -n "$ac_cv_prog_LIPO"; then
8767 LIPO=$ac_cv_prog_LIPO
8770 if test -n "$ac_cv_prog_LIPO"; then
8771 for ncn_progname in lipo; do
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773 set dummy ${ncn_progname}; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_prog_LIPO+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$LIPO"; then
8780 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_LIPO="${ncn_progname}"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 LIPO=$ac_cv_prog_LIPO
8800 if test -n "$LIPO"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8802 $as_echo "$LIPO" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8809 done
8812 for ncn_progname in lipo; do
8813 if test -n "$ncn_tool_prefix"; then
8814 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8815 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_LIPO+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$LIPO"; then
8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 LIPO=$ac_cv_prog_LIPO
8842 if test -n "$LIPO"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8844 $as_echo "$LIPO" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8854 set dummy ${ncn_progname}; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if test "${ac_cv_prog_LIPO+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 if test -n "$LIPO"; then
8861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8862 else
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8870 ac_cv_prog_LIPO="${ncn_progname}"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 break 2
8874 done
8875 done
8876 IFS=$as_save_IFS
8880 LIPO=$ac_cv_prog_LIPO
8881 if test -n "$LIPO"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8883 $as_echo "$LIPO" >&6; }
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8891 test -n "$ac_cv_prog_LIPO" && break
8892 done
8894 if test -z "$ac_cv_prog_LIPO" ; then
8895 set dummy lipo
8896 if test $build = $host ; then
8897 LIPO="$2"
8898 else
8899 LIPO="${ncn_tool_prefix}$2"
8905 if test -n "$NM"; then
8906 ac_cv_prog_NM=$NM
8907 elif test -n "$ac_cv_prog_NM"; then
8908 NM=$ac_cv_prog_NM
8911 if test -n "$ac_cv_prog_NM"; then
8912 for ncn_progname in nm; do
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914 set dummy ${ncn_progname}; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if test "${ac_cv_prog_NM+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test -n "$NM"; then
8921 ac_cv_prog_NM="$NM" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_NM="${ncn_progname}"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8940 NM=$ac_cv_prog_NM
8941 if test -n "$NM"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8943 $as_echo "$NM" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8950 done
8953 for ncn_progname in nm; do
8954 if test -n "$ncn_tool_prefix"; then
8955 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8956 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if test "${ac_cv_prog_NM+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$NM"; then
8963 ac_cv_prog_NM="$NM" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8982 NM=$ac_cv_prog_NM
8983 if test -n "$NM"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8985 $as_echo "$NM" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8993 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995 set dummy ${ncn_progname}; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_NM+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$NM"; then
9002 ac_cv_prog_NM="$NM" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_NM="${ncn_progname}"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9021 NM=$ac_cv_prog_NM
9022 if test -n "$NM"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9024 $as_echo "$NM" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9032 test -n "$ac_cv_prog_NM" && break
9033 done
9035 if test -z "$ac_cv_prog_NM" ; then
9036 set dummy nm
9037 if test $build = $host ; then
9038 NM="$2"
9039 else
9040 NM="${ncn_tool_prefix}$2"
9046 if test -n "$RANLIB"; then
9047 ac_cv_prog_RANLIB=$RANLIB
9048 elif test -n "$ac_cv_prog_RANLIB"; then
9049 RANLIB=$ac_cv_prog_RANLIB
9052 if test -n "$ac_cv_prog_RANLIB"; then
9053 for ncn_progname in ranlib; do
9054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9055 set dummy ${ncn_progname}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 if test -n "$RANLIB"; then
9062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_prog_RANLIB="${ncn_progname}"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9075 done
9076 done
9077 IFS=$as_save_IFS
9081 RANLIB=$ac_cv_prog_RANLIB
9082 if test -n "$RANLIB"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9084 $as_echo "$RANLIB" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9091 done
9094 for ncn_progname in ranlib; do
9095 if test -n "$ncn_tool_prefix"; then
9096 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 if test -n "$RANLIB"; then
9104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9123 RANLIB=$ac_cv_prog_RANLIB
9124 if test -n "$RANLIB"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9126 $as_echo "$RANLIB" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9134 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9136 set dummy ${ncn_progname}; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 if test -n "$RANLIB"; then
9143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9144 else
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_prog_RANLIB="${ncn_progname}"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9162 RANLIB=$ac_cv_prog_RANLIB
9163 if test -n "$RANLIB"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9165 $as_echo "$RANLIB" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 test -n "$ac_cv_prog_RANLIB" && break
9174 done
9176 if test -z "$ac_cv_prog_RANLIB" ; then
9177 RANLIB="true"
9182 if test -n "$STRIP"; then
9183 ac_cv_prog_STRIP=$STRIP
9184 elif test -n "$ac_cv_prog_STRIP"; then
9185 STRIP=$ac_cv_prog_STRIP
9188 if test -n "$ac_cv_prog_STRIP"; then
9189 for ncn_progname in strip; do
9190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9191 set dummy ${ncn_progname}; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if test "${ac_cv_prog_STRIP+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 if test -n "$STRIP"; then
9198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9199 else
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_prog_STRIP="${ncn_progname}"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9217 STRIP=$ac_cv_prog_STRIP
9218 if test -n "$STRIP"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9220 $as_echo "$STRIP" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9227 done
9230 for ncn_progname in strip; do
9231 if test -n "$ncn_tool_prefix"; then
9232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if test "${ac_cv_prog_STRIP+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 if test -n "$STRIP"; then
9240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9241 else
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 break 2
9253 done
9254 done
9255 IFS=$as_save_IFS
9259 STRIP=$ac_cv_prog_STRIP
9260 if test -n "$STRIP"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9262 $as_echo "$STRIP" >&6; }
9263 else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9270 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272 set dummy ${ncn_progname}; ac_word=$2
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 $as_echo_n "checking for $ac_word... " >&6; }
9275 if test "${ac_cv_prog_STRIP+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 if test -n "$STRIP"; then
9279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9280 else
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_prog_STRIP="${ncn_progname}"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9298 STRIP=$ac_cv_prog_STRIP
9299 if test -n "$STRIP"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9301 $as_echo "$STRIP" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9309 test -n "$ac_cv_prog_STRIP" && break
9310 done
9312 if test -z "$ac_cv_prog_STRIP" ; then
9313 STRIP="true"
9318 if test -n "$WINDRES"; then
9319 ac_cv_prog_WINDRES=$WINDRES
9320 elif test -n "$ac_cv_prog_WINDRES"; then
9321 WINDRES=$ac_cv_prog_WINDRES
9324 if test -n "$ac_cv_prog_WINDRES"; then
9325 for ncn_progname in windres; do
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327 set dummy ${ncn_progname}; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$WINDRES"; then
9334 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_prog_WINDRES="${ncn_progname}"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9353 WINDRES=$ac_cv_prog_WINDRES
9354 if test -n "$WINDRES"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9356 $as_echo "$WINDRES" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9363 done
9366 for ncn_progname in windres; do
9367 if test -n "$ncn_tool_prefix"; then
9368 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9369 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 if test -n "$WINDRES"; then
9376 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9395 WINDRES=$ac_cv_prog_WINDRES
9396 if test -n "$WINDRES"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9398 $as_echo "$WINDRES" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9406 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9408 set dummy ${ncn_progname}; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 if test -n "$WINDRES"; then
9415 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9416 else
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 ac_cv_prog_WINDRES="${ncn_progname}"
9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9428 done
9429 done
9430 IFS=$as_save_IFS
9434 WINDRES=$ac_cv_prog_WINDRES
9435 if test -n "$WINDRES"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9437 $as_echo "$WINDRES" >&6; }
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9445 test -n "$ac_cv_prog_WINDRES" && break
9446 done
9448 if test -z "$ac_cv_prog_WINDRES" ; then
9449 set dummy windres
9450 if test $build = $host ; then
9451 WINDRES="$2"
9452 else
9453 WINDRES="${ncn_tool_prefix}$2"
9459 if test -n "$WINDMC"; then
9460 ac_cv_prog_WINDMC=$WINDMC
9461 elif test -n "$ac_cv_prog_WINDMC"; then
9462 WINDMC=$ac_cv_prog_WINDMC
9465 if test -n "$ac_cv_prog_WINDMC"; then
9466 for ncn_progname in windmc; do
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468 set dummy ${ncn_progname}; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 if test -n "$WINDMC"; then
9475 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9476 else
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_prog_WINDMC="${ncn_progname}"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9494 WINDMC=$ac_cv_prog_WINDMC
9495 if test -n "$WINDMC"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9497 $as_echo "$WINDMC" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9504 done
9507 for ncn_progname in windmc; do
9508 if test -n "$ncn_tool_prefix"; then
9509 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9510 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 if test -n "$WINDMC"; then
9517 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9518 else
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9536 WINDMC=$ac_cv_prog_WINDMC
9537 if test -n "$WINDMC"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9539 $as_echo "$WINDMC" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9549 set dummy ${ncn_progname}; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 if test -n "$WINDMC"; then
9556 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9557 else
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_prog_WINDMC="${ncn_progname}"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9569 done
9570 done
9571 IFS=$as_save_IFS
9575 WINDMC=$ac_cv_prog_WINDMC
9576 if test -n "$WINDMC"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9578 $as_echo "$WINDMC" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9586 test -n "$ac_cv_prog_WINDMC" && break
9587 done
9589 if test -z "$ac_cv_prog_WINDMC" ; then
9590 set dummy windmc
9591 if test $build = $host ; then
9592 WINDMC="$2"
9593 else
9594 WINDMC="${ncn_tool_prefix}$2"
9600 if test -n "$OBJCOPY"; then
9601 ac_cv_prog_OBJCOPY=$OBJCOPY
9602 elif test -n "$ac_cv_prog_OBJCOPY"; then
9603 OBJCOPY=$ac_cv_prog_OBJCOPY
9606 if test -n "$ac_cv_prog_OBJCOPY"; then
9607 for ncn_progname in objcopy; do
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609 set dummy ${ncn_progname}; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 if test -n "$OBJCOPY"; then
9616 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_prog_OBJCOPY="${ncn_progname}"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9635 OBJCOPY=$ac_cv_prog_OBJCOPY
9636 if test -n "$OBJCOPY"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9638 $as_echo "$OBJCOPY" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9645 done
9648 for ncn_progname in objcopy; do
9649 if test -n "$ncn_tool_prefix"; then
9650 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9651 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -n "$OBJCOPY"; then
9658 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9673 IFS=$as_save_IFS
9677 OBJCOPY=$ac_cv_prog_OBJCOPY
9678 if test -n "$OBJCOPY"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9680 $as_echo "$OBJCOPY" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690 set dummy ${ncn_progname}; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 if test -n "$OBJCOPY"; then
9697 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_OBJCOPY="${ncn_progname}"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9710 done
9711 done
9712 IFS=$as_save_IFS
9716 OBJCOPY=$ac_cv_prog_OBJCOPY
9717 if test -n "$OBJCOPY"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9719 $as_echo "$OBJCOPY" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9727 test -n "$ac_cv_prog_OBJCOPY" && break
9728 done
9730 if test -z "$ac_cv_prog_OBJCOPY" ; then
9731 set dummy objcopy
9732 if test $build = $host ; then
9733 OBJCOPY="$2"
9734 else
9735 OBJCOPY="${ncn_tool_prefix}$2"
9741 if test -n "$OBJDUMP"; then
9742 ac_cv_prog_OBJDUMP=$OBJDUMP
9743 elif test -n "$ac_cv_prog_OBJDUMP"; then
9744 OBJDUMP=$ac_cv_prog_OBJDUMP
9747 if test -n "$ac_cv_prog_OBJDUMP"; then
9748 for ncn_progname in objdump; do
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750 set dummy ${ncn_progname}; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 if test -n "$OBJDUMP"; then
9757 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_OBJDUMP="${ncn_progname}"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9772 IFS=$as_save_IFS
9776 OBJDUMP=$ac_cv_prog_OBJDUMP
9777 if test -n "$OBJDUMP"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9779 $as_echo "$OBJDUMP" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9786 done
9789 for ncn_progname in objdump; do
9790 if test -n "$ncn_tool_prefix"; then
9791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9792 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 if test -n "$OBJDUMP"; then
9799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9818 OBJDUMP=$ac_cv_prog_OBJDUMP
9819 if test -n "$OBJDUMP"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9821 $as_echo "$OBJDUMP" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9829 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9831 set dummy ${ncn_progname}; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 if test -n "$OBJDUMP"; then
9838 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9839 else
9840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 for as_dir in $PATH
9843 IFS=$as_save_IFS
9844 test -z "$as_dir" && as_dir=.
9845 for ac_exec_ext in '' $ac_executable_extensions; do
9846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9847 ac_cv_prog_OBJDUMP="${ncn_progname}"
9848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9849 break 2
9851 done
9852 done
9853 IFS=$as_save_IFS
9857 OBJDUMP=$ac_cv_prog_OBJDUMP
9858 if test -n "$OBJDUMP"; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9860 $as_echo "$OBJDUMP" >&6; }
9861 else
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9863 $as_echo "no" >&6; }
9868 test -n "$ac_cv_prog_OBJDUMP" && break
9869 done
9871 if test -z "$ac_cv_prog_OBJDUMP" ; then
9872 set dummy objdump
9873 if test $build = $host ; then
9874 OBJDUMP="$2"
9875 else
9876 OBJDUMP="${ncn_tool_prefix}$2"
9882 if test -n "$READELF"; then
9883 ac_cv_prog_READELF=$READELF
9884 elif test -n "$ac_cv_prog_READELF"; then
9885 READELF=$ac_cv_prog_READELF
9888 if test -n "$ac_cv_prog_READELF"; then
9889 for ncn_progname in readelf; do
9890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9891 set dummy ${ncn_progname}; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if test "${ac_cv_prog_READELF+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test -n "$READELF"; then
9898 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_prog_READELF="${ncn_progname}"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9917 READELF=$ac_cv_prog_READELF
9918 if test -n "$READELF"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9920 $as_echo "$READELF" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 done
9930 for ncn_progname in readelf; do
9931 if test -n "$ncn_tool_prefix"; then
9932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if test "${ac_cv_prog_READELF+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 if test -n "$READELF"; then
9940 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9959 READELF=$ac_cv_prog_READELF
9960 if test -n "$READELF"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9962 $as_echo "$READELF" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9970 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9972 set dummy ${ncn_progname}; ac_word=$2
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 $as_echo_n "checking for $ac_word... " >&6; }
9975 if test "${ac_cv_prog_READELF+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 if test -n "$READELF"; then
9979 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988 ac_cv_prog_READELF="${ncn_progname}"
9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9992 done
9993 done
9994 IFS=$as_save_IFS
9998 READELF=$ac_cv_prog_READELF
9999 if test -n "$READELF"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10001 $as_echo "$READELF" >&6; }
10002 else
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10009 test -n "$ac_cv_prog_READELF" && break
10010 done
10012 if test -z "$ac_cv_prog_READELF" ; then
10013 set dummy readelf
10014 if test $build = $host ; then
10015 READELF="$2"
10016 else
10017 READELF="${ncn_tool_prefix}$2"
10026 # Target tools.
10028 # Check whether --with-build-time-tools was given.
10029 if test "${with_build_time_tools+set}" = set; then :
10030 withval=$with_build_time_tools; case x"$withval" in
10031 x/*) ;;
10033 with_build_time_tools=
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10035 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10037 esac
10038 else
10039 with_build_time_tools=
10045 if test -n "$CC_FOR_TARGET"; then
10046 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10047 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10048 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10051 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10052 for ncn_progname in cc gcc; do
10053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$CC_FOR_TARGET"; then
10061 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10080 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10081 if test -n "$CC_FOR_TARGET"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10083 $as_echo "$CC_FOR_TARGET" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 done
10093 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10094 for ncn_progname in cc gcc; do
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10096 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10097 if test -x $with_build_time_tools/${ncn_progname}; then
10098 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100 $as_echo "yes" >&6; }
10101 break
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10106 done
10109 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10110 for ncn_progname in cc gcc; do
10111 if test -n "$ncn_target_tool_prefix"; then
10112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10113 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 if test -n "$CC_FOR_TARGET"; then
10120 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10121 else
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10133 done
10134 done
10135 IFS=$as_save_IFS
10139 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10140 if test -n "$CC_FOR_TARGET"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10142 $as_echo "$CC_FOR_TARGET" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10150 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10152 set dummy ${ncn_progname}; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 if test -n "$CC_FOR_TARGET"; then
10159 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10178 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10179 if test -n "$CC_FOR_TARGET"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10181 $as_echo "$CC_FOR_TARGET" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10189 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10190 done
10193 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10194 set dummy cc gcc
10195 if test $build = $target ; then
10196 CC_FOR_TARGET="$2"
10197 else
10198 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10200 else
10201 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10206 if test -n "$CXX_FOR_TARGET"; then
10207 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10208 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10209 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10212 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10213 for ncn_progname in c++ g++ cxx gxx; do
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_progname}; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test -n "$CXX_FOR_TARGET"; then
10222 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10241 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10242 if test -n "$CXX_FOR_TARGET"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10244 $as_echo "$CXX_FOR_TARGET" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10251 done
10254 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10255 for ncn_progname in c++ g++ cxx gxx; do
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10257 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10258 if test -x $with_build_time_tools/${ncn_progname}; then
10259 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10261 $as_echo "yes" >&6; }
10262 break
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10267 done
10270 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10271 for ncn_progname in c++ g++ cxx gxx; do
10272 if test -n "$ncn_target_tool_prefix"; then
10273 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10274 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 if test -n "$CXX_FOR_TARGET"; then
10281 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10300 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10301 if test -n "$CXX_FOR_TARGET"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10303 $as_echo "$CXX_FOR_TARGET" >&6; }
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10311 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10313 set dummy ${ncn_progname}; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 if test -n "$CXX_FOR_TARGET"; then
10320 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10339 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10340 if test -n "$CXX_FOR_TARGET"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10342 $as_echo "$CXX_FOR_TARGET" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10351 done
10354 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10355 set dummy c++ g++ cxx gxx
10356 if test $build = $target ; then
10357 CXX_FOR_TARGET="$2"
10358 else
10359 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10361 else
10362 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10367 if test -n "$GCC_FOR_TARGET"; then
10368 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10369 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10370 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10373 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10374 for ncn_progname in gcc; do
10375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10376 set dummy ${ncn_progname}; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 if test -n "$GCC_FOR_TARGET"; then
10383 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10396 done
10397 done
10398 IFS=$as_save_IFS
10402 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10403 if test -n "$GCC_FOR_TARGET"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10405 $as_echo "$GCC_FOR_TARGET" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10412 done
10415 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10416 for ncn_progname in gcc; do
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10418 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10419 if test -x $with_build_time_tools/${ncn_progname}; then
10420 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422 $as_echo "yes" >&6; }
10423 break
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10428 done
10431 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10432 for ncn_progname in gcc; do
10433 if test -n "$ncn_target_tool_prefix"; then
10434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437 $as_echo_n "checking for $ac_word... " >&6; }
10438 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 if test -n "$GCC_FOR_TARGET"; then
10442 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10443 else
10444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10455 done
10456 done
10457 IFS=$as_save_IFS
10461 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10462 if test -n "$GCC_FOR_TARGET"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10464 $as_echo "$GCC_FOR_TARGET" >&6; }
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10472 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10474 set dummy ${ncn_progname}; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 if test -n "$GCC_FOR_TARGET"; then
10481 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10500 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10501 if test -n "$GCC_FOR_TARGET"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10503 $as_echo "$GCC_FOR_TARGET" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10511 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10512 done
10515 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10516 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10517 else
10518 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10523 if test -n "$GCJ_FOR_TARGET"; then
10524 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10525 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10526 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10529 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10530 for ncn_progname in gcj; do
10531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_progname}; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test -n "$GCJ_FOR_TARGET"; then
10539 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10552 done
10553 done
10554 IFS=$as_save_IFS
10558 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10559 if test -n "$GCJ_FOR_TARGET"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10561 $as_echo "$GCJ_FOR_TARGET" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10568 done
10571 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10572 for ncn_progname in gcj; do
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10574 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10575 if test -x $with_build_time_tools/${ncn_progname}; then
10576 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; }
10579 break
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10584 done
10587 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10588 for ncn_progname in gcj; do
10589 if test -n "$ncn_target_tool_prefix"; then
10590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10591 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 if test -n "$GCJ_FOR_TARGET"; then
10598 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10599 else
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10611 done
10612 done
10613 IFS=$as_save_IFS
10617 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10618 if test -n "$GCJ_FOR_TARGET"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10620 $as_echo "$GCJ_FOR_TARGET" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10628 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10630 set dummy ${ncn_progname}; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 if test -n "$GCJ_FOR_TARGET"; then
10637 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10650 done
10651 done
10652 IFS=$as_save_IFS
10656 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10657 if test -n "$GCJ_FOR_TARGET"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10659 $as_echo "$GCJ_FOR_TARGET" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10667 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10668 done
10671 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10672 set dummy gcj
10673 if test $build = $target ; then
10674 GCJ_FOR_TARGET="$2"
10675 else
10676 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10678 else
10679 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10684 if test -n "$GFORTRAN_FOR_TARGET"; then
10685 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10686 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10687 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10690 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10691 for ncn_progname in gfortran; do
10692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test -n "$GFORTRAN_FOR_TARGET"; then
10700 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10713 done
10714 done
10715 IFS=$as_save_IFS
10719 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10720 if test -n "$GFORTRAN_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10722 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10729 done
10732 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10733 for ncn_progname in gfortran; do
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10735 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10736 if test -x $with_build_time_tools/${ncn_progname}; then
10737 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10739 $as_echo "yes" >&6; }
10740 break
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10745 done
10748 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10749 for ncn_progname in gfortran; do
10750 if test -n "$ncn_target_tool_prefix"; then
10751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test -n "$GFORTRAN_FOR_TARGET"; then
10759 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10778 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10779 if test -n "$GFORTRAN_FOR_TARGET"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10781 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10789 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 if test -n "$GFORTRAN_FOR_TARGET"; then
10798 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10817 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10818 if test -n "$GFORTRAN_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10820 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10828 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10829 done
10832 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10833 set dummy gfortran
10834 if test $build = $target ; then
10835 GFORTRAN_FOR_TARGET="$2"
10836 else
10837 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10839 else
10840 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10845 if test -n "$GOC_FOR_TARGET"; then
10846 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10847 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10848 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10851 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10852 for ncn_progname in gccgo; do
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$GOC_FOR_TARGET"; then
10861 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10880 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10881 if test -n "$GOC_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10883 $as_echo "$GOC_FOR_TARGET" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10890 done
10893 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10894 for ncn_progname in gccgo; do
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10896 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10897 if test -x $with_build_time_tools/${ncn_progname}; then
10898 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10900 $as_echo "yes" >&6; }
10901 break
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10906 done
10909 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10910 for ncn_progname in gccgo; do
10911 if test -n "$ncn_target_tool_prefix"; then
10912 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10913 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test -n "$GOC_FOR_TARGET"; then
10920 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10939 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10940 if test -n "$GOC_FOR_TARGET"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10942 $as_echo "$GOC_FOR_TARGET" >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10950 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10952 set dummy ${ncn_progname}; ac_word=$2
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954 $as_echo_n "checking for $ac_word... " >&6; }
10955 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 if test -n "$GOC_FOR_TARGET"; then
10959 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10960 else
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10968 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10972 done
10973 done
10974 IFS=$as_save_IFS
10978 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10979 if test -n "$GOC_FOR_TARGET"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10981 $as_echo "$GOC_FOR_TARGET" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10989 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10990 done
10993 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10994 set dummy gccgo
10995 if test $build = $target ; then
10996 GOC_FOR_TARGET="$2"
10997 else
10998 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11000 else
11001 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11006 if test -n "$GUPC_FOR_TARGET"; then
11007 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
11008 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
11009 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11012 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
11013 for ncn_progname in gupc; do
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11015 set dummy ${ncn_progname}; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test -n "$GUPC_FOR_TARGET"; then
11022 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11041 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11042 if test -n "$GUPC_FOR_TARGET"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11044 $as_echo "$GUPC_FOR_TARGET" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11051 done
11054 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11055 for ncn_progname in gupc; do
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11058 if test -x $with_build_time_tools/${ncn_progname}; then
11059 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11061 $as_echo "yes" >&6; }
11062 break
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11067 done
11070 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
11071 for ncn_progname in gupc; do
11072 if test -n "$ncn_target_tool_prefix"; then
11073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$GUPC_FOR_TARGET"; then
11081 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11094 done
11095 done
11096 IFS=$as_save_IFS
11100 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11101 if test -n "$GUPC_FOR_TARGET"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11103 $as_echo "$GUPC_FOR_TARGET" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11111 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$GUPC_FOR_TARGET"; then
11120 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
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_prog_GUPC_FOR_TARGET="${ncn_progname}"
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
11139 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11140 if test -n "$GUPC_FOR_TARGET"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11142 $as_echo "$GUPC_FOR_TARGET" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11150 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
11151 done
11154 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
11155 set dummy gupc
11156 if test $build = $target ; then
11157 GUPC_FOR_TARGET="$2"
11158 else
11159 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 else
11162 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
11167 cat > conftest.c << \EOF
11168 #ifdef __GNUC__
11169 gcc_yay;
11170 #endif
11172 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11173 have_gcc_for_target=yes
11174 else
11175 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11176 have_gcc_for_target=no
11178 rm conftest.c
11183 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11184 if test -n "$with_build_time_tools"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11186 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11187 if test -x $with_build_time_tools/ar; then
11188 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11189 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11191 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11196 elif test $build != $host && test $have_gcc_for_target = yes; then
11197 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11198 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11199 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11202 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11203 # Extract the first word of "ar", so it can be a program name with args.
11204 set dummy ar; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 case $AR_FOR_TARGET in
11211 [\\/]* | ?:[\\/]*)
11212 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $gcc_cv_tool_dirs
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11226 done
11227 done
11228 IFS=$as_save_IFS
11231 esac
11233 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11234 if test -n "$AR_FOR_TARGET"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11236 $as_echo "$AR_FOR_TARGET" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11244 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11247 if test -n "$AR_FOR_TARGET"; then
11248 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11249 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11250 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11253 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11254 for ncn_progname in ar; do
11255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11256 set dummy ${ncn_progname}; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 if test -n "$AR_FOR_TARGET"; then
11263 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11272 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11276 done
11277 done
11278 IFS=$as_save_IFS
11282 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11283 if test -n "$AR_FOR_TARGET"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11285 $as_echo "$AR_FOR_TARGET" >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11292 done
11295 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11296 for ncn_progname in ar; do
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11299 if test -x $with_build_time_tools/${ncn_progname}; then
11300 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303 break
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11308 done
11311 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11312 for ncn_progname in ar; do
11313 if test -n "$ncn_target_tool_prefix"; then
11314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 if test -n "$AR_FOR_TARGET"; then
11322 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11335 done
11336 done
11337 IFS=$as_save_IFS
11341 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11342 if test -n "$AR_FOR_TARGET"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11344 $as_echo "$AR_FOR_TARGET" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11352 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 if test -n "$AR_FOR_TARGET"; then
11361 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11374 done
11375 done
11376 IFS=$as_save_IFS
11380 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11381 if test -n "$AR_FOR_TARGET"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11383 $as_echo "$AR_FOR_TARGET" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11391 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11392 done
11395 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11396 set dummy ar
11397 if test $build = $target ; then
11398 AR_FOR_TARGET="$2"
11399 else
11400 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11402 else
11403 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11406 else
11407 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11413 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11414 if test -n "$with_build_time_tools"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11416 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11417 if test -x $with_build_time_tools/as; then
11418 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11419 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11421 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11426 elif test $build != $host && test $have_gcc_for_target = yes; then
11427 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11428 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11429 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11432 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11433 # Extract the first word of "as", so it can be a program name with args.
11434 set dummy as; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 case $AS_FOR_TARGET in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $gcc_cv_tool_dirs
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11456 done
11457 done
11458 IFS=$as_save_IFS
11461 esac
11463 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11464 if test -n "$AS_FOR_TARGET"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11466 $as_echo "$AS_FOR_TARGET" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11474 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11477 if test -n "$AS_FOR_TARGET"; then
11478 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11479 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11480 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11483 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11484 for ncn_progname in as; do
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 if test -n "$AS_FOR_TARGET"; then
11493 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11494 else
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11506 done
11507 done
11508 IFS=$as_save_IFS
11512 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11513 if test -n "$AS_FOR_TARGET"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11515 $as_echo "$AS_FOR_TARGET" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11522 done
11525 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11526 for ncn_progname in as; do
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11529 if test -x $with_build_time_tools/${ncn_progname}; then
11530 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11532 $as_echo "yes" >&6; }
11533 break
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11538 done
11541 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11542 for ncn_progname in as; do
11543 if test -n "$ncn_target_tool_prefix"; then
11544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 if test -n "$AS_FOR_TARGET"; then
11552 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11553 else
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11565 done
11566 done
11567 IFS=$as_save_IFS
11571 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11572 if test -n "$AS_FOR_TARGET"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11574 $as_echo "$AS_FOR_TARGET" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11584 set dummy ${ncn_progname}; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test -n "$AS_FOR_TARGET"; then
11591 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11604 done
11605 done
11606 IFS=$as_save_IFS
11610 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11611 if test -n "$AS_FOR_TARGET"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11613 $as_echo "$AS_FOR_TARGET" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11621 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11622 done
11625 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11626 set dummy as
11627 if test $build = $target ; then
11628 AS_FOR_TARGET="$2"
11629 else
11630 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11632 else
11633 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11636 else
11637 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11643 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11644 if test -n "$with_build_time_tools"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11646 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11647 if test -x $with_build_time_tools/dlltool; then
11648 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11649 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11651 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 elif test $build != $host && test $have_gcc_for_target = yes; then
11657 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11658 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11659 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11662 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11663 # Extract the first word of "dlltool", so it can be a program name with args.
11664 set dummy dlltool; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 case $DLLTOOL_FOR_TARGET in
11671 [\\/]* | ?:[\\/]*)
11672 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $gcc_cv_tool_dirs
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11686 done
11687 done
11688 IFS=$as_save_IFS
11691 esac
11693 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11694 if test -n "$DLLTOOL_FOR_TARGET"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11696 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11704 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11707 if test -n "$DLLTOOL_FOR_TARGET"; then
11708 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11709 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11710 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11713 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11714 for ncn_progname in dlltool; do
11715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11716 set dummy ${ncn_progname}; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test -n "$DLLTOOL_FOR_TARGET"; then
11723 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11736 done
11737 done
11738 IFS=$as_save_IFS
11742 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11743 if test -n "$DLLTOOL_FOR_TARGET"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11745 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11752 done
11755 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11756 for ncn_progname in dlltool; do
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11759 if test -x $with_build_time_tools/${ncn_progname}; then
11760 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11763 break
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11768 done
11771 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11772 for ncn_progname in dlltool; do
11773 if test -n "$ncn_target_tool_prefix"; then
11774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777 $as_echo_n "checking for $ac_word... " >&6; }
11778 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 if test -n "$DLLTOOL_FOR_TARGET"; then
11782 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11783 else
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11801 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11802 if test -n "$DLLTOOL_FOR_TARGET"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11804 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11812 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11814 set dummy ${ncn_progname}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test -n "$DLLTOOL_FOR_TARGET"; then
11821 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11834 done
11835 done
11836 IFS=$as_save_IFS
11840 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11841 if test -n "$DLLTOOL_FOR_TARGET"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11843 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11851 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11852 done
11855 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11856 set dummy dlltool
11857 if test $build = $target ; then
11858 DLLTOOL_FOR_TARGET="$2"
11859 else
11860 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11862 else
11863 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11866 else
11867 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11873 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11874 if test -n "$with_build_time_tools"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11876 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11877 if test -x $with_build_time_tools/ld; then
11878 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11879 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11881 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11886 elif test $build != $host && test $have_gcc_for_target = yes; then
11887 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11888 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11889 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11892 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11893 # Extract the first word of "ld", so it can be a program name with args.
11894 set dummy ld; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $LD_FOR_TARGET in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $gcc_cv_tool_dirs
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11924 if test -n "$LD_FOR_TARGET"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11926 $as_echo "$LD_FOR_TARGET" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11934 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11937 if test -n "$LD_FOR_TARGET"; then
11938 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11939 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11940 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11943 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11944 for ncn_progname in ld; do
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$LD_FOR_TARGET"; then
11953 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11966 done
11967 done
11968 IFS=$as_save_IFS
11972 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11973 if test -n "$LD_FOR_TARGET"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11975 $as_echo "$LD_FOR_TARGET" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 done
11985 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11986 for ncn_progname in ld; do
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11989 if test -x $with_build_time_tools/${ncn_progname}; then
11990 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11993 break
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11998 done
12001 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12002 for ncn_progname in ld; do
12003 if test -n "$ncn_target_tool_prefix"; then
12004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 if test -n "$LD_FOR_TARGET"; then
12012 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12013 else
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12021 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 break 2
12025 done
12026 done
12027 IFS=$as_save_IFS
12031 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12032 if test -n "$LD_FOR_TARGET"; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12034 $as_echo "$LD_FOR_TARGET" >&6; }
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12042 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12044 set dummy ${ncn_progname}; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 if test -n "$LD_FOR_TARGET"; then
12051 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12052 else
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12064 done
12065 done
12066 IFS=$as_save_IFS
12070 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12071 if test -n "$LD_FOR_TARGET"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12073 $as_echo "$LD_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12081 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12082 done
12085 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12086 set dummy ld
12087 if test $build = $target ; then
12088 LD_FOR_TARGET="$2"
12089 else
12090 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12092 else
12093 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12096 else
12097 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12103 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12104 if test -n "$with_build_time_tools"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12106 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12107 if test -x $with_build_time_tools/lipo; then
12108 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12109 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12111 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12116 elif test $build != $host && test $have_gcc_for_target = yes; then
12117 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12118 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12119 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12122 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12123 # Extract the first word of "lipo", so it can be a program name with args.
12124 set dummy lipo; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 case $LIPO_FOR_TARGET in
12131 [\\/]* | ?:[\\/]*)
12132 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $gcc_cv_tool_dirs
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12146 done
12147 done
12148 IFS=$as_save_IFS
12151 esac
12153 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12154 if test -n "$LIPO_FOR_TARGET"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12156 $as_echo "$LIPO_FOR_TARGET" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12164 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12167 if test -n "$LIPO_FOR_TARGET"; then
12168 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12169 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12170 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12173 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12174 for ncn_progname in lipo; do
12175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12176 set dummy ${ncn_progname}; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$LIPO_FOR_TARGET"; then
12183 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12192 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12196 done
12197 done
12198 IFS=$as_save_IFS
12202 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12203 if test -n "$LIPO_FOR_TARGET"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12205 $as_echo "$LIPO_FOR_TARGET" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12212 done
12215 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12216 for ncn_progname in lipo; do
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12219 if test -x $with_build_time_tools/${ncn_progname}; then
12220 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12223 break
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12228 done
12231 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12232 for ncn_progname in lipo; do
12233 if test -n "$ncn_target_tool_prefix"; then
12234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -n "$LIPO_FOR_TARGET"; then
12242 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12255 done
12256 done
12257 IFS=$as_save_IFS
12261 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12262 if test -n "$LIPO_FOR_TARGET"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12264 $as_echo "$LIPO_FOR_TARGET" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12274 set dummy ${ncn_progname}; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 if test -n "$LIPO_FOR_TARGET"; then
12281 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12282 else
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12294 done
12295 done
12296 IFS=$as_save_IFS
12300 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12301 if test -n "$LIPO_FOR_TARGET"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12303 $as_echo "$LIPO_FOR_TARGET" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12311 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12312 done
12315 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12316 set dummy lipo
12317 if test $build = $target ; then
12318 LIPO_FOR_TARGET="$2"
12319 else
12320 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12322 else
12323 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12326 else
12327 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12333 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12334 if test -n "$with_build_time_tools"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12336 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12337 if test -x $with_build_time_tools/nm; then
12338 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12339 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12341 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12346 elif test $build != $host && test $have_gcc_for_target = yes; then
12347 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12348 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12349 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12352 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12353 # Extract the first word of "nm", so it can be a program name with args.
12354 set dummy nm; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 case $NM_FOR_TARGET in
12361 [\\/]* | ?:[\\/]*)
12362 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $gcc_cv_tool_dirs
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12376 done
12377 done
12378 IFS=$as_save_IFS
12381 esac
12383 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12384 if test -n "$NM_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12386 $as_echo "$NM_FOR_TARGET" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12394 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12397 if test -n "$NM_FOR_TARGET"; then
12398 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12399 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12400 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12403 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12404 for ncn_progname in nm; do
12405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12406 set dummy ${ncn_progname}; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 if test -n "$NM_FOR_TARGET"; then
12413 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12432 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12433 if test -n "$NM_FOR_TARGET"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12435 $as_echo "$NM_FOR_TARGET" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12442 done
12445 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12446 for ncn_progname in nm; do
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12449 if test -x $with_build_time_tools/${ncn_progname}; then
12450 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12453 break
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12458 done
12461 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12462 for ncn_progname in nm; do
12463 if test -n "$ncn_target_tool_prefix"; then
12464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 if test -n "$NM_FOR_TARGET"; then
12472 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12485 done
12486 done
12487 IFS=$as_save_IFS
12491 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12492 if test -n "$NM_FOR_TARGET"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12494 $as_echo "$NM_FOR_TARGET" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12502 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12504 set dummy ${ncn_progname}; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 if test -n "$NM_FOR_TARGET"; then
12511 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12512 else
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12520 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 break 2
12524 done
12525 done
12526 IFS=$as_save_IFS
12530 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12531 if test -n "$NM_FOR_TARGET"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12533 $as_echo "$NM_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12541 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12542 done
12545 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12546 set dummy nm
12547 if test $build = $target ; then
12548 NM_FOR_TARGET="$2"
12549 else
12550 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12552 else
12553 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12556 else
12557 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12563 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12564 if test -n "$with_build_time_tools"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12566 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12567 if test -x $with_build_time_tools/objdump; then
12568 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12569 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12571 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12576 elif test $build != $host && test $have_gcc_for_target = yes; then
12577 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12578 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12579 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12582 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12583 # Extract the first word of "objdump", so it can be a program name with args.
12584 set dummy objdump; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $OBJDUMP_FOR_TARGET in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $gcc_cv_tool_dirs
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12614 if test -n "$OBJDUMP_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12616 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12627 if test -n "$OBJDUMP_FOR_TARGET"; then
12628 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12629 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12630 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12633 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12634 for ncn_progname in objdump; do
12635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12636 set dummy ${ncn_progname}; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 if test -n "$OBJDUMP_FOR_TARGET"; then
12643 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12662 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12663 if test -n "$OBJDUMP_FOR_TARGET"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12665 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 done
12675 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12676 for ncn_progname in objdump; do
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12679 if test -x $with_build_time_tools/${ncn_progname}; then
12680 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12682 $as_echo "yes" >&6; }
12683 break
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12688 done
12691 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12692 for ncn_progname in objdump; do
12693 if test -n "$ncn_target_tool_prefix"; then
12694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test -n "$OBJDUMP_FOR_TARGET"; then
12702 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12715 done
12716 done
12717 IFS=$as_save_IFS
12721 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12722 if test -n "$OBJDUMP_FOR_TARGET"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12724 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12732 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12734 set dummy ${ncn_progname}; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 if test -n "$OBJDUMP_FOR_TARGET"; then
12741 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12754 done
12755 done
12756 IFS=$as_save_IFS
12760 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12761 if test -n "$OBJDUMP_FOR_TARGET"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12763 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12771 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12772 done
12775 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12776 set dummy objdump
12777 if test $build = $target ; then
12778 OBJDUMP_FOR_TARGET="$2"
12779 else
12780 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12782 else
12783 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12786 else
12787 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12793 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12794 if test -n "$with_build_time_tools"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12796 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12797 if test -x $with_build_time_tools/ranlib; then
12798 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12799 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12801 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12806 elif test $build != $host && test $have_gcc_for_target = yes; then
12807 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12808 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12809 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12812 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12813 # Extract the first word of "ranlib", so it can be a program name with args.
12814 set dummy ranlib; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 case $RANLIB_FOR_TARGET in
12821 [\\/]* | ?:[\\/]*)
12822 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $gcc_cv_tool_dirs
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12832 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12836 done
12837 done
12838 IFS=$as_save_IFS
12841 esac
12843 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12844 if test -n "$RANLIB_FOR_TARGET"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12846 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12854 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12857 if test -n "$RANLIB_FOR_TARGET"; then
12858 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12859 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12860 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12863 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12864 for ncn_progname in ranlib; do
12865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12866 set dummy ${ncn_progname}; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 if test -n "$RANLIB_FOR_TARGET"; then
12873 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12874 else
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12886 done
12887 done
12888 IFS=$as_save_IFS
12892 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12893 if test -n "$RANLIB_FOR_TARGET"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12895 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12902 done
12905 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12906 for ncn_progname in ranlib; do
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12909 if test -x $with_build_time_tools/${ncn_progname}; then
12910 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; }
12913 break
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12918 done
12921 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12922 for ncn_progname in ranlib; do
12923 if test -n "$ncn_target_tool_prefix"; then
12924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 if test -n "$RANLIB_FOR_TARGET"; then
12932 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12945 done
12946 done
12947 IFS=$as_save_IFS
12951 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12952 if test -n "$RANLIB_FOR_TARGET"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12954 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12962 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964 set dummy ${ncn_progname}; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 if test -n "$RANLIB_FOR_TARGET"; then
12971 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12976 IFS=$as_save_IFS
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982 break 2
12984 done
12985 done
12986 IFS=$as_save_IFS
12990 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12991 if test -n "$RANLIB_FOR_TARGET"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12993 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13001 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13002 done
13005 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13006 set dummy ranlib
13007 if test $build = $target ; then
13008 RANLIB_FOR_TARGET="$2"
13009 else
13010 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13012 else
13013 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13016 else
13017 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13023 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13024 if test -n "$with_build_time_tools"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13026 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13027 if test -x $with_build_time_tools/readelf; then
13028 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13029 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13031 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13036 elif test $build != $host && test $have_gcc_for_target = yes; then
13037 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13038 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13039 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13042 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13043 # Extract the first word of "readelf", so it can be a program name with args.
13044 set dummy readelf; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 case $READELF_FOR_TARGET in
13051 [\\/]* | ?:[\\/]*)
13052 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $gcc_cv_tool_dirs
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13071 esac
13073 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13074 if test -n "$READELF_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13076 $as_echo "$READELF_FOR_TARGET" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13084 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13087 if test -n "$READELF_FOR_TARGET"; then
13088 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13089 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13090 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13093 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13094 for ncn_progname in readelf; do
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test -n "$READELF_FOR_TARGET"; then
13103 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13122 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13123 if test -n "$READELF_FOR_TARGET"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13125 $as_echo "$READELF_FOR_TARGET" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13132 done
13135 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13136 for ncn_progname in readelf; do
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13139 if test -x $with_build_time_tools/${ncn_progname}; then
13140 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13142 $as_echo "yes" >&6; }
13143 break
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13148 done
13151 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13152 for ncn_progname in readelf; do
13153 if test -n "$ncn_target_tool_prefix"; then
13154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 if test -n "$READELF_FOR_TARGET"; then
13162 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13177 IFS=$as_save_IFS
13181 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13182 if test -n "$READELF_FOR_TARGET"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13184 $as_echo "$READELF_FOR_TARGET" >&6; }
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13192 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -n "$READELF_FOR_TARGET"; then
13201 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13214 done
13215 done
13216 IFS=$as_save_IFS
13220 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13221 if test -n "$READELF_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13223 $as_echo "$READELF_FOR_TARGET" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13231 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13232 done
13235 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13236 set dummy readelf
13237 if test $build = $target ; then
13238 READELF_FOR_TARGET="$2"
13239 else
13240 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13242 else
13243 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13246 else
13247 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13253 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13254 if test -n "$with_build_time_tools"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13256 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13257 if test -x $with_build_time_tools/strip; then
13258 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13259 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13261 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13266 elif test $build != $host && test $have_gcc_for_target = yes; then
13267 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13268 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13269 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13272 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13273 # Extract the first word of "strip", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 case $STRIP_FOR_TARGET in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $gcc_cv_tool_dirs
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13301 esac
13303 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13304 if test -n "$STRIP_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13306 $as_echo "$STRIP_FOR_TARGET" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13314 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13317 if test -n "$STRIP_FOR_TARGET"; then
13318 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13319 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13320 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13323 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13324 for ncn_progname in strip; do
13325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 if test -n "$STRIP_FOR_TARGET"; then
13333 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13334 else
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13352 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13353 if test -n "$STRIP_FOR_TARGET"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13355 $as_echo "$STRIP_FOR_TARGET" >&6; }
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13362 done
13365 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13366 for ncn_progname in strip; do
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13369 if test -x $with_build_time_tools/${ncn_progname}; then
13370 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13372 $as_echo "yes" >&6; }
13373 break
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13378 done
13381 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13382 for ncn_progname in strip; do
13383 if test -n "$ncn_target_tool_prefix"; then
13384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387 $as_echo_n "checking for $ac_word... " >&6; }
13388 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 if test -n "$STRIP_FOR_TARGET"; then
13392 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13393 else
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13401 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13405 done
13406 done
13407 IFS=$as_save_IFS
13411 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13412 if test -n "$STRIP_FOR_TARGET"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13414 $as_echo "$STRIP_FOR_TARGET" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13424 set dummy ${ncn_progname}; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 if test -n "$STRIP_FOR_TARGET"; then
13431 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13444 done
13445 done
13446 IFS=$as_save_IFS
13450 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13451 if test -n "$STRIP_FOR_TARGET"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13453 $as_echo "$STRIP_FOR_TARGET" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13461 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13462 done
13465 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13466 set dummy strip
13467 if test $build = $target ; then
13468 STRIP_FOR_TARGET="$2"
13469 else
13470 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13472 else
13473 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13476 else
13477 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13483 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13484 if test -n "$with_build_time_tools"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13486 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13487 if test -x $with_build_time_tools/windres; then
13488 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13489 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13491 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13496 elif test $build != $host && test $have_gcc_for_target = yes; then
13497 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13498 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13499 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13502 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13503 # Extract the first word of "windres", so it can be a program name with args.
13504 set dummy windres; ac_word=$2
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506 $as_echo_n "checking for $ac_word... " >&6; }
13507 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 case $WINDRES_FOR_TARGET in
13511 [\\/]* | ?:[\\/]*)
13512 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $gcc_cv_tool_dirs
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13522 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13526 done
13527 done
13528 IFS=$as_save_IFS
13531 esac
13533 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13534 if test -n "$WINDRES_FOR_TARGET"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13536 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 $as_echo "no" >&6; }
13544 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13547 if test -n "$WINDRES_FOR_TARGET"; then
13548 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13549 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13550 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13553 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13554 for ncn_progname in windres; do
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$WINDRES_FOR_TARGET"; then
13563 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13576 done
13577 done
13578 IFS=$as_save_IFS
13582 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13583 if test -n "$WINDRES_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13585 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13592 done
13595 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13596 for ncn_progname in windres; do
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13599 if test -x $with_build_time_tools/${ncn_progname}; then
13600 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13603 break
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13608 done
13611 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13612 for ncn_progname in windres; do
13613 if test -n "$ncn_target_tool_prefix"; then
13614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 if test -n "$WINDRES_FOR_TARGET"; then
13622 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13637 IFS=$as_save_IFS
13641 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13642 if test -n "$WINDRES_FOR_TARGET"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13644 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13652 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13654 set dummy ${ncn_progname}; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 if test -n "$WINDRES_FOR_TARGET"; then
13661 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13662 else
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672 break 2
13674 done
13675 done
13676 IFS=$as_save_IFS
13680 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13681 if test -n "$WINDRES_FOR_TARGET"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13683 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13691 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13692 done
13695 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13696 set dummy windres
13697 if test $build = $target ; then
13698 WINDRES_FOR_TARGET="$2"
13699 else
13700 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13702 else
13703 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13706 else
13707 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13713 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13714 if test -n "$with_build_time_tools"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13716 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13717 if test -x $with_build_time_tools/windmc; then
13718 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13719 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13721 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13722 else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13726 elif test $build != $host && test $have_gcc_for_target = yes; then
13727 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13728 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13729 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13732 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13733 # Extract the first word of "windmc", so it can be a program name with args.
13734 set dummy windmc; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 case $WINDMC_FOR_TARGET in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $gcc_cv_tool_dirs
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13756 done
13757 done
13758 IFS=$as_save_IFS
13761 esac
13763 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13764 if test -n "$WINDMC_FOR_TARGET"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13766 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13774 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13777 if test -n "$WINDMC_FOR_TARGET"; then
13778 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13779 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13780 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13783 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13784 for ncn_progname in windmc; do
13785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13786 set dummy ${ncn_progname}; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 if test -n "$WINDMC_FOR_TARGET"; then
13793 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13794 else
13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13806 done
13807 done
13808 IFS=$as_save_IFS
13812 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13813 if test -n "$WINDMC_FOR_TARGET"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13815 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13822 done
13825 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13826 for ncn_progname in windmc; do
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13828 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13829 if test -x $with_build_time_tools/${ncn_progname}; then
13830 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13832 $as_echo "yes" >&6; }
13833 break
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13838 done
13841 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13842 for ncn_progname in windmc; do
13843 if test -n "$ncn_target_tool_prefix"; then
13844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 if test -n "$WINDMC_FOR_TARGET"; then
13852 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13853 else
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $PATH
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13861 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13865 done
13866 done
13867 IFS=$as_save_IFS
13871 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13872 if test -n "$WINDMC_FOR_TARGET"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13874 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13882 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13884 set dummy ${ncn_progname}; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 if test -n "$WINDMC_FOR_TARGET"; then
13891 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13892 else
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13900 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13904 done
13905 done
13906 IFS=$as_save_IFS
13910 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13911 if test -n "$WINDMC_FOR_TARGET"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13913 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13914 else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13921 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13922 done
13925 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13926 set dummy windmc
13927 if test $build = $target ; then
13928 WINDMC_FOR_TARGET="$2"
13929 else
13930 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13932 else
13933 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13936 else
13937 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13941 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13944 $as_echo_n "checking where to find the target ar... " >&6; }
13945 if test "x${build}" != "x${host}" ; then
13946 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13947 # We already found the complete path
13948 ac_dir=`dirname $AR_FOR_TARGET`
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13950 $as_echo "pre-installed in $ac_dir" >&6; }
13951 else
13952 # Canadian cross, just use what we found
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954 $as_echo "pre-installed" >&6; }
13956 else
13957 ok=yes
13958 case " ${configdirs} " in
13959 *" binutils "*) ;;
13960 *) ok=no ;;
13961 esac
13963 if test $ok = yes; then
13964 # An in-tree tool is available and we can use it
13965 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13967 $as_echo "just compiled" >&6; }
13968 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
13970 ac_dir=`dirname $AR_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 elif test "x$target" = "x$host"; then
13974 # We can use an host tool
13975 AR_FOR_TARGET='$(AR)'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13977 $as_echo "host tool" >&6; }
13978 else
13979 # We need a cross tool
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13981 $as_echo "pre-installed" >&6; }
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13986 $as_echo_n "checking where to find the target as... " >&6; }
13987 if test "x${build}" != "x${host}" ; then
13988 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13989 # We already found the complete path
13990 ac_dir=`dirname $AS_FOR_TARGET`
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13992 $as_echo "pre-installed in $ac_dir" >&6; }
13993 else
13994 # Canadian cross, just use what we found
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996 $as_echo "pre-installed" >&6; }
13998 else
13999 ok=yes
14000 case " ${configdirs} " in
14001 *" gas "*) ;;
14002 *) ok=no ;;
14003 esac
14005 if test $ok = yes; then
14006 # An in-tree tool is available and we can use it
14007 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14009 $as_echo "just compiled" >&6; }
14010 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14011 # We already found the complete path
14012 ac_dir=`dirname $AS_FOR_TARGET`
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014 $as_echo "pre-installed in $ac_dir" >&6; }
14015 elif test "x$target" = "x$host"; then
14016 # We can use an host tool
14017 AS_FOR_TARGET='$(AS)'
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14019 $as_echo "host tool" >&6; }
14020 else
14021 # We need a cross tool
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14023 $as_echo "pre-installed" >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14028 $as_echo_n "checking where to find the target cc... " >&6; }
14029 if test "x${build}" != "x${host}" ; then
14030 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
14032 ac_dir=`dirname $CC_FOR_TARGET`
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034 $as_echo "pre-installed in $ac_dir" >&6; }
14035 else
14036 # Canadian cross, just use what we found
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038 $as_echo "pre-installed" >&6; }
14040 else
14041 ok=yes
14042 case " ${configdirs} " in
14043 *" gcc "*) ;;
14044 *) ok=no ;;
14045 esac
14047 if test $ok = yes; then
14048 # An in-tree tool is available and we can use it
14049 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051 $as_echo "just compiled" >&6; }
14052 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $CC_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057 elif test "x$target" = "x$host"; then
14058 # We can use an host tool
14059 CC_FOR_TARGET='$(CC)'
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061 $as_echo "host tool" >&6; }
14062 else
14063 # We need a cross tool
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14070 $as_echo_n "checking where to find the target c++... " >&6; }
14071 if test "x${build}" != "x${host}" ; then
14072 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $CXX_FOR_TARGET`
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076 $as_echo "pre-installed in $ac_dir" >&6; }
14077 else
14078 # Canadian cross, just use what we found
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080 $as_echo "pre-installed" >&6; }
14082 else
14083 ok=yes
14084 case " ${configdirs} " in
14085 *" gcc "*) ;;
14086 *) ok=no ;;
14087 esac
14088 case ,${enable_languages}, in
14089 *,c++,*) ;;
14090 *) ok=no ;;
14091 esac
14092 if test $ok = yes; then
14093 # An in-tree tool is available and we can use it
14094 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'
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14096 $as_echo "just compiled" >&6; }
14097 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $CXX_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14102 elif test "x$target" = "x$host"; then
14103 # We can use an host tool
14104 CXX_FOR_TARGET='$(CXX)'
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14106 $as_echo "host tool" >&6; }
14107 else
14108 # We need a cross tool
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110 $as_echo "pre-installed" >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14115 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14116 if test "x${build}" != "x${host}" ; then
14117 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
14119 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121 $as_echo "pre-installed in $ac_dir" >&6; }
14122 else
14123 # Canadian cross, just use what we found
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14125 $as_echo "pre-installed" >&6; }
14127 else
14128 ok=yes
14129 case " ${configdirs} " in
14130 *" gcc "*) ;;
14131 *) ok=no ;;
14132 esac
14133 case ,${enable_languages}, in
14134 *,c++,*) ;;
14135 *) ok=no ;;
14136 esac
14137 if test $ok = yes; then
14138 # An in-tree tool is available and we can use it
14139 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'
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14141 $as_echo "just compiled" >&6; }
14142 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14143 # We already found the complete path
14144 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14146 $as_echo "pre-installed in $ac_dir" >&6; }
14147 elif test "x$target" = "x$host"; then
14148 # We can use an host tool
14149 RAW_CXX_FOR_TARGET='$(CXX)'
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14151 $as_echo "host tool" >&6; }
14152 else
14153 # We need a cross tool
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14155 $as_echo "pre-installed" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14160 $as_echo_n "checking where to find the target dlltool... " >&6; }
14161 if test "x${build}" != "x${host}" ; then
14162 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14163 # We already found the complete path
14164 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14166 $as_echo "pre-installed in $ac_dir" >&6; }
14167 else
14168 # Canadian cross, just use what we found
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14170 $as_echo "pre-installed" >&6; }
14172 else
14173 ok=yes
14174 case " ${configdirs} " in
14175 *" binutils "*) ;;
14176 *) ok=no ;;
14177 esac
14179 if test $ok = yes; then
14180 # An in-tree tool is available and we can use it
14181 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14183 $as_echo "just compiled" >&6; }
14184 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14185 # We already found the complete path
14186 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14188 $as_echo "pre-installed in $ac_dir" >&6; }
14189 elif test "x$target" = "x$host"; then
14190 # We can use an host tool
14191 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14193 $as_echo "host tool" >&6; }
14194 else
14195 # We need a cross tool
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14202 $as_echo_n "checking where to find the target gcc... " >&6; }
14203 if test "x${build}" != "x${host}" ; then
14204 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14205 # We already found the complete path
14206 ac_dir=`dirname $GCC_FOR_TARGET`
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14208 $as_echo "pre-installed in $ac_dir" >&6; }
14209 else
14210 # Canadian cross, just use what we found
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212 $as_echo "pre-installed" >&6; }
14214 else
14215 ok=yes
14216 case " ${configdirs} " in
14217 *" gcc "*) ;;
14218 *) ok=no ;;
14219 esac
14221 if test $ok = yes; then
14222 # An in-tree tool is available and we can use it
14223 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14225 $as_echo "just compiled" >&6; }
14226 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14227 # We already found the complete path
14228 ac_dir=`dirname $GCC_FOR_TARGET`
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14231 elif test "x$target" = "x$host"; then
14232 # We can use an host tool
14233 GCC_FOR_TARGET='$()'
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14235 $as_echo "host tool" >&6; }
14236 else
14237 # We need a cross tool
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14244 $as_echo_n "checking where to find the target gcj... " >&6; }
14245 if test "x${build}" != "x${host}" ; then
14246 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14247 # We already found the complete path
14248 ac_dir=`dirname $GCJ_FOR_TARGET`
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251 else
14252 # Canadian cross, just use what we found
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14256 else
14257 ok=yes
14258 case " ${configdirs} " in
14259 *" gcc "*) ;;
14260 *) ok=no ;;
14261 esac
14262 case ,${enable_languages}, in
14263 *,java,*) ;;
14264 *) ok=no ;;
14265 esac
14266 if test $ok = yes; then
14267 # An in-tree tool is available and we can use it
14268 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14270 $as_echo "just compiled" >&6; }
14271 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $GCJ_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275 $as_echo "pre-installed in $ac_dir" >&6; }
14276 elif test "x$target" = "x$host"; then
14277 # We can use an host tool
14278 GCJ_FOR_TARGET='$(GCJ)'
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14280 $as_echo "host tool" >&6; }
14281 else
14282 # We need a cross tool
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284 $as_echo "pre-installed" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14289 $as_echo_n "checking where to find the target gfortran... " >&6; }
14290 if test "x${build}" != "x${host}" ; then
14291 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295 $as_echo "pre-installed in $ac_dir" >&6; }
14296 else
14297 # Canadian cross, just use what we found
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299 $as_echo "pre-installed" >&6; }
14301 else
14302 ok=yes
14303 case " ${configdirs} " in
14304 *" gcc "*) ;;
14305 *) ok=no ;;
14306 esac
14307 case ,${enable_languages}, in
14308 *,fortran,*) ;;
14309 *) ok=no ;;
14310 esac
14311 if test $ok = yes; then
14312 # An in-tree tool is available and we can use it
14313 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14315 $as_echo "just compiled" >&6; }
14316 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321 elif test "x$target" = "x$host"; then
14322 # We can use an host tool
14323 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14325 $as_echo "host tool" >&6; }
14326 else
14327 # We need a cross tool
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14329 $as_echo "pre-installed" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14334 $as_echo_n "checking where to find the target gccgo... " >&6; }
14335 if test "x${build}" != "x${host}" ; then
14336 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $GOC_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340 $as_echo "pre-installed in $ac_dir" >&6; }
14341 else
14342 # Canadian cross, just use what we found
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344 $as_echo "pre-installed" >&6; }
14346 else
14347 ok=yes
14348 case " ${configdirs} " in
14349 *" gcc "*) ;;
14350 *) ok=no ;;
14351 esac
14352 case ,${enable_languages}, in
14353 *,go,*) ;;
14354 *) ok=no ;;
14355 esac
14356 if test $ok = yes; then
14357 # An in-tree tool is available and we can use it
14358 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14360 $as_echo "just compiled" >&6; }
14361 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14362 # We already found the complete path
14363 ac_dir=`dirname $GOC_FOR_TARGET`
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14365 $as_echo "pre-installed in $ac_dir" >&6; }
14366 elif test "x$target" = "x$host"; then
14367 # We can use an host tool
14368 GOC_FOR_TARGET='$(GOC)'
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14370 $as_echo "host tool" >&6; }
14371 else
14372 # We need a cross tool
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14374 $as_echo "pre-installed" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14379 $as_echo_n "checking where to find the target gupc... " >&6; }
14380 if test "x${build}" != "x${host}" ; then
14381 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14382 # We already found the complete path
14383 ac_dir=`dirname $GUPC_FOR_TARGET`
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14385 $as_echo "pre-installed in $ac_dir" >&6; }
14386 else
14387 # Canadian cross, just use what we found
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14389 $as_echo "pre-installed" >&6; }
14391 else
14392 ok=yes
14393 case " ${configdirs} " in
14394 *" gcc "*) ;;
14395 *) ok=no ;;
14396 esac
14397 case ,${enable_languages}, in
14398 *,upc,*) ;;
14399 *) ok=no ;;
14400 esac
14401 if test $ok = yes; then
14402 # An in-tree tool is available and we can use it
14403 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14405 $as_echo "just compiled" >&6; }
14406 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14407 # We already found the complete path
14408 ac_dir=`dirname $GUPC_FOR_TARGET`
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14410 $as_echo "pre-installed in $ac_dir" >&6; }
14411 elif test "x$target" = "x$host"; then
14412 # We can use an host tool
14413 GUPC_FOR_TARGET='$(GUPC)'
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14415 $as_echo "host tool" >&6; }
14416 else
14417 # We need a cross tool
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14419 $as_echo "pre-installed" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14424 $as_echo_n "checking where to find the target ld... " >&6; }
14425 if test "x${build}" != "x${host}" ; then
14426 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14427 # We already found the complete path
14428 ac_dir=`dirname $LD_FOR_TARGET`
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14430 $as_echo "pre-installed in $ac_dir" >&6; }
14431 else
14432 # Canadian cross, just use what we found
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14434 $as_echo "pre-installed" >&6; }
14436 else
14437 ok=yes
14438 case " ${configdirs} " in
14439 *" ld "*) ;;
14440 *) ok=no ;;
14441 esac
14443 if test $ok = yes; then
14444 # An in-tree tool is available and we can use it
14445 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14447 $as_echo "just compiled" >&6; }
14448 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14449 # We already found the complete path
14450 ac_dir=`dirname $LD_FOR_TARGET`
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14452 $as_echo "pre-installed in $ac_dir" >&6; }
14453 elif test "x$target" = "x$host"; then
14454 # We can use an host tool
14455 LD_FOR_TARGET='$(LD)'
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14457 $as_echo "host tool" >&6; }
14458 else
14459 # We need a cross tool
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14461 $as_echo "pre-installed" >&6; }
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14466 $as_echo_n "checking where to find the target lipo... " >&6; }
14467 if test "x${build}" != "x${host}" ; then
14468 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14469 # We already found the complete path
14470 ac_dir=`dirname $LIPO_FOR_TARGET`
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14472 $as_echo "pre-installed in $ac_dir" >&6; }
14473 else
14474 # Canadian cross, just use what we found
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476 $as_echo "pre-installed" >&6; }
14478 else
14479 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14480 # We already found the complete path
14481 ac_dir=`dirname $LIPO_FOR_TARGET`
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14483 $as_echo "pre-installed in $ac_dir" >&6; }
14484 elif test "x$target" = "x$host"; then
14485 # We can use an host tool
14486 LIPO_FOR_TARGET='$(LIPO)'
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14488 $as_echo "host tool" >&6; }
14489 else
14490 # We need a cross tool
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492 $as_echo "pre-installed" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14497 $as_echo_n "checking where to find the target nm... " >&6; }
14498 if test "x${build}" != "x${host}" ; then
14499 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14500 # We already found the complete path
14501 ac_dir=`dirname $NM_FOR_TARGET`
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14503 $as_echo "pre-installed in $ac_dir" >&6; }
14504 else
14505 # Canadian cross, just use what we found
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14507 $as_echo "pre-installed" >&6; }
14509 else
14510 ok=yes
14511 case " ${configdirs} " in
14512 *" binutils "*) ;;
14513 *) ok=no ;;
14514 esac
14516 if test $ok = yes; then
14517 # An in-tree tool is available and we can use it
14518 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14520 $as_echo "just compiled" >&6; }
14521 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14522 # We already found the complete path
14523 ac_dir=`dirname $NM_FOR_TARGET`
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14525 $as_echo "pre-installed in $ac_dir" >&6; }
14526 elif test "x$target" = "x$host"; then
14527 # We can use an host tool
14528 NM_FOR_TARGET='$(NM)'
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14530 $as_echo "host tool" >&6; }
14531 else
14532 # We need a cross tool
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14534 $as_echo "pre-installed" >&6; }
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14539 $as_echo_n "checking where to find the target objdump... " >&6; }
14540 if test "x${build}" != "x${host}" ; then
14541 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14542 # We already found the complete path
14543 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14545 $as_echo "pre-installed in $ac_dir" >&6; }
14546 else
14547 # Canadian cross, just use what we found
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14549 $as_echo "pre-installed" >&6; }
14551 else
14552 ok=yes
14553 case " ${configdirs} " in
14554 *" binutils "*) ;;
14555 *) ok=no ;;
14556 esac
14558 if test $ok = yes; then
14559 # An in-tree tool is available and we can use it
14560 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14562 $as_echo "just compiled" >&6; }
14563 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14564 # We already found the complete path
14565 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14567 $as_echo "pre-installed in $ac_dir" >&6; }
14568 elif test "x$target" = "x$host"; then
14569 # We can use an host tool
14570 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14572 $as_echo "host tool" >&6; }
14573 else
14574 # We need a cross tool
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14576 $as_echo "pre-installed" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14581 $as_echo_n "checking where to find the target ranlib... " >&6; }
14582 if test "x${build}" != "x${host}" ; then
14583 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14584 # We already found the complete path
14585 ac_dir=`dirname $RANLIB_FOR_TARGET`
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14587 $as_echo "pre-installed in $ac_dir" >&6; }
14588 else
14589 # Canadian cross, just use what we found
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14591 $as_echo "pre-installed" >&6; }
14593 else
14594 ok=yes
14595 case " ${configdirs} " in
14596 *" binutils "*) ;;
14597 *) ok=no ;;
14598 esac
14600 if test $ok = yes; then
14601 # An in-tree tool is available and we can use it
14602 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14604 $as_echo "just compiled" >&6; }
14605 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14606 # We already found the complete path
14607 ac_dir=`dirname $RANLIB_FOR_TARGET`
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14609 $as_echo "pre-installed in $ac_dir" >&6; }
14610 elif test "x$target" = "x$host"; then
14611 # We can use an host tool
14612 RANLIB_FOR_TARGET='$(RANLIB)'
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14614 $as_echo "host tool" >&6; }
14615 else
14616 # We need a cross tool
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14618 $as_echo "pre-installed" >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14623 $as_echo_n "checking where to find the target readelf... " >&6; }
14624 if test "x${build}" != "x${host}" ; then
14625 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14626 # We already found the complete path
14627 ac_dir=`dirname $READELF_FOR_TARGET`
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14629 $as_echo "pre-installed in $ac_dir" >&6; }
14630 else
14631 # Canadian cross, just use what we found
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14633 $as_echo "pre-installed" >&6; }
14635 else
14636 ok=yes
14637 case " ${configdirs} " in
14638 *" binutils "*) ;;
14639 *) ok=no ;;
14640 esac
14642 if test $ok = yes; then
14643 # An in-tree tool is available and we can use it
14644 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14646 $as_echo "just compiled" >&6; }
14647 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14648 # We already found the complete path
14649 ac_dir=`dirname $READELF_FOR_TARGET`
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14651 $as_echo "pre-installed in $ac_dir" >&6; }
14652 elif test "x$target" = "x$host"; then
14653 # We can use an host tool
14654 READELF_FOR_TARGET='$(READELF)'
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14656 $as_echo "host tool" >&6; }
14657 else
14658 # We need a cross tool
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14660 $as_echo "pre-installed" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14665 $as_echo_n "checking where to find the target strip... " >&6; }
14666 if test "x${build}" != "x${host}" ; then
14667 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14668 # We already found the complete path
14669 ac_dir=`dirname $STRIP_FOR_TARGET`
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14671 $as_echo "pre-installed in $ac_dir" >&6; }
14672 else
14673 # Canadian cross, just use what we found
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14675 $as_echo "pre-installed" >&6; }
14677 else
14678 ok=yes
14679 case " ${configdirs} " in
14680 *" binutils "*) ;;
14681 *) ok=no ;;
14682 esac
14684 if test $ok = yes; then
14685 # An in-tree tool is available and we can use it
14686 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14688 $as_echo "just compiled" >&6; }
14689 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14690 # We already found the complete path
14691 ac_dir=`dirname $STRIP_FOR_TARGET`
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14693 $as_echo "pre-installed in $ac_dir" >&6; }
14694 elif test "x$target" = "x$host"; then
14695 # We can use an host tool
14696 STRIP_FOR_TARGET='$(STRIP)'
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14698 $as_echo "host tool" >&6; }
14699 else
14700 # We need a cross tool
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14702 $as_echo "pre-installed" >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14707 $as_echo_n "checking where to find the target windres... " >&6; }
14708 if test "x${build}" != "x${host}" ; then
14709 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14710 # We already found the complete path
14711 ac_dir=`dirname $WINDRES_FOR_TARGET`
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14713 $as_echo "pre-installed in $ac_dir" >&6; }
14714 else
14715 # Canadian cross, just use what we found
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14717 $as_echo "pre-installed" >&6; }
14719 else
14720 ok=yes
14721 case " ${configdirs} " in
14722 *" binutils "*) ;;
14723 *) ok=no ;;
14724 esac
14726 if test $ok = yes; then
14727 # An in-tree tool is available and we can use it
14728 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14730 $as_echo "just compiled" >&6; }
14731 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14732 # We already found the complete path
14733 ac_dir=`dirname $WINDRES_FOR_TARGET`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14735 $as_echo "pre-installed in $ac_dir" >&6; }
14736 elif test "x$target" = "x$host"; then
14737 # We can use an host tool
14738 WINDRES_FOR_TARGET='$(WINDRES)'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14740 $as_echo "host tool" >&6; }
14741 else
14742 # We need a cross tool
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14744 $as_echo "pre-installed" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14749 $as_echo_n "checking where to find the target windmc... " >&6; }
14750 if test "x${build}" != "x${host}" ; then
14751 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14752 # We already found the complete path
14753 ac_dir=`dirname $WINDMC_FOR_TARGET`
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14755 $as_echo "pre-installed in $ac_dir" >&6; }
14756 else
14757 # Canadian cross, just use what we found
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14759 $as_echo "pre-installed" >&6; }
14761 else
14762 ok=yes
14763 case " ${configdirs} " in
14764 *" binutils "*) ;;
14765 *) ok=no ;;
14766 esac
14768 if test $ok = yes; then
14769 # An in-tree tool is available and we can use it
14770 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14772 $as_echo "just compiled" >&6; }
14773 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14774 # We already found the complete path
14775 ac_dir=`dirname $WINDMC_FOR_TARGET`
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14777 $as_echo "pre-installed in $ac_dir" >&6; }
14778 elif test "x$target" = "x$host"; then
14779 # We can use an host tool
14780 WINDMC_FOR_TARGET='$(WINDMC)'
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14782 $as_echo "host tool" >&6; }
14783 else
14784 # We need a cross tool
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14786 $as_echo "pre-installed" >&6; }
14794 # Certain tools may need extra flags.
14795 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14796 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14797 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14799 # When building target libraries, except in a Canadian cross, we use
14800 # the same toolchain as the compiler we just built.
14801 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14802 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14803 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14804 if test $host = $build; then
14805 case " $configdirs " in
14806 *" gcc "*)
14807 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14808 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14809 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14811 esac
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14819 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14820 # Check whether --enable-maintainer-mode was given.
14821 if test "${enable_maintainer_mode+set}" = set; then :
14822 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14823 else
14824 USE_MAINTAINER_MODE=no
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14828 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14831 if test "$USE_MAINTAINER_MODE" = yes; then
14832 MAINTAINER_MODE_TRUE=
14833 MAINTAINER_MODE_FALSE='#'
14834 else
14835 MAINTAINER_MODE_TRUE='#'
14836 MAINTAINER_MODE_FALSE=
14838 MAINT=$MAINTAINER_MODE_TRUE
14840 # ---------------------
14841 # GCC bootstrap support
14842 # ---------------------
14844 # Stage specific cflags for build.
14845 stage1_cflags="-g"
14846 case $build in
14847 vax-*-*)
14848 case ${GCC} in
14849 yes) stage1_cflags="-g -Wa,-J" ;;
14850 *) stage1_cflags="-g -J" ;;
14851 esac ;;
14852 esac
14856 # Enable --enable-checking in stage1 of the compiler.
14857 # Check whether --enable-stage1-checking was given.
14858 if test "${enable_stage1_checking+set}" = set; then :
14859 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14860 else
14861 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14862 stage1_checking=--enable-checking=yes,types
14863 else
14864 stage1_checking=--enable-checking=$enable_checking,types
14870 # Enable -Werror in bootstrap stage2 and later.
14871 # Check whether --enable-werror was given.
14872 if test "${enable_werror+set}" = set; then :
14873 enableval=$enable_werror;
14874 else
14875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14876 enable_werror=yes
14877 else
14878 enable_werror=no
14882 case ${enable_werror} in
14883 yes) stage2_werror_flag="--enable-werror-always" ;;
14884 *) stage2_werror_flag="" ;;
14885 esac
14888 # Enable --enable-host-shared.
14889 # Check whether --enable-host-shared was given.
14890 if test "${enable_host_shared+set}" = set; then :
14891 enableval=$enable_host_shared; host_shared=$enableval
14892 else
14893 host_shared=no
14898 # Specify what files to not compare during bootstrap.
14900 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14901 case "$target" in
14902 hppa*64*-*-hpux*) ;;
14903 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14904 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14905 esac
14908 ac_config_files="$ac_config_files Makefile"
14910 cat >confcache <<\_ACEOF
14911 # This file is a shell script that caches the results of configure
14912 # tests run on this system so they can be shared between configure
14913 # scripts and configure runs, see configure's option --config-cache.
14914 # It is not useful on other systems. If it contains results you don't
14915 # want to keep, you may remove or edit it.
14917 # config.status only pays attention to the cache file if you give it
14918 # the --recheck option to rerun configure.
14920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14922 # following values.
14924 _ACEOF
14926 # The following way of writing the cache mishandles newlines in values,
14927 # but we know of no workaround that is simple, portable, and efficient.
14928 # So, we kill variables containing newlines.
14929 # Ultrix sh set writes to stderr and can't be redirected directly,
14930 # and sets the high bit in the cache file unless we assign to the vars.
14932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14933 eval ac_val=\$$ac_var
14934 case $ac_val in #(
14935 *${as_nl}*)
14936 case $ac_var in #(
14937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14939 esac
14940 case $ac_var in #(
14941 _ | IFS | as_nl) ;; #(
14942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14943 *) { eval $ac_var=; unset $ac_var;} ;;
14944 esac ;;
14945 esac
14946 done
14948 (set) 2>&1 |
14949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14950 *${as_nl}ac_space=\ *)
14951 # `set' does not quote correctly, so add quotes: double-quote
14952 # substitution turns \\\\ into \\, and sed turns \\ into \.
14953 sed -n \
14954 "s/'/'\\\\''/g;
14955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14956 ;; #(
14958 # `set' quotes correctly as required by POSIX, so do not add quotes.
14959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14961 esac |
14962 sort
14964 sed '
14965 /^ac_cv_env_/b end
14966 t clear
14967 :clear
14968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14969 t end
14970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14971 :end' >>confcache
14972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14973 if test -w "$cache_file"; then
14974 test "x$cache_file" != "x/dev/null" &&
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14976 $as_echo "$as_me: updating cache $cache_file" >&6;}
14977 cat confcache >$cache_file
14978 else
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14983 rm -f confcache
14985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14986 # Let make expand exec_prefix.
14987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14989 # Transform confdefs.h into DEFS.
14990 # Protect against shell expansion while executing Makefile rules.
14991 # Protect against Makefile macro expansion.
14993 # If the first sed substitution is executed (which looks for macros that
14994 # take arguments), then branch to the quote section. Otherwise,
14995 # look for a macro that doesn't take arguments.
14996 ac_script='
14997 :mline
14998 /\\$/{
15000 s,\\\n,,
15001 b mline
15003 t clear
15004 :clear
15005 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15006 t quote
15007 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15008 t quote
15009 b any
15010 :quote
15011 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15012 s/\[/\\&/g
15013 s/\]/\\&/g
15014 s/\$/$$/g
15016 :any
15019 s/^\n//
15020 s/\n/ /g
15024 DEFS=`sed -n "$ac_script" confdefs.h`
15027 ac_libobjs=
15028 ac_ltlibobjs=
15029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15030 # 1. Remove the extension, and $U if already installed.
15031 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15032 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15033 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15034 # will be set to the directory where LIBOBJS objects are built.
15035 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15036 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15037 done
15038 LIBOBJS=$ac_libobjs
15040 LTLIBOBJS=$ac_ltlibobjs
15044 : ${CONFIG_STATUS=./config.status}
15045 ac_write_fail=0
15046 ac_clean_files_save=$ac_clean_files
15047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15049 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15050 as_write_fail=0
15051 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15052 #! $SHELL
15053 # Generated by $as_me.
15054 # Run this file to recreate the current configuration.
15055 # Compiler output produced by configure, useful for debugging
15056 # configure, is in config.log if it exists.
15058 debug=false
15059 ac_cs_recheck=false
15060 ac_cs_silent=false
15062 SHELL=\${CONFIG_SHELL-$SHELL}
15063 export SHELL
15064 _ASEOF
15065 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15066 ## -------------------- ##
15067 ## M4sh Initialization. ##
15068 ## -------------------- ##
15070 # Be more Bourne compatible
15071 DUALCASE=1; export DUALCASE # for MKS sh
15072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15073 emulate sh
15074 NULLCMD=:
15075 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15076 # is contrary to our usage. Disable this feature.
15077 alias -g '${1+"$@"}'='"$@"'
15078 setopt NO_GLOB_SUBST
15079 else
15080 case `(set -o) 2>/dev/null` in #(
15081 *posix*) :
15082 set -o posix ;; #(
15083 *) :
15085 esac
15089 as_nl='
15091 export as_nl
15092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15096 # Prefer a ksh shell builtin over an external printf program on Solaris,
15097 # but without wasting forks for bash or zsh.
15098 if test -z "$BASH_VERSION$ZSH_VERSION" \
15099 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15100 as_echo='print -r --'
15101 as_echo_n='print -rn --'
15102 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15103 as_echo='printf %s\n'
15104 as_echo_n='printf %s'
15105 else
15106 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15107 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15108 as_echo_n='/usr/ucb/echo -n'
15109 else
15110 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15111 as_echo_n_body='eval
15112 arg=$1;
15113 case $arg in #(
15114 *"$as_nl"*)
15115 expr "X$arg" : "X\\(.*\\)$as_nl";
15116 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15117 esac;
15118 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15120 export as_echo_n_body
15121 as_echo_n='sh -c $as_echo_n_body as_echo'
15123 export as_echo_body
15124 as_echo='sh -c $as_echo_body as_echo'
15127 # The user is always right.
15128 if test "${PATH_SEPARATOR+set}" != set; then
15129 PATH_SEPARATOR=:
15130 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15131 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15132 PATH_SEPARATOR=';'
15137 # IFS
15138 # We need space, tab and new line, in precisely that order. Quoting is
15139 # there to prevent editors from complaining about space-tab.
15140 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15141 # splitting by setting IFS to empty value.)
15142 IFS=" "" $as_nl"
15144 # Find who we are. Look in the path if we contain no directory separator.
15145 case $0 in #((
15146 *[\\/]* ) as_myself=$0 ;;
15147 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15153 done
15154 IFS=$as_save_IFS
15157 esac
15158 # We did not find ourselves, most probably we were run as `sh COMMAND'
15159 # in which case we are not to be found in the path.
15160 if test "x$as_myself" = x; then
15161 as_myself=$0
15163 if test ! -f "$as_myself"; then
15164 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15165 exit 1
15168 # Unset variables that we do not need and which cause bugs (e.g. in
15169 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15170 # suppresses any "Segmentation fault" message there. '((' could
15171 # trigger a bug in pdksh 5.2.14.
15172 for as_var in BASH_ENV ENV MAIL MAILPATH
15173 do eval test x\${$as_var+set} = xset \
15174 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15175 done
15176 PS1='$ '
15177 PS2='> '
15178 PS4='+ '
15180 # NLS nuisances.
15181 LC_ALL=C
15182 export LC_ALL
15183 LANGUAGE=C
15184 export LANGUAGE
15186 # CDPATH.
15187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15190 # as_fn_error ERROR [LINENO LOG_FD]
15191 # ---------------------------------
15192 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15193 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15194 # script with status $?, using 1 if that was 0.
15195 as_fn_error ()
15197 as_status=$?; test $as_status -eq 0 && as_status=1
15198 if test "$3"; then
15199 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15200 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15202 $as_echo "$as_me: error: $1" >&2
15203 as_fn_exit $as_status
15204 } # as_fn_error
15207 # as_fn_set_status STATUS
15208 # -----------------------
15209 # Set $? to STATUS, without forking.
15210 as_fn_set_status ()
15212 return $1
15213 } # as_fn_set_status
15215 # as_fn_exit STATUS
15216 # -----------------
15217 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15218 as_fn_exit ()
15220 set +e
15221 as_fn_set_status $1
15222 exit $1
15223 } # as_fn_exit
15225 # as_fn_unset VAR
15226 # ---------------
15227 # Portably unset VAR.
15228 as_fn_unset ()
15230 { eval $1=; unset $1;}
15232 as_unset=as_fn_unset
15233 # as_fn_append VAR VALUE
15234 # ----------------------
15235 # Append the text in VALUE to the end of the definition contained in VAR. Take
15236 # advantage of any shell optimizations that allow amortized linear growth over
15237 # repeated appends, instead of the typical quadratic growth present in naive
15238 # implementations.
15239 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15240 eval 'as_fn_append ()
15242 eval $1+=\$2
15244 else
15245 as_fn_append ()
15247 eval $1=\$$1\$2
15249 fi # as_fn_append
15251 # as_fn_arith ARG...
15252 # ------------------
15253 # Perform arithmetic evaluation on the ARGs, and store the result in the
15254 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15255 # must be portable across $(()) and expr.
15256 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15257 eval 'as_fn_arith ()
15259 as_val=$(( $* ))
15261 else
15262 as_fn_arith ()
15264 as_val=`expr "$@" || test $? -eq 1`
15266 fi # as_fn_arith
15269 if expr a : '\(a\)' >/dev/null 2>&1 &&
15270 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15271 as_expr=expr
15272 else
15273 as_expr=false
15276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15277 as_basename=basename
15278 else
15279 as_basename=false
15282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15283 as_dirname=dirname
15284 else
15285 as_dirname=false
15288 as_me=`$as_basename -- "$0" ||
15289 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15290 X"$0" : 'X\(//\)$' \| \
15291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15292 $as_echo X/"$0" |
15293 sed '/^.*\/\([^/][^/]*\)\/*$/{
15294 s//\1/
15297 /^X\/\(\/\/\)$/{
15298 s//\1/
15301 /^X\/\(\/\).*/{
15302 s//\1/
15305 s/.*/./; q'`
15307 # Avoid depending upon Character Ranges.
15308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15311 as_cr_digits='0123456789'
15312 as_cr_alnum=$as_cr_Letters$as_cr_digits
15314 ECHO_C= ECHO_N= ECHO_T=
15315 case `echo -n x` in #(((((
15316 -n*)
15317 case `echo 'xy\c'` in
15318 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15319 xy) ECHO_C='\c';;
15320 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15321 ECHO_T=' ';;
15322 esac;;
15324 ECHO_N='-n';;
15325 esac
15327 rm -f conf$$ conf$$.exe conf$$.file
15328 if test -d conf$$.dir; then
15329 rm -f conf$$.dir/conf$$.file
15330 else
15331 rm -f conf$$.dir
15332 mkdir conf$$.dir 2>/dev/null
15334 if (echo >conf$$.file) 2>/dev/null; then
15335 if ln -s conf$$.file conf$$ 2>/dev/null; then
15336 as_ln_s='ln -s'
15337 # ... but there are two gotchas:
15338 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15339 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15340 # In both cases, we have to default to `cp -p'.
15341 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15342 as_ln_s='cp -p'
15343 elif ln conf$$.file conf$$ 2>/dev/null; then
15344 as_ln_s=ln
15345 else
15346 as_ln_s='cp -p'
15348 else
15349 as_ln_s='cp -p'
15351 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15352 rmdir conf$$.dir 2>/dev/null
15355 # as_fn_mkdir_p
15356 # -------------
15357 # Create "$as_dir" as a directory, including parents if necessary.
15358 as_fn_mkdir_p ()
15361 case $as_dir in #(
15362 -*) as_dir=./$as_dir;;
15363 esac
15364 test -d "$as_dir" || eval $as_mkdir_p || {
15365 as_dirs=
15366 while :; do
15367 case $as_dir in #(
15368 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15369 *) as_qdir=$as_dir;;
15370 esac
15371 as_dirs="'$as_qdir' $as_dirs"
15372 as_dir=`$as_dirname -- "$as_dir" ||
15373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15374 X"$as_dir" : 'X\(//\)[^/]' \| \
15375 X"$as_dir" : 'X\(//\)$' \| \
15376 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15377 $as_echo X"$as_dir" |
15378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15379 s//\1/
15382 /^X\(\/\/\)[^/].*/{
15383 s//\1/
15386 /^X\(\/\/\)$/{
15387 s//\1/
15390 /^X\(\/\).*/{
15391 s//\1/
15394 s/.*/./; q'`
15395 test -d "$as_dir" && break
15396 done
15397 test -z "$as_dirs" || eval "mkdir $as_dirs"
15398 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15401 } # as_fn_mkdir_p
15402 if mkdir -p . 2>/dev/null; then
15403 as_mkdir_p='mkdir -p "$as_dir"'
15404 else
15405 test -d ./-p && rmdir ./-p
15406 as_mkdir_p=false
15409 if test -x / >/dev/null 2>&1; then
15410 as_test_x='test -x'
15411 else
15412 if ls -dL / >/dev/null 2>&1; then
15413 as_ls_L_option=L
15414 else
15415 as_ls_L_option=
15417 as_test_x='
15418 eval sh -c '\''
15419 if test -d "$1"; then
15420 test -d "$1/.";
15421 else
15422 case $1 in #(
15423 -*)set "./$1";;
15424 esac;
15425 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15426 ???[sx]*):;;*)false;;esac;fi
15427 '\'' sh
15430 as_executable_p=$as_test_x
15432 # Sed expression to map a string onto a valid CPP name.
15433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15435 # Sed expression to map a string onto a valid variable name.
15436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15439 exec 6>&1
15440 ## ----------------------------------- ##
15441 ## Main body of $CONFIG_STATUS script. ##
15442 ## ----------------------------------- ##
15443 _ASEOF
15444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447 # Save the log message, to keep $0 and so on meaningful, and to
15448 # report actual input values of CONFIG_FILES etc. instead of their
15449 # values after options handling.
15450 ac_log="
15451 This file was extended by $as_me, which was
15452 generated by GNU Autoconf 2.64. Invocation command line was
15454 CONFIG_FILES = $CONFIG_FILES
15455 CONFIG_HEADERS = $CONFIG_HEADERS
15456 CONFIG_LINKS = $CONFIG_LINKS
15457 CONFIG_COMMANDS = $CONFIG_COMMANDS
15458 $ $0 $@
15460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15463 _ACEOF
15465 case $ac_config_files in *"
15466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15467 esac
15471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15472 # Files that config.status was made for.
15473 config_files="$ac_config_files"
15475 _ACEOF
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 ac_cs_usage="\
15479 \`$as_me' instantiates files and other configuration actions
15480 from templates according to the current configuration. Unless the files
15481 and actions are specified as TAGs, all are instantiated by default.
15483 Usage: $0 [OPTION]... [TAG]...
15485 -h, --help print this help, then exit
15486 -V, --version print version number and configuration settings, then exit
15487 -q, --quiet, --silent
15488 do not print progress messages
15489 -d, --debug don't remove temporary files
15490 --recheck update $as_me by reconfiguring in the same conditions
15491 --file=FILE[:TEMPLATE]
15492 instantiate the configuration file FILE
15494 Configuration files:
15495 $config_files
15497 Report bugs to the package provider."
15499 _ACEOF
15500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15501 ac_cs_version="\\
15502 config.status
15503 configured by $0, generated by GNU Autoconf 2.64,
15504 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15506 Copyright (C) 2009 Free Software Foundation, Inc.
15507 This config.status script is free software; the Free Software Foundation
15508 gives unlimited permission to copy, distribute and modify it."
15510 ac_pwd='$ac_pwd'
15511 srcdir='$srcdir'
15512 INSTALL='$INSTALL'
15513 AWK='$AWK'
15514 test -n "\$AWK" || AWK=awk
15515 _ACEOF
15517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15518 # The default lists apply if the user does not specify any file.
15519 ac_need_defaults=:
15520 while test $# != 0
15522 case $1 in
15523 --*=*)
15524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15526 ac_shift=:
15529 ac_option=$1
15530 ac_optarg=$2
15531 ac_shift=shift
15533 esac
15535 case $ac_option in
15536 # Handling of the options.
15537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15538 ac_cs_recheck=: ;;
15539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15540 $as_echo "$ac_cs_version"; exit ;;
15541 --debug | --debu | --deb | --de | --d | -d )
15542 debug=: ;;
15543 --file | --fil | --fi | --f )
15544 $ac_shift
15545 case $ac_optarg in
15546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15547 esac
15548 as_fn_append CONFIG_FILES " '$ac_optarg'"
15549 ac_need_defaults=false;;
15550 --he | --h | --help | --hel | -h )
15551 $as_echo "$ac_cs_usage"; exit ;;
15552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15554 ac_cs_silent=: ;;
15556 # This is an error.
15557 -*) as_fn_error "unrecognized option: \`$1'
15558 Try \`$0 --help' for more information." ;;
15560 *) as_fn_append ac_config_targets " $1"
15561 ac_need_defaults=false ;;
15563 esac
15564 shift
15565 done
15567 ac_configure_extra_args=
15569 if $ac_cs_silent; then
15570 exec 6>/dev/null
15571 ac_configure_extra_args="$ac_configure_extra_args --silent"
15574 _ACEOF
15575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576 if \$ac_cs_recheck; then
15577 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15578 shift
15579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15580 CONFIG_SHELL='$SHELL'
15581 export CONFIG_SHELL
15582 exec "\$@"
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 exec 5>>config.log
15589 echo
15590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15591 ## Running $as_me. ##
15592 _ASBOX
15593 $as_echo "$ac_log"
15594 } >&5
15596 _ACEOF
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15599 # INIT-COMMANDS
15601 extrasub_build="$extrasub_build"
15602 extrasub_host="$extrasub_host"
15603 extrasub_target="$extrasub_target"
15605 _ACEOF
15607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15609 # Handling of arguments.
15610 for ac_config_target in $ac_config_targets
15612 case $ac_config_target in
15613 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15615 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15616 esac
15617 done
15620 # If the user did not use the arguments to specify the items to instantiate,
15621 # then the envvar interface is used. Set only those that are not.
15622 # We use the long form for the default assignment because of an extremely
15623 # bizarre bug on SunOS 4.1.3.
15624 if $ac_need_defaults; then
15625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15628 # Have a temporary directory for convenience. Make it in the build tree
15629 # simply because there is no reason against having it here, and in addition,
15630 # creating and moving files from /tmp can sometimes cause problems.
15631 # Hook for its removal unless debugging.
15632 # Note that there is a small window in which the directory will not be cleaned:
15633 # after its creation but before its name has been assigned to `$tmp'.
15634 $debug ||
15636 tmp=
15637 trap 'exit_status=$?
15638 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15640 trap 'as_fn_exit 1' 1 2 13 15
15642 # Create a (secure) tmp directory for tmp files.
15645 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15646 test -n "$tmp" && test -d "$tmp"
15647 } ||
15649 tmp=./conf$$-$RANDOM
15650 (umask 077 && mkdir "$tmp")
15651 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15653 # Set up the scripts for CONFIG_FILES section.
15654 # No need to generate them if there are no CONFIG_FILES.
15655 # This happens for instance with `./config.status config.h'.
15656 if test -n "$CONFIG_FILES"; then
15658 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15659 ac_cs_awk_getline=:
15660 ac_cs_awk_pipe_init=
15661 ac_cs_awk_read_file='
15662 while ((getline aline < (F[key])) > 0)
15663 print(aline)
15664 close(F[key])'
15665 ac_cs_awk_pipe_fini=
15666 else
15667 ac_cs_awk_getline=false
15668 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15669 ac_cs_awk_read_file='
15670 print "|#_!!_#|"
15671 print "cat " F[key] " &&"
15672 '$ac_cs_awk_pipe_init
15673 # The final `:' finishes the AND list.
15674 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15676 ac_cr=`echo X | tr X '\015'`
15677 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15678 # But we know of no other shell where ac_cr would be empty at this
15679 # point, so we can use a bashism as a fallback.
15680 if test "x$ac_cr" = x; then
15681 eval ac_cr=\$\'\\r\'
15683 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15684 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15685 ac_cs_awk_cr='\r'
15686 else
15687 ac_cs_awk_cr=$ac_cr
15690 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15691 _ACEOF
15693 # Create commands to substitute file output variables.
15695 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15696 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15697 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15698 echo "_ACAWK" &&
15699 echo "_ACEOF"
15700 } >conf$$files.sh &&
15701 . ./conf$$files.sh ||
15702 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15703 rm -f conf$$files.sh
15706 echo "cat >conf$$subs.awk <<_ACEOF" &&
15707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15708 echo "_ACEOF"
15709 } >conf$$subs.sh ||
15710 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15712 ac_delim='%!_!# '
15713 for ac_last_try in false false false false false :; do
15714 . ./conf$$subs.sh ||
15715 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15718 if test $ac_delim_n = $ac_delim_num; then
15719 break
15720 elif $ac_last_try; then
15721 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15722 else
15723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15725 done
15726 rm -f conf$$subs.sh
15728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15730 _ACEOF
15731 sed -n '
15733 s/^/S["/; s/!.*/"]=/
15736 s/^[^!]*!//
15737 :repl
15738 t repl
15739 s/'"$ac_delim"'$//
15740 t delim
15743 s/\(.\{148\}\).*/\1/
15744 t more1
15745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15748 b repl
15749 :more1
15750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15753 s/.\{148\}//
15754 t nl
15755 :delim
15757 s/\(.\{148\}\).*/\1/
15758 t more2
15759 s/["\\]/\\&/g; s/^/"/; s/$/"/
15762 :more2
15763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15766 s/.\{148\}//
15767 t delim
15768 ' <conf$$subs.awk | sed '
15769 /^[^""]/{
15771 s/\n//
15773 ' >>$CONFIG_STATUS || ac_write_fail=1
15774 rm -f conf$$subs.awk
15775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776 _ACAWK
15777 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15778 for (key in S) S_is_set[key] = 1
15779 FS = "\a"
15780 \$ac_cs_awk_pipe_init
15783 line = $ 0
15784 nfields = split(line, field, "@")
15785 substed = 0
15786 len = length(field[1])
15787 for (i = 2; i < nfields; i++) {
15788 key = field[i]
15789 keylen = length(key)
15790 if (S_is_set[key]) {
15791 value = S[key]
15792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15793 len += length(value) + length(field[++i])
15794 substed = 1
15795 } else
15796 len += 1 + keylen
15798 if (nfields == 3 && !substed) {
15799 key = field[2]
15800 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15801 \$ac_cs_awk_read_file
15802 next
15805 print line
15807 \$ac_cs_awk_pipe_fini
15808 _ACAWK
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15813 else
15815 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15816 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15817 _ACEOF
15819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15821 # trailing colons and then remove the whole line if VPATH becomes empty
15822 # (actually we leave an empty line to preserve line numbers).
15823 if test "x$srcdir" = x.; then
15824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15825 s/:*\$(srcdir):*/:/
15826 s/:*\${srcdir}:*/:/
15827 s/:*@srcdir@:*/:/
15828 s/^\([^=]*=[ ]*\):*/\1/
15829 s/:*$//
15830 s/^[^=]*=[ ]*$//
15834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835 fi # test -n "$CONFIG_FILES"
15838 eval set X " :F $CONFIG_FILES "
15839 shift
15840 for ac_tag
15842 case $ac_tag in
15843 :[FHLC]) ac_mode=$ac_tag; continue;;
15844 esac
15845 case $ac_mode$ac_tag in
15846 :[FHL]*:*);;
15847 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15848 :[FH]-) ac_tag=-:-;;
15849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15850 esac
15851 ac_save_IFS=$IFS
15852 IFS=:
15853 set x $ac_tag
15854 IFS=$ac_save_IFS
15855 shift
15856 ac_file=$1
15857 shift
15859 case $ac_mode in
15860 :L) ac_source=$1;;
15861 :[FH])
15862 ac_file_inputs=
15863 for ac_f
15865 case $ac_f in
15866 -) ac_f="$tmp/stdin";;
15867 *) # Look for the file first in the build tree, then in the source tree
15868 # (if the path is not absolute). The absolute path cannot be DOS-style,
15869 # because $ac_f cannot contain `:'.
15870 test -f "$ac_f" ||
15871 case $ac_f in
15872 [\\/$]*) false;;
15873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15874 esac ||
15875 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15876 esac
15877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15878 as_fn_append ac_file_inputs " '$ac_f'"
15879 done
15881 # Let's still pretend it is `configure' which instantiates (i.e., don't
15882 # use $as_me), people would be surprised to read:
15883 # /* config.h. Generated by config.status. */
15884 configure_input='Generated from '`
15885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15886 `' by configure.'
15887 if test x"$ac_file" != x-; then
15888 configure_input="$ac_file. $configure_input"
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15890 $as_echo "$as_me: creating $ac_file" >&6;}
15892 # Neutralize special characters interpreted by sed in replacement strings.
15893 case $configure_input in #(
15894 *\&* | *\|* | *\\* )
15895 ac_sed_conf_input=`$as_echo "$configure_input" |
15896 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15897 *) ac_sed_conf_input=$configure_input;;
15898 esac
15900 case $ac_tag in
15901 *:-:* | *:-) cat >"$tmp/stdin" \
15902 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15903 esac
15905 esac
15907 ac_dir=`$as_dirname -- "$ac_file" ||
15908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15909 X"$ac_file" : 'X\(//\)[^/]' \| \
15910 X"$ac_file" : 'X\(//\)$' \| \
15911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15912 $as_echo X"$ac_file" |
15913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15914 s//\1/
15917 /^X\(\/\/\)[^/].*/{
15918 s//\1/
15921 /^X\(\/\/\)$/{
15922 s//\1/
15925 /^X\(\/\).*/{
15926 s//\1/
15929 s/.*/./; q'`
15930 as_dir="$ac_dir"; as_fn_mkdir_p
15931 ac_builddir=.
15933 case "$ac_dir" in
15934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15937 # A ".." for each directory in $ac_dir_suffix.
15938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15939 case $ac_top_builddir_sub in
15940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15942 esac ;;
15943 esac
15944 ac_abs_top_builddir=$ac_pwd
15945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15946 # for backward compatibility:
15947 ac_top_builddir=$ac_top_build_prefix
15949 case $srcdir in
15950 .) # We are building in place.
15951 ac_srcdir=.
15952 ac_top_srcdir=$ac_top_builddir_sub
15953 ac_abs_top_srcdir=$ac_pwd ;;
15954 [\\/]* | ?:[\\/]* ) # Absolute name.
15955 ac_srcdir=$srcdir$ac_dir_suffix;
15956 ac_top_srcdir=$srcdir
15957 ac_abs_top_srcdir=$srcdir ;;
15958 *) # Relative name.
15959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15960 ac_top_srcdir=$ac_top_build_prefix$srcdir
15961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15962 esac
15963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15966 case $ac_mode in
15969 # CONFIG_FILE
15972 case $INSTALL in
15973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15975 esac
15976 _ACEOF
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 # If the template does not know about datarootdir, expand it.
15980 # FIXME: This hack should be removed a few years after 2.60.
15981 ac_datarootdir_hack=; ac_datarootdir_seen=
15982 ac_sed_dataroot='
15983 /datarootdir/ {
15987 /@datadir@/p
15988 /@docdir@/p
15989 /@infodir@/p
15990 /@localedir@/p
15991 /@mandir@/p'
15992 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15993 *datarootdir*) ac_datarootdir_seen=yes;;
15994 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15996 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15997 _ACEOF
15998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999 ac_datarootdir_hack='
16000 s&@datadir@&$datadir&g
16001 s&@docdir@&$docdir&g
16002 s&@infodir@&$infodir&g
16003 s&@localedir@&$localedir&g
16004 s&@mandir@&$mandir&g
16005 s&\\\${datarootdir}&$datarootdir&g' ;;
16006 esac
16007 _ACEOF
16009 # Neutralize VPATH when `$srcdir' = `.'.
16010 # Shell code in configure.ac might set extrasub.
16011 # FIXME: do we really want to maintain this feature?
16012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16013 ac_sed_extra="$ac_vpsub
16014 $extrasub
16015 _ACEOF
16016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16019 s|@configure_input@|$ac_sed_conf_input|;t t
16020 s&@top_builddir@&$ac_top_builddir_sub&;t t
16021 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16022 s&@srcdir@&$ac_srcdir&;t t
16023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16024 s&@top_srcdir@&$ac_top_srcdir&;t t
16025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16026 s&@builddir@&$ac_builddir&;t t
16027 s&@abs_builddir@&$ac_abs_builddir&;t t
16028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16029 s&@INSTALL@&$ac_INSTALL&;t t
16030 $ac_datarootdir_hack
16032 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16033 if $ac_cs_awk_getline; then
16034 $AWK -f "$tmp/subs.awk"
16035 else
16036 $AWK -f "$tmp/subs.awk" | $SHELL
16037 fi >$tmp/out \
16038 || as_fn_error "could not create $ac_file" "$LINENO" 5
16040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16041 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16044 which seems to be undefined. Please make sure it is defined." >&5
16045 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16046 which seems to be undefined. Please make sure it is defined." >&2;}
16048 rm -f "$tmp/stdin"
16049 case $ac_file in
16050 -) cat "$tmp/out" && rm -f "$tmp/out";;
16051 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16052 esac \
16053 || as_fn_error "could not create $ac_file" "$LINENO" 5
16058 esac
16061 case $ac_file$ac_mode in
16062 "Makefile":F) sed "$extrasub_build" Makefile |
16063 sed "$extrasub_host" |
16064 sed "$extrasub_target" > mf$$
16065 mv -f mf$$ Makefile ;;
16067 esac
16068 done # for ac_tag
16071 as_fn_exit 0
16072 _ACEOF
16073 ac_clean_files=$ac_clean_files_save
16075 test $ac_write_fail = 0 ||
16076 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16079 # configure is writing to config.log, and then calls config.status.
16080 # config.status does its own redirection, appending to config.log.
16081 # Unfortunately, on DOS this fails, as config.log is still kept open
16082 # by configure, so config.status won't be able to write to it; its
16083 # output is simply discarded. So we exec the FD to /dev/null,
16084 # effectively closing config.log, so it can be properly (re)opened and
16085 # appended to by config.status. When coming back to configure, we
16086 # need to make the FD available again.
16087 if test "$no_create" != yes; then
16088 ac_cs_success=:
16089 ac_config_status_args=
16090 test "$silent" = yes &&
16091 ac_config_status_args="$ac_config_status_args --quiet"
16092 exec 5>/dev/null
16093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16094 exec 5>>config.log
16095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16096 # would make configure fail if this is the last instruction.
16097 $ac_cs_success || as_fn_exit $?
16099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16101 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}