PR c++/54021
[official-gcc.git] / configure
blobf4be931fe8beb94d45ac11c3892f43f8dbd15aa8
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 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_libs
654 stage1_ldflags
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
681 LN_S
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 target_noncanonical
695 host_noncanonical
696 build_noncanonical
697 build_os
698 build_vendor
699 build_cpu
700 build
701 TOPLEVEL_CONFIGURE_ARGUMENTS
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files='serialization_dependencies
741 host_makefile_frag
742 target_makefile_frag
743 alphaieee_frag
744 ospace_frag'
745 ac_user_opts='
746 enable_option_checking
747 with_build_libsubdir
748 enable_gold
749 enable_ld
750 enable_libquadmath
751 enable_libquadmath_support
752 enable_libada
753 enable_libssp
754 enable_static_libjava
755 enable_bootstrap
756 enable_build_with_cxx
757 enable_build_poststage1_with_cxx
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_ldflags
771 with_stage1_libs
772 with_boot_libs
773 with_boot_ldflags
774 with_isl
775 with_isl_include
776 with_isl_lib
777 enable_isl_version_check
778 with_cloog
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_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
803 CXXFLAGS
805 build_configargs
806 host_configargs
807 target_configargs
810 DLLTOOL
812 LIPO
814 RANLIB
815 STRIP
816 WINDRES
817 WINDMC
818 OBJCOPY
819 OBJDUMP
820 READELF
821 CC_FOR_TARGET
822 CXX_FOR_TARGET
823 GCC_FOR_TARGET
824 GCJ_FOR_TARGET
825 GFORTRAN_FOR_TARGET
826 GOC_FOR_TARGET
827 AR_FOR_TARGET
828 AS_FOR_TARGET
829 DLLTOOL_FOR_TARGET
830 LD_FOR_TARGET
831 LIPO_FOR_TARGET
832 NM_FOR_TARGET
833 OBJDUMP_FOR_TARGET
834 RANLIB_FOR_TARGET
835 READELF_FOR_TARGET
836 STRIP_FOR_TARGET
837 WINDRES_FOR_TARGET
838 WINDMC_FOR_TARGET'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1370 esac
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453 _ACEOF
1456 if test -n "$ac_init_help"; then
1458 cat <<\_ACEOF
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --enable-build-with-cxx build with C++ compiler instead of C compiler
1475 --enable-build-poststage1-with-cxx
1476 build stages 2 and 3 with C++, not C
1477 --disable-isl-version-check
1478 disable check for ISL version
1479 --disable-cloog-version-check
1480 disable check for CLooG version
1481 --enable-lto enable link time optimization support
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1486 Objective-C runtime
1487 --enable-serial-[{host,target,build}-]configure
1488 force sequential configuration of sub-packages for
1489 the host, target or build machine, or all
1490 sub-packages
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
1494 --enable-stage1-checking[=all]
1495 choose additional checking for stage1 of the
1496 compiler
1497 --enable-werror enable -Werror in bootstrap stage2 and later
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-build-libsubdir=DIR Directory where to find libraries for build system
1503 --with-mpc=PATH specify prefix directory for installed MPC package.
1504 Equivalent to --with-mpc-include=PATH/include plus
1505 --with-mpc-lib=PATH/lib
1506 --with-mpc-include=PATH specify directory for installed MPC include files
1507 --with-mpc-lib=PATH specify directory for the installed MPC library
1508 --with-mpfr-dir=PATH this option has been REMOVED
1509 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1510 Equivalent to --with-mpfr-include=PATH/include plus
1511 --with-mpfr-lib=PATH/lib
1512 --with-mpfr-include=PATH
1513 specify directory for installed MPFR include files
1514 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1515 --with-gmp-dir=PATH this option has been REMOVED
1516 --with-gmp=PATH specify prefix directory for the installed GMP
1517 package. Equivalent to
1518 --with-gmp-include=PATH/include plus
1519 --with-gmp-lib=PATH/lib
1520 --with-gmp-include=PATH specify directory for installed GMP include files
1521 --with-gmp-lib=PATH specify directory for the installed GMP library
1522 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1523 linking with PPL
1524 --with-stage1-ldflags=FLAGS
1525 linker flags for stage1
1526 --with-stage1-libs=LIBS libraries for stage1
1527 --with-boot-libs=LIBS libraries for stage2 and later
1528 --with-boot-ldflags=FLAGS
1529 linker flags for stage2 and later
1530 --with-isl=PATH Specify prefix directory for the installed ISL
1531 package. Equivalent to
1532 --with-isl-include=PATH/include plus
1533 --with-isl-lib=PATH/lib
1534 --with-isl-include=PATH Specify directory for installed ISL include files
1535 --with-isl-lib=PATH Specify the directory for the installed ISL library
1536 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1537 package. Equivalent to
1538 --with-cloog-include=PATH/include plus
1539 --with-cloog-lib=PATH/lib
1540 --with-cloog-include=PATH
1541 Specify directory for installed CLooG include files
1542 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1543 library
1544 --with-build-sysroot=SYSROOT
1545 use sysroot as the system root during the build
1546 --with-debug-prefix-map='A=B C=D ...'
1547 map A to B, C to D ... in debug information
1548 --with-build-config='NAME NAME2...'
1549 use config/NAME.mk build configuration
1550 --with-build-time-tools=PATH
1551 use given path to find target tools during the build
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 build_configargs
1564 additional configure arguments for build directories
1565 host_configargs
1566 additional configure arguments for host directories
1567 target_configargs
1568 additional configure arguments for target directories
1569 AR AR for the host
1570 AS AS for the host
1571 DLLTOOL DLLTOOL for the host
1572 LD LD for the host
1573 LIPO LIPO for the host
1574 NM NM for the host
1575 RANLIB RANLIB for the host
1576 STRIP STRIP for the host
1577 WINDRES WINDRES for the host
1578 WINDMC WINDMC for the host
1579 OBJCOPY OBJCOPY for the host
1580 OBJDUMP OBJDUMP for the host
1581 READELF READELF for the host
1582 CC_FOR_TARGET
1583 CC for the target
1584 CXX_FOR_TARGET
1585 CXX for the target
1586 GCC_FOR_TARGET
1587 GCC for the target
1588 GCJ_FOR_TARGET
1589 GCJ for the target
1590 GFORTRAN_FOR_TARGET
1591 GFORTRAN for the target
1592 GOC_FOR_TARGET
1593 GOC for the target
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
1610 READELF_FOR_TARGET
1611 READELF for the target
1612 STRIP_FOR_TARGET
1613 STRIP for the target
1614 WINDRES_FOR_TARGET
1615 WINDRES for the target
1616 WINDMC_FOR_TARGET
1617 WINDMC for the target
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to the package provider.
1623 _ACEOF
1624 ac_status=$?
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 configure
1686 generated by GNU Autoconf 2.64
1688 Copyright (C) 2009 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1691 _ACEOF
1692 exit
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=1
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_cxx_try_compile LINENO
1738 # ----------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_cxx_try_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_cxx_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1773 } # ac_fn_cxx_try_compile
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 $as_test_x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1819 } # ac_fn_c_try_link
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_c_try_run
1862 cat >config.log <<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by $as_me, which was
1867 generated by GNU Autoconf 2.64. Invocation command line was
1869 $ $0 $@
1871 _ACEOF
1872 exec 5>>config.log
1874 cat <<_ASUNAME
1875 ## --------- ##
1876 ## Platform. ##
1877 ## --------- ##
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 _ASUNAME
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 $as_echo "PATH: $as_dir"
1904 done
1905 IFS=$as_save_IFS
1907 } >&5
1909 cat >&5 <<_ACEOF
1912 ## ----------- ##
1913 ## Core tests. ##
1914 ## ----------- ##
1916 _ACEOF
1919 # Keep a trace of the command line.
1920 # Strip out --no-create and --no-recursion so they do not pile up.
1921 # Strip out --silent because we don't want to record it for future runs.
1922 # Also quote any args containing shell meta-characters.
1923 # Make two passes to allow for proper duplicate-argument suppression.
1924 ac_configure_args=
1925 ac_configure_args0=
1926 ac_configure_args1=
1927 ac_must_keep_next=false
1928 for ac_pass in 1 2
1930 for ac_arg
1932 case $ac_arg in
1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935 | -silent | --silent | --silen | --sile | --sil)
1936 continue ;;
1937 *\'*)
1938 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 esac
1940 case $ac_pass in
1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 as_fn_append ac_configure_args1 " '$ac_arg'"
1944 if test $ac_must_keep_next = true; then
1945 ac_must_keep_next=false # Got value, back to normal.
1946 else
1947 case $ac_arg in
1948 *=* | --config-cache | -C | -disable-* | --disable-* \
1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951 | -with-* | --with-* | -without-* | --without-* | --x)
1952 case "$ac_configure_args0 " in
1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 esac
1956 -* ) ac_must_keep_next=true ;;
1957 esac
1959 as_fn_append ac_configure_args " '$ac_arg'"
1961 esac
1962 done
1963 done
1964 { ac_configure_args0=; unset ac_configure_args0;}
1965 { ac_configure_args1=; unset ac_configure_args1;}
1967 # When interrupted or exit'd, cleanup temporary files, and complete
1968 # config.log. We remove comments because anyway the quotes in there
1969 # would cause problems or look ugly.
1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972 trap 'exit_status=$?
1973 # Save into config.log some information that might help in debugging.
1975 echo
1977 cat <<\_ASBOX
1978 ## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##
1981 _ASBOX
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 esac |
2011 sort
2013 echo
2015 cat <<\_ASBOX
2016 ## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##
2019 _ASBOX
2020 echo
2021 for ac_var in $ac_subst_vars
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2031 if test -n "$ac_subst_files"; then
2032 cat <<\_ASBOX
2033 ## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 cat <<\_ASBOX
2051 ## ----------- ##
2052 ## confdefs.h. ##
2053 ## ----------- ##
2054 _ASBOX
2055 echo
2056 cat confdefs.h
2057 echo
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109 ac_site_file1=$CONFIG_SITE
2110 elif test "x$prefix" != xNONE; then
2111 ac_site_file1=$prefix/share/config.site
2112 ac_site_file2=$prefix/etc/config.site
2113 else
2114 ac_site_file1=$ac_default_prefix/share/config.site
2115 ac_site_file2=$ac_default_prefix/etc/config.site
2117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 test "x$ac_site_file" = xNONE && continue
2120 if test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file"
2126 done
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special
2130 # files actually), so we avoid doing that.
2131 if test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 progname=$0
2221 # if PWD already has a value, it is probably wrong.
2222 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2224 # Export original configure arguments for use by sub-configures.
2225 # Quote arguments with shell meta charatcers.
2226 TOPLEVEL_CONFIGURE_ARGUMENTS=
2227 set -- "$progname" "$@"
2228 for ac_arg
2230 case "$ac_arg" in
2231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2232 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2233 # if the argument is of the form -foo=baz, quote the baz part only
2234 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2235 *) ;;
2236 esac
2237 # Add the quoted argument to the list.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2239 done
2240 if test "$silent" = yes; then
2241 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2243 # Remove the initial space we just introduced and, as these will be
2244 # expanded by make, quote '$'.
2245 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2248 # Find the build, host, and target systems.
2249 ac_aux_dir=
2250 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 for ac_t in install-sh install.sh shtool; do
2252 if test -f "$ac_dir/$ac_t"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/$ac_t -c"
2255 break 2
2257 done
2258 done
2259 if test -z "$ac_aux_dir"; then
2260 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2263 # These three variables are undocumented and unsupported,
2264 # and are intended to be withdrawn in a future Autoconf release.
2265 # They can cause serious problems if a builder's source tree is in a directory
2266 # whose full name contains unusual characters.
2267 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2268 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2269 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272 # Make sure we can run config.sub.
2273 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2274 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2277 $as_echo_n "checking build system type... " >&6; }
2278 if test "${ac_cv_build+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 ac_build_alias=$build_alias
2282 test "x$ac_build_alias" = x &&
2283 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2284 test "x$ac_build_alias" = x &&
2285 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2286 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2287 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2291 $as_echo "$ac_cv_build" >&6; }
2292 case $ac_cv_build in
2293 *-*-*) ;;
2294 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2295 esac
2296 build=$ac_cv_build
2297 ac_save_IFS=$IFS; IFS='-'
2298 set x $ac_cv_build
2299 shift
2300 build_cpu=$1
2301 build_vendor=$2
2302 shift; shift
2303 # Remember, the first character of IFS is used to create $*,
2304 # except with old shells:
2305 build_os=$*
2306 IFS=$ac_save_IFS
2307 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2310 case ${build_alias} in
2311 "") build_noncanonical=${build} ;;
2312 *) build_noncanonical=${build_alias} ;;
2313 esac
2317 case ${host_alias} in
2318 "") host_noncanonical=${build_noncanonical} ;;
2319 *) host_noncanonical=${host_alias} ;;
2320 esac
2324 case ${target_alias} in
2325 "") target_noncanonical=${host_noncanonical} ;;
2326 *) target_noncanonical=${target_alias} ;;
2327 esac
2332 test "$host_noncanonical" = "$target_noncanonical" &&
2333 test "$program_prefix$program_suffix$program_transform_name" = \
2334 NONENONEs,x,x, &&
2335 program_transform_name=s,y,y,
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2338 $as_echo_n "checking host system type... " >&6; }
2339 if test "${ac_cv_host+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test "x$host_alias" = x; then
2343 ac_cv_host=$ac_cv_build
2344 else
2345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2346 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2351 $as_echo "$ac_cv_host" >&6; }
2352 case $ac_cv_host in
2353 *-*-*) ;;
2354 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2355 esac
2356 host=$ac_cv_host
2357 ac_save_IFS=$IFS; IFS='-'
2358 set x $ac_cv_host
2359 shift
2360 host_cpu=$1
2361 host_vendor=$2
2362 shift; shift
2363 # Remember, the first character of IFS is used to create $*,
2364 # except with old shells:
2365 host_os=$*
2366 IFS=$ac_save_IFS
2367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2371 $as_echo_n "checking target system type... " >&6; }
2372 if test "${ac_cv_target+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 if test "x$target_alias" = x; then
2376 ac_cv_target=$ac_cv_host
2377 else
2378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2379 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2384 $as_echo "$ac_cv_target" >&6; }
2385 case $ac_cv_target in
2386 *-*-*) ;;
2387 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2388 esac
2389 target=$ac_cv_target
2390 ac_save_IFS=$IFS; IFS='-'
2391 set x $ac_cv_target
2392 shift
2393 target_cpu=$1
2394 target_vendor=$2
2395 shift; shift
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2398 target_os=$*
2399 IFS=$ac_save_IFS
2400 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2403 # The aliases save the names the user supplied, while $host etc.
2404 # will get canonicalized.
2405 test -n "$target_alias" &&
2406 test "$program_prefix$program_suffix$program_transform_name" = \
2407 NONENONEs,x,x, &&
2408 program_prefix=${target_alias}-
2410 test "$program_prefix" != NONE &&
2411 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2412 # Use a double $ so make ignores it.
2413 test "$program_suffix" != NONE &&
2414 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2415 # Double any \ or $.
2416 # By default was `s,x,x', remove it if useless.
2417 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2418 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2422 # Get 'install' or 'install-sh' and its variants.
2423 # Find a good install program. We prefer a C program (faster),
2424 # so one script is as good as another. But avoid the broken or
2425 # incompatible versions:
2426 # SysV /etc/install, /usr/sbin/install
2427 # SunOS /usr/etc/install
2428 # IRIX /sbin/install
2429 # AIX /bin/install
2430 # AmigaOS /C/install, which installs bootblocks on floppy discs
2431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2434 # OS/2's system install, which has a completely different semantic
2435 # ./install, which can be erroneously created by make from ./install.sh.
2436 # Reject install programs that cannot install multiple files.
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2439 if test -z "$INSTALL"; then
2440 if test "${ac_cv_path_install+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 # Account for people who put trailing slashes in PATH elements.
2449 case $as_dir/ in #((
2450 ./ | .// | /[cC]/* | \
2451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2452 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 /usr/ucb/* ) ;;
2455 # OSF1 and SCO ODT 3.0 have their own names for install.
2456 # Don't use installbsd from OSF since it installs stuff as root
2457 # by default.
2458 for ac_prog in ginstall scoinst install; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2461 if test $ac_prog = install &&
2462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463 # AIX install. It has an incompatible calling convention.
2465 elif test $ac_prog = install &&
2466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467 # program-specific install script used by HP pwplus--don't use.
2469 else
2470 rm -rf conftest.one conftest.two conftest.dir
2471 echo one > conftest.one
2472 echo two > conftest.two
2473 mkdir conftest.dir
2474 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2475 test -s conftest.one && test -s conftest.two &&
2476 test -s conftest.dir/conftest.one &&
2477 test -s conftest.dir/conftest.two
2478 then
2479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480 break 3
2484 done
2485 done
2487 esac
2489 done
2490 IFS=$as_save_IFS
2492 rm -rf conftest.one conftest.two conftest.dir
2495 if test "${ac_cv_path_install+set}" = set; then
2496 INSTALL=$ac_cv_path_install
2497 else
2498 # As a last resort, use the slow shell script. Don't cache a
2499 # value for INSTALL within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the value is a relative name.
2502 INSTALL=$ac_install_sh
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2506 $as_echo "$INSTALL" >&6; }
2508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509 # It thinks the first close brace ends the variable substitution.
2510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2517 $as_echo_n "checking whether ln works... " >&6; }
2518 if test "${acx_cv_prog_LN+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 rm -f conftestdata_t
2522 echo >conftestdata_f
2523 if ln conftestdata_f conftestdata_t 2>/dev/null
2524 then
2525 acx_cv_prog_LN=ln
2526 else
2527 acx_cv_prog_LN=no
2529 rm -f conftestdata_f conftestdata_t
2532 if test $acx_cv_prog_LN = no; then
2533 LN="cp"
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2535 $as_echo "no, using $LN" >&6; }
2536 else
2537 LN="$acx_cv_prog_LN"
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539 $as_echo "yes" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2543 $as_echo_n "checking whether ln -s works... " >&6; }
2544 LN_S=$as_ln_s
2545 if test "$LN_S" = "ln -s"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2547 $as_echo "yes" >&6; }
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2550 $as_echo "no, using $LN_S" >&6; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2555 if test "${ac_cv_path_SED+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2559 for ac_i in 1 2 3 4 5 6 7; do
2560 ac_script="$ac_script$as_nl$ac_script"
2561 done
2562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2563 { ac_script=; unset ac_script;}
2564 if test -z "$SED"; then
2565 ac_path_SED_found=false
2566 # Loop through the user's path and test for each of PROGNAME-LIST
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_prog in sed gsed; do
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2575 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2576 # Check for GNU ac_path_SED and select it if it is found.
2577 # Check for GNU $ac_path_SED
2578 case `"$ac_path_SED" --version 2>&1` in
2579 *GNU*)
2580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2582 ac_count=0
2583 $as_echo_n 0123456789 >"conftest.in"
2584 while :
2586 cat "conftest.in" "conftest.in" >"conftest.tmp"
2587 mv "conftest.tmp" "conftest.in"
2588 cp "conftest.in" "conftest.nl"
2589 $as_echo '' >> "conftest.nl"
2590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2592 as_fn_arith $ac_count + 1 && ac_count=$as_val
2593 if test $ac_count -gt ${ac_path_SED_max-0}; then
2594 # Best one so far, save it but keep looking for a better one
2595 ac_cv_path_SED="$ac_path_SED"
2596 ac_path_SED_max=$ac_count
2598 # 10*(2^10) chars as input seems more than enough
2599 test $ac_count -gt 10 && break
2600 done
2601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2602 esac
2604 $ac_path_SED_found && break 3
2605 done
2606 done
2607 done
2608 IFS=$as_save_IFS
2609 if test -z "$ac_cv_path_SED"; then
2610 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2612 else
2613 ac_cv_path_SED=$SED
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2618 $as_echo "$ac_cv_path_SED" >&6; }
2619 SED="$ac_cv_path_SED"
2620 rm -f conftest.sed
2622 for ac_prog in gawk mawk nawk awk
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_AWK+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_AWK="$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2647 IFS=$as_save_IFS
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2661 test -n "$AWK" && break
2662 done
2665 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2667 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2668 # a relative path.
2669 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2670 INSTALL="${srcpwd}/install-sh -c"
2673 # Set srcdir to "." if that's what it is.
2674 # This is important for multilib support.
2675 pwd=`${PWDCMD-pwd}`
2676 if test "${pwd}" = "${srcpwd}" ; then
2677 srcdir=.
2680 topsrcdir=$srcpwd
2682 extra_host_args=
2684 ### To add a new directory to the tree, first choose whether it is a target
2685 ### or a host dependent tool. Then put it into the appropriate list
2686 ### (library or tools, host or target), doing a dependency sort.
2688 # Subdirs will be configured in the order listed in build_configdirs,
2689 # configdirs, or target_configdirs; see the serialization section below.
2691 # Dependency sorting is only needed when *configuration* must be done in
2692 # a particular order. In all cases a dependency should be specified in
2693 # the Makefile, whether or not it's implicitly specified here.
2695 # Double entries in build_configdirs, configdirs, or target_configdirs may
2696 # cause circular dependencies and break everything horribly.
2698 # these library is used by various programs built for the build
2699 # environment
2701 build_libs="build-libiberty"
2703 # these tools are built for the build environment
2704 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2706 # these libraries are used by various programs built for the host environment
2708 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2710 # these tools are built for the host environment
2711 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2712 # know that we are building the simulator.
2713 # binutils, gas and ld appear in that order because it makes sense to run
2714 # "make check" in that particular order.
2715 # If --enable-gold is used, "gold" may replace "ld".
2716 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2718 # libgcj represents the runtime libraries only used by gcj.
2719 libgcj="target-libffi \
2720 target-zlib \
2721 target-libjava"
2723 # these libraries are built for the target environment, and are built after
2724 # the host libraries and the host tools (which may be a cross compiler)
2725 # Note that libiberty is not a target library.
2726 target_libraries="target-libgcc \
2727 target-libgloss \
2728 target-newlib \
2729 target-libgomp \
2730 target-libatomic \
2731 target-libitm \
2732 target-libstdc++-v3 \
2733 target-libmudflap \
2734 target-libssp \
2735 target-libquadmath \
2736 target-libgfortran \
2737 target-boehm-gc \
2738 ${libgcj} \
2739 target-libobjc \
2740 target-libada \
2741 target-libgo"
2743 # these tools are built using the target libraries, and are intended to
2744 # run only in the target environment
2746 # note: any program that *uses* libraries that are in the "target_libraries"
2747 # list belongs in this list.
2749 target_tools="target-rda"
2751 ################################################################################
2753 ## All tools belong in one of the four categories, and are assigned above
2754 ## We assign ${configdirs} this way to remove all embedded newlines. This
2755 ## is important because configure will choke if they ever get through.
2756 ## ${configdirs} is directories we build using the host tools.
2757 ## ${target_configdirs} is directories we build using the target tools.
2758 configdirs=`echo ${host_libs} ${host_tools}`
2759 target_configdirs=`echo ${target_libraries} ${target_tools}`
2760 build_configdirs=`echo ${build_libs} ${build_tools}`
2764 ################################################################################
2766 srcname="gnu development package"
2768 # This gets set non-empty for some net releases of packages.
2769 appdirs=""
2771 # Define is_cross_compiler to save on calls to 'test'.
2772 is_cross_compiler=
2773 if test x"${host}" = x"${target}" ; then
2774 is_cross_compiler=no
2775 else
2776 is_cross_compiler=yes
2779 # Find the build and target subdir names.
2781 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2782 # have matching libraries, they should use host libraries: Makefile.tpl
2783 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2784 # However, they still use the build modules, because the corresponding
2785 # host modules (e.g. bison) are only built for the host when bootstrap
2786 # finishes. So:
2787 # - build_subdir is where we find build modules, and never changes.
2788 # - build_libsubdir is where we find build libraries, and can be overridden.
2790 # Prefix 'build-' so this never conflicts with target_subdir.
2791 build_subdir="build-${build_noncanonical}"
2793 # Check whether --with-build-libsubdir was given.
2794 if test "${with_build_libsubdir+set}" = set; then :
2795 withval=$with_build_libsubdir; build_libsubdir="$withval"
2796 else
2797 build_libsubdir="$build_subdir"
2800 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2801 if ( test $srcdir = . && test -d gcc ) \
2802 || test -d $srcdir/../host-${host_noncanonical}; then
2803 host_subdir="host-${host_noncanonical}"
2804 else
2805 host_subdir=.
2807 # No prefix.
2808 target_subdir=${target_noncanonical}
2810 # Be sure to cover against remnants of an in-tree build.
2811 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2812 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2813 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2816 # Skipdirs are removed silently.
2817 skipdirs=
2818 # Noconfigdirs are removed loudly.
2819 noconfigdirs=""
2821 use_gnu_ld=
2822 # Make sure we don't let GNU ld be added if we didn't want it.
2823 if test x$with_gnu_ld = xno ; then
2824 use_gnu_ld=no
2825 noconfigdirs="$noconfigdirs ld gold"
2828 use_gnu_as=
2829 # Make sure we don't let GNU as be added if we didn't want it.
2830 if test x$with_gnu_as = xno ; then
2831 use_gnu_as=no
2832 noconfigdirs="$noconfigdirs gas"
2835 use_included_zlib=
2836 # Make sure we don't let ZLIB be added if we didn't want it.
2837 if test x$with_system_zlib = xyes ; then
2838 use_included_zlib=no
2839 noconfigdirs="$noconfigdirs zlib"
2842 # some tools are so dependent upon X11 that if we're not building with X,
2843 # it's not even worth trying to configure, much less build, that tool.
2845 case ${with_x} in
2846 yes | "") ;; # the default value for this tree is that X11 is available
2848 skipdirs="${skipdirs} tk itcl libgui"
2849 # We won't be able to build gdbtk without X.
2850 enable_gdbtk=no
2852 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2853 esac
2855 # Some are only suitable for cross toolchains.
2856 # Remove these if host=target.
2857 cross_only="target-libgloss target-newlib target-opcodes"
2859 case $is_cross_compiler in
2860 no) skipdirs="${skipdirs} ${cross_only}" ;;
2861 esac
2863 # If both --with-headers and --with-libs are specified, default to
2864 # --without-newlib.
2865 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2866 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2867 if test x"${with_newlib}" = x ; then
2868 with_newlib=no
2872 # Recognize --with-newlib/--without-newlib.
2873 case ${with_newlib} in
2874 no) skipdirs="${skipdirs} target-newlib" ;;
2875 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2876 esac
2878 # Handle --enable-gold, --enable-ld.
2879 # --disable-gold [--enable-ld]
2880 # Build only ld. Default option.
2881 # --enable-gold [--enable-ld]
2882 # Build both gold and ld. Install gold as "ld.gold", install ld
2883 # as "ld.bfd" and "ld".
2884 # --enable-gold=default [--enable-ld]
2885 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2886 # install ld as "ld.bfd".
2887 # --enable-gold[=default] --disable-ld
2888 # Build only gold, which is then installed as both "ld.gold" and "ld".
2889 # --enable-gold --enable-ld=default
2890 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2891 # and ld.bfd).
2892 # In other words, ld is default
2893 # --enable-gold=default --enable-ld=default
2894 # Error.
2896 default_ld=
2897 # Check whether --enable-gold was given.
2898 if test "${enable_gold+set}" = set; then :
2899 enableval=$enable_gold; ENABLE_GOLD=$enableval
2900 else
2901 ENABLE_GOLD=no
2904 case "${ENABLE_GOLD}" in
2905 yes|default)
2906 # Check for ELF target.
2907 is_elf=no
2908 case "${target}" in
2909 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2910 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2911 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2912 | *-*-solaris2* | *-*-nto*)
2913 case "${target}" in
2914 *-*-linux*aout* | *-*-linux*oldld*)
2917 is_elf=yes
2919 esac
2920 esac
2922 if test "$is_elf" = "yes"; then
2923 # Check for target supported by gold.
2924 case "${target}" in
2925 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2926 configdirs="$configdirs gold"
2927 if test x${ENABLE_GOLD} = xdefault; then
2928 default_ld=gold
2930 ENABLE_GOLD=yes
2932 esac
2938 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2940 esac
2942 # Check whether --enable-ld was given.
2943 if test "${enable_ld+set}" = set; then :
2944 enableval=$enable_ld; ENABLE_LD=$enableval
2945 else
2946 ENABLE_LD=yes
2950 case "${ENABLE_LD}" in
2951 default)
2952 if test x${default_ld} != x; then
2953 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2956 yes)
2959 if test x${ENABLE_GOLD} != xyes; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2961 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2963 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2966 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2968 esac
2970 # Configure extra directories which are host specific
2972 case "${host}" in
2973 *-cygwin*)
2974 configdirs="$configdirs libtermcap" ;;
2975 esac
2977 # A target can indicate whether a language isn't supported for some reason.
2978 # Only spaces may be used in this macro; not newlines or tabs.
2979 unsupported_languages=
2981 # Remove more programs from consideration, based on the host or
2982 # target this usually means that a port of the program doesn't
2983 # exist yet.
2985 case "${host}" in
2986 i[3456789]86-*-msdosdjgpp*)
2987 noconfigdirs="$noconfigdirs tcl tk itcl"
2989 esac
2992 # Check whether --enable-libquadmath was given.
2993 if test "${enable_libquadmath+set}" = set; then :
2994 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2995 else
2996 ENABLE_LIBQUADMATH=yes
2999 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3000 noconfigdirs="$noconfigdirs target-libquadmath"
3004 # Check whether --enable-libquadmath-support was given.
3005 if test "${enable_libquadmath_support+set}" = set; then :
3006 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3007 else
3008 ENABLE_LIBQUADMATH_SUPPORT=yes
3011 enable_libquadmath_support=
3012 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3013 enable_libquadmath_support=no
3017 # Check whether --enable-libada was given.
3018 if test "${enable_libada+set}" = set; then :
3019 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3020 else
3021 ENABLE_LIBADA=yes
3024 if test "${ENABLE_LIBADA}" != "yes" ; then
3025 noconfigdirs="$noconfigdirs gnattools"
3028 # Check whether --enable-libssp was given.
3029 if test "${enable_libssp+set}" = set; then :
3030 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3031 else
3032 ENABLE_LIBSSP=yes
3036 # Save it here so that, even in case of --enable-libgcj, if the Java
3037 # front-end isn't enabled, we still get libgcj disabled.
3038 libgcj_saved=$libgcj
3039 case $enable_libgcj in
3040 yes)
3041 # If we reset it here, it won't get added to noconfigdirs in the
3042 # target-specific build rules, so it will be forcibly enabled
3043 # (unless the Java language itself isn't enabled).
3044 libgcj=
3047 # Make sure we get it printed in the list of not supported target libs.
3048 # Don't disable libffi, though, other languages use it.
3049 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3050 # Clear libgcj_saved so that even if java is enabled libffi won't be
3051 # built.
3052 libgcj_saved=
3054 esac
3056 # Check whether --enable-static-libjava was given.
3057 if test "${enable_static_libjava+set}" = set; then :
3058 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3059 else
3060 ENABLE_STATIC_LIBJAVA=no
3063 enable_static_libjava=
3064 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3065 enable_static_libjava=yes
3068 if test x$enable_static_libjava != xyes ; then
3069 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3073 # Disable libmudflap on some systems.
3074 if test x$enable_libmudflap = x ; then
3075 case "${target}" in
3076 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3077 # Enable libmudflap by default in GNU and friends.
3079 *-*-freebsd*)
3080 # Enable libmudflap by default in FreeBSD.
3083 # Disable it by default everywhere else.
3084 noconfigdirs="$noconfigdirs target-libmudflap"
3086 esac
3089 # Disable libgomp on non POSIX hosted systems.
3090 if test x$enable_libgomp = x ; then
3091 # Enable libgomp by default on hosted POSIX systems.
3092 case "${target}" in
3093 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3095 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3097 *-*-solaris2* | *-*-hpux11*)
3099 *-*-darwin* | *-*-aix*)
3102 noconfigdirs="$noconfigdirs target-libgomp"
3104 esac
3107 # Disable libatomic on unsupported systems.
3108 if test -d ${srcdir}/libatomic; then
3109 if test x$enable_libatomic = x; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3111 $as_echo_n "checking for libatomic support... " >&6; }
3112 if (srcdir=${srcdir}/libatomic; \
3113 . ${srcdir}/configure.tgt; \
3114 test -n "$UNSUPPORTED")
3115 then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 noconfigdirs="$noconfigdirs target-libatomic"
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3126 # Disable libitm on unsupported systems.
3127 if test -d ${srcdir}/libitm; then
3128 if test x$enable_libitm = x; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3130 $as_echo_n "checking for libitm support... " >&6; }
3131 if (srcdir=${srcdir}/libitm; \
3132 . ${srcdir}/configure.tgt; \
3133 test -n "$UNSUPPORTED")
3134 then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 noconfigdirs="$noconfigdirs target-libitm"
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 $as_echo "yes" >&6; }
3145 # Disable libssp for some systems.
3146 case "${target}" in
3147 avr-*-*)
3148 # No hosted I/O support.
3149 noconfigdirs="$noconfigdirs target-libssp"
3151 powerpc-*-aix* | rs6000-*-aix*)
3152 noconfigdirs="$noconfigdirs target-libssp"
3154 rl78-*-*)
3155 # libssp uses a misaligned load to trigger a fault, but the RL78
3156 # doesn't fault for those - instead, it gives a build-time error
3157 # for explicit misaligned loads.
3158 noconfigdirs="$noconfigdirs target-libssp"
3160 esac
3162 # Disable libstdc++-v3 for some systems.
3163 case "${target}" in
3164 *-*-vxworks*)
3165 # VxWorks uses the Dinkumware C++ library.
3166 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3168 arm*-wince-pe*)
3169 # the C++ libraries don't build on top of CE's C libraries
3170 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3172 avr-*-*)
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3175 esac
3177 # Disable Fortran for some systems.
3178 case "${target}" in
3179 mmix-*-*)
3180 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3181 unsupported_languages="$unsupported_languages fortran"
3183 esac
3185 # Disable Java if libffi is not supported.
3186 case "${target}" in
3187 alpha*-*-*)
3189 arm*-*-*)
3191 cris-*-*)
3193 frv-*-*)
3195 hppa*-*-linux*)
3197 hppa*-*-hpux*)
3199 i?86-*-*)
3201 ia64*-*-*)
3203 m32r*-*-*)
3205 m68k-*-*)
3207 mips*-*-rtems*)
3209 mips*-*-linux*)
3211 powerpc*-*-linux*)
3213 powerpc-*-darwin*)
3215 powerpc-*-aix* | rs6000-*-aix*)
3217 powerpc-*-freebsd*)
3219 powerpc64-*-freebsd*)
3221 powerpc*-*-rtems*)
3223 s390-*-* | s390x-*-*)
3225 sh-*-* | sh[34]*-*-*)
3227 sh64-*-* | sh5*-*-*)
3229 sparc*-*-*)
3231 x86_64-*-*)
3233 *-*-*)
3234 unsupported_languages="$unsupported_languages java"
3236 esac
3238 # Disable Java, libgcj or related libraries for some systems.
3239 case "${target}" in
3240 powerpc-*-darwin*)
3242 i[3456789]86-*-darwin*)
3244 x86_64-*-darwin[912]*)
3246 *-*-darwin*)
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3249 *-*-netware*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3252 *-*-rtems*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3255 *-*-tpf*)
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3258 *-*-uclinux*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3261 *-*-vxworks*)
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3264 alpha*-*-*vms*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3267 arm-wince-pe)
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3270 arm*-*-symbianelf*)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3273 bfin-*-*)
3274 noconfigdirs="$noconfigdirs target-boehm-gc"
3276 cris-*-* | crisv32-*-*)
3277 unsupported_languages="$unsupported_languages java"
3278 case "${target}" in
3279 *-*-linux*)
3281 *) # See PR46792 regarding target-libffi.
3282 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3283 esac
3285 hppa*64*-*-linux*)
3286 # In this case, it's because the hppa64-linux target is for
3287 # the kernel only at this point and has no libc, and thus no
3288 # headers, crt*.o, etc., all of which are needed by these.
3289 unsupported_languages="$unsupported_languages java"
3291 hppa*64*-*-hpux*)
3292 noconfigdirs="$noconfigdirs ${libgcj}"
3294 hppa*-hp-hpux11*)
3296 hppa*-*-hpux*)
3297 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3298 # build on HP-UX 10.20.
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3301 ia64*-*-*vms*)
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3304 i[3456789]86-w64-mingw*)
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3307 i[3456789]86-*-mingw*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3310 x86_64-*-mingw*)
3311 noconfigdirs="$noconfigdirs ${libgcj}"
3313 mmix-*-*)
3314 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3316 powerpc-*-aix*)
3317 # copied from rs6000-*-* entry
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3320 rs6000-*-aix*)
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3323 *-*-lynxos*)
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3326 esac
3328 # Default libgloss CPU subdirectory.
3329 libgloss_dir="$target_cpu"
3331 case "${target}" in
3332 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3333 libgloss_dir=wince
3335 arm*-*-*)
3336 libgloss_dir=arm
3338 cris-*-* | crisv32-*-*)
3339 libgloss_dir=cris
3341 hppa*-*-*)
3342 libgloss_dir=pa
3344 i[3456789]86-*-*)
3345 libgloss_dir=i386
3347 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3348 libgloss_dir=m68hc11
3350 m68*-*-* | fido-*-*)
3351 libgloss_dir=m68k
3353 mips*-*-*)
3354 libgloss_dir=mips
3356 powerpc*-*-*)
3357 libgloss_dir=rs6000
3359 sparc*-*-*)
3360 libgloss_dir=sparc
3362 esac
3364 # Disable newlib and libgloss for various target OSes.
3365 case "${target}" in
3366 alpha*-dec-osf*)
3367 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3369 i[3456789]86-*-linux*)
3370 # This section makes it possible to build newlib natively on linux.
3371 # If we are using a cross compiler then don't configure newlib.
3372 if test x${is_cross_compiler} != xno ; then
3373 noconfigdirs="$noconfigdirs target-newlib"
3375 noconfigdirs="$noconfigdirs target-libgloss"
3376 # If we are not using a cross compiler, do configure newlib.
3377 # Note however, that newlib will only be configured in this situation
3378 # if the --with-newlib option has been given, because otherwise
3379 # 'target-newlib' will appear in skipdirs.
3381 i[3456789]86-*-rdos*)
3382 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3384 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387 sparc-*-sunos4*)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3390 *-*-aix*)
3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3393 *-*-beos*)
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3396 *-*-chorusos)
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3399 *-*-dragonfly*)
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3402 *-*-freebsd*)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3408 *-*-lynxos*)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3411 *-*-mingw*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414 *-*-netbsd*)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3417 *-*-netware*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3420 *-*-tpf*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423 *-*-uclinux*)
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 *-*-vxworks*)
3427 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429 esac
3431 case "${target}" in
3432 *-*-chorusos)
3434 powerpc-*-darwin*)
3435 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3436 noconfigdirs="$noconfigdirs sim target-rda"
3438 i[3456789]86-*-darwin*)
3439 noconfigdirs="$noconfigdirs ld gprof"
3440 noconfigdirs="$noconfigdirs sim target-rda"
3442 x86_64-*-darwin[912]*)
3443 noconfigdirs="$noconfigdirs ld gas gprof"
3444 noconfigdirs="$noconfigdirs sim target-rda"
3446 *-*-darwin*)
3447 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3448 noconfigdirs="$noconfigdirs sim target-rda"
3450 *-*-dragonfly*)
3452 *-*-freebsd*)
3453 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3454 && test -f /usr/local/include/gmp.h; then
3455 with_gmp=/usr/local
3458 *-*-kaos*)
3459 # Remove unsupported stuff on all kaOS configurations.
3460 noconfigdirs="$noconfigdirs target-libgloss"
3462 *-*-netbsd*)
3464 *-*-netware*)
3466 *-*-rtems*)
3467 noconfigdirs="$noconfigdirs target-libgloss"
3469 # The tpf target doesn't support gdb yet.
3470 *-*-tpf*)
3471 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3473 *-*-uclinux*)
3474 noconfigdirs="$noconfigdirs target-rda"
3476 *-*-vxworks*)
3478 alpha*-dec-osf*)
3479 # ld works, but does not support shared libraries.
3480 # gas doesn't generate exception information.
3481 noconfigdirs="$noconfigdirs gas ld"
3483 alpha*-*-*vms*)
3484 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3486 alpha*-*-*)
3487 # newlib is not 64 bit ready
3488 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3490 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3491 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3493 arc-*-*)
3494 noconfigdirs="$noconfigdirs target-libgloss"
3496 arm-*-pe*)
3497 noconfigdirs="$noconfigdirs target-libgloss"
3499 arm-*-riscix*)
3500 noconfigdirs="$noconfigdirs ld target-libgloss"
3502 c4x-*-* | tic4x-*-*)
3503 noconfigdirs="$noconfigdirs target-libgloss"
3505 tic54x-*-*)
3506 noconfigdirs="$noconfigdirs target-libgloss gdb"
3508 d10v-*-*)
3509 noconfigdirs="$noconfigdirs target-libgloss"
3511 d30v-*-*)
3512 noconfigdirs="$noconfigdirs gdb"
3514 fr30-*-elf*)
3515 noconfigdirs="$noconfigdirs gdb"
3517 moxie-*-*)
3518 noconfigdirs="$noconfigdirs gprof"
3520 h8300*-*-*)
3521 noconfigdirs="$noconfigdirs target-libgloss"
3523 h8500-*-*)
3524 noconfigdirs="$noconfigdirs target-libgloss"
3526 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3528 hppa*64*-*-linux*)
3530 hppa*-*-linux*)
3532 hppa*-*-*elf* | \
3533 hppa*-*-lites* | \
3534 hppa*-*-openbsd* | \
3535 hppa*64*-*-*)
3537 hppa*-hp-hpux11*)
3538 noconfigdirs="$noconfigdirs ld"
3540 hppa*-*-pro*)
3542 hppa*-*-*)
3543 noconfigdirs="$noconfigdirs ld"
3545 i960-*-*)
3546 noconfigdirs="$noconfigdirs gdb"
3548 ia64*-*-elf*)
3549 # No gdb support yet.
3550 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3552 ia64*-**-hpux*)
3553 # No ld support yet.
3554 noconfigdirs="$noconfigdirs libgui itcl ld"
3556 ia64*-*-*vms*)
3557 # No ld support yet.
3558 noconfigdirs="$noconfigdirs libgui itcl ld"
3560 i[3456789]86-w64-mingw*)
3562 i[3456789]86-*-mingw*)
3563 target_configdirs="$target_configdirs target-winsup"
3565 *-*-cygwin*)
3566 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3567 noconfigdirs="$noconfigdirs target-libgloss"
3568 # always build newlib if winsup directory is present.
3569 if test -d "$srcdir/winsup/cygwin"; then
3570 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3571 elif test -d "$srcdir/newlib"; then
3572 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3575 i[3456789]86-*-pe)
3576 noconfigdirs="$noconfigdirs target-libgloss"
3578 i[3456789]86-*-sco3.2v5*)
3579 # The linker does not yet know about weak symbols in COFF,
3580 # and is not configured to handle mixed ELF and COFF.
3581 noconfigdirs="$noconfigdirs ld target-libgloss"
3583 i[3456789]86-*-sco*)
3584 noconfigdirs="$noconfigdirs gprof target-libgloss"
3586 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3587 noconfigdirs="$noconfigdirs target-libgloss"
3589 i[3456789]86-*-sysv4*)
3590 noconfigdirs="$noconfigdirs target-libgloss"
3592 i[3456789]86-*-beos*)
3593 noconfigdirs="$noconfigdirs gdb"
3595 i[3456789]86-*-rdos*)
3596 noconfigdirs="$noconfigdirs gdb"
3598 mmix-*-*)
3599 noconfigdirs="$noconfigdirs gdb"
3601 mt-*-*)
3602 noconfigdirs="$noconfigdirs sim"
3604 powerpc-*-aix*)
3605 # copied from rs6000-*-* entry
3606 noconfigdirs="$noconfigdirs gprof"
3608 powerpc*-*-winnt* | powerpc*-*-pe*)
3609 target_configdirs="$target_configdirs target-winsup"
3610 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3611 # always build newlib.
3612 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3614 # This is temporary until we can link against shared libraries
3615 powerpcle-*-solaris*)
3616 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3618 powerpc-*-beos*)
3619 noconfigdirs="$noconfigdirs gdb"
3621 rs6000-*-lynxos*)
3622 noconfigdirs="$noconfigdirs gprof"
3624 rs6000-*-aix*)
3625 noconfigdirs="$noconfigdirs gprof"
3627 rs6000-*-*)
3628 noconfigdirs="$noconfigdirs gprof"
3630 m68k-apollo-*)
3631 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3633 microblaze*)
3634 noconfigdirs="$noconfigdirs gprof"
3636 mips*-sde-elf*)
3637 if test x$with_newlib = xyes; then
3638 noconfigdirs="$noconfigdirs gprof"
3641 mips*-*-irix5*)
3642 noconfigdirs="$noconfigdirs gprof target-libgloss"
3644 mips*-*-irix6*)
3645 noconfigdirs="$noconfigdirs gprof target-libgloss"
3647 mips*-*-bsd*)
3648 noconfigdirs="$noconfigdirs gprof target-libgloss"
3650 mips*-*-linux*)
3652 mips*-*-*)
3653 noconfigdirs="$noconfigdirs gprof"
3655 sh-*-* | sh64-*-*)
3656 case "${target}" in
3657 sh*-*-elf)
3660 noconfigdirs="$noconfigdirs target-libgloss" ;;
3661 esac
3663 sparc-*-sunos4*)
3664 if test x${is_cross_compiler} = xno ; then
3665 use_gnu_ld=no
3668 tic6x-*-*)
3669 noconfigdirs="$noconfigdirs sim"
3671 tilepro-*-* | tilegx-*-*)
3672 noconfigdirs="$noconfigdirs sim"
3674 v810-*-*)
3675 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3677 vax-*-*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 esac
3682 # If we aren't building newlib, then don't build libgloss, since libgloss
3683 # depends upon some newlib header files.
3684 case "${noconfigdirs}" in
3685 *target-libgloss*) ;;
3686 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3687 esac
3689 # Work in distributions that contain no compiler tools, like Autoconf.
3690 host_makefile_frag=/dev/null
3691 if test -d ${srcdir}/config ; then
3692 case "${host}" in
3693 i[3456789]86-*-msdosdjgpp*)
3694 host_makefile_frag="config/mh-djgpp"
3696 *-cygwin*)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3699 $as_echo_n "checking to see if cat works as expected... " >&6; }
3700 echo a >cygwin-cat-check
3701 if test `cat cygwin-cat-check` = a ; then
3702 rm cygwin-cat-check
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3705 else
3706 rm cygwin-cat-check
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 as_fn_error "The cat command does not ignore carriage return characters.
3710 Please either mount the build directory in binary mode or run the following
3711 commands before running any configure script:
3712 set -o igncr
3713 export SHELLOPTS
3714 " "$LINENO" 5
3717 host_makefile_frag="config/mh-cygwin"
3719 *-mingw*)
3720 host_makefile_frag="config/mh-mingw"
3722 hppa*-hp-hpux10*)
3723 host_makefile_frag="config/mh-pa-hpux10"
3725 hppa*-hp-hpux*)
3726 host_makefile_frag="config/mh-pa"
3728 hppa*-*)
3729 host_makefile_frag="config/mh-pa"
3731 *-*-darwin*)
3732 host_makefile_frag="config/mh-darwin"
3734 powerpc-*-aix*)
3735 host_makefile_frag="config/mh-ppc-aix"
3737 rs6000-*-aix*)
3738 host_makefile_frag="config/mh-ppc-aix"
3740 esac
3743 if test "${build}" != "${host}" ; then
3744 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3745 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3746 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3747 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3748 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3749 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3750 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3751 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3752 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3753 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3754 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3755 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3756 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3757 else
3758 AR_FOR_BUILD="\$(AR)"
3759 AS_FOR_BUILD="\$(AS)"
3760 CC_FOR_BUILD="\$(CC)"
3761 CXX_FOR_BUILD="\$(CXX)"
3762 GCJ_FOR_BUILD="\$(GCJ)"
3763 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3764 GOC_FOR_BUILD="\$(GOC)"
3765 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3766 LD_FOR_BUILD="\$(LD)"
3767 NM_FOR_BUILD="\$(NM)"
3768 RANLIB_FOR_BUILD="\$(RANLIB)"
3769 WINDRES_FOR_BUILD="\$(WINDRES)"
3770 WINDMC_FOR_BUILD="\$(WINDMC)"
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_CC+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$CC"; then
3787 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3800 done
3801 done
3802 IFS=$as_save_IFS
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3817 if test -z "$ac_cv_prog_CC"; then
3818 ac_ct_CC=$CC
3819 # Extract the first word of "gcc", so it can be a program name with args.
3820 set dummy gcc; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 if test -n "$ac_ct_CC"; then
3827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_ac_ct_CC="gcc"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3840 done
3841 done
3842 IFS=$as_save_IFS
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3849 $as_echo "$ac_ct_CC" >&6; }
3850 else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3855 if test "x$ac_ct_CC" = x; then
3856 CC=""
3857 else
3858 case $cross_compiling:$ac_tool_warned in
3859 yes:)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned=yes ;;
3863 esac
3864 CC=$ac_ct_CC
3866 else
3867 CC="$ac_cv_prog_CC"
3870 if test -z "$CC"; then
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}cc; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_CC+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_CC="${ac_tool_prefix}cc"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3895 IFS=$as_save_IFS
3899 CC=$ac_cv_prog_CC
3900 if test -n "$CC"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 $as_echo "$CC" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3911 if test -z "$CC"; then
3912 # Extract the first word of "cc", so it can be a program name with args.
3913 set dummy cc; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_CC+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 ac_prog_rejected=no
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3931 ac_prog_rejected=yes
3932 continue
3934 ac_cv_prog_CC="cc"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3940 IFS=$as_save_IFS
3942 if test $ac_prog_rejected = yes; then
3943 # We found a bogon in the path, so make sure we never use it.
3944 set dummy $ac_cv_prog_CC
3945 shift
3946 if test $# != 0; then
3947 # We chose a different compiler from the bogus one.
3948 # However, it has the same basename, so the bogon will be chosen
3949 # first if we set CC to just the basename; use the full file name.
3950 shift
3951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3956 CC=$ac_cv_prog_CC
3957 if test -n "$CC"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959 $as_echo "$CC" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3967 if test -z "$CC"; then
3968 if test -n "$ac_tool_prefix"; then
3969 for ac_prog in cl.exe
3971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if test "${ac_cv_prog_CC+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -n "$CC"; then
3979 ac_cv_prog_CC="$CC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3994 IFS=$as_save_IFS
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 $as_echo "$CC" >&6; }
4002 else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$CC" && break
4009 done
4011 if test -z "$CC"; then
4012 ac_ct_CC=$CC
4013 for ac_prog in cl.exe
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy $ac_prog; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_ac_ct_CC="$ac_prog"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4052 test -n "$ac_ct_CC" && break
4053 done
4055 if test "x$ac_ct_CC" = x; then
4056 CC=""
4057 else
4058 case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064 CC=$ac_ct_CC
4071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "no acceptable C compiler found in \$PATH
4074 See \`config.log' for more details." "$LINENO" 5; }
4076 # Provide some information about the compiler.
4077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4078 set X $ac_compile
4079 ac_compiler=$2
4080 for ac_option in --version -v -V -qversion; do
4081 { { ac_try="$ac_compiler $ac_option >&5"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 $as_echo "$ac_try_echo"; } >&5
4088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089 ac_status=$?
4090 if test -s conftest.err; then
4091 sed '10a\
4092 ... rest of stderr output deleted ...
4093 10q' conftest.err >conftest.er1
4094 cat conftest.er1 >&5
4095 rm -f conftest.er1 conftest.err
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }
4099 done
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4105 main ()
4109 return 0;
4111 _ACEOF
4112 ac_clean_files_save=$ac_clean_files
4113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4114 # Try to create an executable without -o first, disregard a.out.
4115 # It will help us diagnose broken compilers, and finding out an intuition
4116 # of exeext.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4118 $as_echo_n "checking for C compiler default output file name... " >&6; }
4119 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4121 # The possible output files:
4122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4124 ac_rmfiles=
4125 for ac_file in $ac_files
4127 case $ac_file in
4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4130 esac
4131 done
4132 rm -f $ac_rmfiles
4134 if { { ac_try="$ac_link_default"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_link_default") 2>&5
4142 ac_status=$?
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }; then :
4145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4146 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4147 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4148 # so that the user can short-circuit this test for compilers unknown to
4149 # Autoconf.
4150 for ac_file in $ac_files ''
4152 test -f "$ac_file" || continue
4153 case $ac_file in
4154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4156 [ab].out )
4157 # We found the default executable, but exeext='' is most
4158 # certainly right.
4159 break;;
4160 *.* )
4161 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4162 then :; else
4163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4165 # We set ac_cv_exeext here because the later test for it is not
4166 # safe: cross compilers may not add the suffix if given an `-o'
4167 # argument, so we may need to know it at that point already.
4168 # Even if this section looks crufty: it has the advantage of
4169 # actually working.
4170 break;;
4172 break;;
4173 esac
4174 done
4175 test "$ac_cv_exeext" = no && ac_cv_exeext=
4177 else
4178 ac_file=''
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4181 $as_echo "$ac_file" >&6; }
4182 if test -z "$ac_file"; then :
4183 $as_echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 { as_fn_set_status 77
4189 as_fn_error "C compiler cannot create executables
4190 See \`config.log' for more details." "$LINENO" 5; }; }
4192 ac_exeext=$ac_cv_exeext
4194 # Check that the compiler produces executables we can run. If not, either
4195 # the compiler is broken, or we cross compile.
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4197 $as_echo_n "checking whether the C compiler works... " >&6; }
4198 # If not cross compiling, check that we can run a simple program.
4199 if test "$cross_compiling" != yes; then
4200 if { ac_try='./$ac_file'
4201 { { case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }; }; then
4211 cross_compiling=no
4212 else
4213 if test "$cross_compiling" = maybe; then
4214 cross_compiling=yes
4215 else
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error "cannot run C compiled programs.
4219 If you meant to cross compile, use \`--host'.
4220 See \`config.log' for more details." "$LINENO" 5; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225 $as_echo "yes" >&6; }
4227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4228 ac_clean_files=$ac_clean_files_save
4229 # Check that the compiler produces executables we can run. If not, either
4230 # the compiler is broken, or we cross compile.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4232 $as_echo_n "checking whether we are cross compiling... " >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4237 $as_echo_n "checking for suffix of executables... " >&6; }
4238 if { { ac_try="$ac_link"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_link") 2>&5
4246 ac_status=$?
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; }; then :
4249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4250 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4251 # work properly (i.e., refer to `conftest.exe'), while it won't with
4252 # `rm'.
4253 for ac_file in conftest.exe conftest conftest.*; do
4254 test -f "$ac_file" || continue
4255 case $ac_file in
4256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4258 break;;
4259 * ) break;;
4260 esac
4261 done
4262 else
4263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4265 as_fn_error "cannot compute suffix of executables: cannot compile and link
4266 See \`config.log' for more details." "$LINENO" 5; }
4268 rm -f conftest$ac_cv_exeext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4270 $as_echo "$ac_cv_exeext" >&6; }
4272 rm -f conftest.$ac_ext
4273 EXEEXT=$ac_cv_exeext
4274 ac_exeext=$EXEEXT
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4276 $as_echo_n "checking for suffix of object files... " >&6; }
4277 if test "${ac_cv_objext+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4284 main ()
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.o conftest.obj
4292 if { { ac_try="$ac_compile"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compile") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }; then :
4303 for ac_file in conftest.o conftest.obj conftest.*; do
4304 test -f "$ac_file" || continue;
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4308 break;;
4309 esac
4310 done
4311 else
4312 $as_echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error "cannot compute suffix of object files: cannot compile
4318 See \`config.log' for more details." "$LINENO" 5; }
4320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4323 $as_echo "$ac_cv_objext" >&6; }
4324 OBJEXT=$ac_cv_objext
4325 ac_objext=$OBJEXT
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4328 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4335 main ()
4337 #ifndef __GNUC__
4338 choke me
4339 #endif
4342 return 0;
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_compiler_gnu=yes
4347 else
4348 ac_compiler_gnu=no
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356 if test $ac_compiler_gnu = yes; then
4357 GCC=yes
4358 else
4359 GCC=
4361 ac_test_CFLAGS=${CFLAGS+set}
4362 ac_save_CFLAGS=$CFLAGS
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4365 if test "${ac_cv_prog_cc_g+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_save_c_werror_flag=$ac_c_werror_flag
4369 ac_c_werror_flag=yes
4370 ac_cv_prog_cc_g=no
4371 CFLAGS="-g"
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4376 main ()
4380 return 0;
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"; then :
4384 ac_cv_prog_cc_g=yes
4385 else
4386 CFLAGS=""
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4391 main ()
4395 return 0;
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4400 else
4401 ac_c_werror_flag=$ac_save_c_werror_flag
4402 CFLAGS="-g"
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4407 main ()
4411 return 0;
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_g=yes
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 ac_c_werror_flag=$ac_save_c_werror_flag
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425 $as_echo "$ac_cv_prog_cc_g" >&6; }
4426 if test "$ac_test_CFLAGS" = set; then
4427 CFLAGS=$ac_save_CFLAGS
4428 elif test $ac_cv_prog_cc_g = yes; then
4429 if test "$GCC" = yes; then
4430 CFLAGS="-g -O2"
4431 else
4432 CFLAGS="-g"
4434 else
4435 if test "$GCC" = yes; then
4436 CFLAGS="-O2"
4437 else
4438 CFLAGS=
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 ac_cv_prog_cc_c89=no
4447 ac_save_CC=$CC
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <stdarg.h>
4451 #include <stdio.h>
4452 #include <sys/types.h>
4453 #include <sys/stat.h>
4454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4455 struct buf { int x; };
4456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4457 static char *e (p, i)
4458 char **p;
4459 int i;
4461 return p[i];
4463 static char *f (char * (*g) (char **, int), char **p, ...)
4465 char *s;
4466 va_list v;
4467 va_start (v,p);
4468 s = g (p, va_arg (v,int));
4469 va_end (v);
4470 return s;
4473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4474 function prototypes and stuff, but not '\xHH' hex character constants.
4475 These don't provoke an error unfortunately, instead are silently treated
4476 as 'x'. The following induces an error, until -std is added to get
4477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4478 array size at least. It's necessary to write '\x00'==0 to get something
4479 that's true only with -std. */
4480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4483 inside strings and character constants. */
4484 #define FOO(x) 'x'
4485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4487 int test (int i, double x);
4488 struct s1 {int (*f) (int a);};
4489 struct s2 {int (*f) (double a);};
4490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4491 int argc;
4492 char **argv;
4494 main ()
4496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4498 return 0;
4500 _ACEOF
4501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4504 CC="$ac_save_CC $ac_arg"
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_prog_cc_c89=$ac_arg
4508 rm -f core conftest.err conftest.$ac_objext
4509 test "x$ac_cv_prog_cc_c89" != "xno" && break
4510 done
4511 rm -f conftest.$ac_ext
4512 CC=$ac_save_CC
4515 # AC_CACHE_VAL
4516 case "x$ac_cv_prog_cc_c89" in
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 $as_echo "none needed" >&6; } ;;
4520 xno)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522 $as_echo "unsupported" >&6; } ;;
4524 CC="$CC $ac_cv_prog_cc_c89"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4527 esac
4528 if test "x$ac_cv_prog_cc_c89" != xno; then :
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 ac_ext=cpp
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543 if test -z "$CXX"; then
4544 if test -n "$CCC"; then
4545 CXX=$CCC
4546 else
4547 if test -n "$ac_tool_prefix"; then
4548 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if test "${ac_cv_prog_CXX+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$CXX"; then
4558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4573 IFS=$as_save_IFS
4577 CXX=$ac_cv_prog_CXX
4578 if test -n "$CXX"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4580 $as_echo "$CXX" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4587 test -n "$CXX" && break
4588 done
4590 if test -z "$CXX"; then
4591 ac_ct_CXX=$CXX
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$ac_ct_CXX"; then
4602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_ac_ct_CXX="$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4622 if test -n "$ac_ct_CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4624 $as_echo "$ac_ct_CXX" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4631 test -n "$ac_ct_CXX" && break
4632 done
4634 if test "x$ac_ct_CXX" = x; then
4635 CXX="g++"
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 CXX=$ac_ct_CXX
4649 # Provide some information about the compiler.
4650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4651 set X $ac_compile
4652 ac_compiler=$2
4653 for ac_option in --version -v -V -qversion; do
4654 { { ac_try="$ac_compiler $ac_option >&5"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660 $as_echo "$ac_try_echo"; } >&5
4661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662 ac_status=$?
4663 if test -s conftest.err; then
4664 sed '10a\
4665 ... rest of stderr output deleted ...
4666 10q' conftest.err >conftest.er1
4667 cat conftest.er1 >&5
4668 rm -f conftest.er1 conftest.err
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 done
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4675 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4683 main ()
4685 #ifndef __GNUC__
4686 choke me
4687 #endif
4690 return 0;
4692 _ACEOF
4693 if ac_fn_cxx_try_compile "$LINENO"; then :
4694 ac_compiler_gnu=yes
4695 else
4696 ac_compiler_gnu=no
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4703 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4704 if test $ac_compiler_gnu = yes; then
4705 GXX=yes
4706 else
4707 GXX=
4709 ac_test_CXXFLAGS=${CXXFLAGS+set}
4710 ac_save_CXXFLAGS=$CXXFLAGS
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4712 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4713 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4717 ac_cxx_werror_flag=yes
4718 ac_cv_prog_cxx_g=no
4719 CXXFLAGS="-g"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 if ac_fn_cxx_try_compile "$LINENO"; then :
4732 ac_cv_prog_cxx_g=yes
4733 else
4734 CXXFLAGS=""
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4739 main ()
4743 return 0;
4745 _ACEOF
4746 if ac_fn_cxx_try_compile "$LINENO"; then :
4748 else
4749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4750 CXXFLAGS="-g"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4755 main ()
4759 return 0;
4761 _ACEOF
4762 if ac_fn_cxx_try_compile "$LINENO"; then :
4763 ac_cv_prog_cxx_g=yes
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4773 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4774 if test "$ac_test_CXXFLAGS" = set; then
4775 CXXFLAGS=$ac_save_CXXFLAGS
4776 elif test $ac_cv_prog_cxx_g = yes; then
4777 if test "$GXX" = yes; then
4778 CXXFLAGS="-g -O2"
4779 else
4780 CXXFLAGS="-g"
4782 else
4783 if test "$GXX" = yes; then
4784 CXXFLAGS="-O2"
4785 else
4786 CXXFLAGS=
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 # We must set the default linker to the linker used by gcc for the correct
4797 # operation of libtool. If LD is not defined and we are using gcc, try to
4798 # set the LD default to the ld used by gcc.
4799 if test -z "$LD"; then
4800 if test "$GCC" = yes; then
4801 case $build in
4802 *-*-mingw*)
4803 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4805 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4806 esac
4807 case $gcc_prog_ld in
4808 # Accept absolute paths.
4809 [\\/]* | [A-Za-z]:[\\/]*)
4810 LD="$gcc_prog_ld" ;;
4811 esac
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$GNATBIND"; then
4827 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 GNATBIND=$ac_cv_prog_GNATBIND
4847 if test -n "$GNATBIND"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4849 $as_echo "$GNATBIND" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$ac_cv_prog_GNATBIND"; then
4858 ac_ct_GNATBIND=$GNATBIND
4859 # Extract the first word of "gnatbind", so it can be a program name with args.
4860 set dummy gnatbind; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_GNATBIND"; then
4867 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4887 if test -n "$ac_ct_GNATBIND"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4889 $as_echo "$ac_ct_GNATBIND" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4895 if test "x$ac_ct_GNATBIND" = x; then
4896 GNATBIND="no"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 GNATBIND=$ac_ct_GNATBIND
4906 else
4907 GNATBIND="$ac_cv_prog_GNATBIND"
4910 if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$GNATMAKE"; then
4919 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 GNATMAKE=$ac_cv_prog_GNATMAKE
4939 if test -n "$GNATMAKE"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4941 $as_echo "$GNATMAKE" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4949 if test -z "$ac_cv_prog_GNATMAKE"; then
4950 ac_ct_GNATMAKE=$GNATMAKE
4951 # Extract the first word of "gnatmake", so it can be a program name with args.
4952 set dummy gnatmake; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_GNATMAKE"; then
4959 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4979 if test -n "$ac_ct_GNATMAKE"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4981 $as_echo "$ac_ct_GNATMAKE" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4987 if test "x$ac_ct_GNATMAKE" = x; then
4988 GNATMAKE="no"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 GNATMAKE=$ac_ct_GNATMAKE
4998 else
4999 GNATMAKE="$ac_cv_prog_GNATMAKE"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5003 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5004 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 cat >conftest.adb <<EOF
5008 procedure conftest is begin null; end conftest;
5010 acx_cv_cc_gcc_supports_ada=no
5011 # There is a bug in old released versions of GCC which causes the
5012 # driver to exit successfully when the appropriate language module
5013 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5014 # Therefore we must check for the error message as well as an
5015 # unsuccessful exit.
5016 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5017 # given a .adb file, but produce no object file. So we must check
5018 # if an object file was really produced to guard against this.
5019 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5020 if test x"$errors" = x && test -f conftest.$ac_objext; then
5021 acx_cv_cc_gcc_supports_ada=yes
5023 rm -f conftest.*
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5026 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5028 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5029 have_gnat=yes
5030 else
5031 have_gnat=no
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5035 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5036 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 echo abfoo >t1
5040 echo cdfoo >t2
5041 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5042 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5043 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5045 else
5046 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5049 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5050 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5052 else
5053 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5056 rm t1 t2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5060 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5061 do_compare="$gcc_cv_prog_cmp_skip"
5065 # Check whether --enable-bootstrap was given.
5066 if test "${enable_bootstrap+set}" = set; then :
5067 enableval=$enable_bootstrap;
5068 else
5069 enable_bootstrap=default
5073 # Issue errors and warnings for invalid/strange bootstrap combinations.
5074 if test -r $srcdir/gcc/configure; then
5075 have_compiler=yes
5076 else
5077 have_compiler=no
5080 case "$have_compiler:$host:$target:$enable_bootstrap" in
5081 *:*:*:no) ;;
5083 # Default behavior. Enable bootstrap if we have a compiler
5084 # and we are in a native configuration.
5085 yes:$build:$build:default)
5086 enable_bootstrap=yes ;;
5088 *:*:*:default)
5089 enable_bootstrap=no ;;
5091 # We have a compiler and we are in a native configuration, bootstrap is ok
5092 yes:$build:$build:yes)
5095 # Other configurations, but we have a compiler. Assume the user knows
5096 # what he's doing.
5097 yes:*:*:yes)
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5099 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5102 # No compiler: if they passed --enable-bootstrap explicitly, fail
5103 no:*:*:yes)
5104 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5106 # Fail if wrong command line
5108 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5110 esac
5112 # See if we are building gcc with C++.
5113 # Check whether --enable-build-with-cxx was given.
5114 if test "${enable_build_with_cxx+set}" = set; then :
5115 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5116 else
5117 ENABLE_BUILD_WITH_CXX=no
5121 # Build stage1 with C and build stages 2 and 3 with C++.
5122 # Check whether --enable-build-poststage1-with-cxx was given.
5123 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5124 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5125 else
5126 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5130 # Used for setting $lt_cv_objdir
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5132 $as_echo_n "checking for objdir... " >&6; }
5133 if test "${lt_cv_objdir+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 rm -f .libs 2>/dev/null
5137 mkdir .libs 2>/dev/null
5138 if test -d .libs; then
5139 lt_cv_objdir=.libs
5140 else
5141 # MS-DOS does not allow filenames that begin with a dot.
5142 lt_cv_objdir=_libs
5144 rmdir .libs 2>/dev/null
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5147 $as_echo "$lt_cv_objdir" >&6; }
5148 objdir=$lt_cv_objdir
5154 cat >>confdefs.h <<_ACEOF
5155 #define LT_OBJDIR "$lt_cv_objdir/"
5156 _ACEOF
5160 # Check for GMP, MPFR and MPC
5161 gmplibs="-lmpc -lmpfr -lgmp"
5162 gmpinc=
5163 have_gmp=no
5165 # Specify a location for mpc
5166 # check for this first so it ends up on the link line before mpfr.
5168 # Check whether --with-mpc was given.
5169 if test "${with_mpc+set}" = set; then :
5170 withval=$with_mpc;
5174 # Check whether --with-mpc-include was given.
5175 if test "${with_mpc_include+set}" = set; then :
5176 withval=$with_mpc_include;
5180 # Check whether --with-mpc-lib was given.
5181 if test "${with_mpc_lib+set}" = set; then :
5182 withval=$with_mpc_lib;
5186 if test "x$with_mpc" != x; then
5187 gmplibs="-L$with_mpc/lib $gmplibs"
5188 gmpinc="-I$with_mpc/include $gmpinc"
5190 if test "x$with_mpc_include" != x; then
5191 gmpinc="-I$with_mpc_include $gmpinc"
5193 if test "x$with_mpc_lib" != x; then
5194 gmplibs="-L$with_mpc_lib $gmplibs"
5196 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5197 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5198 gmpinc='-I$$s/mpc/src '"$gmpinc"
5199 # Do not test the mpc version. Assume that it is sufficient, since
5200 # it is in the source tree, and the library has not been built yet
5201 # but it would be included on the link line in the version check below
5202 # hence making the test fail.
5203 have_gmp=yes
5206 # Specify a location for mpfr
5207 # check for this first so it ends up on the link line before gmp.
5209 # Check whether --with-mpfr-dir was given.
5210 if test "${with_mpfr_dir+set}" = set; then :
5211 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5212 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5217 # Check whether --with-mpfr was given.
5218 if test "${with_mpfr+set}" = set; then :
5219 withval=$with_mpfr;
5223 # Check whether --with-mpfr-include was given.
5224 if test "${with_mpfr_include+set}" = set; then :
5225 withval=$with_mpfr_include;
5229 # Check whether --with-mpfr-lib was given.
5230 if test "${with_mpfr_lib+set}" = set; then :
5231 withval=$with_mpfr_lib;
5235 if test "x$with_mpfr" != x; then
5236 gmplibs="-L$with_mpfr/lib $gmplibs"
5237 gmpinc="-I$with_mpfr/include $gmpinc"
5239 if test "x$with_mpfr_include" != x; then
5240 gmpinc="-I$with_mpfr_include $gmpinc"
5242 if test "x$with_mpfr_lib" != x; then
5243 gmplibs="-L$with_mpfr_lib $gmplibs"
5245 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5246 # MPFR v3.1.0 moved the sources into a src sub-directory.
5247 if test -d ${srcdir}/mpfr/src; then
5248 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5249 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5250 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5251 else
5252 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5253 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5254 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5256 # Do not test the mpfr version. Assume that it is sufficient, since
5257 # it is in the source tree, and the library has not been built yet
5258 # but it would be included on the link line in the version check below
5259 # hence making the test fail.
5260 have_gmp=yes
5263 # Specify a location for gmp
5265 # Check whether --with-gmp-dir was given.
5266 if test "${with_gmp_dir+set}" = set; then :
5267 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5268 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5273 # Check whether --with-gmp was given.
5274 if test "${with_gmp+set}" = set; then :
5275 withval=$with_gmp;
5279 # Check whether --with-gmp-include was given.
5280 if test "${with_gmp_include+set}" = set; then :
5281 withval=$with_gmp_include;
5285 # Check whether --with-gmp-lib was given.
5286 if test "${with_gmp_lib+set}" = set; then :
5287 withval=$with_gmp_lib;
5292 if test "x$with_gmp" != x; then
5293 gmplibs="-L$with_gmp/lib $gmplibs"
5294 gmpinc="-I$with_gmp/include $gmpinc"
5296 if test "x$with_gmp_include" != x; then
5297 gmpinc="-I$with_gmp_include $gmpinc"
5299 if test "x$with_gmp_lib" != x; then
5300 gmplibs="-L$with_gmp_lib $gmplibs"
5302 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5303 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5304 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5305 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5306 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5307 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5308 # Do not test the gmp version. Assume that it is sufficient, since
5309 # it is in the source tree, and the library has not been built yet
5310 # but it would be included on the link line in the version check below
5311 # hence making the test fail.
5312 have_gmp=yes
5315 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5316 have_gmp=yes
5317 saved_CFLAGS="$CFLAGS"
5318 CFLAGS="$CFLAGS $gmpinc"
5319 # Check for the recommended and required versions of GMP.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5321 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #include "gmp.h"
5327 main ()
5330 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5331 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5332 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5333 choke me
5334 #endif
5337 return 0;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #include <gmp.h>
5345 main ()
5348 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5349 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5350 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5351 choke me
5352 #endif
5355 return 0;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360 $as_echo "yes" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5363 $as_echo "buggy but acceptable" >&6; }
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }; have_gmp=no
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 # If we have GMP, check the MPFR version.
5373 if test x"$have_gmp" = xyes; then
5374 # Check for the recommended and required versions of MPFR.
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5376 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <gmp.h>
5380 #include <mpfr.h>
5382 main ()
5385 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5386 choke me
5387 #endif
5390 return 0;
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <gmp.h>
5397 #include <mpfr.h>
5399 main ()
5402 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5403 choke me
5404 #endif
5407 return 0;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5415 $as_echo "buggy but acceptable" >&6; }
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }; have_gmp=no
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 # Check for the MPC header version.
5426 if test x"$have_gmp" = xyes ; then
5427 # Check for the recommended and required versions of MPC.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5429 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <mpc.h>
5434 main ()
5437 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5438 choke me
5439 #endif
5442 return 0;
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <mpc.h>
5450 main ()
5453 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5454 choke me
5455 #endif
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5466 $as_echo "buggy but acceptable" >&6; }
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }; have_gmp=no
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 # Now check the MPFR library.
5477 if test x"$have_gmp" = xyes; then
5478 saved_LIBS="$LIBS"
5479 LIBS="$LIBS $gmplibs"
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5481 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <mpc.h>
5486 main ()
5489 mpfr_t n;
5490 mpfr_t x;
5491 mpc_t c;
5492 int t;
5493 mpfr_init (n);
5494 mpfr_init (x);
5495 mpfr_atan2 (n, n, x, GMP_RNDN);
5496 mpfr_erfc (n, x, GMP_RNDN);
5497 mpfr_subnormalize (x, t, GMP_RNDN);
5498 mpfr_clear(n);
5499 mpfr_clear(x);
5500 mpc_init2 (c, 53);
5501 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5502 mpc_cosh (c, c, MPC_RNDNN);
5503 mpc_pow (c, c, c, MPC_RNDNN);
5504 mpc_acosh (c, c, MPC_RNDNN);
5505 mpc_clear (c);
5508 return 0;
5510 _ACEOF
5511 if ac_fn_c_try_link "$LINENO"; then :
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5513 $as_echo "yes" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }; have_gmp=no
5518 rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520 LIBS="$saved_LIBS"
5523 CFLAGS="$saved_CFLAGS"
5525 # The library versions listed in the error message below should match
5526 # the HARD-minimums enforced above.
5527 if test x$have_gmp != xyes; then
5528 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5529 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5530 their locations. Source code for these libraries can be found at
5531 their respective hosting sites as well as at
5532 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5533 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5534 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5535 make sure that you have installed both the libraries and the header
5536 files. They may be located in separate packages." "$LINENO" 5
5540 # Flags needed for both GMP, MPFR and/or MPC.
5548 # Allow host libstdc++ to be specified for static linking with PPL.
5550 # Check whether --with-host-libstdcxx was given.
5551 if test "${with_host_libstdcxx+set}" = set; then :
5552 withval=$with_host_libstdcxx;
5556 case $with_host_libstdcxx in
5557 no|yes)
5558 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5560 esac
5562 # Linker flags to use for stage1 or when not boostrapping.
5564 # Check whether --with-stage1-ldflags was given.
5565 if test "${with_stage1_ldflags+set}" = set; then :
5566 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5567 stage1_ldflags=
5568 else
5569 stage1_ldflags=$withval
5571 else
5572 stage1_ldflags=
5577 # Libraries to use for stage1 or when not bootstrapping.
5579 # Check whether --with-stage1-libs was given.
5580 if test "${with_stage1_libs+set}" = set; then :
5581 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5582 stage1_libs=
5583 else
5584 stage1_libs=$withval
5586 else
5587 stage1_libs=$with_host_libstdcxx
5592 # Libraries to use for stage2 and later builds. This defaults to the
5593 # argument passed to --with-host-libstdcxx.
5595 # Check whether --with-boot-libs was given.
5596 if test "${with_boot_libs+set}" = set; then :
5597 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5598 poststage1_libs=
5599 else
5600 poststage1_libs=$withval
5602 else
5603 poststage1_libs=$with_host_libstdcxx
5608 # Linker flags to use for stage2 and later builds.
5610 # Check whether --with-boot-ldflags was given.
5611 if test "${with_boot_ldflags+set}" = set; then :
5612 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5613 poststage1_ldflags=
5614 else
5615 poststage1_ldflags=$withval
5617 else
5618 poststage1_ldflags=
5619 # In stages 2 and 3, default to linking libstdc++ and libgcc
5620 # statically. But if the user explicitly specified the libraries to
5621 # use, trust that they are doing what they want.
5622 if test "$poststage1_libs" = ""; then
5623 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5629 # Check for ISL
5632 # Check whether --with-isl was given.
5633 if test "${with_isl+set}" = set; then :
5634 withval=$with_isl;
5638 # Check whether --with-isl-include was given.
5639 if test "${with_isl_include+set}" = set; then :
5640 withval=$with_isl_include;
5644 # Check whether --with-isl-lib was given.
5645 if test "${with_isl_lib+set}" = set; then :
5646 withval=$with_isl_lib;
5650 # Check whether --enable-isl-version-check was given.
5651 if test "${enable_isl_version_check+set}" = set; then :
5652 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5653 else
5654 ENABLE_ISL_CHECK=yes
5658 # Initialize isllibs and islinc.
5659 case $with_isl in
5661 isllibs=
5662 islinc=
5664 "" | yes)
5667 isllibs="-L$with_isl/lib"
5668 islinc="-I$with_isl/include"
5670 esac
5671 if test "x${with_isl_include}" != x ; then
5672 islinc="-I$with_isl_include"
5674 if test "x${with_isl_lib}" != x; then
5675 isllibs="-L$with_isl_lib"
5677 if test "x${islinc}" = x && test "x${isllibs}" = x \
5678 && test -d ${srcdir}/isl; then
5679 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5680 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5681 ENABLE_ISL_CHECK=no
5684 isllibs="${isllibs} -lisl"
5690 if test "x$with_isl" != "xno"; then
5692 if test "${ENABLE_ISL_CHECK}" = yes ; then
5693 _isl_saved_CFLAGS=$CFLAGS
5694 _isl_saved_LDFLAGS=$LDFLAGS
5695 _isl_saved_LIBS=$LIBS
5697 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5698 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5699 LIBS="${_isl_saved_LIBS} -lisl"
5700 echo $CFLAGS
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5703 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5704 if test "${gcc_cv_isl+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test "$cross_compiling" = yes; then :
5708 gcc_cv_isl=yes
5709 else
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <isl/version.h>
5713 #include <string.h>
5715 main ()
5717 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5718 return 1;
5721 return 0;
5723 _ACEOF
5724 if ac_fn_c_try_run "$LINENO"; then :
5725 gcc_cv_isl=yes
5726 else
5727 gcc_cv_isl=no
5729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5730 conftest.$ac_objext conftest.beam conftest.$ac_ext
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5735 $as_echo "$gcc_cv_isl" >&6; }
5737 CFLAGS=$_isl_saved_CFLAGS
5738 LDFLAGS=$_isl_saved_LDFLAGS
5739 LIBS=$_isl_saved_LIBS
5748 if test "x${with_isl}" = xno; then
5749 graphite_requested=no
5750 elif test "x${with_isl}" != x \
5751 || test "x${with_isl_include}" != x \
5752 || test "x${with_isl_lib}" != x ; then
5753 graphite_requested=yes
5754 else
5755 graphite_requested=no
5760 if test "${gcc_cv_isl}" = no ; then
5761 isllibs=
5762 islinc=
5765 if test "${graphite_requested}" = yes \
5766 && test "x${isllibs}" = x \
5767 && test "x${islinc}" = x ; then
5769 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5775 # Check for CLOOG
5778 # Check whether --with-cloog was given.
5779 if test "${with_cloog+set}" = set; then :
5780 withval=$with_cloog;
5784 # Check whether --with-cloog-include was given.
5785 if test "${with_cloog_include+set}" = set; then :
5786 withval=$with_cloog_include;
5790 # Check whether --with-cloog-lib was given.
5791 if test "${with_cloog_lib+set}" = set; then :
5792 withval=$with_cloog_lib;
5796 # Check whether --enable-cloog-version-check was given.
5797 if test "${enable_cloog_version_check+set}" = set; then :
5798 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5799 else
5800 ENABLE_CLOOG_CHECK=yes
5804 # Initialize clooglibs and clooginc.
5805 case $with_cloog in
5807 clooglibs=
5808 clooginc=
5810 "" | yes)
5813 clooglibs="-L$with_cloog/lib"
5814 clooginc="-I$with_cloog/include"
5816 esac
5817 if test "x${with_cloog_include}" != x ; then
5818 clooginc="-I$with_cloog_include"
5820 if test "x${with_cloog_lib}" != x; then
5821 clooglibs="-L$with_cloog_lib"
5823 if test "x${clooginc}" == x && test "x${clooglibs}" == x \
5824 && test -d ${srcdir}/cloog; then
5825 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5826 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5829 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5830 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5836 if test "x$isllibs" = x && test "x$islinc" = x; then
5837 clooglibs=
5838 clooginc=
5839 elif test "x$with_cloog" != "xno"; then
5843 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5844 _cloog_saved_CFLAGS=$CFLAGS
5845 _cloog_saved_LDFLAGS=$LDFLAGS
5847 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5848 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5851 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5852 if test "${gcc_cv_cloog+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #include "cloog/version.h"
5859 main ()
5861 #if CLOOG_VERSION_MAJOR != 0 \
5862 || CLOOG_VERSION_MINOR != 17 \
5863 || CLOOG_VERSION_REVISION < 0
5864 choke me
5865 #endif
5867 return 0;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 gcc_cv_cloog=yes
5872 else
5873 gcc_cv_cloog=no
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5878 $as_echo "$gcc_cv_cloog" >&6; }
5880 CFLAGS=$_cloog_saved_CFLAGS
5881 LDFLAGS=$_cloog_saved_LDFLAGS
5890 if test "x${with_cloog}" = xno; then
5891 graphite_requested=no
5892 elif test "x${with_cloog}" != x \
5893 || test "x${with_cloog_include}" != x \
5894 || test "x${with_cloog_lib}" != x ; then
5895 graphite_requested=yes
5896 else
5897 graphite_requested=no
5902 if test "${gcc_cv_cloog}" = no ; then
5903 clooglibs=
5904 clooginc=
5907 if test "${graphite_requested}" = yes \
5908 && test "x${clooglibs}" = x \
5909 && test "x${clooginc}" = x ; then
5911 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5917 # If either the ISL or the CLooG check failed, disable builds of in-tree
5918 # variants of both
5919 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5920 noconfigdirs="$noconfigdirs cloog isl"
5923 # Check for LTO support.
5924 # Check whether --enable-lto was given.
5925 if test "${enable_lto+set}" = set; then :
5926 enableval=$enable_lto; enable_lto=$enableval
5927 else
5928 enable_lto=yes; default_enable_lto=yes
5935 target_elf=no
5936 case $target in
5937 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5938 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5939 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5940 target_elf=no
5943 target_elf=yes
5945 esac
5947 if test $target_elf = yes; then :
5948 # ELF platforms build the lto-plugin always.
5949 build_lto_plugin=yes
5951 else
5952 if test x"$default_enable_lto" = x"yes" ; then
5953 case $target in
5954 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5955 # On other non-ELF platforms, LTO has yet to be validated.
5956 *) enable_lto=no ;;
5957 esac
5958 else
5959 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5960 # It would also be nice to check the binutils support, but we don't
5961 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5962 # warn during gcc/ subconfigure; unless you're bootstrapping with
5963 # -flto it won't be needed until after installation anyway.
5964 case $target in
5965 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5966 *) if test x"$enable_lto" = x"yes"; then
5967 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5970 esac
5972 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5973 # Build it unless LTO was explicitly disabled.
5974 case $target in
5975 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5976 *) ;;
5977 esac
5983 # By default, C is the only stage 1 language.
5984 stage1_languages=,c,
5986 # Target libraries that we bootstrap.
5987 bootstrap_target_libs=,target-libgcc,
5989 # Figure out what language subdirectories are present.
5990 # Look if the user specified --enable-languages="..."; if not, use
5991 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5992 # go away some day.
5993 # NB: embedded tabs in this IF block -- do not untabify
5994 if test -d ${srcdir}/gcc; then
5995 if test x"${enable_languages+set}" != xset; then
5996 if test x"${LANGUAGES+set}" = xset; then
5997 enable_languages="${LANGUAGES}"
5998 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5999 else
6000 enable_languages=all
6002 else
6003 if test x"${enable_languages}" = x ||
6004 test x"${enable_languages}" = xyes;
6005 then
6006 echo configure.in: --enable-languages needs at least one language argument 1>&2
6007 exit 1
6010 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6012 # 'f95' is the old name for the 'fortran' language. We issue a warning
6013 # and make the substitution.
6014 case ,${enable_languages}, in
6015 *,f95,*)
6016 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6017 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6019 esac
6021 # If bootstrapping, then using --enable-build-with-cxx or
6022 # --enable-build-poststage1-with-cxx requires enabling C++.
6023 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6024 *,c++,*:*:*) ;;
6025 *:*,yes,*:yes)
6026 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6027 enable_languages="${enable_languages},c++"
6028 else
6029 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6032 esac
6034 # First scan to see if an enabled language requires some other language.
6035 # We assume that a given config-lang.in will list all the language
6036 # front ends it requires, even if some are required indirectly.
6037 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6038 case ${lang_frag} in
6039 ..) ;;
6040 # The odd quoting in the next line works around
6041 # an apparent bug in bash 1.12 on linux.
6042 ${srcdir}/gcc/[*]/config-lang.in) ;;
6044 # From the config-lang.in, get $language, $lang_requires, and
6045 # $lang_requires_boot_languages.
6046 language=
6047 lang_requires=
6048 lang_requires_boot_languages=
6049 . ${lang_frag}
6050 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6051 case ,${enable_languages}, in
6052 *,$other,*) ;;
6053 *,all,*) ;;
6054 *,$language,*)
6055 echo " \`$other' language required by \`$language'; enabling" 1>&2
6056 enable_languages="${enable_languages},${other}"
6058 esac
6059 done
6060 for other in ${lang_requires_boot_languages} ; do
6061 if test "$other" != "c"; then
6062 case ,${enable_stage1_languages}, in
6063 *,$other,*) ;;
6064 *,all,*) ;;
6066 case ,${enable_languages}, in
6067 *,$language,*)
6068 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6069 enable_stage1_languages="$enable_stage1_languages,${other}"
6071 esac
6073 esac
6075 done
6077 esac
6078 done
6080 new_enable_languages=,c,
6082 # If LTO is enabled, add the LTO front end.
6083 extra_host_libiberty_configure_flags=
6084 if test "$enable_lto" = "yes" ; then
6085 case ,${enable_languages}, in
6086 *,lto,*) ;;
6087 *) enable_languages="${enable_languages},lto" ;;
6088 esac
6089 if test "${build_lto_plugin}" = "yes" ; then
6090 configdirs="$configdirs lto-plugin"
6091 extra_host_libiberty_configure_flags=--enable-shared
6096 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6097 potential_languages=,c,
6099 enabled_target_libs=
6100 disabled_target_libs=
6102 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6103 case ${lang_frag} in
6104 ..) ;;
6105 # The odd quoting in the next line works around
6106 # an apparent bug in bash 1.12 on linux.
6107 ${srcdir}/gcc/[*]/config-lang.in) ;;
6109 # From the config-lang.in, get $language, $target_libs,
6110 # $lang_dirs, $boot_language, and $build_by_default
6111 language=
6112 target_libs=
6113 lang_dirs=
6114 subdir_requires=
6115 boot_language=no
6116 build_by_default=yes
6117 . ${lang_frag}
6118 if test x${language} = x; then
6119 echo "${lang_frag} doesn't set \$language." 1>&2
6120 exit 1
6123 if test "$language" = "c++"; then
6124 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6125 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6126 boot_language=yes
6130 case ,${enable_languages}, in
6131 *,${language},*)
6132 # Language was explicitly selected; include it
6133 # unless it is C, which is enabled by default.
6134 if test "$language" != "c"; then
6135 add_this_lang=yes
6138 *,all,*)
6139 # 'all' was selected, select it if it is a default language
6140 add_this_lang=${build_by_default}
6143 add_this_lang=no
6145 esac
6147 # Disable languages that need other directories if these aren't available.
6148 for i in $subdir_requires; do
6149 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6150 case ,${enable_languages}, in
6151 *,${language},*)
6152 # Specifically requested language; tell them.
6153 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6156 # Silently disable.
6157 add_this_lang=unsupported
6159 esac
6160 done
6162 # Disable Ada if no preexisting GNAT is available.
6163 case ,${enable_languages},:${language}:${have_gnat} in
6164 *,${language},*:ada:no)
6165 # Specifically requested language; tell them.
6166 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6168 *:ada:no)
6169 # Silently disable.
6170 add_this_lang=unsupported
6172 esac
6174 # Disable a language that is unsupported by the target.
6175 case " $unsupported_languages " in
6176 *" $language "*)
6177 add_this_lang=unsupported
6179 esac
6181 case $add_this_lang in
6182 unsupported)
6183 # Remove language-dependent dirs.
6184 disabled_target_libs="$disabled_target_libs $target_libs"
6185 noconfigdirs="$noconfigdirs $lang_dirs"
6188 # Remove language-dependent dirs; still show language as supported.
6189 disabled_target_libs="$disabled_target_libs $target_libs"
6190 noconfigdirs="$noconfigdirs $lang_dirs"
6191 potential_languages="${potential_languages}${language},"
6193 yes)
6194 new_enable_languages="${new_enable_languages}${language},"
6195 potential_languages="${potential_languages}${language},"
6196 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6197 enabled_target_libs="$enabled_target_libs $target_libs"
6198 case "${boot_language}:,$enable_stage1_languages," in
6199 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6200 # Add to (comma-separated) list of stage 1 languages.
6201 case ",$stage1_languages," in
6202 *,$language,* | ,yes, | ,all,) ;;
6203 *) stage1_languages="${stage1_languages}${language}," ;;
6204 esac
6205 # We need to bootstrap any supporting libraries.
6206 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6208 esac
6210 esac
6212 esac
6213 done
6215 # Add target libraries which are only needed for disabled languages
6216 # to noconfigdirs.
6217 if test -n "$disabled_target_libs"; then
6218 for dir in $disabled_target_libs; do
6219 case " $enabled_target_libs " in
6220 *" ${dir} "*) ;;
6221 *) noconfigdirs="$noconfigdirs $dir" ;;
6222 esac
6223 done
6226 # Check whether --enable-stage1-languages was given.
6227 if test "${enable_stage1_languages+set}" = set; then :
6228 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6229 ,no,|,,)
6230 # Set it to something that will have no effect in the loop below
6231 enable_stage1_languages=c ;;
6232 ,yes,)
6233 enable_stage1_languages=`echo $new_enable_languages | \
6234 sed -e "s/^,//" -e "s/,$//" ` ;;
6235 *,all,*)
6236 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6237 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6238 esac
6240 # Add "good" languages from enable_stage1_languages to stage1_languages,
6241 # while "bad" languages go in missing_languages. Leave no duplicates.
6242 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6243 case $potential_languages in
6244 *,$i,*)
6245 case $stage1_languages in
6246 *,$i,*) ;;
6247 *) stage1_languages="$stage1_languages$i," ;;
6248 esac ;;
6250 case $missing_languages in
6251 *,$i,*) ;;
6252 *) missing_languages="$missing_languages$i," ;;
6253 esac ;;
6254 esac
6255 done
6259 # Remove leading/trailing commas that were added for simplicity
6260 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6261 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6262 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6263 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6265 if test "x$missing_languages" != x; then
6266 as_fn_error "
6267 The following requested languages could not be built: ${missing_languages}
6268 Supported languages are: ${potential_languages}" "$LINENO" 5
6270 if test "x$new_enable_languages" != "x$enable_languages"; then
6271 echo The following languages will be built: ${new_enable_languages}
6272 enable_languages="$new_enable_languages"
6276 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6279 # Handle --disable-<component> generically.
6280 for dir in $configdirs $build_configdirs $target_configdirs ; do
6281 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6282 varname=`echo $dirname | sed -e s/+/_/g`
6283 if eval test x\${enable_${varname}} "=" xno ; then
6284 noconfigdirs="$noconfigdirs $dir"
6286 done
6288 # Check for Boehm's garbage collector
6289 # Check whether --enable-objc-gc was given.
6290 if test "${enable_objc_gc+set}" = set; then :
6291 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6292 *,objc,*:*:yes:*target-boehm-gc*)
6293 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6295 esac
6299 # Make sure we only build Boehm's garbage collector if required.
6300 case ,${enable_languages},:${enable_objc_gc} in
6301 *,objc,*:yes)
6302 # Keep target-boehm-gc if requested for Objective-C.
6305 # Otherwise remove target-boehm-gc depending on target-libjava.
6306 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6307 noconfigdirs="$noconfigdirs target-boehm-gc"
6310 esac
6312 # Disable libitm if we're not building C++
6313 case ,${enable_languages}, in
6314 *,c++,*) ;;
6316 noconfigdirs="$noconfigdirs target-libitm"
6318 esac
6320 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6321 # $build_configdirs and $target_configdirs.
6322 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6324 notsupp=""
6325 for dir in . $skipdirs $noconfigdirs ; do
6326 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6327 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6328 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6329 if test -r $srcdir/$dirname/configure ; then
6330 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6331 true
6332 else
6333 notsupp="$notsupp $dir"
6337 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6338 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6339 if test -r $srcdir/$dirname/configure ; then
6340 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6341 true
6342 else
6343 notsupp="$notsupp $dir"
6347 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6348 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6349 if test -r $srcdir/$dirname/configure ; then
6350 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6351 true
6352 else
6353 notsupp="$notsupp $dir"
6357 done
6359 # Quietly strip out all directories which aren't configurable in this tree.
6360 # This relies on all configurable subdirectories being autoconfiscated, which
6361 # is now the case.
6362 build_configdirs_all="$build_configdirs"
6363 build_configdirs=
6364 for i in ${build_configdirs_all} ; do
6365 j=`echo $i | sed -e s/build-//g`
6366 if test -f ${srcdir}/$j/configure ; then
6367 build_configdirs="${build_configdirs} $i"
6369 done
6371 configdirs_all="$configdirs"
6372 configdirs=
6373 for i in ${configdirs_all} ; do
6374 if test -f ${srcdir}/$i/configure ; then
6375 configdirs="${configdirs} $i"
6377 done
6379 target_configdirs_all="$target_configdirs"
6380 target_configdirs=
6381 for i in ${target_configdirs_all} ; do
6382 j=`echo $i | sed -e s/target-//g`
6383 if test -f ${srcdir}/$j/configure ; then
6384 target_configdirs="${target_configdirs} $i"
6386 done
6388 # Produce a warning message for the subdirs we can't configure.
6389 # This isn't especially interesting in the Cygnus tree, but in the individual
6390 # FSF releases, it's important to let people know when their machine isn't
6391 # supported by the one or two programs in a package.
6393 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6394 # If $appdirs is non-empty, at least one of those directories must still
6395 # be configured, or we error out. (E.g., if the gas release supports a
6396 # specified target in some subdirs but not the gas subdir, we shouldn't
6397 # pretend that all is well.)
6398 if test -n "$appdirs" ; then
6399 for dir in $appdirs ; do
6400 if test -r $dir/Makefile.in ; then
6401 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6402 appdirs=""
6403 break
6405 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6406 appdirs=""
6407 break
6410 done
6411 if test -n "$appdirs" ; then
6412 echo "*** This configuration is not supported by this package." 1>&2
6413 exit 1
6416 # Okay, some application will build, or we don't care to check. Still
6417 # notify of subdirs not getting built.
6418 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6419 echo " ${notsupp}" 1>&2
6420 echo " (Any other directories should still work fine.)" 1>&2
6423 case "$host" in
6424 *msdosdjgpp*)
6425 enable_gdbtk=no ;;
6426 esac
6428 # To find our prefix, in gcc_cv_tool_prefix.
6430 # The user is always right.
6431 if test "${PATH_SEPARATOR+set}" != set; then
6432 echo "#! /bin/sh" >conf$$.sh
6433 echo "exit 0" >>conf$$.sh
6434 chmod +x conf$$.sh
6435 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6436 PATH_SEPARATOR=';'
6437 else
6438 PATH_SEPARATOR=:
6440 rm -f conf$$.sh
6445 if test "x$exec_prefix" = xNONE; then
6446 if test "x$prefix" = xNONE; then
6447 gcc_cv_tool_prefix=$ac_default_prefix
6448 else
6449 gcc_cv_tool_prefix=$prefix
6451 else
6452 gcc_cv_tool_prefix=$exec_prefix
6455 # If there is no compiler in the tree, use the PATH only. In any
6456 # case, if there is no compiler in the tree nobody should use
6457 # AS_FOR_TARGET and LD_FOR_TARGET.
6458 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6459 gcc_version=`cat $srcdir/gcc/BASE-VER`
6460 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6461 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6462 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6463 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6464 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6465 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6466 else
6467 gcc_cv_tool_dirs=
6470 if test x$build = x$target && test -n "$md_exec_prefix"; then
6471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6476 copy_dirs=
6479 # Check whether --with-build-sysroot was given.
6480 if test "${with_build_sysroot+set}" = set; then :
6481 withval=$with_build_sysroot; if test x"$withval" != x ; then
6482 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6484 else
6485 SYSROOT_CFLAGS_FOR_TARGET=
6491 # Check whether --with-debug-prefix-map was given.
6492 if test "${with_debug_prefix_map+set}" = set; then :
6493 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6494 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6495 for debug_map in $withval; do
6496 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6497 done
6499 else
6500 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6505 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6506 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6507 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6508 # We want to ensure that TARGET libraries (which we know are built with
6509 # gcc) are built with "-O2 -g", so include those options when setting
6510 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6511 if test "x$CFLAGS_FOR_TARGET" = x; then
6512 CFLAGS_FOR_TARGET=$CFLAGS
6513 case " $CFLAGS " in
6514 *" -O2 "*) ;;
6515 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6516 esac
6517 case " $CFLAGS " in
6518 *" -g "* | *" -g3 "*) ;;
6519 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6520 esac
6524 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6525 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6526 case " $CXXFLAGS " in
6527 *" -O2 "*) ;;
6528 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6529 esac
6530 case " $CXXFLAGS " in
6531 *" -g "* | *" -g3 "*) ;;
6532 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6533 esac
6539 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6540 # the named directory are copied to $(tooldir)/sys-include.
6541 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6542 if test x${is_cross_compiler} = xno ; then
6543 echo 1>&2 '***' --with-headers is only supported when cross compiling
6544 exit 1
6546 if test x"${with_headers}" != xyes ; then
6547 x=${gcc_cv_tool_prefix}
6548 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6552 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6553 # the name directories are copied to $(tooldir)/lib. Multiple directories
6554 # are permitted.
6555 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6556 if test x${is_cross_compiler} = xno ; then
6557 echo 1>&2 '***' --with-libs is only supported when cross compiling
6558 exit 1
6560 if test x"${with_libs}" != xyes ; then
6561 # Copy the libraries in reverse order, so that files in the first named
6562 # library override files in subsequent libraries.
6563 x=${gcc_cv_tool_prefix}
6564 for l in ${with_libs}; do
6565 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6566 done
6570 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6572 # This is done by determining whether or not the appropriate directory
6573 # is available, and by checking whether or not specific configurations
6574 # have requested that this magic not happen.
6576 # The command line options always override the explicit settings in
6577 # configure.in, and the settings in configure.in override this magic.
6579 # If the default for a toolchain is to use GNU as and ld, and you don't
6580 # want to do that, then you should use the --without-gnu-as and
6581 # --without-gnu-ld options for the configure script. Similarly, if
6582 # the default is to use the included zlib and you don't want to do that,
6583 # you should use the --with-system-zlib option for the configure script.
6585 if test x${use_gnu_as} = x &&
6586 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6587 with_gnu_as=yes
6588 extra_host_args="$extra_host_args --with-gnu-as"
6591 if test x${use_gnu_ld} = x &&
6592 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6593 with_gnu_ld=yes
6594 extra_host_args="$extra_host_args --with-gnu-ld"
6597 if test x${use_included_zlib} = x &&
6598 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6600 else
6601 with_system_zlib=yes
6602 extra_host_args="$extra_host_args --with-system-zlib"
6605 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6606 # can detect this case.
6608 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6609 with_newlib=yes
6610 extra_host_args="$extra_host_args --with-newlib"
6613 # Handle ${copy_dirs}
6614 set fnord ${copy_dirs}
6615 shift
6616 while test $# != 0 ; do
6617 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6619 else
6620 echo Copying $1 to $2
6622 # Use the install script to create the directory and all required
6623 # parent directories.
6624 if test -d $2 ; then
6626 else
6627 echo >config.temp
6628 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6631 # Copy the directory, assuming we have tar.
6632 # FIXME: Should we use B in the second tar? Not all systems support it.
6633 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6635 # It is the responsibility of the user to correctly adjust all
6636 # symlinks. If somebody can figure out how to handle them correctly
6637 # here, feel free to add the code.
6639 echo $1 > $2/COPIED
6641 shift; shift
6642 done
6644 # Determine a target-dependent exec_prefix that the installed
6645 # gcc will search in. Keep this list sorted by triplet, with
6646 # the *-*-osname triplets last.
6647 md_exec_prefix=
6648 case "${target}" in
6649 i[34567]86-pc-msdosdjgpp*)
6650 md_exec_prefix=/dev/env/DJDIR/bin
6652 *-*-hpux* | \
6653 *-*-nto-qnx* | \
6654 *-*-solaris2*)
6655 md_exec_prefix=/usr/ccs/bin
6657 esac
6659 extra_arflags_for_target=
6660 extra_nmflags_for_target=
6661 extra_ranlibflags_for_target=
6662 target_makefile_frag=/dev/null
6663 case "${target}" in
6664 spu-*-*)
6665 target_makefile_frag="config/mt-spu"
6667 mips*-sde-elf*)
6668 target_makefile_frag="config/mt-sde"
6670 mipsisa*-*-elfoabi*)
6671 target_makefile_frag="config/mt-mips-elfoabi"
6673 mips*-*-*linux* | mips*-*-gnu*)
6674 target_makefile_frag="config/mt-mips-gnu"
6676 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6677 target_makefile_frag="config/mt-gnu"
6679 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6680 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6681 # commands to handle both 32-bit and 64-bit objects. These flags are
6682 # harmless if we're using GNU nm or ar.
6683 extra_arflags_for_target=" -X32_64"
6684 extra_nmflags_for_target=" -B -X32_64"
6686 esac
6688 alphaieee_frag=/dev/null
6689 case $target in
6690 alpha*-*-*)
6691 # This just makes sure to use the -mieee option to build target libs.
6692 # This should probably be set individually by each library.
6693 alphaieee_frag="config/mt-alphaieee"
6695 esac
6697 # If --enable-target-optspace always use -Os instead of -O2 to build
6698 # the target libraries, similarly if it is not specified, use -Os
6699 # on selected platforms.
6700 ospace_frag=/dev/null
6701 case "${enable_target_optspace}:${target}" in
6702 yes:*)
6703 ospace_frag="config/mt-ospace"
6705 :d30v-*)
6706 ospace_frag="config/mt-d30v"
6708 :m32r-* | :d10v-* | :fr30-*)
6709 ospace_frag="config/mt-ospace"
6711 no:* | :*)
6714 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6716 esac
6718 # Some systems (e.g., one of the i386-aix systems the gas testers are
6719 # using) don't handle "\$" correctly, so don't use it here.
6720 tooldir='${exec_prefix}'/${target_noncanonical}
6721 build_tooldir=${tooldir}
6723 # Create a .gdbinit file which runs the one in srcdir
6724 # and tells GDB to look there for source files.
6726 if test -r ${srcdir}/.gdbinit ; then
6727 case ${srcdir} in
6728 .) ;;
6729 *) cat > ./.gdbinit <<EOF
6730 # ${NO_EDIT}
6731 dir ${srcdir}
6732 dir .
6733 source ${srcdir}/.gdbinit
6736 esac
6739 # Make sure that the compiler is able to generate an executable. If it
6740 # can't, we are probably in trouble. We don't care whether we can run the
6741 # executable--we might be using a cross compiler--we only care whether it
6742 # can be created. At this point the main configure script has set CC.
6743 we_are_ok=no
6744 echo "int main () { return 0; }" > conftest.c
6745 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6746 if test $? = 0 ; then
6747 if test -s conftest || test -s conftest.exe ; then
6748 we_are_ok=yes
6751 case $we_are_ok in
6753 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6754 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6755 rm -f conftest*
6756 exit 1
6758 esac
6759 rm -f conftest*
6761 # Decide which environment variable is used to find dynamic libraries.
6762 case "${host}" in
6763 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6764 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6765 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6766 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6767 esac
6769 # On systems where the dynamic library environment variable is PATH,
6770 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6771 # built executables to PATH.
6772 if test "$RPATH_ENVVAR" = PATH; then
6773 GCC_SHLIB_SUBDIR=/shlib
6774 else
6775 GCC_SHLIB_SUBDIR=
6778 # Record target_configdirs and the configure arguments for target and
6779 # build configuration in Makefile.
6780 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6781 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6783 # If we are building libgomp, bootstrap it.
6784 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6785 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6788 # Determine whether gdb needs tk/tcl or not.
6789 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6790 # and in that case we want gdb to be built without tk. Ugh!
6791 # In fact I believe gdb is the *only* package directly dependent on tk,
6792 # so we should be able to put the 'maybe's in unconditionally and
6793 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6794 # 100% sure that that's safe though.
6796 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6797 case "$enable_gdbtk" in
6799 GDB_TK="" ;;
6800 yes)
6801 GDB_TK="${gdb_tk}" ;;
6803 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6804 # distro. Eventually someone will fix this and move Insight, nee
6805 # gdbtk to a separate directory.
6806 if test -d ${srcdir}/gdb/gdbtk ; then
6807 GDB_TK="${gdb_tk}"
6808 else
6809 GDB_TK=""
6812 esac
6813 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6814 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6816 # Strip out unwanted targets.
6818 # While at that, we remove Makefiles if we were started for recursive
6819 # configuration, so that the top-level Makefile reconfigures them,
6820 # like we used to do when configure itself was recursive.
6822 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6823 # but now we're fixing up the Makefile ourselves with the additional
6824 # commands passed to AC_CONFIG_FILES. Use separate variables
6825 # extrasub-{build,host,target} not because there is any reason to split
6826 # the substitutions up that way, but only to remain below the limit of
6827 # 99 commands in a script, for HP-UX sed.
6828 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6830 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6831 yes:yes:*\ gold\ *:*,c++,*) ;;
6832 yes:yes:*\ gold\ *:*)
6833 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6835 esac
6837 # Adjust the toplevel makefile according to whether bootstrap was selected.
6838 case $enable_bootstrap in
6839 yes)
6840 bootstrap_suffix=bootstrap
6841 BUILD_CONFIG=bootstrap-debug
6844 bootstrap_suffix=no-bootstrap
6845 BUILD_CONFIG=
6847 esac
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6850 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6853 # Check whether --with-build-config was given.
6854 if test "${with_build_config+set}" = set; then :
6855 withval=$with_build_config; case $with_build_config in
6856 yes) with_build_config= ;;
6857 no) with_build_config= BUILD_CONFIG= ;;
6858 esac
6862 if test "x${with_build_config}" != x; then
6863 BUILD_CONFIG=$with_build_config
6864 else
6865 case $BUILD_CONFIG in
6866 bootstrap-debug)
6867 if echo "int f (void) { return 0; }" > conftest.c &&
6868 ${CC} -c conftest.c &&
6869 mv conftest.o conftest.o.g0 &&
6870 ${CC} -c -g conftest.c &&
6871 mv conftest.o conftest.o.g &&
6872 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6874 else
6875 BUILD_CONFIG=
6877 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6879 esac
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6882 $as_echo "$BUILD_CONFIG" >&6; }
6885 extrasub_build=
6886 for module in ${build_configdirs} ; do
6887 if test -z "${no_recursion}" \
6888 && test -f ${build_subdir}/${module}/Makefile; then
6889 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6890 rm -f ${build_subdir}/${module}/Makefile
6892 extrasub_build="$extrasub_build
6893 /^@if build-$module\$/d
6894 /^@endif build-$module\$/d
6895 /^@if build-$module-$bootstrap_suffix\$/d
6896 /^@endif build-$module-$bootstrap_suffix\$/d"
6897 done
6898 extrasub_host=
6899 for module in ${configdirs} ; do
6900 if test -z "${no_recursion}"; then
6901 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6902 if test -f ${file}; then
6903 echo 1>&2 "*** removing ${file} to force reconfigure"
6904 rm -f ${file}
6906 done
6908 extrasub_host="$extrasub_host
6909 /^@if $module\$/d
6910 /^@endif $module\$/d
6911 /^@if $module-$bootstrap_suffix\$/d
6912 /^@endif $module-$bootstrap_suffix\$/d"
6913 done
6914 extrasub_target=
6915 for module in ${target_configdirs} ; do
6916 if test -z "${no_recursion}" \
6917 && test -f ${target_subdir}/${module}/Makefile; then
6918 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6919 rm -f ${target_subdir}/${module}/Makefile
6922 # We only bootstrap target libraries listed in bootstrap_target_libs.
6923 case $bootstrap_target_libs in
6924 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6925 *) target_bootstrap_suffix=no-bootstrap ;;
6926 esac
6928 extrasub_target="$extrasub_target
6929 /^@if target-$module\$/d
6930 /^@endif target-$module\$/d
6931 /^@if target-$module-$target_bootstrap_suffix\$/d
6932 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6933 done
6935 # Do the final fixup along with target modules.
6936 extrasub_target="$extrasub_target
6937 /^@if /,/^@endif /d"
6939 # Create the serialization dependencies. This uses a temporary file.
6941 # Check whether --enable-serial-configure was given.
6942 if test "${enable_serial_configure+set}" = set; then :
6943 enableval=$enable_serial_configure;
6947 case ${enable_serial_configure} in
6948 yes)
6949 enable_serial_build_configure=yes
6950 enable_serial_host_configure=yes
6951 enable_serial_target_configure=yes
6953 esac
6955 # These force 'configure's to be done one at a time, to avoid problems
6956 # with contention over a shared config.cache.
6957 rm -f serdep.tmp
6958 echo '# serdep.tmp' > serdep.tmp
6959 olditem=
6960 test "x${enable_serial_build_configure}" = xyes &&
6961 for item in ${build_configdirs} ; do
6962 case ${olditem} in
6963 "") ;;
6964 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6965 esac
6966 olditem=${item}
6967 done
6968 olditem=
6969 test "x${enable_serial_host_configure}" = xyes &&
6970 for item in ${configdirs} ; do
6971 case ${olditem} in
6972 "") ;;
6973 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6974 esac
6975 olditem=${item}
6976 done
6977 olditem=
6978 test "x${enable_serial_target_configure}" = xyes &&
6979 for item in ${target_configdirs} ; do
6980 case ${olditem} in
6981 "") ;;
6982 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6983 esac
6984 olditem=${item}
6985 done
6986 serialization_dependencies=serdep.tmp
6989 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6990 # target, nonopt, and variable assignments. These are the ones we
6991 # might not want to pass down to subconfigures. The exception being
6992 # --cache-file=/dev/null, which is used to turn off the use of cache
6993 # files altogether, and which should be passed on to subconfigures.
6994 # Also strip program-prefix, program-suffix, and program-transform-name,
6995 # so that we can pass down a consistent program-transform-name.
6996 baseargs=
6997 tbaseargs=
6998 keep_next=no
6999 skip_next=no
7000 eval "set -- $ac_configure_args"
7001 for ac_arg
7003 if test X"$skip_next" = X"yes"; then
7004 skip_next=no
7005 continue
7007 if test X"$keep_next" = X"yes"; then
7008 case $ac_arg in
7009 *\'*)
7010 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7011 esac
7012 baseargs="$baseargs '$ac_arg'"
7013 tbaseargs="$tbaseargs '$ac_arg'"
7014 keep_next=no
7015 continue
7018 # Handle separated arguments. Based on the logic generated by
7019 # autoconf 2.59.
7020 case $ac_arg in
7021 *=* | --config-cache | -C | -disable-* | --disable-* \
7022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7024 | -with-* | --with-* | -without-* | --without-* | --x)
7025 separate_arg=no
7028 separate_arg=yes
7031 separate_arg=no
7033 esac
7035 skip_targ=no
7036 case $ac_arg in
7038 --with-* | --without-*)
7039 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7041 case $libopt in
7042 *[-_]include)
7043 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7045 *[-_]lib)
7046 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7049 lib=$libopt
7051 esac
7054 case $lib in
7055 mpc | mpfr | gmp | cloog)
7056 # If we're processing --with-$lib, --with-$lib-include or
7057 # --with-$lib-lib, for one of the libs above, and target is
7058 # different from host, don't pass the current argument to any
7059 # target library's configure.
7060 if test x$is_cross_compiler = xyes; then
7061 skip_targ=yes
7064 esac
7066 esac
7068 case "$ac_arg" in
7069 --cache-file=/dev/null | \
7070 -cache-file=/dev/null )
7071 # Handled here to avoid the test to skip args below.
7072 baseargs="$baseargs '$ac_arg'"
7073 tbaseargs="$tbaseargs '$ac_arg'"
7074 # Assert: $separate_arg should always be no.
7075 keep_next=$separate_arg
7077 --no*)
7078 continue
7080 --c* | \
7081 --sr* | \
7082 --ho* | \
7083 --bu* | \
7084 --t* | \
7085 --program-* | \
7086 -cache_file* | \
7087 -srcdir* | \
7088 -host* | \
7089 -build* | \
7090 -target* | \
7091 -program-prefix* | \
7092 -program-suffix* | \
7093 -program-transform-name* )
7094 skip_next=$separate_arg
7095 continue
7098 # An option. Add it.
7099 case $ac_arg in
7100 *\'*)
7101 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7102 esac
7103 baseargs="$baseargs '$ac_arg'"
7104 if test X"$skip_targ" = Xno; then
7105 tbaseargs="$tbaseargs '$ac_arg'"
7107 keep_next=$separate_arg
7110 # Either a variable assignment, or a nonopt (triplet). Don't
7111 # pass it down; let the Makefile handle this.
7112 continue
7114 esac
7115 done
7116 # Remove the initial space we just introduced and, as these will be
7117 # expanded by make, quote '$'.
7118 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7120 # Add in --program-transform-name, after --program-prefix and
7121 # --program-suffix have been applied to it. Autoconf has already
7122 # doubled dollar signs and backslashes in program_transform_name; we want
7123 # the backslashes un-doubled, and then the entire thing wrapped in single
7124 # quotes, because this will be expanded first by make and then by the shell.
7125 # Also, because we want to override the logic in subdir configure scripts to
7126 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7127 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7128 ${program_transform_name}
7129 EOF_SED
7130 gcc_transform_name=`cat conftestsed.out`
7131 rm -f conftestsed.out
7132 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7133 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7134 if test "$silent" = yes; then
7135 baseargs="$baseargs --silent"
7136 tbaseargs="$tbaseargs --silent"
7138 baseargs="$baseargs --disable-option-checking"
7139 tbaseargs="$tbaseargs --disable-option-checking"
7141 # Record and document user additions to sub configure arguments.
7146 # For the build-side libraries, we just need to pretend we're native,
7147 # and not use the same cache file. Multilibs are neither needed nor
7148 # desired.
7149 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7151 # For host modules, accept cache file option, or specification as blank.
7152 case "${cache_file}" in
7153 "") # empty
7154 cache_file_option="" ;;
7155 /* | [A-Za-z]:[\\/]* ) # absolute path
7156 cache_file_option="--cache-file=${cache_file}" ;;
7157 *) # relative path
7158 cache_file_option="--cache-file=../${cache_file}" ;;
7159 esac
7161 # Host dirs don't like to share a cache file either, horribly enough.
7162 # This seems to be due to autoconf 2.5x stupidity.
7163 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7165 target_configargs="$target_configargs ${tbaseargs}"
7167 # Passing a --with-cross-host argument lets the target libraries know
7168 # whether they are being built with a cross-compiler or being built
7169 # native. However, it would be better to use other mechanisms to make the
7170 # sorts of decisions they want to make on this basis. Please consider
7171 # this option to be deprecated. FIXME.
7172 if test x${is_cross_compiler} = xyes ; then
7173 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7176 # Default to --enable-multilib.
7177 if test x${enable_multilib} = x ; then
7178 target_configargs="--enable-multilib ${target_configargs}"
7181 # Pass --with-newlib if appropriate. Note that target_configdirs has
7182 # changed from the earlier setting of with_newlib.
7183 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7184 target_configargs="--with-newlib ${target_configargs}"
7187 # Different target subdirs use different values of certain variables
7188 # (notably CXX). Worse, multilibs use *lots* of different values.
7189 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7190 # it doesn't automatically accept command-line overrides of them.
7191 # This means it's not safe for target subdirs to share a cache file,
7192 # which is disgusting, but there you have it. Hopefully this can be
7193 # fixed in future. It's still worthwhile to use a cache file for each
7194 # directory. I think.
7196 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7197 # We need to pass --target, as newer autoconf's requires consistency
7198 # for target_alias and gcc doesn't manage it consistently.
7199 target_configargs="--cache-file=./config.cache ${target_configargs}"
7201 FLAGS_FOR_TARGET=
7202 case " $target_configdirs " in
7203 *" newlib "*)
7204 case " $target_configargs " in
7205 *" --with-newlib "*)
7206 case "$target" in
7207 *-cygwin*)
7208 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7210 esac
7212 # If we're not building GCC, don't discard standard headers.
7213 if test -d ${srcdir}/gcc; then
7214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7216 if test "${build}" != "${host}"; then
7217 # On Canadian crosses, CC_FOR_TARGET will have already been set
7218 # by `configure', so we won't have an opportunity to add -Bgcc/
7219 # to it. This is right: we don't want to search that directory
7220 # for binaries, but we want the header files in there, so add
7221 # them explicitly.
7222 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7224 # Someone might think of using the pre-installed headers on
7225 # Canadian crosses, in case the installed compiler is not fully
7226 # compatible with the compiler being built. In this case, it
7227 # would be better to flag an error than risking having
7228 # incompatible object files being constructed. We can't
7229 # guarantee that an error will be flagged, but let's hope the
7230 # compiler will do it, when presented with incompatible header
7231 # files.
7235 case "${target}-${is_cross_compiler}" in
7236 i[3456789]86-*-linux*-no)
7237 # Here host == target, so we don't need to build gcc,
7238 # so we don't want to discard standard headers.
7239 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7242 # If we're building newlib, use its generic headers last, but search
7243 # for any libc-related directories first (so make it the last -B
7244 # switch).
7245 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7247 # If we're building libgloss, find the startup file, simulator library
7248 # and linker script.
7249 case " $target_configdirs " in
7250 *" libgloss "*)
7251 # Look for startup file, simulator library and maybe linker script.
7252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7253 # Look for libnosys.a in case the target needs it.
7254 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7255 # Most targets have the linker script in the source directory.
7256 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7258 esac
7260 esac
7262 esac
7264 esac
7266 case "$target" in
7267 x86_64-*mingw* | *-w64-mingw*)
7268 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7269 # however, use a symlink named 'mingw' in ${prefix} .
7270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7272 *-mingw*)
7273 # MinGW can't be handled as Cygwin above since it does not use newlib.
7274 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'
7276 esac
7278 # Allow the user to override the flags for
7279 # our build compiler if desired.
7280 if test x"${build}" = x"${host}" ; then
7281 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7282 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7283 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7286 # On Canadian crosses, we'll be searching the right directories for
7287 # the previously-installed cross compiler, so don't bother to add
7288 # flags for directories within the install tree of the compiler
7289 # being built; programs in there won't even run.
7290 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7291 # Search for pre-installed headers if nothing else fits.
7292 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7295 if test "x${use_gnu_ld}" = x &&
7296 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7297 # Arrange for us to find uninstalled linker scripts.
7298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7301 # Search for other target-specific linker scripts and such.
7302 case "${target}" in
7303 mep*)
7304 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7306 esac
7308 # Makefile fragments.
7309 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7311 eval fragval=\$$frag
7312 if test $fragval != /dev/null; then
7313 eval $frag=${srcdir}/$fragval
7315 done
7321 # Miscellanea: directories, flags, etc.
7330 # Build module lists & subconfigure args.
7334 # Host module lists & subconfigure args.
7339 # Target module lists & subconfigure args.
7343 # Build tools.
7361 # Generate default definitions for YACC, M4, LEX and other programs that run
7362 # on the build machine. These are used if the Makefile can't locate these
7363 # programs in objdir.
7364 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7366 for ac_prog in 'bison -y' byacc yacc
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_YACC+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$YACC"; then
7376 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_YACC="$ac_prog"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7389 done
7390 done
7391 IFS=$as_save_IFS
7395 YACC=$ac_cv_prog_YACC
7396 if test -n "$YACC"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7398 $as_echo "$YACC" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7405 test -n "$YACC" && break
7406 done
7407 test -n "$YACC" || YACC="$MISSING bison -y"
7409 case " $build_configdirs " in
7410 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7411 esac
7413 for ac_prog in bison
7415 # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if test "${ac_cv_prog_BISON+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$BISON"; then
7423 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_BISON="$ac_prog"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7436 done
7437 done
7438 IFS=$as_save_IFS
7442 BISON=$ac_cv_prog_BISON
7443 if test -n "$BISON"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7445 $as_echo "$BISON" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7452 test -n "$BISON" && break
7453 done
7454 test -n "$BISON" || BISON="$MISSING bison"
7456 case " $build_configdirs " in
7457 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7458 esac
7460 for ac_prog in gm4 gnum4 m4
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_M4+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$M4"; then
7470 ac_cv_prog_M4="$M4" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_M4="$ac_prog"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 M4=$ac_cv_prog_M4
7490 if test -n "$M4"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7492 $as_echo "$M4" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$M4" && break
7500 done
7501 test -n "$M4" || M4="$MISSING m4"
7503 case " $build_configdirs " in
7504 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7505 esac
7507 for ac_prog in flex lex
7509 # Extract the first word of "$ac_prog", so it can be a program name with args.
7510 set dummy $ac_prog; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_LEX+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$LEX"; then
7517 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_LEX="$ac_prog"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7530 done
7531 done
7532 IFS=$as_save_IFS
7536 LEX=$ac_cv_prog_LEX
7537 if test -n "$LEX"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7539 $as_echo "$LEX" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7546 test -n "$LEX" && break
7547 done
7548 test -n "$LEX" || LEX="$MISSING flex"
7550 case " $build_configdirs " in
7551 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7552 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7553 esac
7555 for ac_prog in flex
7557 # Extract the first word of "$ac_prog", so it can be a program name with args.
7558 set dummy $ac_prog; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_FLEX+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$FLEX"; then
7565 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_prog_FLEX="$ac_prog"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7580 IFS=$as_save_IFS
7584 FLEX=$ac_cv_prog_FLEX
7585 if test -n "$FLEX"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7587 $as_echo "$FLEX" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7594 test -n "$FLEX" && break
7595 done
7596 test -n "$FLEX" || FLEX="$MISSING flex"
7598 case " $build_configdirs " in
7599 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7600 esac
7602 for ac_prog in makeinfo
7604 # Extract the first word of "$ac_prog", so it can be a program name with args.
7605 set dummy $ac_prog; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$MAKEINFO"; then
7612 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_MAKEINFO="$ac_prog"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7631 MAKEINFO=$ac_cv_prog_MAKEINFO
7632 if test -n "$MAKEINFO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7634 $as_echo "$MAKEINFO" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7641 test -n "$MAKEINFO" && break
7642 done
7643 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7645 case " $build_configdirs " in
7646 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7649 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7650 # higher, else we use the "missing" dummy.
7651 if ${MAKEINFO} --version \
7652 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7654 else
7655 MAKEINFO="$MISSING makeinfo"
7659 esac
7661 # FIXME: expect and dejagnu may become build tools?
7663 for ac_prog in expect
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$EXPECT"; then
7673 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_EXPECT="$ac_prog"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7686 done
7687 done
7688 IFS=$as_save_IFS
7692 EXPECT=$ac_cv_prog_EXPECT
7693 if test -n "$EXPECT"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7695 $as_echo "$EXPECT" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7702 test -n "$EXPECT" && break
7703 done
7704 test -n "$EXPECT" || EXPECT="expect"
7706 case " $configdirs " in
7707 *" expect "*)
7708 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7710 esac
7712 for ac_prog in runtest
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$RUNTEST"; then
7722 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_RUNTEST="$ac_prog"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7735 done
7736 done
7737 IFS=$as_save_IFS
7741 RUNTEST=$ac_cv_prog_RUNTEST
7742 if test -n "$RUNTEST"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7744 $as_echo "$RUNTEST" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7751 test -n "$RUNTEST" && break
7752 done
7753 test -n "$RUNTEST" || RUNTEST="runtest"
7755 case " $configdirs " in
7756 *" dejagnu "*)
7757 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7759 esac
7762 # Host tools.
7763 ncn_tool_prefix=
7764 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7765 ncn_target_tool_prefix=
7766 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7770 if test -n "$AR"; then
7771 ac_cv_prog_AR=$AR
7772 elif test -n "$ac_cv_prog_AR"; then
7773 AR=$ac_cv_prog_AR
7776 if test -n "$ac_cv_prog_AR"; then
7777 for ncn_progname in ar; do
7778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7779 set dummy ${ncn_progname}; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if test "${ac_cv_prog_AR+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$AR"; then
7786 ac_cv_prog_AR="$AR" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_AR="${ncn_progname}"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7805 AR=$ac_cv_prog_AR
7806 if test -n "$AR"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7808 $as_echo "$AR" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7815 done
7818 for ncn_progname in ar; do
7819 if test -n "$ncn_tool_prefix"; then
7820 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7821 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_AR+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$AR"; then
7828 ac_cv_prog_AR="$AR" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7847 AR=$ac_cv_prog_AR
7848 if test -n "$AR"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7850 $as_echo "$AR" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7858 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7860 set dummy ${ncn_progname}; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_AR+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$AR"; then
7867 ac_cv_prog_AR="$AR" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_AR="${ncn_progname}"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 AR=$ac_cv_prog_AR
7887 if test -n "$AR"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7889 $as_echo "$AR" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7897 test -n "$ac_cv_prog_AR" && break
7898 done
7900 if test -z "$ac_cv_prog_AR" ; then
7901 set dummy ar
7902 if test $build = $host ; then
7903 AR="$2"
7904 else
7905 AR="${ncn_tool_prefix}$2"
7911 if test -n "$AS"; then
7912 ac_cv_prog_AS=$AS
7913 elif test -n "$ac_cv_prog_AS"; then
7914 AS=$ac_cv_prog_AS
7917 if test -n "$ac_cv_prog_AS"; then
7918 for ncn_progname in as; do
7919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7920 set dummy ${ncn_progname}; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_AS+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$AS"; then
7927 ac_cv_prog_AS="$AS" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_AS="${ncn_progname}"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 AS=$ac_cv_prog_AS
7947 if test -n "$AS"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7949 $as_echo "$AS" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 done
7959 for ncn_progname in as; do
7960 if test -n "$ncn_tool_prefix"; then
7961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_AS+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$AS"; then
7969 ac_cv_prog_AS="$AS" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 AS=$ac_cv_prog_AS
7989 if test -n "$AS"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7991 $as_echo "$AS" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7999 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8001 set dummy ${ncn_progname}; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_prog_AS+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test -n "$AS"; then
8008 ac_cv_prog_AS="$AS" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_prog_AS="${ncn_progname}"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8027 AS=$ac_cv_prog_AS
8028 if test -n "$AS"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8030 $as_echo "$AS" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8038 test -n "$ac_cv_prog_AS" && break
8039 done
8041 if test -z "$ac_cv_prog_AS" ; then
8042 set dummy as
8043 if test $build = $host ; then
8044 AS="$2"
8045 else
8046 AS="${ncn_tool_prefix}$2"
8052 if test -n "$DLLTOOL"; then
8053 ac_cv_prog_DLLTOOL=$DLLTOOL
8054 elif test -n "$ac_cv_prog_DLLTOOL"; then
8055 DLLTOOL=$ac_cv_prog_DLLTOOL
8058 if test -n "$ac_cv_prog_DLLTOOL"; then
8059 for ncn_progname in dlltool; do
8060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8061 set dummy ${ncn_progname}; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$DLLTOOL"; then
8068 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_DLLTOOL="${ncn_progname}"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8083 IFS=$as_save_IFS
8087 DLLTOOL=$ac_cv_prog_DLLTOOL
8088 if test -n "$DLLTOOL"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8090 $as_echo "$DLLTOOL" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8097 done
8100 for ncn_progname in dlltool; do
8101 if test -n "$ncn_tool_prefix"; then
8102 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8103 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 if test -n "$DLLTOOL"; then
8110 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8125 IFS=$as_save_IFS
8129 DLLTOOL=$ac_cv_prog_DLLTOOL
8130 if test -n "$DLLTOOL"; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8132 $as_echo "$DLLTOOL" >&6; }
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8140 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8142 set dummy ${ncn_progname}; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 if test -n "$DLLTOOL"; then
8149 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_prog_DLLTOOL="${ncn_progname}"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8164 IFS=$as_save_IFS
8168 DLLTOOL=$ac_cv_prog_DLLTOOL
8169 if test -n "$DLLTOOL"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8171 $as_echo "$DLLTOOL" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8179 test -n "$ac_cv_prog_DLLTOOL" && break
8180 done
8182 if test -z "$ac_cv_prog_DLLTOOL" ; then
8183 set dummy dlltool
8184 if test $build = $host ; then
8185 DLLTOOL="$2"
8186 else
8187 DLLTOOL="${ncn_tool_prefix}$2"
8193 if test -n "$LD"; then
8194 ac_cv_prog_LD=$LD
8195 elif test -n "$ac_cv_prog_LD"; then
8196 LD=$ac_cv_prog_LD
8199 if test -n "$ac_cv_prog_LD"; then
8200 for ncn_progname in ld; do
8201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8202 set dummy ${ncn_progname}; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if test "${ac_cv_prog_LD+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 if test -n "$LD"; then
8209 ac_cv_prog_LD="$LD" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8218 ac_cv_prog_LD="${ncn_progname}"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 break 2
8222 done
8223 done
8224 IFS=$as_save_IFS
8228 LD=$ac_cv_prog_LD
8229 if test -n "$LD"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8231 $as_echo "$LD" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8238 done
8241 for ncn_progname in ld; do
8242 if test -n "$ncn_tool_prefix"; then
8243 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8244 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if test "${ac_cv_prog_LD+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 if test -n "$LD"; then
8251 ac_cv_prog_LD="$LD" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8264 done
8265 done
8266 IFS=$as_save_IFS
8270 LD=$ac_cv_prog_LD
8271 if test -n "$LD"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8273 $as_echo "$LD" >&6; }
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8281 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8283 set dummy ${ncn_progname}; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_LD+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$LD"; then
8290 ac_cv_prog_LD="$LD" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_LD="${ncn_progname}"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 LD=$ac_cv_prog_LD
8310 if test -n "$LD"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8312 $as_echo "$LD" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8320 test -n "$ac_cv_prog_LD" && break
8321 done
8323 if test -z "$ac_cv_prog_LD" ; then
8324 set dummy ld
8325 if test $build = $host ; then
8326 LD="$2"
8327 else
8328 LD="${ncn_tool_prefix}$2"
8334 if test -n "$LIPO"; then
8335 ac_cv_prog_LIPO=$LIPO
8336 elif test -n "$ac_cv_prog_LIPO"; then
8337 LIPO=$ac_cv_prog_LIPO
8340 if test -n "$ac_cv_prog_LIPO"; then
8341 for ncn_progname in lipo; do
8342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8343 set dummy ${ncn_progname}; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_LIPO+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$LIPO"; then
8350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_LIPO="${ncn_progname}"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8369 LIPO=$ac_cv_prog_LIPO
8370 if test -n "$LIPO"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8372 $as_echo "$LIPO" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8379 done
8382 for ncn_progname in lipo; do
8383 if test -n "$ncn_tool_prefix"; then
8384 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8385 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if test "${ac_cv_prog_LIPO+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$LIPO"; then
8392 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8405 done
8406 done
8407 IFS=$as_save_IFS
8411 LIPO=$ac_cv_prog_LIPO
8412 if test -n "$LIPO"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8414 $as_echo "$LIPO" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8422 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8424 set dummy ${ncn_progname}; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if test "${ac_cv_prog_LIPO+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 if test -n "$LIPO"; then
8431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_prog_LIPO="${ncn_progname}"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8450 LIPO=$ac_cv_prog_LIPO
8451 if test -n "$LIPO"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8453 $as_echo "$LIPO" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8461 test -n "$ac_cv_prog_LIPO" && break
8462 done
8464 if test -z "$ac_cv_prog_LIPO" ; then
8465 set dummy lipo
8466 if test $build = $host ; then
8467 LIPO="$2"
8468 else
8469 LIPO="${ncn_tool_prefix}$2"
8475 if test -n "$NM"; then
8476 ac_cv_prog_NM=$NM
8477 elif test -n "$ac_cv_prog_NM"; then
8478 NM=$ac_cv_prog_NM
8481 if test -n "$ac_cv_prog_NM"; then
8482 for ncn_progname in nm; do
8483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8484 set dummy ${ncn_progname}; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_NM+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$NM"; then
8491 ac_cv_prog_NM="$NM" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_NM="${ncn_progname}"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8504 done
8505 done
8506 IFS=$as_save_IFS
8510 NM=$ac_cv_prog_NM
8511 if test -n "$NM"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8513 $as_echo "$NM" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8520 done
8523 for ncn_progname in nm; do
8524 if test -n "$ncn_tool_prefix"; then
8525 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8526 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if test "${ac_cv_prog_NM+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 if test -n "$NM"; then
8533 ac_cv_prog_NM="$NM" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8542 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8546 done
8547 done
8548 IFS=$as_save_IFS
8552 NM=$ac_cv_prog_NM
8553 if test -n "$NM"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8555 $as_echo "$NM" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8563 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8565 set dummy ${ncn_progname}; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if test "${ac_cv_prog_NM+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 if test -n "$NM"; then
8572 ac_cv_prog_NM="$NM" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_prog_NM="${ncn_progname}"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8591 NM=$ac_cv_prog_NM
8592 if test -n "$NM"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8594 $as_echo "$NM" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8602 test -n "$ac_cv_prog_NM" && break
8603 done
8605 if test -z "$ac_cv_prog_NM" ; then
8606 set dummy nm
8607 if test $build = $host ; then
8608 NM="$2"
8609 else
8610 NM="${ncn_tool_prefix}$2"
8616 if test -n "$RANLIB"; then
8617 ac_cv_prog_RANLIB=$RANLIB
8618 elif test -n "$ac_cv_prog_RANLIB"; then
8619 RANLIB=$ac_cv_prog_RANLIB
8622 if test -n "$ac_cv_prog_RANLIB"; then
8623 for ncn_progname in ranlib; do
8624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8625 set dummy ${ncn_progname}; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 if test -n "$RANLIB"; then
8632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_prog_RANLIB="${ncn_progname}"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8645 done
8646 done
8647 IFS=$as_save_IFS
8651 RANLIB=$ac_cv_prog_RANLIB
8652 if test -n "$RANLIB"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8654 $as_echo "$RANLIB" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8661 done
8664 for ncn_progname in ranlib; do
8665 if test -n "$ncn_tool_prefix"; then
8666 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8667 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 if test -n "$RANLIB"; then
8674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8687 done
8688 done
8689 IFS=$as_save_IFS
8693 RANLIB=$ac_cv_prog_RANLIB
8694 if test -n "$RANLIB"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8696 $as_echo "$RANLIB" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8704 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8706 set dummy ${ncn_progname}; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$RANLIB"; then
8713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_RANLIB="${ncn_progname}"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8726 done
8727 done
8728 IFS=$as_save_IFS
8732 RANLIB=$ac_cv_prog_RANLIB
8733 if test -n "$RANLIB"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8735 $as_echo "$RANLIB" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8743 test -n "$ac_cv_prog_RANLIB" && break
8744 done
8746 if test -z "$ac_cv_prog_RANLIB" ; then
8747 RANLIB="true"
8752 if test -n "$STRIP"; then
8753 ac_cv_prog_STRIP=$STRIP
8754 elif test -n "$ac_cv_prog_STRIP"; then
8755 STRIP=$ac_cv_prog_STRIP
8758 if test -n "$ac_cv_prog_STRIP"; then
8759 for ncn_progname in strip; do
8760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8761 set dummy ${ncn_progname}; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if test "${ac_cv_prog_STRIP+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 if test -n "$STRIP"; then
8768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8777 ac_cv_prog_STRIP="${ncn_progname}"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 break 2
8781 done
8782 done
8783 IFS=$as_save_IFS
8787 STRIP=$ac_cv_prog_STRIP
8788 if test -n "$STRIP"; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8790 $as_echo "$STRIP" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8797 done
8800 for ncn_progname in strip; do
8801 if test -n "$ncn_tool_prefix"; then
8802 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8803 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_STRIP+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$STRIP"; then
8810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8825 IFS=$as_save_IFS
8829 STRIP=$ac_cv_prog_STRIP
8830 if test -n "$STRIP"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8832 $as_echo "$STRIP" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8840 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8842 set dummy ${ncn_progname}; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if test "${ac_cv_prog_STRIP+set}" = set; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 if test -n "$STRIP"; then
8849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8858 ac_cv_prog_STRIP="${ncn_progname}"
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8862 done
8863 done
8864 IFS=$as_save_IFS
8868 STRIP=$ac_cv_prog_STRIP
8869 if test -n "$STRIP"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8871 $as_echo "$STRIP" >&6; }
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8879 test -n "$ac_cv_prog_STRIP" && break
8880 done
8882 if test -z "$ac_cv_prog_STRIP" ; then
8883 STRIP="true"
8888 if test -n "$WINDRES"; then
8889 ac_cv_prog_WINDRES=$WINDRES
8890 elif test -n "$ac_cv_prog_WINDRES"; then
8891 WINDRES=$ac_cv_prog_WINDRES
8894 if test -n "$ac_cv_prog_WINDRES"; then
8895 for ncn_progname in windres; do
8896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8897 set dummy ${ncn_progname}; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 if test -n "$WINDRES"; then
8904 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_prog_WINDRES="${ncn_progname}"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8917 done
8918 done
8919 IFS=$as_save_IFS
8923 WINDRES=$ac_cv_prog_WINDRES
8924 if test -n "$WINDRES"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8926 $as_echo "$WINDRES" >&6; }
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8933 done
8936 for ncn_progname in windres; do
8937 if test -n "$ncn_tool_prefix"; then
8938 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8939 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$WINDRES"; then
8946 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8965 WINDRES=$ac_cv_prog_WINDRES
8966 if test -n "$WINDRES"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8968 $as_echo "$WINDRES" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8976 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8978 set dummy ${ncn_progname}; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 if test -n "$WINDRES"; then
8985 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8986 else
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_prog_WINDRES="${ncn_progname}"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8998 done
8999 done
9000 IFS=$as_save_IFS
9004 WINDRES=$ac_cv_prog_WINDRES
9005 if test -n "$WINDRES"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9007 $as_echo "$WINDRES" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9015 test -n "$ac_cv_prog_WINDRES" && break
9016 done
9018 if test -z "$ac_cv_prog_WINDRES" ; then
9019 set dummy windres
9020 if test $build = $host ; then
9021 WINDRES="$2"
9022 else
9023 WINDRES="${ncn_tool_prefix}$2"
9029 if test -n "$WINDMC"; then
9030 ac_cv_prog_WINDMC=$WINDMC
9031 elif test -n "$ac_cv_prog_WINDMC"; then
9032 WINDMC=$ac_cv_prog_WINDMC
9035 if test -n "$ac_cv_prog_WINDMC"; then
9036 for ncn_progname in windmc; do
9037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9038 set dummy ${ncn_progname}; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 if test -n "$WINDMC"; then
9045 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054 ac_cv_prog_WINDMC="${ncn_progname}"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9058 done
9059 done
9060 IFS=$as_save_IFS
9064 WINDMC=$ac_cv_prog_WINDMC
9065 if test -n "$WINDMC"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9067 $as_echo "$WINDMC" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9074 done
9077 for ncn_progname in windmc; do
9078 if test -n "$ncn_tool_prefix"; then
9079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9080 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 if test -n "$WINDMC"; then
9087 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9100 done
9101 done
9102 IFS=$as_save_IFS
9106 WINDMC=$ac_cv_prog_WINDMC
9107 if test -n "$WINDMC"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9109 $as_echo "$WINDMC" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9117 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9119 set dummy ${ncn_progname}; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 if test -n "$WINDMC"; then
9126 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135 ac_cv_prog_WINDMC="${ncn_progname}"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9139 done
9140 done
9141 IFS=$as_save_IFS
9145 WINDMC=$ac_cv_prog_WINDMC
9146 if test -n "$WINDMC"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9148 $as_echo "$WINDMC" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9156 test -n "$ac_cv_prog_WINDMC" && break
9157 done
9159 if test -z "$ac_cv_prog_WINDMC" ; then
9160 set dummy windmc
9161 if test $build = $host ; then
9162 WINDMC="$2"
9163 else
9164 WINDMC="${ncn_tool_prefix}$2"
9170 if test -n "$OBJCOPY"; then
9171 ac_cv_prog_OBJCOPY=$OBJCOPY
9172 elif test -n "$ac_cv_prog_OBJCOPY"; then
9173 OBJCOPY=$ac_cv_prog_OBJCOPY
9176 if test -n "$ac_cv_prog_OBJCOPY"; then
9177 for ncn_progname in objcopy; do
9178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9179 set dummy ${ncn_progname}; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 if test -n "$OBJCOPY"; then
9186 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_prog_OBJCOPY="${ncn_progname}"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9199 done
9200 done
9201 IFS=$as_save_IFS
9205 OBJCOPY=$ac_cv_prog_OBJCOPY
9206 if test -n "$OBJCOPY"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9208 $as_echo "$OBJCOPY" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9215 done
9218 for ncn_progname in objcopy; do
9219 if test -n "$ncn_tool_prefix"; then
9220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9221 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test -n "$OBJCOPY"; then
9228 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9241 done
9242 done
9243 IFS=$as_save_IFS
9247 OBJCOPY=$ac_cv_prog_OBJCOPY
9248 if test -n "$OBJCOPY"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9250 $as_echo "$OBJCOPY" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9258 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9260 set dummy ${ncn_progname}; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 if test -n "$OBJCOPY"; then
9267 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_prog_OBJCOPY="${ncn_progname}"
9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9280 done
9281 done
9282 IFS=$as_save_IFS
9286 OBJCOPY=$ac_cv_prog_OBJCOPY
9287 if test -n "$OBJCOPY"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9289 $as_echo "$OBJCOPY" >&6; }
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9297 test -n "$ac_cv_prog_OBJCOPY" && break
9298 done
9300 if test -z "$ac_cv_prog_OBJCOPY" ; then
9301 set dummy objcopy
9302 if test $build = $host ; then
9303 OBJCOPY="$2"
9304 else
9305 OBJCOPY="${ncn_tool_prefix}$2"
9311 if test -n "$OBJDUMP"; then
9312 ac_cv_prog_OBJDUMP=$OBJDUMP
9313 elif test -n "$ac_cv_prog_OBJDUMP"; then
9314 OBJDUMP=$ac_cv_prog_OBJDUMP
9317 if test -n "$ac_cv_prog_OBJDUMP"; then
9318 for ncn_progname in objdump; do
9319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9320 set dummy ${ncn_progname}; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 if test -n "$OBJDUMP"; then
9327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_OBJDUMP="${ncn_progname}"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9340 done
9341 done
9342 IFS=$as_save_IFS
9346 OBJDUMP=$ac_cv_prog_OBJDUMP
9347 if test -n "$OBJDUMP"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9349 $as_echo "$OBJDUMP" >&6; }
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9356 done
9359 for ncn_progname in objdump; do
9360 if test -n "$ncn_tool_prefix"; then
9361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9362 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 if test -n "$OBJDUMP"; then
9369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9370 else
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9382 done
9383 done
9384 IFS=$as_save_IFS
9388 OBJDUMP=$ac_cv_prog_OBJDUMP
9389 if test -n "$OBJDUMP"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9391 $as_echo "$OBJDUMP" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9399 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9401 set dummy ${ncn_progname}; ac_word=$2
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test -n "$OBJDUMP"; then
9408 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9409 else
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_prog_OBJDUMP="${ncn_progname}"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9427 OBJDUMP=$ac_cv_prog_OBJDUMP
9428 if test -n "$OBJDUMP"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9430 $as_echo "$OBJDUMP" >&6; }
9431 else
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9438 test -n "$ac_cv_prog_OBJDUMP" && break
9439 done
9441 if test -z "$ac_cv_prog_OBJDUMP" ; then
9442 set dummy objdump
9443 if test $build = $host ; then
9444 OBJDUMP="$2"
9445 else
9446 OBJDUMP="${ncn_tool_prefix}$2"
9452 if test -n "$READELF"; then
9453 ac_cv_prog_READELF=$READELF
9454 elif test -n "$ac_cv_prog_READELF"; then
9455 READELF=$ac_cv_prog_READELF
9458 if test -n "$ac_cv_prog_READELF"; then
9459 for ncn_progname in readelf; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461 set dummy ${ncn_progname}; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if test "${ac_cv_prog_READELF+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 if test -n "$READELF"; then
9468 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_prog_READELF="${ncn_progname}"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9481 done
9482 done
9483 IFS=$as_save_IFS
9487 READELF=$ac_cv_prog_READELF
9488 if test -n "$READELF"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9490 $as_echo "$READELF" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9497 done
9500 for ncn_progname in readelf; do
9501 if test -n "$ncn_tool_prefix"; then
9502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9503 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if test "${ac_cv_prog_READELF+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 if test -n "$READELF"; then
9510 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9511 else
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9519 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9523 done
9524 done
9525 IFS=$as_save_IFS
9529 READELF=$ac_cv_prog_READELF
9530 if test -n "$READELF"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9532 $as_echo "$READELF" >&6; }
9533 else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9540 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9542 set dummy ${ncn_progname}; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if test "${ac_cv_prog_READELF+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 if test -n "$READELF"; then
9549 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9558 ac_cv_prog_READELF="${ncn_progname}"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9562 done
9563 done
9564 IFS=$as_save_IFS
9568 READELF=$ac_cv_prog_READELF
9569 if test -n "$READELF"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9571 $as_echo "$READELF" >&6; }
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9579 test -n "$ac_cv_prog_READELF" && break
9580 done
9582 if test -z "$ac_cv_prog_READELF" ; then
9583 set dummy readelf
9584 if test $build = $host ; then
9585 READELF="$2"
9586 else
9587 READELF="${ncn_tool_prefix}$2"
9596 # Target tools.
9598 # Check whether --with-build-time-tools was given.
9599 if test "${with_build_time_tools+set}" = set; then :
9600 withval=$with_build_time_tools; case x"$withval" in
9601 x/*) ;;
9603 with_build_time_tools=
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9605 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9607 esac
9608 else
9609 with_build_time_tools=
9615 if test -n "$CC_FOR_TARGET"; then
9616 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9617 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9618 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9621 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9622 for ncn_progname in cc gcc; do
9623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9624 set dummy ${ncn_progname}; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 if test -n "$CC_FOR_TARGET"; then
9631 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9650 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9651 if test -n "$CC_FOR_TARGET"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9653 $as_echo "$CC_FOR_TARGET" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9660 done
9663 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9664 for ncn_progname in cc gcc; do
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9666 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9667 if test -x $with_build_time_tools/${ncn_progname}; then
9668 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670 $as_echo "yes" >&6; }
9671 break
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9676 done
9679 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9680 for ncn_progname in cc gcc; do
9681 if test -n "$ncn_target_tool_prefix"; then
9682 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9683 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 if test -n "$CC_FOR_TARGET"; then
9690 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9691 else
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9703 done
9704 done
9705 IFS=$as_save_IFS
9709 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9710 if test -n "$CC_FOR_TARGET"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9712 $as_echo "$CC_FOR_TARGET" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9720 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722 set dummy ${ncn_progname}; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 if test -n "$CC_FOR_TARGET"; then
9729 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9730 else
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9748 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9749 if test -n "$CC_FOR_TARGET"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9751 $as_echo "$CC_FOR_TARGET" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9759 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9760 done
9763 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9764 set dummy cc gcc
9765 if test $build = $target ; then
9766 CC_FOR_TARGET="$2"
9767 else
9768 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9770 else
9771 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9776 if test -n "$CXX_FOR_TARGET"; then
9777 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9778 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9779 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9782 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9783 for ncn_progname in c++ g++ cxx gxx; do
9784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9785 set dummy ${ncn_progname}; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 if test -n "$CXX_FOR_TARGET"; then
9792 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9805 done
9806 done
9807 IFS=$as_save_IFS
9811 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9812 if test -n "$CXX_FOR_TARGET"; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9814 $as_echo "$CXX_FOR_TARGET" >&6; }
9815 else
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9821 done
9824 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9825 for ncn_progname in c++ g++ cxx gxx; do
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9827 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9828 if test -x $with_build_time_tools/${ncn_progname}; then
9829 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9831 $as_echo "yes" >&6; }
9832 break
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9837 done
9840 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9841 for ncn_progname in c++ g++ cxx gxx; do
9842 if test -n "$ncn_target_tool_prefix"; then
9843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9844 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$CXX_FOR_TARGET"; then
9851 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9870 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9871 if test -n "$CXX_FOR_TARGET"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9873 $as_echo "$CXX_FOR_TARGET" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9881 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883 set dummy ${ncn_progname}; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 if test -n "$CXX_FOR_TARGET"; then
9890 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9903 done
9904 done
9905 IFS=$as_save_IFS
9909 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9910 if test -n "$CXX_FOR_TARGET"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9912 $as_echo "$CXX_FOR_TARGET" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9920 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9921 done
9924 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9925 set dummy c++ g++ cxx gxx
9926 if test $build = $target ; then
9927 CXX_FOR_TARGET="$2"
9928 else
9929 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9931 else
9932 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9937 if test -n "$GCC_FOR_TARGET"; then
9938 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9939 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9940 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9943 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9944 for ncn_progname in gcc; do
9945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9946 set dummy ${ncn_progname}; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 if test -n "$GCC_FOR_TARGET"; then
9953 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9954 else
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9966 done
9967 done
9968 IFS=$as_save_IFS
9972 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9973 if test -n "$GCC_FOR_TARGET"; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9975 $as_echo "$GCC_FOR_TARGET" >&6; }
9976 else
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9982 done
9985 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9986 for ncn_progname in gcc; do
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9989 if test -x $with_build_time_tools/${ncn_progname}; then
9990 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992 $as_echo "yes" >&6; }
9993 break
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9998 done
10001 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10002 for ncn_progname in gcc; do
10003 if test -n "$ncn_target_tool_prefix"; then
10004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10007 $as_echo_n "checking for $ac_word... " >&6; }
10008 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 if test -n "$GCC_FOR_TARGET"; then
10012 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10013 else
10014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015 for as_dir in $PATH
10017 IFS=$as_save_IFS
10018 test -z "$as_dir" && as_dir=.
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10021 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023 break 2
10025 done
10026 done
10027 IFS=$as_save_IFS
10031 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10032 if test -n "$GCC_FOR_TARGET"; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10034 $as_echo "$GCC_FOR_TARGET" >&6; }
10035 else
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10042 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044 set dummy ${ncn_progname}; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$GCC_FOR_TARGET"; then
10051 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10070 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10071 if test -n "$GCC_FOR_TARGET"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10073 $as_echo "$GCC_FOR_TARGET" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10082 done
10085 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10086 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10087 else
10088 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10093 if test -n "$GCJ_FOR_TARGET"; then
10094 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10095 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10096 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10099 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10100 for ncn_progname in gcj; do
10101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10102 set dummy ${ncn_progname}; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 if test -n "$GCJ_FOR_TARGET"; then
10109 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10118 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10124 IFS=$as_save_IFS
10128 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10129 if test -n "$GCJ_FOR_TARGET"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10131 $as_echo "$GCJ_FOR_TARGET" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10138 done
10141 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10142 for ncn_progname in gcj; do
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10145 if test -x $with_build_time_tools/${ncn_progname}; then
10146 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10149 break
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10154 done
10157 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10158 for ncn_progname in gcj; do
10159 if test -n "$ncn_target_tool_prefix"; then
10160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 if test -n "$GCJ_FOR_TARGET"; then
10168 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10169 else
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10177 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10181 done
10182 done
10183 IFS=$as_save_IFS
10187 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10188 if test -n "$GCJ_FOR_TARGET"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10190 $as_echo "$GCJ_FOR_TARGET" >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10198 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10200 set dummy ${ncn_progname}; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 if test -n "$GCJ_FOR_TARGET"; then
10207 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10208 else
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10226 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10227 if test -n "$GCJ_FOR_TARGET"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10229 $as_echo "$GCJ_FOR_TARGET" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10237 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10238 done
10241 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10242 set dummy gcj
10243 if test $build = $target ; then
10244 GCJ_FOR_TARGET="$2"
10245 else
10246 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10248 else
10249 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10254 if test -n "$GFORTRAN_FOR_TARGET"; then
10255 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10256 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10257 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10260 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10261 for ncn_progname in gfortran; do
10262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10263 set dummy ${ncn_progname}; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 if test -n "$GFORTRAN_FOR_TARGET"; then
10270 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10271 else
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10289 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10290 if test -n "$GFORTRAN_FOR_TARGET"; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10292 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10293 else
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10299 done
10302 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10303 for ncn_progname in gfortran; do
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10305 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10306 if test -x $with_build_time_tools/${ncn_progname}; then
10307 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10309 $as_echo "yes" >&6; }
10310 break
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10315 done
10318 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10319 for ncn_progname in gfortran; do
10320 if test -n "$ncn_target_tool_prefix"; then
10321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10322 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 if test -n "$GFORTRAN_FOR_TARGET"; then
10329 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10330 else
10331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10338 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10342 done
10343 done
10344 IFS=$as_save_IFS
10348 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10349 if test -n "$GFORTRAN_FOR_TARGET"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10351 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10359 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10361 set dummy ${ncn_progname}; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10381 done
10382 done
10383 IFS=$as_save_IFS
10387 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10388 if test -n "$GFORTRAN_FOR_TARGET"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10390 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10398 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10399 done
10402 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10403 set dummy gfortran
10404 if test $build = $target ; then
10405 GFORTRAN_FOR_TARGET="$2"
10406 else
10407 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10409 else
10410 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10415 if test -n "$GOC_FOR_TARGET"; then
10416 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10417 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10418 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10421 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10422 for ncn_progname in gccgo; do
10423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10424 set dummy ${ncn_progname}; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 if test -n "$GOC_FOR_TARGET"; then
10431 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10432 else
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10440 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10444 done
10445 done
10446 IFS=$as_save_IFS
10450 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10451 if test -n "$GOC_FOR_TARGET"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10453 $as_echo "$GOC_FOR_TARGET" >&6; }
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10460 done
10463 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10464 for ncn_progname in gccgo; do
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10466 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10467 if test -x $with_build_time_tools/${ncn_progname}; then
10468 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10470 $as_echo "yes" >&6; }
10471 break
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10476 done
10479 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10480 for ncn_progname in gccgo; do
10481 if test -n "$ncn_target_tool_prefix"; then
10482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10485 $as_echo_n "checking for $ac_word... " >&6; }
10486 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 if test -n "$GOC_FOR_TARGET"; then
10490 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10491 else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10509 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10510 if test -n "$GOC_FOR_TARGET"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10512 $as_echo "$GOC_FOR_TARGET" >&6; }
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10520 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10522 set dummy ${ncn_progname}; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -n "$GOC_FOR_TARGET"; then
10529 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10542 done
10543 done
10544 IFS=$as_save_IFS
10548 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10549 if test -n "$GOC_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10551 $as_echo "$GOC_FOR_TARGET" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10559 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10560 done
10563 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10564 set dummy gccgo
10565 if test $build = $target ; then
10566 GOC_FOR_TARGET="$2"
10567 else
10568 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10570 else
10571 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10576 cat > conftest.c << \EOF
10577 #ifdef __GNUC__
10578 gcc_yay;
10579 #endif
10581 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10582 have_gcc_for_target=yes
10583 else
10584 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10585 have_gcc_for_target=no
10587 rm conftest.c
10592 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10593 if test -n "$with_build_time_tools"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10595 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10596 if test -x $with_build_time_tools/ar; then
10597 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10598 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10600 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10605 elif test $build != $host && test $have_gcc_for_target = yes; then
10606 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10607 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10608 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10611 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10612 # Extract the first word of "ar", so it can be a program name with args.
10613 set dummy ar; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 case $AR_FOR_TARGET in
10620 [\\/]* | ?:[\\/]*)
10621 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $gcc_cv_tool_dirs
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10640 esac
10642 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10643 if test -n "$AR_FOR_TARGET"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10645 $as_echo "$AR_FOR_TARGET" >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10653 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10656 if test -n "$AR_FOR_TARGET"; then
10657 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10658 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10659 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10662 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10663 for ncn_progname in ar; do
10664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10665 set dummy ${ncn_progname}; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test -n "$AR_FOR_TARGET"; then
10672 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10673 else
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10691 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10692 if test -n "$AR_FOR_TARGET"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10694 $as_echo "$AR_FOR_TARGET" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10701 done
10704 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10705 for ncn_progname in ar; do
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10708 if test -x $with_build_time_tools/${ncn_progname}; then
10709 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10711 $as_echo "yes" >&6; }
10712 break
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10717 done
10720 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10721 for ncn_progname in ar; do
10722 if test -n "$ncn_target_tool_prefix"; then
10723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 if test -n "$AR_FOR_TARGET"; then
10731 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10732 else
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10744 done
10745 done
10746 IFS=$as_save_IFS
10750 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10751 if test -n "$AR_FOR_TARGET"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10753 $as_echo "$AR_FOR_TARGET" >&6; }
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10761 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763 set dummy ${ncn_progname}; ac_word=$2
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765 $as_echo_n "checking for $ac_word... " >&6; }
10766 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test -n "$AR_FOR_TARGET"; then
10770 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10771 else
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10779 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10789 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10790 if test -n "$AR_FOR_TARGET"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10792 $as_echo "$AR_FOR_TARGET" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10800 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10801 done
10804 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10805 set dummy ar
10806 if test $build = $target ; then
10807 AR_FOR_TARGET="$2"
10808 else
10809 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10811 else
10812 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10815 else
10816 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10822 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10823 if test -n "$with_build_time_tools"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10825 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10826 if test -x $with_build_time_tools/as; then
10827 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10828 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10830 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10835 elif test $build != $host && test $have_gcc_for_target = yes; then
10836 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10837 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10838 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10841 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10842 # Extract the first word of "as", so it can be a program name with args.
10843 set dummy as; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 case $AS_FOR_TARGET in
10850 [\\/]* | ?:[\\/]*)
10851 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $gcc_cv_tool_dirs
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10861 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10865 done
10866 done
10867 IFS=$as_save_IFS
10870 esac
10872 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10873 if test -n "$AS_FOR_TARGET"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10875 $as_echo "$AS_FOR_TARGET" >&6; }
10876 else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10883 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10886 if test -n "$AS_FOR_TARGET"; then
10887 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10888 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10889 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10892 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10893 for ncn_progname in as; do
10894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10895 set dummy ${ncn_progname}; ac_word=$2
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10897 $as_echo_n "checking for $ac_word... " >&6; }
10898 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 if test -n "$AS_FOR_TARGET"; then
10902 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10903 else
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10907 IFS=$as_save_IFS
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10911 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10915 done
10916 done
10917 IFS=$as_save_IFS
10921 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10922 if test -n "$AS_FOR_TARGET"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10924 $as_echo "$AS_FOR_TARGET" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10931 done
10934 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10935 for ncn_progname in as; do
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10938 if test -x $with_build_time_tools/${ncn_progname}; then
10939 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10941 $as_echo "yes" >&6; }
10942 break
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10947 done
10950 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10951 for ncn_progname in as; do
10952 if test -n "$ncn_target_tool_prefix"; then
10953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 if test -n "$AS_FOR_TARGET"; then
10961 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10962 else
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
10969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 break 2
10974 done
10975 done
10976 IFS=$as_save_IFS
10980 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10981 if test -n "$AS_FOR_TARGET"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10983 $as_echo "$AS_FOR_TARGET" >&6; }
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10991 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$AS_FOR_TARGET"; then
11000 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11019 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11020 if test -n "$AS_FOR_TARGET"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11022 $as_echo "$AS_FOR_TARGET" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11030 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11031 done
11034 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11035 set dummy as
11036 if test $build = $target ; then
11037 AS_FOR_TARGET="$2"
11038 else
11039 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11041 else
11042 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11045 else
11046 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11052 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11053 if test -n "$with_build_time_tools"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11055 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11056 if test -x $with_build_time_tools/dlltool; then
11057 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11058 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11060 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11065 elif test $build != $host && test $have_gcc_for_target = yes; then
11066 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11067 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11068 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11071 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11072 # Extract the first word of "dlltool", so it can be a program name with args.
11073 set dummy dlltool; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 case $DLLTOOL_FOR_TARGET in
11080 [\\/]* | ?:[\\/]*)
11081 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $gcc_cv_tool_dirs
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 break 2
11095 done
11096 done
11097 IFS=$as_save_IFS
11100 esac
11102 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11103 if test -n "$DLLTOOL_FOR_TARGET"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11105 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11113 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11116 if test -n "$DLLTOOL_FOR_TARGET"; then
11117 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11118 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11119 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11122 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11123 for ncn_progname in dlltool; do
11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11125 set dummy ${ncn_progname}; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 $as_echo_n "checking for $ac_word... " >&6; }
11128 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$DLLTOOL_FOR_TARGET"; then
11132 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11151 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11152 if test -n "$DLLTOOL_FOR_TARGET"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11154 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11161 done
11164 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11165 for ncn_progname in dlltool; do
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11168 if test -x $with_build_time_tools/${ncn_progname}; then
11169 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171 $as_echo "yes" >&6; }
11172 break
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11177 done
11180 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11181 for ncn_progname in dlltool; do
11182 if test -n "$ncn_target_tool_prefix"; then
11183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 if test -n "$DLLTOOL_FOR_TARGET"; then
11191 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11192 else
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11200 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11204 done
11205 done
11206 IFS=$as_save_IFS
11210 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11211 if test -n "$DLLTOOL_FOR_TARGET"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11213 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11221 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11249 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11250 if test -n "$DLLTOOL_FOR_TARGET"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11252 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11260 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11261 done
11264 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11265 set dummy dlltool
11266 if test $build = $target ; then
11267 DLLTOOL_FOR_TARGET="$2"
11268 else
11269 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11271 else
11272 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11275 else
11276 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11282 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11283 if test -n "$with_build_time_tools"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11285 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11286 if test -x $with_build_time_tools/ld; then
11287 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11288 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11290 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11295 elif test $build != $host && test $have_gcc_for_target = yes; then
11296 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11297 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11298 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11301 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11302 # Extract the first word of "ld", so it can be a program name with args.
11303 set dummy ld; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 case $LD_FOR_TARGET in
11310 [\\/]* | ?:[\\/]*)
11311 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $gcc_cv_tool_dirs
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11325 done
11326 done
11327 IFS=$as_save_IFS
11330 esac
11332 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11333 if test -n "$LD_FOR_TARGET"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11335 $as_echo "$LD_FOR_TARGET" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11343 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11346 if test -n "$LD_FOR_TARGET"; then
11347 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11348 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11349 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11352 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11353 for ncn_progname in ld; do
11354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11355 set dummy ${ncn_progname}; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 if test -n "$LD_FOR_TARGET"; then
11362 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11375 done
11376 done
11377 IFS=$as_save_IFS
11381 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11382 if test -n "$LD_FOR_TARGET"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11384 $as_echo "$LD_FOR_TARGET" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11391 done
11394 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11395 for ncn_progname in ld; do
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11398 if test -x $with_build_time_tools/${ncn_progname}; then
11399 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402 break
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11407 done
11410 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11411 for ncn_progname in ld; do
11412 if test -n "$ncn_target_tool_prefix"; then
11413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 if test -n "$LD_FOR_TARGET"; then
11421 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11422 else
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11434 done
11435 done
11436 IFS=$as_save_IFS
11440 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11441 if test -n "$LD_FOR_TARGET"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11443 $as_echo "$LD_FOR_TARGET" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11451 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453 set dummy ${ncn_progname}; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 if test -n "$LD_FOR_TARGET"; then
11460 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11473 done
11474 done
11475 IFS=$as_save_IFS
11479 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11480 if test -n "$LD_FOR_TARGET"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11482 $as_echo "$LD_FOR_TARGET" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11490 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11491 done
11494 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11495 set dummy ld
11496 if test $build = $target ; then
11497 LD_FOR_TARGET="$2"
11498 else
11499 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11501 else
11502 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11505 else
11506 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11512 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11513 if test -n "$with_build_time_tools"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11515 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11516 if test -x $with_build_time_tools/lipo; then
11517 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11518 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11520 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11525 elif test $build != $host && test $have_gcc_for_target = yes; then
11526 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11527 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11528 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11531 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11532 # Extract the first word of "lipo", so it can be a program name with args.
11533 set dummy lipo; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 case $LIPO_FOR_TARGET in
11540 [\\/]* | ?:[\\/]*)
11541 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $gcc_cv_tool_dirs
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11551 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11555 done
11556 done
11557 IFS=$as_save_IFS
11560 esac
11562 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11563 if test -n "$LIPO_FOR_TARGET"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11565 $as_echo "$LIPO_FOR_TARGET" >&6; }
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11573 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11576 if test -n "$LIPO_FOR_TARGET"; then
11577 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11578 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11579 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11582 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11583 for ncn_progname in lipo; do
11584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11585 set dummy ${ncn_progname}; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test -n "$LIPO_FOR_TARGET"; then
11592 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11593 else
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11605 done
11606 done
11607 IFS=$as_save_IFS
11611 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11612 if test -n "$LIPO_FOR_TARGET"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11614 $as_echo "$LIPO_FOR_TARGET" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11621 done
11624 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11625 for ncn_progname in lipo; do
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11627 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11628 if test -x $with_build_time_tools/${ncn_progname}; then
11629 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631 $as_echo "yes" >&6; }
11632 break
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11637 done
11640 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11641 for ncn_progname in lipo; do
11642 if test -n "$ncn_target_tool_prefix"; then
11643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 if test -n "$LIPO_FOR_TARGET"; then
11651 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11652 else
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11656 IFS=$as_save_IFS
11657 test -z "$as_dir" && as_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11660 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 break 2
11664 done
11665 done
11666 IFS=$as_save_IFS
11670 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11671 if test -n "$LIPO_FOR_TARGET"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11673 $as_echo "$LIPO_FOR_TARGET" >&6; }
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11681 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if test -n "$LIPO_FOR_TARGET"; then
11690 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11703 done
11704 done
11705 IFS=$as_save_IFS
11709 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11710 if test -n "$LIPO_FOR_TARGET"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11712 $as_echo "$LIPO_FOR_TARGET" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11720 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11721 done
11724 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11725 set dummy lipo
11726 if test $build = $target ; then
11727 LIPO_FOR_TARGET="$2"
11728 else
11729 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11731 else
11732 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11735 else
11736 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11742 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11743 if test -n "$with_build_time_tools"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11745 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11746 if test -x $with_build_time_tools/nm; then
11747 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11748 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11750 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11755 elif test $build != $host && test $have_gcc_for_target = yes; then
11756 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11757 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11758 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11761 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11762 # Extract the first word of "nm", so it can be a program name with args.
11763 set dummy nm; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 case $NM_FOR_TARGET in
11770 [\\/]* | ?:[\\/]*)
11771 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $gcc_cv_tool_dirs
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11787 IFS=$as_save_IFS
11790 esac
11792 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11793 if test -n "$NM_FOR_TARGET"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11795 $as_echo "$NM_FOR_TARGET" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11803 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11806 if test -n "$NM_FOR_TARGET"; then
11807 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11808 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11809 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11812 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11813 for ncn_progname in nm; do
11814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11815 set dummy ${ncn_progname}; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test -n "$NM_FOR_TARGET"; then
11822 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11823 else
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11835 done
11836 done
11837 IFS=$as_save_IFS
11841 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11842 if test -n "$NM_FOR_TARGET"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11844 $as_echo "$NM_FOR_TARGET" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11851 done
11854 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11855 for ncn_progname in nm; do
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11858 if test -x $with_build_time_tools/${ncn_progname}; then
11859 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; }
11862 break
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11867 done
11870 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11871 for ncn_progname in nm; do
11872 if test -n "$ncn_target_tool_prefix"; then
11873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 if test -n "$NM_FOR_TARGET"; then
11881 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11882 else
11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH
11886 IFS=$as_save_IFS
11887 test -z "$as_dir" && as_dir=.
11888 for ac_exec_ext in '' $ac_executable_extensions; do
11889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11890 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 break 2
11894 done
11895 done
11896 IFS=$as_save_IFS
11900 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11901 if test -n "$NM_FOR_TARGET"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11903 $as_echo "$NM_FOR_TARGET" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11911 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913 set dummy ${ncn_progname}; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 if test -n "$NM_FOR_TARGET"; then
11920 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11921 else
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11929 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931 break 2
11933 done
11934 done
11935 IFS=$as_save_IFS
11939 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11940 if test -n "$NM_FOR_TARGET"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11942 $as_echo "$NM_FOR_TARGET" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11950 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11951 done
11954 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11955 set dummy nm
11956 if test $build = $target ; then
11957 NM_FOR_TARGET="$2"
11958 else
11959 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11961 else
11962 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11965 else
11966 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11973 if test -n "$with_build_time_tools"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11975 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11976 if test -x $with_build_time_tools/objdump; then
11977 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11978 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11980 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11985 elif test $build != $host && test $have_gcc_for_target = yes; then
11986 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11987 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11988 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11991 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11992 # Extract the first word of "objdump", so it can be a program name with args.
11993 set dummy objdump; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 case $OBJDUMP_FOR_TARGET in
12000 [\\/]* | ?:[\\/]*)
12001 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $gcc_cv_tool_dirs
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12015 done
12016 done
12017 IFS=$as_save_IFS
12020 esac
12022 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12023 if test -n "$OBJDUMP_FOR_TARGET"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12025 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12033 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12036 if test -n "$OBJDUMP_FOR_TARGET"; then
12037 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12038 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12039 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12042 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12043 for ncn_progname in objdump; do
12044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12045 set dummy ${ncn_progname}; ac_word=$2
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047 $as_echo_n "checking for $ac_word... " >&6; }
12048 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test -n "$OBJDUMP_FOR_TARGET"; then
12052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12071 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12072 if test -n "$OBJDUMP_FOR_TARGET"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12074 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12081 done
12084 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12085 for ncn_progname in objdump; do
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12087 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12088 if test -x $with_build_time_tools/${ncn_progname}; then
12089 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12092 break
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12097 done
12100 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12101 for ncn_progname in objdump; do
12102 if test -n "$ncn_target_tool_prefix"; then
12103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106 $as_echo_n "checking for $ac_word... " >&6; }
12107 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 if test -n "$OBJDUMP_FOR_TARGET"; then
12111 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12112 else
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12124 done
12125 done
12126 IFS=$as_save_IFS
12130 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12131 if test -n "$OBJDUMP_FOR_TARGET"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12133 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143 set dummy ${ncn_progname}; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 if test -n "$OBJDUMP_FOR_TARGET"; then
12150 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12151 else
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12169 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12170 if test -n "$OBJDUMP_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12172 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12180 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12181 done
12184 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12185 set dummy objdump
12186 if test $build = $target ; then
12187 OBJDUMP_FOR_TARGET="$2"
12188 else
12189 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12191 else
12192 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12195 else
12196 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12202 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12203 if test -n "$with_build_time_tools"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12205 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12206 if test -x $with_build_time_tools/ranlib; then
12207 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12208 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12210 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12215 elif test $build != $host && test $have_gcc_for_target = yes; then
12216 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12217 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12218 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12221 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12222 # Extract the first word of "ranlib", so it can be a program name with args.
12223 set dummy ranlib; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 case $RANLIB_FOR_TARGET in
12230 [\\/]* | ?:[\\/]*)
12231 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $gcc_cv_tool_dirs
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12245 done
12246 done
12247 IFS=$as_save_IFS
12250 esac
12252 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12253 if test -n "$RANLIB_FOR_TARGET"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12255 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12263 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12266 if test -n "$RANLIB_FOR_TARGET"; then
12267 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12268 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12269 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12272 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12273 for ncn_progname in ranlib; do
12274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12275 set dummy ${ncn_progname}; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -n "$RANLIB_FOR_TARGET"; then
12282 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12283 else
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 break 2
12295 done
12296 done
12297 IFS=$as_save_IFS
12301 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12302 if test -n "$RANLIB_FOR_TARGET"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12304 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12311 done
12314 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12315 for ncn_progname in ranlib; do
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12317 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12318 if test -x $with_build_time_tools/${ncn_progname}; then
12319 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 break
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12327 done
12330 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12331 for ncn_progname in ranlib; do
12332 if test -n "$ncn_target_tool_prefix"; then
12333 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12334 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test -n "$RANLIB_FOR_TARGET"; then
12341 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12342 else
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12350 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12354 done
12355 done
12356 IFS=$as_save_IFS
12360 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12361 if test -n "$RANLIB_FOR_TARGET"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12363 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12371 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 if test -n "$RANLIB_FOR_TARGET"; then
12380 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12381 else
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12389 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 break 2
12393 done
12394 done
12395 IFS=$as_save_IFS
12399 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12400 if test -n "$RANLIB_FOR_TARGET"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12402 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12410 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12411 done
12414 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12415 set dummy ranlib
12416 if test $build = $target ; then
12417 RANLIB_FOR_TARGET="$2"
12418 else
12419 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12421 else
12422 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12425 else
12426 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12432 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12433 if test -n "$with_build_time_tools"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12435 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12436 if test -x $with_build_time_tools/readelf; then
12437 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12438 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12440 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12445 elif test $build != $host && test $have_gcc_for_target = yes; then
12446 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12447 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12448 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12451 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12452 # Extract the first word of "readelf", so it can be a program name with args.
12453 set dummy readelf; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 case $READELF_FOR_TARGET in
12460 [\\/]* | ?:[\\/]*)
12461 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $gcc_cv_tool_dirs
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12475 done
12476 done
12477 IFS=$as_save_IFS
12480 esac
12482 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12483 if test -n "$READELF_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12485 $as_echo "$READELF_FOR_TARGET" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12496 if test -n "$READELF_FOR_TARGET"; then
12497 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12498 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12499 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12502 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12503 for ncn_progname in readelf; do
12504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$READELF_FOR_TARGET"; then
12512 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12531 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12532 if test -n "$READELF_FOR_TARGET"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12534 $as_echo "$READELF_FOR_TARGET" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12541 done
12544 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12545 for ncn_progname in readelf; do
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12547 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12548 if test -x $with_build_time_tools/${ncn_progname}; then
12549 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12551 $as_echo "yes" >&6; }
12552 break
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12557 done
12560 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12561 for ncn_progname in readelf; do
12562 if test -n "$ncn_target_tool_prefix"; then
12563 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12564 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if test -n "$READELF_FOR_TARGET"; then
12571 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12584 done
12585 done
12586 IFS=$as_save_IFS
12590 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12591 if test -n "$READELF_FOR_TARGET"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12593 $as_echo "$READELF_FOR_TARGET" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12601 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603 set dummy ${ncn_progname}; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 if test -n "$READELF_FOR_TARGET"; then
12610 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12611 else
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12619 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12623 done
12624 done
12625 IFS=$as_save_IFS
12629 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12630 if test -n "$READELF_FOR_TARGET"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12632 $as_echo "$READELF_FOR_TARGET" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12640 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12641 done
12644 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12645 set dummy readelf
12646 if test $build = $target ; then
12647 READELF_FOR_TARGET="$2"
12648 else
12649 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12651 else
12652 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12655 else
12656 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12662 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12663 if test -n "$with_build_time_tools"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12665 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12666 if test -x $with_build_time_tools/strip; then
12667 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12668 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12670 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12675 elif test $build != $host && test $have_gcc_for_target = yes; then
12676 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12677 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12678 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12681 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12682 # Extract the first word of "strip", so it can be a program name with args.
12683 set dummy strip; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 case $STRIP_FOR_TARGET in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $gcc_cv_tool_dirs
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12705 done
12706 done
12707 IFS=$as_save_IFS
12710 esac
12712 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12713 if test -n "$STRIP_FOR_TARGET"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12715 $as_echo "$STRIP_FOR_TARGET" >&6; }
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12723 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12726 if test -n "$STRIP_FOR_TARGET"; then
12727 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12728 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12729 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12732 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12733 for ncn_progname in strip; do
12734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12735 set dummy ${ncn_progname}; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 if test -n "$STRIP_FOR_TARGET"; then
12742 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12755 done
12756 done
12757 IFS=$as_save_IFS
12761 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12762 if test -n "$STRIP_FOR_TARGET"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12764 $as_echo "$STRIP_FOR_TARGET" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12771 done
12774 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12775 for ncn_progname in strip; do
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12777 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12778 if test -x $with_build_time_tools/${ncn_progname}; then
12779 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12781 $as_echo "yes" >&6; }
12782 break
12783 else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12787 done
12790 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12791 for ncn_progname in strip; do
12792 if test -n "$ncn_target_tool_prefix"; then
12793 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12794 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796 $as_echo_n "checking for $ac_word... " >&6; }
12797 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 if test -n "$STRIP_FOR_TARGET"; then
12801 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12802 else
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12810 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12814 done
12815 done
12816 IFS=$as_save_IFS
12820 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12821 if test -n "$STRIP_FOR_TARGET"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12823 $as_echo "$STRIP_FOR_TARGET" >&6; }
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12831 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833 set dummy ${ncn_progname}; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 if test -n "$STRIP_FOR_TARGET"; then
12840 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12853 done
12854 done
12855 IFS=$as_save_IFS
12859 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12860 if test -n "$STRIP_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12862 $as_echo "$STRIP_FOR_TARGET" >&6; }
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12870 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12871 done
12874 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12875 set dummy strip
12876 if test $build = $target ; then
12877 STRIP_FOR_TARGET="$2"
12878 else
12879 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12881 else
12882 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12885 else
12886 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12892 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12893 if test -n "$with_build_time_tools"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12895 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12896 if test -x $with_build_time_tools/windres; then
12897 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12898 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12900 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12905 elif test $build != $host && test $have_gcc_for_target = yes; then
12906 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12907 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12908 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12911 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12912 # Extract the first word of "windres", so it can be a program name with args.
12913 set dummy windres; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 case $WINDRES_FOR_TARGET in
12920 [\\/]* | ?:[\\/]*)
12921 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $gcc_cv_tool_dirs
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12931 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12935 done
12936 done
12937 IFS=$as_save_IFS
12940 esac
12942 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12943 if test -n "$WINDRES_FOR_TARGET"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12945 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12953 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12956 if test -n "$WINDRES_FOR_TARGET"; then
12957 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12958 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12959 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12962 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12963 for ncn_progname in windres; do
12964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$WINDRES_FOR_TARGET"; then
12972 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12981 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12985 done
12986 done
12987 IFS=$as_save_IFS
12991 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12992 if test -n "$WINDRES_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12994 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13001 done
13004 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13005 for ncn_progname in windres; do
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13007 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13008 if test -x $with_build_time_tools/${ncn_progname}; then
13009 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011 $as_echo "yes" >&6; }
13012 break
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13017 done
13020 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13021 for ncn_progname in windres; do
13022 if test -n "$ncn_target_tool_prefix"; then
13023 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13024 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 if test -n "$WINDRES_FOR_TARGET"; then
13031 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13032 else
13033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13034 for as_dir in $PATH
13036 IFS=$as_save_IFS
13037 test -z "$as_dir" && as_dir=.
13038 for ac_exec_ext in '' $ac_executable_extensions; do
13039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13040 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13042 break 2
13044 done
13045 done
13046 IFS=$as_save_IFS
13050 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13051 if test -n "$WINDRES_FOR_TARGET"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13053 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13061 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13063 set dummy ${ncn_progname}; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 if test -n "$WINDRES_FOR_TARGET"; then
13070 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13071 else
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 break 2
13083 done
13084 done
13085 IFS=$as_save_IFS
13089 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13090 if test -n "$WINDRES_FOR_TARGET"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13092 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13100 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13101 done
13104 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13105 set dummy windres
13106 if test $build = $target ; then
13107 WINDRES_FOR_TARGET="$2"
13108 else
13109 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13111 else
13112 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13115 else
13116 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13122 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13123 if test -n "$with_build_time_tools"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13125 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13126 if test -x $with_build_time_tools/windmc; then
13127 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13128 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13130 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13135 elif test $build != $host && test $have_gcc_for_target = yes; then
13136 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13137 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13138 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13141 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13142 # Extract the first word of "windmc", so it can be a program name with args.
13143 set dummy windmc; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 case $WINDMC_FOR_TARGET in
13150 [\\/]* | ?:[\\/]*)
13151 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $gcc_cv_tool_dirs
13157 IFS=$as_save_IFS
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13161 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 break 2
13165 done
13166 done
13167 IFS=$as_save_IFS
13170 esac
13172 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13173 if test -n "$WINDMC_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13175 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13183 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13186 if test -n "$WINDMC_FOR_TARGET"; then
13187 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13188 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13189 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13192 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13193 for ncn_progname in windmc; do
13194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13195 set dummy ${ncn_progname}; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$WINDMC_FOR_TARGET"; then
13202 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13221 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13222 if test -n "$WINDMC_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13224 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13231 done
13234 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13235 for ncn_progname in windmc; do
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13237 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13238 if test -x $with_build_time_tools/${ncn_progname}; then
13239 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13241 $as_echo "yes" >&6; }
13242 break
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13247 done
13250 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13251 for ncn_progname in windmc; do
13252 if test -n "$ncn_target_tool_prefix"; then
13253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13254 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 if test -n "$WINDMC_FOR_TARGET"; then
13261 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13270 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13274 done
13275 done
13276 IFS=$as_save_IFS
13280 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13281 if test -n "$WINDMC_FOR_TARGET"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13283 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13291 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293 set dummy ${ncn_progname}; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 if test -n "$WINDMC_FOR_TARGET"; then
13300 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13301 else
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13319 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13320 if test -n "$WINDMC_FOR_TARGET"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13322 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13323 else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13330 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13331 done
13334 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13335 set dummy windmc
13336 if test $build = $target ; then
13337 WINDMC_FOR_TARGET="$2"
13338 else
13339 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13341 else
13342 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13345 else
13346 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13350 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13353 $as_echo_n "checking where to find the target ar... " >&6; }
13354 if test "x${build}" != "x${host}" ; then
13355 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13356 # We already found the complete path
13357 ac_dir=`dirname $AR_FOR_TARGET`
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13359 $as_echo "pre-installed in $ac_dir" >&6; }
13360 else
13361 # Canadian cross, just use what we found
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13363 $as_echo "pre-installed" >&6; }
13365 else
13366 ok=yes
13367 case " ${configdirs} " in
13368 *" binutils "*) ;;
13369 *) ok=no ;;
13370 esac
13372 if test $ok = yes; then
13373 # An in-tree tool is available and we can use it
13374 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13376 $as_echo "just compiled" >&6; }
13377 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13378 # We already found the complete path
13379 ac_dir=`dirname $AR_FOR_TARGET`
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13381 $as_echo "pre-installed in $ac_dir" >&6; }
13382 elif test "x$target" = "x$host"; then
13383 # We can use an host tool
13384 AR_FOR_TARGET='$(AR)'
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13386 $as_echo "host tool" >&6; }
13387 else
13388 # We need a cross tool
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13390 $as_echo "pre-installed" >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13395 $as_echo_n "checking where to find the target as... " >&6; }
13396 if test "x${build}" != "x${host}" ; then
13397 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13398 # We already found the complete path
13399 ac_dir=`dirname $AS_FOR_TARGET`
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13401 $as_echo "pre-installed in $ac_dir" >&6; }
13402 else
13403 # Canadian cross, just use what we found
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13405 $as_echo "pre-installed" >&6; }
13407 else
13408 ok=yes
13409 case " ${configdirs} " in
13410 *" gas "*) ;;
13411 *) ok=no ;;
13412 esac
13414 if test $ok = yes; then
13415 # An in-tree tool is available and we can use it
13416 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13418 $as_echo "just compiled" >&6; }
13419 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13420 # We already found the complete path
13421 ac_dir=`dirname $AS_FOR_TARGET`
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13423 $as_echo "pre-installed in $ac_dir" >&6; }
13424 elif test "x$target" = "x$host"; then
13425 # We can use an host tool
13426 AS_FOR_TARGET='$(AS)'
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13428 $as_echo "host tool" >&6; }
13429 else
13430 # We need a cross tool
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13432 $as_echo "pre-installed" >&6; }
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13437 $as_echo_n "checking where to find the target cc... " >&6; }
13438 if test "x${build}" != "x${host}" ; then
13439 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13440 # We already found the complete path
13441 ac_dir=`dirname $CC_FOR_TARGET`
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13443 $as_echo "pre-installed in $ac_dir" >&6; }
13444 else
13445 # Canadian cross, just use what we found
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13447 $as_echo "pre-installed" >&6; }
13449 else
13450 ok=yes
13451 case " ${configdirs} " in
13452 *" gcc "*) ;;
13453 *) ok=no ;;
13454 esac
13456 if test $ok = yes; then
13457 # An in-tree tool is available and we can use it
13458 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13460 $as_echo "just compiled" >&6; }
13461 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13462 # We already found the complete path
13463 ac_dir=`dirname $CC_FOR_TARGET`
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13465 $as_echo "pre-installed in $ac_dir" >&6; }
13466 elif test "x$target" = "x$host"; then
13467 # We can use an host tool
13468 CC_FOR_TARGET='$(CC)'
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13470 $as_echo "host tool" >&6; }
13471 else
13472 # We need a cross tool
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13474 $as_echo "pre-installed" >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13479 $as_echo_n "checking where to find the target c++... " >&6; }
13480 if test "x${build}" != "x${host}" ; then
13481 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13482 # We already found the complete path
13483 ac_dir=`dirname $CXX_FOR_TARGET`
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13485 $as_echo "pre-installed in $ac_dir" >&6; }
13486 else
13487 # Canadian cross, just use what we found
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13489 $as_echo "pre-installed" >&6; }
13491 else
13492 ok=yes
13493 case " ${configdirs} " in
13494 *" gcc "*) ;;
13495 *) ok=no ;;
13496 esac
13497 case ,${enable_languages}, in
13498 *,c++,*) ;;
13499 *) ok=no ;;
13500 esac
13501 if test $ok = yes; then
13502 # An in-tree tool is available and we can use it
13503 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13505 $as_echo "just compiled" >&6; }
13506 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13507 # We already found the complete path
13508 ac_dir=`dirname $CXX_FOR_TARGET`
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13510 $as_echo "pre-installed in $ac_dir" >&6; }
13511 elif test "x$target" = "x$host"; then
13512 # We can use an host tool
13513 CXX_FOR_TARGET='$(CXX)'
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13515 $as_echo "host tool" >&6; }
13516 else
13517 # We need a cross tool
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13519 $as_echo "pre-installed" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13524 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13525 if test "x${build}" != "x${host}" ; then
13526 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
13528 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530 $as_echo "pre-installed in $ac_dir" >&6; }
13531 else
13532 # Canadian cross, just use what we found
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13534 $as_echo "pre-installed" >&6; }
13536 else
13537 ok=yes
13538 case " ${configdirs} " in
13539 *" gcc "*) ;;
13540 *) ok=no ;;
13541 esac
13542 case ,${enable_languages}, in
13543 *,c++,*) ;;
13544 *) ok=no ;;
13545 esac
13546 if test $ok = yes; then
13547 # An in-tree tool is available and we can use it
13548 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'
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13550 $as_echo "just compiled" >&6; }
13551 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13552 # We already found the complete path
13553 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13555 $as_echo "pre-installed in $ac_dir" >&6; }
13556 elif test "x$target" = "x$host"; then
13557 # We can use an host tool
13558 RAW_CXX_FOR_TARGET='$(CXX)'
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13560 $as_echo "host tool" >&6; }
13561 else
13562 # We need a cross tool
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13564 $as_echo "pre-installed" >&6; }
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13569 $as_echo_n "checking where to find the target dlltool... " >&6; }
13570 if test "x${build}" != "x${host}" ; then
13571 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13572 # We already found the complete path
13573 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13575 $as_echo "pre-installed in $ac_dir" >&6; }
13576 else
13577 # Canadian cross, just use what we found
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13579 $as_echo "pre-installed" >&6; }
13581 else
13582 ok=yes
13583 case " ${configdirs} " in
13584 *" binutils "*) ;;
13585 *) ok=no ;;
13586 esac
13588 if test $ok = yes; then
13589 # An in-tree tool is available and we can use it
13590 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13592 $as_echo "just compiled" >&6; }
13593 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13594 # We already found the complete path
13595 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13597 $as_echo "pre-installed in $ac_dir" >&6; }
13598 elif test "x$target" = "x$host"; then
13599 # We can use an host tool
13600 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13602 $as_echo "host tool" >&6; }
13603 else
13604 # We need a cross tool
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606 $as_echo "pre-installed" >&6; }
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13611 $as_echo_n "checking where to find the target gcc... " >&6; }
13612 if test "x${build}" != "x${host}" ; then
13613 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13614 # We already found the complete path
13615 ac_dir=`dirname $GCC_FOR_TARGET`
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13617 $as_echo "pre-installed in $ac_dir" >&6; }
13618 else
13619 # Canadian cross, just use what we found
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13621 $as_echo "pre-installed" >&6; }
13623 else
13624 ok=yes
13625 case " ${configdirs} " in
13626 *" gcc "*) ;;
13627 *) ok=no ;;
13628 esac
13630 if test $ok = yes; then
13631 # An in-tree tool is available and we can use it
13632 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13634 $as_echo "just compiled" >&6; }
13635 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13636 # We already found the complete path
13637 ac_dir=`dirname $GCC_FOR_TARGET`
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13639 $as_echo "pre-installed in $ac_dir" >&6; }
13640 elif test "x$target" = "x$host"; then
13641 # We can use an host tool
13642 GCC_FOR_TARGET='$()'
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13644 $as_echo "host tool" >&6; }
13645 else
13646 # We need a cross tool
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648 $as_echo "pre-installed" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13653 $as_echo_n "checking where to find the target gcj... " >&6; }
13654 if test "x${build}" != "x${host}" ; then
13655 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13656 # We already found the complete path
13657 ac_dir=`dirname $GCJ_FOR_TARGET`
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13659 $as_echo "pre-installed in $ac_dir" >&6; }
13660 else
13661 # Canadian cross, just use what we found
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13663 $as_echo "pre-installed" >&6; }
13665 else
13666 ok=yes
13667 case " ${configdirs} " in
13668 *" gcc "*) ;;
13669 *) ok=no ;;
13670 esac
13671 case ,${enable_languages}, in
13672 *,java,*) ;;
13673 *) ok=no ;;
13674 esac
13675 if test $ok = yes; then
13676 # An in-tree tool is available and we can use it
13677 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13679 $as_echo "just compiled" >&6; }
13680 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13681 # We already found the complete path
13682 ac_dir=`dirname $GCJ_FOR_TARGET`
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13684 $as_echo "pre-installed in $ac_dir" >&6; }
13685 elif test "x$target" = "x$host"; then
13686 # We can use an host tool
13687 GCJ_FOR_TARGET='$(GCJ)'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13689 $as_echo "host tool" >&6; }
13690 else
13691 # We need a cross tool
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693 $as_echo "pre-installed" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13698 $as_echo_n "checking where to find the target gfortran... " >&6; }
13699 if test "x${build}" != "x${host}" ; then
13700 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
13702 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704 $as_echo "pre-installed in $ac_dir" >&6; }
13705 else
13706 # Canadian cross, just use what we found
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708 $as_echo "pre-installed" >&6; }
13710 else
13711 ok=yes
13712 case " ${configdirs} " in
13713 *" gcc "*) ;;
13714 *) ok=no ;;
13715 esac
13716 case ,${enable_languages}, in
13717 *,fortran,*) ;;
13718 *) ok=no ;;
13719 esac
13720 if test $ok = yes; then
13721 # An in-tree tool is available and we can use it
13722 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13724 $as_echo "just compiled" >&6; }
13725 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
13727 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729 $as_echo "pre-installed in $ac_dir" >&6; }
13730 elif test "x$target" = "x$host"; then
13731 # We can use an host tool
13732 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13734 $as_echo "host tool" >&6; }
13735 else
13736 # We need a cross tool
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13738 $as_echo "pre-installed" >&6; }
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13743 $as_echo_n "checking where to find the target gccgo... " >&6; }
13744 if test "x${build}" != "x${host}" ; then
13745 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13746 # We already found the complete path
13747 ac_dir=`dirname $GOC_FOR_TARGET`
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13749 $as_echo "pre-installed in $ac_dir" >&6; }
13750 else
13751 # Canadian cross, just use what we found
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13753 $as_echo "pre-installed" >&6; }
13755 else
13756 ok=yes
13757 case " ${configdirs} " in
13758 *" gcc "*) ;;
13759 *) ok=no ;;
13760 esac
13761 case ,${enable_languages}, in
13762 *,go,*) ;;
13763 *) ok=no ;;
13764 esac
13765 if test $ok = yes; then
13766 # An in-tree tool is available and we can use it
13767 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13769 $as_echo "just compiled" >&6; }
13770 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13771 # We already found the complete path
13772 ac_dir=`dirname $GOC_FOR_TARGET`
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13774 $as_echo "pre-installed in $ac_dir" >&6; }
13775 elif test "x$target" = "x$host"; then
13776 # We can use an host tool
13777 GOC_FOR_TARGET='$(GOC)'
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13779 $as_echo "host tool" >&6; }
13780 else
13781 # We need a cross tool
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13783 $as_echo "pre-installed" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13788 $as_echo_n "checking where to find the target ld... " >&6; }
13789 if test "x${build}" != "x${host}" ; then
13790 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
13792 ac_dir=`dirname $LD_FOR_TARGET`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794 $as_echo "pre-installed in $ac_dir" >&6; }
13795 else
13796 # Canadian cross, just use what we found
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798 $as_echo "pre-installed" >&6; }
13800 else
13801 ok=yes
13802 case " ${configdirs} " in
13803 *" ld "*) ;;
13804 *) ok=no ;;
13805 esac
13807 if test $ok = yes; then
13808 # An in-tree tool is available and we can use it
13809 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13811 $as_echo "just compiled" >&6; }
13812 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13813 # We already found the complete path
13814 ac_dir=`dirname $LD_FOR_TARGET`
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13816 $as_echo "pre-installed in $ac_dir" >&6; }
13817 elif test "x$target" = "x$host"; then
13818 # We can use an host tool
13819 LD_FOR_TARGET='$(LD)'
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13821 $as_echo "host tool" >&6; }
13822 else
13823 # We need a cross tool
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13825 $as_echo "pre-installed" >&6; }
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13830 $as_echo_n "checking where to find the target lipo... " >&6; }
13831 if test "x${build}" != "x${host}" ; then
13832 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
13834 ac_dir=`dirname $LIPO_FOR_TARGET`
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836 $as_echo "pre-installed in $ac_dir" >&6; }
13837 else
13838 # Canadian cross, just use what we found
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840 $as_echo "pre-installed" >&6; }
13842 else
13843 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13844 # We already found the complete path
13845 ac_dir=`dirname $LIPO_FOR_TARGET`
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13847 $as_echo "pre-installed in $ac_dir" >&6; }
13848 elif test "x$target" = "x$host"; then
13849 # We can use an host tool
13850 LIPO_FOR_TARGET='$(LIPO)'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13852 $as_echo "host tool" >&6; }
13853 else
13854 # We need a cross tool
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856 $as_echo "pre-installed" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13861 $as_echo_n "checking where to find the target nm... " >&6; }
13862 if test "x${build}" != "x${host}" ; then
13863 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
13865 ac_dir=`dirname $NM_FOR_TARGET`
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867 $as_echo "pre-installed in $ac_dir" >&6; }
13868 else
13869 # Canadian cross, just use what we found
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871 $as_echo "pre-installed" >&6; }
13873 else
13874 ok=yes
13875 case " ${configdirs} " in
13876 *" binutils "*) ;;
13877 *) ok=no ;;
13878 esac
13880 if test $ok = yes; then
13881 # An in-tree tool is available and we can use it
13882 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13884 $as_echo "just compiled" >&6; }
13885 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13886 # We already found the complete path
13887 ac_dir=`dirname $NM_FOR_TARGET`
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13889 $as_echo "pre-installed in $ac_dir" >&6; }
13890 elif test "x$target" = "x$host"; then
13891 # We can use an host tool
13892 NM_FOR_TARGET='$(NM)'
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13894 $as_echo "host tool" >&6; }
13895 else
13896 # We need a cross tool
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13903 $as_echo_n "checking where to find the target objdump... " >&6; }
13904 if test "x${build}" != "x${host}" ; then
13905 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13906 # We already found the complete path
13907 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13909 $as_echo "pre-installed in $ac_dir" >&6; }
13910 else
13911 # Canadian cross, just use what we found
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913 $as_echo "pre-installed" >&6; }
13915 else
13916 ok=yes
13917 case " ${configdirs} " in
13918 *" binutils "*) ;;
13919 *) ok=no ;;
13920 esac
13922 if test $ok = yes; then
13923 # An in-tree tool is available and we can use it
13924 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13926 $as_echo "just compiled" >&6; }
13927 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13928 # We already found the complete path
13929 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13931 $as_echo "pre-installed in $ac_dir" >&6; }
13932 elif test "x$target" = "x$host"; then
13933 # We can use an host tool
13934 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13936 $as_echo "host tool" >&6; }
13937 else
13938 # We need a cross tool
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13940 $as_echo "pre-installed" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13945 $as_echo_n "checking where to find the target ranlib... " >&6; }
13946 if test "x${build}" != "x${host}" ; then
13947 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13948 # We already found the complete path
13949 ac_dir=`dirname $RANLIB_FOR_TARGET`
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951 $as_echo "pre-installed in $ac_dir" >&6; }
13952 else
13953 # Canadian cross, just use what we found
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955 $as_echo "pre-installed" >&6; }
13957 else
13958 ok=yes
13959 case " ${configdirs} " in
13960 *" binutils "*) ;;
13961 *) ok=no ;;
13962 esac
13964 if test $ok = yes; then
13965 # An in-tree tool is available and we can use it
13966 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13968 $as_echo "just compiled" >&6; }
13969 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13970 # We already found the complete path
13971 ac_dir=`dirname $RANLIB_FOR_TARGET`
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973 $as_echo "pre-installed in $ac_dir" >&6; }
13974 elif test "x$target" = "x$host"; then
13975 # We can use an host tool
13976 RANLIB_FOR_TARGET='$(RANLIB)'
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13978 $as_echo "host tool" >&6; }
13979 else
13980 # We need a cross tool
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982 $as_echo "pre-installed" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13987 $as_echo_n "checking where to find the target readelf... " >&6; }
13988 if test "x${build}" != "x${host}" ; then
13989 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13990 # We already found the complete path
13991 ac_dir=`dirname $READELF_FOR_TARGET`
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993 $as_echo "pre-installed in $ac_dir" >&6; }
13994 else
13995 # Canadian cross, just use what we found
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997 $as_echo "pre-installed" >&6; }
13999 else
14000 ok=yes
14001 case " ${configdirs} " in
14002 *" binutils "*) ;;
14003 *) ok=no ;;
14004 esac
14006 if test $ok = yes; then
14007 # An in-tree tool is available and we can use it
14008 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14010 $as_echo "just compiled" >&6; }
14011 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14012 # We already found the complete path
14013 ac_dir=`dirname $READELF_FOR_TARGET`
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14015 $as_echo "pre-installed in $ac_dir" >&6; }
14016 elif test "x$target" = "x$host"; then
14017 # We can use an host tool
14018 READELF_FOR_TARGET='$(READELF)'
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14020 $as_echo "host tool" >&6; }
14021 else
14022 # We need a cross tool
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024 $as_echo "pre-installed" >&6; }
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14029 $as_echo_n "checking where to find the target strip... " >&6; }
14030 if test "x${build}" != "x${host}" ; then
14031 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14032 # We already found the complete path
14033 ac_dir=`dirname $STRIP_FOR_TARGET`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035 $as_echo "pre-installed in $ac_dir" >&6; }
14036 else
14037 # Canadian cross, just use what we found
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039 $as_echo "pre-installed" >&6; }
14041 else
14042 ok=yes
14043 case " ${configdirs} " in
14044 *" binutils "*) ;;
14045 *) ok=no ;;
14046 esac
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052 $as_echo "just compiled" >&6; }
14053 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $STRIP_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057 $as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 STRIP_FOR_TARGET='$(STRIP)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062 $as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14071 $as_echo_n "checking where to find the target windres... " >&6; }
14072 if test "x${build}" != "x${host}" ; then
14073 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $WINDRES_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078 else
14079 # Canadian cross, just use what we found
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081 $as_echo "pre-installed" >&6; }
14083 else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" binutils "*) ;;
14087 *) ok=no ;;
14088 esac
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094 $as_echo "just compiled" >&6; }
14095 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $WINDRES_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 WINDRES_FOR_TARGET='$(WINDRES)'
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104 $as_echo "host tool" >&6; }
14105 else
14106 # We need a cross tool
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14113 $as_echo_n "checking where to find the target windmc... " >&6; }
14114 if test "x${build}" != "x${host}" ; then
14115 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $WINDMC_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 else
14121 # Canadian cross, just use what we found
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14125 else
14126 ok=yes
14127 case " ${configdirs} " in
14128 *" binutils "*) ;;
14129 *) ok=no ;;
14130 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $WINDMC_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 WINDMC_FOR_TARGET='$(WINDMC)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14158 # Certain tools may need extra flags.
14159 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14160 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14161 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14163 # When building target libraries, except in a Canadian cross, we use
14164 # the same toolchain as the compiler we just built.
14165 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14166 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14167 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14168 if test $host = $build; then
14169 case " $configdirs " in
14170 *" gcc "*)
14171 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14172 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14173 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14175 esac
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14183 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14184 # Check whether --enable-maintainer-mode was given.
14185 if test "${enable_maintainer_mode+set}" = set; then :
14186 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14187 else
14188 USE_MAINTAINER_MODE=no
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14192 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14195 if test "$USE_MAINTAINER_MODE" = yes; then
14196 MAINTAINER_MODE_TRUE=
14197 MAINTAINER_MODE_FALSE='#'
14198 else
14199 MAINTAINER_MODE_TRUE='#'
14200 MAINTAINER_MODE_FALSE=
14202 MAINT=$MAINTAINER_MODE_TRUE
14204 # ---------------------
14205 # GCC bootstrap support
14206 # ---------------------
14208 # Stage specific cflags for build.
14209 stage1_cflags="-g"
14210 case $build in
14211 vax-*-*)
14212 case ${GCC} in
14213 yes) stage1_cflags="-g -Wa,-J" ;;
14214 *) stage1_cflags="-g -J" ;;
14215 esac ;;
14216 esac
14218 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14219 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14220 saved_CFLAGS="$CFLAGS"
14222 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14223 CFLAGS="$CFLAGS -fkeep-inline-functions"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14225 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14229 #if (__GNUC__ < 3) \
14230 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14231 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14232 #error http://gcc.gnu.org/PR29382
14233 #endif
14236 main ()
14240 return 0;
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252 CFLAGS="$saved_CFLAGS"
14257 # Enable --enable-checking in stage1 of the compiler.
14258 # Check whether --enable-stage1-checking was given.
14259 if test "${enable_stage1_checking+set}" = set; then :
14260 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14261 else
14262 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14263 stage1_checking=--enable-checking=yes,types
14264 else
14265 stage1_checking=--enable-checking=$enable_checking,types
14271 # Enable -Werror in bootstrap stage2 and later.
14272 # Check whether --enable-werror was given.
14273 if test "${enable_werror+set}" = set; then :
14274 enableval=$enable_werror;
14275 else
14276 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14277 enable_werror=yes
14278 else
14279 enable_werror=no
14283 case ${enable_werror} in
14284 yes) stage2_werror_flag="--enable-werror-always" ;;
14285 *) stage2_werror_flag="" ;;
14286 esac
14289 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14290 # --enable-build-with-cxx after stage1.
14291 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14292 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14293 else
14294 POSTSTAGE1_CONFIGURE_FLAGS=
14298 # Specify what files to not compare during bootstrap.
14300 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14301 case "$target" in
14302 hppa*64*-*-hpux*) ;;
14303 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14304 esac
14307 ac_config_files="$ac_config_files Makefile"
14309 cat >confcache <<\_ACEOF
14310 # This file is a shell script that caches the results of configure
14311 # tests run on this system so they can be shared between configure
14312 # scripts and configure runs, see configure's option --config-cache.
14313 # It is not useful on other systems. If it contains results you don't
14314 # want to keep, you may remove or edit it.
14316 # config.status only pays attention to the cache file if you give it
14317 # the --recheck option to rerun configure.
14319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14321 # following values.
14323 _ACEOF
14325 # The following way of writing the cache mishandles newlines in values,
14326 # but we know of no workaround that is simple, portable, and efficient.
14327 # So, we kill variables containing newlines.
14328 # Ultrix sh set writes to stderr and can't be redirected directly,
14329 # and sets the high bit in the cache file unless we assign to the vars.
14331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14332 eval ac_val=\$$ac_var
14333 case $ac_val in #(
14334 *${as_nl}*)
14335 case $ac_var in #(
14336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14338 esac
14339 case $ac_var in #(
14340 _ | IFS | as_nl) ;; #(
14341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14342 *) { eval $ac_var=; unset $ac_var;} ;;
14343 esac ;;
14344 esac
14345 done
14347 (set) 2>&1 |
14348 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14349 *${as_nl}ac_space=\ *)
14350 # `set' does not quote correctly, so add quotes: double-quote
14351 # substitution turns \\\\ into \\, and sed turns \\ into \.
14352 sed -n \
14353 "s/'/'\\\\''/g;
14354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14355 ;; #(
14357 # `set' quotes correctly as required by POSIX, so do not add quotes.
14358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14360 esac |
14361 sort
14363 sed '
14364 /^ac_cv_env_/b end
14365 t clear
14366 :clear
14367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14368 t end
14369 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14370 :end' >>confcache
14371 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14372 if test -w "$cache_file"; then
14373 test "x$cache_file" != "x/dev/null" &&
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14375 $as_echo "$as_me: updating cache $cache_file" >&6;}
14376 cat confcache >$cache_file
14377 else
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14382 rm -f confcache
14384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14385 # Let make expand exec_prefix.
14386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14388 # Transform confdefs.h into DEFS.
14389 # Protect against shell expansion while executing Makefile rules.
14390 # Protect against Makefile macro expansion.
14392 # If the first sed substitution is executed (which looks for macros that
14393 # take arguments), then branch to the quote section. Otherwise,
14394 # look for a macro that doesn't take arguments.
14395 ac_script='
14396 :mline
14397 /\\$/{
14399 s,\\\n,,
14400 b mline
14402 t clear
14403 :clear
14404 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14405 t quote
14406 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14407 t quote
14408 b any
14409 :quote
14410 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14411 s/\[/\\&/g
14412 s/\]/\\&/g
14413 s/\$/$$/g
14415 :any
14418 s/^\n//
14419 s/\n/ /g
14423 DEFS=`sed -n "$ac_script" confdefs.h`
14426 ac_libobjs=
14427 ac_ltlibobjs=
14428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14429 # 1. Remove the extension, and $U if already installed.
14430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14431 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14433 # will be set to the directory where LIBOBJS objects are built.
14434 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14435 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14436 done
14437 LIBOBJS=$ac_libobjs
14439 LTLIBOBJS=$ac_ltlibobjs
14443 : ${CONFIG_STATUS=./config.status}
14444 ac_write_fail=0
14445 ac_clean_files_save=$ac_clean_files
14446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14449 as_write_fail=0
14450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14451 #! $SHELL
14452 # Generated by $as_me.
14453 # Run this file to recreate the current configuration.
14454 # Compiler output produced by configure, useful for debugging
14455 # configure, is in config.log if it exists.
14457 debug=false
14458 ac_cs_recheck=false
14459 ac_cs_silent=false
14461 SHELL=\${CONFIG_SHELL-$SHELL}
14462 export SHELL
14463 _ASEOF
14464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14465 ## -------------------- ##
14466 ## M4sh Initialization. ##
14467 ## -------------------- ##
14469 # Be more Bourne compatible
14470 DUALCASE=1; export DUALCASE # for MKS sh
14471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14472 emulate sh
14473 NULLCMD=:
14474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14475 # is contrary to our usage. Disable this feature.
14476 alias -g '${1+"$@"}'='"$@"'
14477 setopt NO_GLOB_SUBST
14478 else
14479 case `(set -o) 2>/dev/null` in #(
14480 *posix*) :
14481 set -o posix ;; #(
14482 *) :
14484 esac
14488 as_nl='
14490 export as_nl
14491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14495 # Prefer a ksh shell builtin over an external printf program on Solaris,
14496 # but without wasting forks for bash or zsh.
14497 if test -z "$BASH_VERSION$ZSH_VERSION" \
14498 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14499 as_echo='print -r --'
14500 as_echo_n='print -rn --'
14501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14502 as_echo='printf %s\n'
14503 as_echo_n='printf %s'
14504 else
14505 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14506 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14507 as_echo_n='/usr/ucb/echo -n'
14508 else
14509 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14510 as_echo_n_body='eval
14511 arg=$1;
14512 case $arg in #(
14513 *"$as_nl"*)
14514 expr "X$arg" : "X\\(.*\\)$as_nl";
14515 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14516 esac;
14517 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14519 export as_echo_n_body
14520 as_echo_n='sh -c $as_echo_n_body as_echo'
14522 export as_echo_body
14523 as_echo='sh -c $as_echo_body as_echo'
14526 # The user is always right.
14527 if test "${PATH_SEPARATOR+set}" != set; then
14528 PATH_SEPARATOR=:
14529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14530 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14531 PATH_SEPARATOR=';'
14536 # IFS
14537 # We need space, tab and new line, in precisely that order. Quoting is
14538 # there to prevent editors from complaining about space-tab.
14539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14540 # splitting by setting IFS to empty value.)
14541 IFS=" "" $as_nl"
14543 # Find who we are. Look in the path if we contain no directory separator.
14544 case $0 in #((
14545 *[\\/]* ) as_myself=$0 ;;
14546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14549 IFS=$as_save_IFS
14550 test -z "$as_dir" && as_dir=.
14551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14552 done
14553 IFS=$as_save_IFS
14556 esac
14557 # We did not find ourselves, most probably we were run as `sh COMMAND'
14558 # in which case we are not to be found in the path.
14559 if test "x$as_myself" = x; then
14560 as_myself=$0
14562 if test ! -f "$as_myself"; then
14563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14564 exit 1
14567 # Unset variables that we do not need and which cause bugs (e.g. in
14568 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14569 # suppresses any "Segmentation fault" message there. '((' could
14570 # trigger a bug in pdksh 5.2.14.
14571 for as_var in BASH_ENV ENV MAIL MAILPATH
14572 do eval test x\${$as_var+set} = xset \
14573 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14574 done
14575 PS1='$ '
14576 PS2='> '
14577 PS4='+ '
14579 # NLS nuisances.
14580 LC_ALL=C
14581 export LC_ALL
14582 LANGUAGE=C
14583 export LANGUAGE
14585 # CDPATH.
14586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14589 # as_fn_error ERROR [LINENO LOG_FD]
14590 # ---------------------------------
14591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14593 # script with status $?, using 1 if that was 0.
14594 as_fn_error ()
14596 as_status=$?; test $as_status -eq 0 && as_status=1
14597 if test "$3"; then
14598 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14601 $as_echo "$as_me: error: $1" >&2
14602 as_fn_exit $as_status
14603 } # as_fn_error
14606 # as_fn_set_status STATUS
14607 # -----------------------
14608 # Set $? to STATUS, without forking.
14609 as_fn_set_status ()
14611 return $1
14612 } # as_fn_set_status
14614 # as_fn_exit STATUS
14615 # -----------------
14616 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14617 as_fn_exit ()
14619 set +e
14620 as_fn_set_status $1
14621 exit $1
14622 } # as_fn_exit
14624 # as_fn_unset VAR
14625 # ---------------
14626 # Portably unset VAR.
14627 as_fn_unset ()
14629 { eval $1=; unset $1;}
14631 as_unset=as_fn_unset
14632 # as_fn_append VAR VALUE
14633 # ----------------------
14634 # Append the text in VALUE to the end of the definition contained in VAR. Take
14635 # advantage of any shell optimizations that allow amortized linear growth over
14636 # repeated appends, instead of the typical quadratic growth present in naive
14637 # implementations.
14638 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14639 eval 'as_fn_append ()
14641 eval $1+=\$2
14643 else
14644 as_fn_append ()
14646 eval $1=\$$1\$2
14648 fi # as_fn_append
14650 # as_fn_arith ARG...
14651 # ------------------
14652 # Perform arithmetic evaluation on the ARGs, and store the result in the
14653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14654 # must be portable across $(()) and expr.
14655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14656 eval 'as_fn_arith ()
14658 as_val=$(( $* ))
14660 else
14661 as_fn_arith ()
14663 as_val=`expr "$@" || test $? -eq 1`
14665 fi # as_fn_arith
14668 if expr a : '\(a\)' >/dev/null 2>&1 &&
14669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14670 as_expr=expr
14671 else
14672 as_expr=false
14675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14676 as_basename=basename
14677 else
14678 as_basename=false
14681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14682 as_dirname=dirname
14683 else
14684 as_dirname=false
14687 as_me=`$as_basename -- "$0" ||
14688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14689 X"$0" : 'X\(//\)$' \| \
14690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14691 $as_echo X/"$0" |
14692 sed '/^.*\/\([^/][^/]*\)\/*$/{
14693 s//\1/
14696 /^X\/\(\/\/\)$/{
14697 s//\1/
14700 /^X\/\(\/\).*/{
14701 s//\1/
14704 s/.*/./; q'`
14706 # Avoid depending upon Character Ranges.
14707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14710 as_cr_digits='0123456789'
14711 as_cr_alnum=$as_cr_Letters$as_cr_digits
14713 ECHO_C= ECHO_N= ECHO_T=
14714 case `echo -n x` in #(((((
14715 -n*)
14716 case `echo 'xy\c'` in
14717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14718 xy) ECHO_C='\c';;
14719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14720 ECHO_T=' ';;
14721 esac;;
14723 ECHO_N='-n';;
14724 esac
14726 rm -f conf$$ conf$$.exe conf$$.file
14727 if test -d conf$$.dir; then
14728 rm -f conf$$.dir/conf$$.file
14729 else
14730 rm -f conf$$.dir
14731 mkdir conf$$.dir 2>/dev/null
14733 if (echo >conf$$.file) 2>/dev/null; then
14734 if ln -s conf$$.file conf$$ 2>/dev/null; then
14735 as_ln_s='ln -s'
14736 # ... but there are two gotchas:
14737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14739 # In both cases, we have to default to `cp -p'.
14740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14741 as_ln_s='cp -p'
14742 elif ln conf$$.file conf$$ 2>/dev/null; then
14743 as_ln_s=ln
14744 else
14745 as_ln_s='cp -p'
14747 else
14748 as_ln_s='cp -p'
14750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14751 rmdir conf$$.dir 2>/dev/null
14754 # as_fn_mkdir_p
14755 # -------------
14756 # Create "$as_dir" as a directory, including parents if necessary.
14757 as_fn_mkdir_p ()
14760 case $as_dir in #(
14761 -*) as_dir=./$as_dir;;
14762 esac
14763 test -d "$as_dir" || eval $as_mkdir_p || {
14764 as_dirs=
14765 while :; do
14766 case $as_dir in #(
14767 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14768 *) as_qdir=$as_dir;;
14769 esac
14770 as_dirs="'$as_qdir' $as_dirs"
14771 as_dir=`$as_dirname -- "$as_dir" ||
14772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773 X"$as_dir" : 'X\(//\)[^/]' \| \
14774 X"$as_dir" : 'X\(//\)$' \| \
14775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14776 $as_echo X"$as_dir" |
14777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14778 s//\1/
14781 /^X\(\/\/\)[^/].*/{
14782 s//\1/
14785 /^X\(\/\/\)$/{
14786 s//\1/
14789 /^X\(\/\).*/{
14790 s//\1/
14793 s/.*/./; q'`
14794 test -d "$as_dir" && break
14795 done
14796 test -z "$as_dirs" || eval "mkdir $as_dirs"
14797 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14800 } # as_fn_mkdir_p
14801 if mkdir -p . 2>/dev/null; then
14802 as_mkdir_p='mkdir -p "$as_dir"'
14803 else
14804 test -d ./-p && rmdir ./-p
14805 as_mkdir_p=false
14808 if test -x / >/dev/null 2>&1; then
14809 as_test_x='test -x'
14810 else
14811 if ls -dL / >/dev/null 2>&1; then
14812 as_ls_L_option=L
14813 else
14814 as_ls_L_option=
14816 as_test_x='
14817 eval sh -c '\''
14818 if test -d "$1"; then
14819 test -d "$1/.";
14820 else
14821 case $1 in #(
14822 -*)set "./$1";;
14823 esac;
14824 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14825 ???[sx]*):;;*)false;;esac;fi
14826 '\'' sh
14829 as_executable_p=$as_test_x
14831 # Sed expression to map a string onto a valid CPP name.
14832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14834 # Sed expression to map a string onto a valid variable name.
14835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14838 exec 6>&1
14839 ## ----------------------------------- ##
14840 ## Main body of $CONFIG_STATUS script. ##
14841 ## ----------------------------------- ##
14842 _ASEOF
14843 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14846 # Save the log message, to keep $0 and so on meaningful, and to
14847 # report actual input values of CONFIG_FILES etc. instead of their
14848 # values after options handling.
14849 ac_log="
14850 This file was extended by $as_me, which was
14851 generated by GNU Autoconf 2.64. Invocation command line was
14853 CONFIG_FILES = $CONFIG_FILES
14854 CONFIG_HEADERS = $CONFIG_HEADERS
14855 CONFIG_LINKS = $CONFIG_LINKS
14856 CONFIG_COMMANDS = $CONFIG_COMMANDS
14857 $ $0 $@
14859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14862 _ACEOF
14864 case $ac_config_files in *"
14865 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14866 esac
14870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14871 # Files that config.status was made for.
14872 config_files="$ac_config_files"
14874 _ACEOF
14876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14877 ac_cs_usage="\
14878 \`$as_me' instantiates files and other configuration actions
14879 from templates according to the current configuration. Unless the files
14880 and actions are specified as TAGs, all are instantiated by default.
14882 Usage: $0 [OPTION]... [TAG]...
14884 -h, --help print this help, then exit
14885 -V, --version print version number and configuration settings, then exit
14886 -q, --quiet, --silent
14887 do not print progress messages
14888 -d, --debug don't remove temporary files
14889 --recheck update $as_me by reconfiguring in the same conditions
14890 --file=FILE[:TEMPLATE]
14891 instantiate the configuration file FILE
14893 Configuration files:
14894 $config_files
14896 Report bugs to the package provider."
14898 _ACEOF
14899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14900 ac_cs_version="\\
14901 config.status
14902 configured by $0, generated by GNU Autoconf 2.64,
14903 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14905 Copyright (C) 2009 Free Software Foundation, Inc.
14906 This config.status script is free software; the Free Software Foundation
14907 gives unlimited permission to copy, distribute and modify it."
14909 ac_pwd='$ac_pwd'
14910 srcdir='$srcdir'
14911 INSTALL='$INSTALL'
14912 AWK='$AWK'
14913 test -n "\$AWK" || AWK=awk
14914 _ACEOF
14916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14917 # The default lists apply if the user does not specify any file.
14918 ac_need_defaults=:
14919 while test $# != 0
14921 case $1 in
14922 --*=*)
14923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14924 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14925 ac_shift=:
14928 ac_option=$1
14929 ac_optarg=$2
14930 ac_shift=shift
14932 esac
14934 case $ac_option in
14935 # Handling of the options.
14936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14937 ac_cs_recheck=: ;;
14938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14939 $as_echo "$ac_cs_version"; exit ;;
14940 --debug | --debu | --deb | --de | --d | -d )
14941 debug=: ;;
14942 --file | --fil | --fi | --f )
14943 $ac_shift
14944 case $ac_optarg in
14945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14946 esac
14947 as_fn_append CONFIG_FILES " '$ac_optarg'"
14948 ac_need_defaults=false;;
14949 --he | --h | --help | --hel | -h )
14950 $as_echo "$ac_cs_usage"; exit ;;
14951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14953 ac_cs_silent=: ;;
14955 # This is an error.
14956 -*) as_fn_error "unrecognized option: \`$1'
14957 Try \`$0 --help' for more information." ;;
14959 *) as_fn_append ac_config_targets " $1"
14960 ac_need_defaults=false ;;
14962 esac
14963 shift
14964 done
14966 ac_configure_extra_args=
14968 if $ac_cs_silent; then
14969 exec 6>/dev/null
14970 ac_configure_extra_args="$ac_configure_extra_args --silent"
14973 _ACEOF
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 if \$ac_cs_recheck; then
14976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14977 shift
14978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14979 CONFIG_SHELL='$SHELL'
14980 export CONFIG_SHELL
14981 exec "\$@"
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986 exec 5>>config.log
14988 echo
14989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14990 ## Running $as_me. ##
14991 _ASBOX
14992 $as_echo "$ac_log"
14993 } >&5
14995 _ACEOF
14996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14998 # INIT-COMMANDS
15000 extrasub_build="$extrasub_build"
15001 extrasub_host="$extrasub_host"
15002 extrasub_target="$extrasub_target"
15004 _ACEOF
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15008 # Handling of arguments.
15009 for ac_config_target in $ac_config_targets
15011 case $ac_config_target in
15012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15014 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15015 esac
15016 done
15019 # If the user did not use the arguments to specify the items to instantiate,
15020 # then the envvar interface is used. Set only those that are not.
15021 # We use the long form for the default assignment because of an extremely
15022 # bizarre bug on SunOS 4.1.3.
15023 if $ac_need_defaults; then
15024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15027 # Have a temporary directory for convenience. Make it in the build tree
15028 # simply because there is no reason against having it here, and in addition,
15029 # creating and moving files from /tmp can sometimes cause problems.
15030 # Hook for its removal unless debugging.
15031 # Note that there is a small window in which the directory will not be cleaned:
15032 # after its creation but before its name has been assigned to `$tmp'.
15033 $debug ||
15035 tmp=
15036 trap 'exit_status=$?
15037 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15039 trap 'as_fn_exit 1' 1 2 13 15
15041 # Create a (secure) tmp directory for tmp files.
15044 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15045 test -n "$tmp" && test -d "$tmp"
15046 } ||
15048 tmp=./conf$$-$RANDOM
15049 (umask 077 && mkdir "$tmp")
15050 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15052 # Set up the scripts for CONFIG_FILES section.
15053 # No need to generate them if there are no CONFIG_FILES.
15054 # This happens for instance with `./config.status config.h'.
15055 if test -n "$CONFIG_FILES"; then
15057 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15058 ac_cs_awk_getline=:
15059 ac_cs_awk_pipe_init=
15060 ac_cs_awk_read_file='
15061 while ((getline aline < (F[key])) > 0)
15062 print(aline)
15063 close(F[key])'
15064 ac_cs_awk_pipe_fini=
15065 else
15066 ac_cs_awk_getline=false
15067 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15068 ac_cs_awk_read_file='
15069 print "|#_!!_#|"
15070 print "cat " F[key] " &&"
15071 '$ac_cs_awk_pipe_init
15072 # The final `:' finishes the AND list.
15073 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15075 ac_cr=`echo X | tr X '\015'`
15076 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15077 # But we know of no other shell where ac_cr would be empty at this
15078 # point, so we can use a bashism as a fallback.
15079 if test "x$ac_cr" = x; then
15080 eval ac_cr=\$\'\\r\'
15082 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15083 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15084 ac_cs_awk_cr='\r'
15085 else
15086 ac_cs_awk_cr=$ac_cr
15089 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15090 _ACEOF
15092 # Create commands to substitute file output variables.
15094 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15095 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15096 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15097 echo "_ACAWK" &&
15098 echo "_ACEOF"
15099 } >conf$$files.sh &&
15100 . ./conf$$files.sh ||
15101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15102 rm -f conf$$files.sh
15105 echo "cat >conf$$subs.awk <<_ACEOF" &&
15106 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15107 echo "_ACEOF"
15108 } >conf$$subs.sh ||
15109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15111 ac_delim='%!_!# '
15112 for ac_last_try in false false false false false :; do
15113 . ./conf$$subs.sh ||
15114 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15117 if test $ac_delim_n = $ac_delim_num; then
15118 break
15119 elif $ac_last_try; then
15120 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15121 else
15122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15124 done
15125 rm -f conf$$subs.sh
15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15129 _ACEOF
15130 sed -n '
15132 s/^/S["/; s/!.*/"]=/
15135 s/^[^!]*!//
15136 :repl
15137 t repl
15138 s/'"$ac_delim"'$//
15139 t delim
15142 s/\(.\{148\}\).*/\1/
15143 t more1
15144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15147 b repl
15148 :more1
15149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15152 s/.\{148\}//
15153 t nl
15154 :delim
15156 s/\(.\{148\}\).*/\1/
15157 t more2
15158 s/["\\]/\\&/g; s/^/"/; s/$/"/
15161 :more2
15162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15165 s/.\{148\}//
15166 t delim
15167 ' <conf$$subs.awk | sed '
15168 /^[^""]/{
15170 s/\n//
15172 ' >>$CONFIG_STATUS || ac_write_fail=1
15173 rm -f conf$$subs.awk
15174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175 _ACAWK
15176 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15177 for (key in S) S_is_set[key] = 1
15178 FS = "\a"
15179 \$ac_cs_awk_pipe_init
15182 line = $ 0
15183 nfields = split(line, field, "@")
15184 substed = 0
15185 len = length(field[1])
15186 for (i = 2; i < nfields; i++) {
15187 key = field[i]
15188 keylen = length(key)
15189 if (S_is_set[key]) {
15190 value = S[key]
15191 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15192 len += length(value) + length(field[++i])
15193 substed = 1
15194 } else
15195 len += 1 + keylen
15197 if (nfields == 3 && !substed) {
15198 key = field[2]
15199 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15200 \$ac_cs_awk_read_file
15201 next
15204 print line
15206 \$ac_cs_awk_pipe_fini
15207 _ACAWK
15208 _ACEOF
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15211 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15212 else
15214 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15215 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15216 _ACEOF
15218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15220 # trailing colons and then remove the whole line if VPATH becomes empty
15221 # (actually we leave an empty line to preserve line numbers).
15222 if test "x$srcdir" = x.; then
15223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15224 s/:*\$(srcdir):*/:/
15225 s/:*\${srcdir}:*/:/
15226 s/:*@srcdir@:*/:/
15227 s/^\([^=]*=[ ]*\):*/\1/
15228 s/:*$//
15229 s/^[^=]*=[ ]*$//
15233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15234 fi # test -n "$CONFIG_FILES"
15237 eval set X " :F $CONFIG_FILES "
15238 shift
15239 for ac_tag
15241 case $ac_tag in
15242 :[FHLC]) ac_mode=$ac_tag; continue;;
15243 esac
15244 case $ac_mode$ac_tag in
15245 :[FHL]*:*);;
15246 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15247 :[FH]-) ac_tag=-:-;;
15248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15249 esac
15250 ac_save_IFS=$IFS
15251 IFS=:
15252 set x $ac_tag
15253 IFS=$ac_save_IFS
15254 shift
15255 ac_file=$1
15256 shift
15258 case $ac_mode in
15259 :L) ac_source=$1;;
15260 :[FH])
15261 ac_file_inputs=
15262 for ac_f
15264 case $ac_f in
15265 -) ac_f="$tmp/stdin";;
15266 *) # Look for the file first in the build tree, then in the source tree
15267 # (if the path is not absolute). The absolute path cannot be DOS-style,
15268 # because $ac_f cannot contain `:'.
15269 test -f "$ac_f" ||
15270 case $ac_f in
15271 [\\/$]*) false;;
15272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15273 esac ||
15274 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15275 esac
15276 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15277 as_fn_append ac_file_inputs " '$ac_f'"
15278 done
15280 # Let's still pretend it is `configure' which instantiates (i.e., don't
15281 # use $as_me), people would be surprised to read:
15282 # /* config.h. Generated by config.status. */
15283 configure_input='Generated from '`
15284 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15285 `' by configure.'
15286 if test x"$ac_file" != x-; then
15287 configure_input="$ac_file. $configure_input"
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15289 $as_echo "$as_me: creating $ac_file" >&6;}
15291 # Neutralize special characters interpreted by sed in replacement strings.
15292 case $configure_input in #(
15293 *\&* | *\|* | *\\* )
15294 ac_sed_conf_input=`$as_echo "$configure_input" |
15295 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15296 *) ac_sed_conf_input=$configure_input;;
15297 esac
15299 case $ac_tag in
15300 *:-:* | *:-) cat >"$tmp/stdin" \
15301 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15302 esac
15304 esac
15306 ac_dir=`$as_dirname -- "$ac_file" ||
15307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15308 X"$ac_file" : 'X\(//\)[^/]' \| \
15309 X"$ac_file" : 'X\(//\)$' \| \
15310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15311 $as_echo X"$ac_file" |
15312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15313 s//\1/
15316 /^X\(\/\/\)[^/].*/{
15317 s//\1/
15320 /^X\(\/\/\)$/{
15321 s//\1/
15324 /^X\(\/\).*/{
15325 s//\1/
15328 s/.*/./; q'`
15329 as_dir="$ac_dir"; as_fn_mkdir_p
15330 ac_builddir=.
15332 case "$ac_dir" in
15333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15336 # A ".." for each directory in $ac_dir_suffix.
15337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15338 case $ac_top_builddir_sub in
15339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15341 esac ;;
15342 esac
15343 ac_abs_top_builddir=$ac_pwd
15344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15345 # for backward compatibility:
15346 ac_top_builddir=$ac_top_build_prefix
15348 case $srcdir in
15349 .) # We are building in place.
15350 ac_srcdir=.
15351 ac_top_srcdir=$ac_top_builddir_sub
15352 ac_abs_top_srcdir=$ac_pwd ;;
15353 [\\/]* | ?:[\\/]* ) # Absolute name.
15354 ac_srcdir=$srcdir$ac_dir_suffix;
15355 ac_top_srcdir=$srcdir
15356 ac_abs_top_srcdir=$srcdir ;;
15357 *) # Relative name.
15358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15359 ac_top_srcdir=$ac_top_build_prefix$srcdir
15360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15361 esac
15362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15365 case $ac_mode in
15368 # CONFIG_FILE
15371 case $INSTALL in
15372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15373 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15374 esac
15375 _ACEOF
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 # If the template does not know about datarootdir, expand it.
15379 # FIXME: This hack should be removed a few years after 2.60.
15380 ac_datarootdir_hack=; ac_datarootdir_seen=
15381 ac_sed_dataroot='
15382 /datarootdir/ {
15386 /@datadir@/p
15387 /@docdir@/p
15388 /@infodir@/p
15389 /@localedir@/p
15390 /@mandir@/p'
15391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15392 *datarootdir*) ac_datarootdir_seen=yes;;
15393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15396 _ACEOF
15397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15398 ac_datarootdir_hack='
15399 s&@datadir@&$datadir&g
15400 s&@docdir@&$docdir&g
15401 s&@infodir@&$infodir&g
15402 s&@localedir@&$localedir&g
15403 s&@mandir@&$mandir&g
15404 s&\\\${datarootdir}&$datarootdir&g' ;;
15405 esac
15406 _ACEOF
15408 # Neutralize VPATH when `$srcdir' = `.'.
15409 # Shell code in configure.ac might set extrasub.
15410 # FIXME: do we really want to maintain this feature?
15411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15412 ac_sed_extra="$ac_vpsub
15413 $extrasub
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15418 s|@configure_input@|$ac_sed_conf_input|;t t
15419 s&@top_builddir@&$ac_top_builddir_sub&;t t
15420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15421 s&@srcdir@&$ac_srcdir&;t t
15422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15423 s&@top_srcdir@&$ac_top_srcdir&;t t
15424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15425 s&@builddir@&$ac_builddir&;t t
15426 s&@abs_builddir@&$ac_abs_builddir&;t t
15427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15428 s&@INSTALL@&$ac_INSTALL&;t t
15429 $ac_datarootdir_hack
15431 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15432 if $ac_cs_awk_getline; then
15433 $AWK -f "$tmp/subs.awk"
15434 else
15435 $AWK -f "$tmp/subs.awk" | $SHELL
15436 fi >$tmp/out \
15437 || as_fn_error "could not create $ac_file" "$LINENO" 5
15439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15440 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15441 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined. Please make sure it is defined." >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined. Please make sure it is defined." >&2;}
15447 rm -f "$tmp/stdin"
15448 case $ac_file in
15449 -) cat "$tmp/out" && rm -f "$tmp/out";;
15450 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15451 esac \
15452 || as_fn_error "could not create $ac_file" "$LINENO" 5
15457 esac
15460 case $ac_file$ac_mode in
15461 "Makefile":F) sed "$extrasub_build" Makefile |
15462 sed "$extrasub_host" |
15463 sed "$extrasub_target" > mf$$
15464 mv -f mf$$ Makefile ;;
15466 esac
15467 done # for ac_tag
15470 as_fn_exit 0
15471 _ACEOF
15472 ac_clean_files=$ac_clean_files_save
15474 test $ac_write_fail = 0 ||
15475 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15478 # configure is writing to config.log, and then calls config.status.
15479 # config.status does its own redirection, appending to config.log.
15480 # Unfortunately, on DOS this fails, as config.log is still kept open
15481 # by configure, so config.status won't be able to write to it; its
15482 # output is simply discarded. So we exec the FD to /dev/null,
15483 # effectively closing config.log, so it can be properly (re)opened and
15484 # appended to by config.status. When coming back to configure, we
15485 # need to make the FD available again.
15486 if test "$no_create" != yes; then
15487 ac_cs_success=:
15488 ac_config_status_args=
15489 test "$silent" = yes &&
15490 ac_config_status_args="$ac_config_status_args --quiet"
15491 exec 5>/dev/null
15492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15493 exec 5>>config.log
15494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15495 # would make configure fail if this is the last instruction.
15496 $ac_cs_success || as_fn_exit $?
15498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}