2009-08-30 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / configure
blob0d149717b66b88b7da9bf4730ef840bde9906275
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 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174 else
175 as_have_required=no
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179 else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 as_found=false
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
199 done;;
200 esac
201 as_found=false
202 done
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206 fi; }
207 IFS=$as_save_IFS
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
227 else
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229 $0: including any error possibly output before this
230 $0: message. Then install a modern shell, or manually run
231 $0: the script under such a shell if you do have one."
233 exit 1
237 SHELL=${CONFIG_SHELL-/bin/sh}
238 export SHELL
239 # Unset more variables known to interfere with behavior of common tools.
240 CLICOLOR_FORCE= GREP_OPTIONS=
241 unset CLICOLOR_FORCE GREP_OPTIONS
243 ## --------------------- ##
244 ## M4sh Shell Functions. ##
245 ## --------------------- ##
246 # as_fn_unset VAR
247 # ---------------
248 # Portably unset VAR.
249 as_fn_unset ()
251 { eval $1=; unset $1;}
253 as_unset=as_fn_unset
255 # as_fn_set_status STATUS
256 # -----------------------
257 # Set $? to STATUS, without forking.
258 as_fn_set_status ()
260 return $1
261 } # as_fn_set_status
263 # as_fn_exit STATUS
264 # -----------------
265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266 as_fn_exit ()
268 set +e
269 as_fn_set_status $1
270 exit $1
271 } # as_fn_exit
273 # as_fn_mkdir_p
274 # -------------
275 # Create "$as_dir" as a directory, including parents if necessary.
276 as_fn_mkdir_p ()
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295 $as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
304 /^X\(\/\/\)$/{
305 s//\1/
308 /^X\(\/\).*/{
309 s//\1/
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319 } # as_fn_mkdir_p
320 # as_fn_append VAR VALUE
321 # ----------------------
322 # Append the text in VALUE to the end of the definition contained in VAR. Take
323 # advantage of any shell optimizations that allow amortized linear growth over
324 # repeated appends, instead of the typical quadratic growth present in naive
325 # implementations.
326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
329 eval $1+=\$2
331 else
332 as_fn_append ()
334 eval $1=\$$1\$2
336 fi # as_fn_append
338 # as_fn_arith ARG...
339 # ------------------
340 # Perform arithmetic evaluation on the ARGs, and store the result in the
341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
342 # must be portable across $(()) and expr.
343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
346 as_val=$(( $* ))
348 else
349 as_fn_arith ()
351 as_val=`expr "$@" || test $? -eq 1`
353 fi # as_fn_arith
356 # as_fn_error ERROR [LINENO LOG_FD]
357 # ---------------------------------
358 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360 # script with status $?, using 1 if that was 0.
361 as_fn_error ()
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370 } # as_fn_error
372 if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
374 as_expr=expr
375 else
376 as_expr=false
379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
380 as_basename=basename
381 else
382 as_basename=false
385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387 else
388 as_dirname=false
391 as_me=`$as_basename -- "$0" ||
392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395 $as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
400 /^X\/\(\/\/\)$/{
401 s//\1/
404 /^X\/\(\/\).*/{
405 s//\1/
408 s/.*/./; q'`
410 # Avoid depending upon Character Ranges.
411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414 as_cr_digits='0123456789'
415 as_cr_alnum=$as_cr_Letters$as_cr_digits
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
425 /[$]LINENO/=
426 ' <$as_myself |
427 sed '
428 s/[$]LINENO.*/&-/
429 t lineno
431 :lineno
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
435 t loop
436 s/-\n.*//
437 ' >$as_me.lineno &&
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
445 # Exit status is that of the last command.
446 exit
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
451 -n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
459 ECHO_N='-n';;
460 esac
462 rm -f conf$$ conf$$.exe conf$$.file
463 if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
465 else
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
469 if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
471 as_ln_s='ln -s'
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
483 else
484 as_ln_s='cp -p'
486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487 rmdir conf$$.dir 2>/dev/null
489 if mkdir -p . 2>/dev/null; then
490 as_mkdir_p='mkdir -p "$as_dir"'
491 else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
496 if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498 else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
517 as_executable_p=$as_test_x
519 # Sed expression to map a string onto a valid CPP name.
520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522 # Sed expression to map a string onto a valid variable name.
523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526 exec 7<&0 </dev/null 6>&1
528 # Name of the host.
529 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530 # so uname gets run too.
531 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
534 # Initializations.
536 ac_default_prefix=/usr/local
537 ac_clean_files=
538 ac_config_libobj_dir=.
539 LIBOBJS=
540 cross_compiling=no
541 subdirs=
542 MFLAGS=
543 MAKEFLAGS=
545 # Identity of this package.
546 PACKAGE_NAME=
547 PACKAGE_TARNAME=
548 PACKAGE_VERSION=
549 PACKAGE_STRING=
550 PACKAGE_BUGREPORT=
551 PACKAGE_URL=
553 ac_unique_file="move-if-change"
554 enable_option_checking=no
555 ac_subst_vars='LTLIBOBJS
556 LIBOBJS
557 compare_exclusions
558 stage2_werror_flag
559 stage1_checking
560 stage1_cflags
561 MAINT
562 MAINTAINER_MODE_FALSE
563 MAINTAINER_MODE_TRUE
564 COMPILER_NM_FOR_TARGET
565 COMPILER_LD_FOR_TARGET
566 COMPILER_AS_FOR_TARGET
567 FLAGS_FOR_TARGET
568 RAW_CXX_FOR_TARGET
569 WINDMC_FOR_TARGET
570 WINDRES_FOR_TARGET
571 STRIP_FOR_TARGET
572 RANLIB_FOR_TARGET
573 OBJDUMP_FOR_TARGET
574 NM_FOR_TARGET
575 LIPO_FOR_TARGET
576 LD_FOR_TARGET
577 DLLTOOL_FOR_TARGET
578 AS_FOR_TARGET
579 AR_FOR_TARGET
580 GFORTRAN_FOR_TARGET
581 GCJ_FOR_TARGET
582 GCC_FOR_TARGET
583 CXX_FOR_TARGET
584 CC_FOR_TARGET
585 OBJDUMP
586 OBJCOPY
587 WINDMC
588 WINDRES
589 STRIP
590 RANLIB
592 LIPO
594 DLLTOOL
597 RUNTEST
598 EXPECT
599 MAKEINFO
600 FLEX
603 BISON
604 YACC
605 config_shell
606 WINDRES_FOR_BUILD
607 WINDMC_FOR_BUILD
608 RANLIB_FOR_BUILD
609 NM_FOR_BUILD
610 LD_FOR_BUILD
611 LDFLAGS_FOR_BUILD
612 GFORTRAN_FOR_BUILD
613 GCJ_FOR_BUILD
614 DLLTOOL_FOR_BUILD
615 CXX_FOR_BUILD
616 CXXFLAGS_FOR_BUILD
617 CFLAGS_FOR_BUILD
618 CC_FOR_BUILD
619 AS_FOR_BUILD
620 AR_FOR_BUILD
621 target_configargs
622 configdirs
623 host_configargs
624 build_configdirs
625 build_configargs
626 INSTALL_GDB_TK
627 GDB_TK
628 CONFIGURE_GDB_TK
629 build_tooldir
630 tooldir
631 GCC_SHLIB_SUBDIR
632 RPATH_ENVVAR
633 CXXFLAGS_FOR_TARGET
634 CFLAGS_FOR_TARGET
635 DEBUG_PREFIX_CFLAGS_FOR_TARGET
636 SYSROOT_CFLAGS_FOR_TARGET
637 stage1_languages
638 clooginc
639 clooglibs
640 pplinc
641 ppllibs
642 poststage1_libs
643 poststage1_ldflags
644 stage1_libs
645 stage1_ldflags
646 extra_mpc_mpfr_configure_flags
647 extra_mpc_gmp_configure_flags
648 extra_mpfr_configure_flags
649 gmpinc
650 gmplibs
651 do_compare
652 GNATMAKE
653 GNATBIND
654 ac_ct_CXX
655 CXXFLAGS
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
664 target_subdir
665 host_subdir
666 build_subdir
667 build_libsubdir
668 LN_S
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 target_noncanonical
682 host_noncanonical
683 build_noncanonical
684 build_os
685 build_vendor
686 build_cpu
687 build
688 TOPLEVEL_CONFIGURE_ARGUMENTS
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files='serialization_dependencies
728 host_makefile_frag
729 target_makefile_frag
730 alphaieee_frag
731 ospace_frag'
732 ac_user_opts='
733 enable_option_checking
734 with_build_libsubdir
735 enable_gold
736 enable_libada
737 enable_libssp
738 enable_build_with_cxx
739 with_mpc
740 with_mpc_include
741 with_mpc_lib
742 with_mpfr_dir
743 with_mpfr
744 with_mpfr_include
745 with_mpfr_lib
746 with_gmp_dir
747 with_gmp
748 with_gmp_include
749 with_gmp_lib
750 with_host_libstdcxx
751 with_stage1_ldflags
752 with_stage1_libs
753 with_boot_ldflags
754 with_boot_libs
755 with_ppl
756 with_ppl_include
757 with_ppl_lib
758 enable_ppl_version_check
759 with_cloog
760 with_cloog_include
761 with_cloog_lib
762 enable_cloog_version_check
763 enable_stage1_languages
764 enable_objc_gc
765 with_build_sysroot
766 with_debug_prefix_map
767 enable_bootstrap
768 enable_serial_configure
769 with_build_time_tools
770 enable_maintainer_mode
771 enable_stage1_checking
772 enable_werror
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
783 CXXFLAGS
787 DLLTOOL
789 LIPO
791 RANLIB
792 STRIP
793 WINDRES
794 WINDMC
795 OBJCOPY
796 OBJDUMP
797 CC_FOR_TARGET
798 CXX_FOR_TARGET
799 GCC_FOR_TARGET
800 GCJ_FOR_TARGET
801 GFORTRAN_FOR_TARGET
802 AR_FOR_TARGET
803 AS_FOR_TARGET
804 DLLTOOL_FOR_TARGET
805 LD_FOR_TARGET
806 LIPO_FOR_TARGET
807 NM_FOR_TARGET
808 OBJDUMP_FOR_TARGET
809 RANLIB_FOR_TARGET
810 STRIP_FOR_TARGET
811 WINDRES_FOR_TARGET
812 WINDMC_FOR_TARGET'
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
863 ac_prev=
864 ac_dashdash=
865 for ac_option
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
883 ac_dashdash=yes ;;
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
902 --config-cache | -C)
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information."
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 esac
1220 done
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1306 /^X\(\/\/\)$/{
1307 s//\1/
1310 /^X\(\/\).*/{
1311 s//\1/
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1319 else
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures this package to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1411 cat <<\_ACEOF
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422 _ACEOF
1425 if test -n "$ac_init_help"; then
1427 cat <<\_ACEOF
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-gold use gold instead of ld
1434 --enable-libada build libada directory
1435 --enable-libssp build libssp directory
1436 --enable-build-with-cxx build with C++ compiler instead of C compiler
1437 --disable-ppl-version-check disable check for PPL version
1438 --disable-cloog-version-check disable check for CLooG version
1439 --enable-stage1-languages[=all] choose additional languages to build during
1440 stage1. Mostly useful for compiler development.
1441 --enable-objc-gc enable use of Boehm's garbage collector with the
1442 GNU Objective-C runtime
1443 --enable-bootstrap enable bootstrapping [yes if native build]
1444 --enable-serial-[{host,target,build}-]configure
1445 force sequential configuration of
1446 sub-packages for the host, target or build
1447 machine, or all sub-packages
1448 --enable-maintainer-mode enable make rules and dependencies not useful
1449 (and sometimes confusing) to the casual installer
1450 --enable-stage1-checking[=all] choose additional checking for stage1
1451 of the compiler
1452 --enable-werror enable -Werror in bootstrap stage2 and later
1454 Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-build-libsubdir=DIR Directory where to find libraries for build system
1458 --with-mpc=PATH specify prefix directory for installed MPC package.
1459 Equivalent to --with-mpc-include=PATH/include
1460 plus --with-mpc-lib=PATH/lib
1461 --with-mpc-include=PATH
1462 specify directory for installed MPC include files
1463 --with-mpc-lib=PATH specify directory for the installed MPC library
1464 --with-mpfr-dir=PATH this option has been REMOVED
1465 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1466 Equivalent to --with-mpfr-include=PATH/include
1467 plus --with-mpfr-lib=PATH/lib
1468 --with-mpfr-include=PATH
1469 specify directory for installed MPFR include files
1470 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1471 --with-gmp-dir=PATH this option has been REMOVED
1472 --with-gmp=PATH specify prefix directory for the installed GMP package.
1473 Equivalent to --with-gmp-include=PATH/include
1474 plus --with-gmp-lib=PATH/lib
1475 --with-gmp-include=PATH specify directory for installed GMP include files
1476 --with-gmp-lib=PATH specify directory for the installed GMP library
1477 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1478 when linking with PPL
1479 --with-stage1-ldflags=FLAGS Linker flags for stage1
1480 -with-stage1-libs=LIBS Libraries for stage1
1481 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1482 --with-boot-libs=LIBS Libraries for stage2 and later
1483 --with-ppl=PATH Specify prefix directory for the installed PPL package
1484 Equivalent to --with-ppl-include=PATH/include
1485 plus --with-ppl-lib=PATH/lib
1486 --with-ppl-include=PATH Specify directory for installed PPL include files
1487 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1488 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1489 Equivalent to --with-cloog-include=PATH/include
1490 plus --with-cloog-lib=PATH/lib
1491 --with-cloog-include=PATH Specify directory for installed CLooG include files
1492 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1493 --with-build-sysroot=SYSROOT
1494 use sysroot as the system root during the build
1495 --with-debug-prefix-map='A=B C=D ...'
1496 map A to B, C to D ... in debug information
1497 --with-build-time-tools=PATH
1498 use given path to find target tools during the build
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 AR AR for the host
1511 AS AS for the host
1512 DLLTOOL DLLTOOL for the host
1513 LD LD for the host
1514 LIPO LIPO for the host
1515 NM NM for the host
1516 RANLIB RANLIB for the host
1517 STRIP STRIP for the host
1518 WINDRES WINDRES for the host
1519 WINDMC WINDMC for the host
1520 OBJCOPY OBJCOPY for the host
1521 OBJDUMP OBJDUMP for the host
1522 CC_FOR_TARGET
1523 CC for the target
1524 CXX_FOR_TARGET
1525 CXX for the target
1526 GCC_FOR_TARGET
1527 GCC for the target
1528 GCJ_FOR_TARGET
1529 GCJ for the target
1530 GFORTRAN_FOR_TARGET
1531 GFORTRAN for the target
1532 AR_FOR_TARGET
1533 AR for the target
1534 AS_FOR_TARGET
1535 AS for the target
1536 DLLTOOL_FOR_TARGET
1537 DLLTOOL for the target
1538 LD_FOR_TARGET
1539 LD for the target
1540 LIPO_FOR_TARGET
1541 LIPO for the target
1542 NM_FOR_TARGET
1543 NM for the target
1544 OBJDUMP_FOR_TARGET
1545 OBJDUMP for the target
1546 RANLIB_FOR_TARGET
1547 RANLIB for the target
1548 STRIP_FOR_TARGET
1549 STRIP for the target
1550 WINDRES_FOR_TARGET
1551 WINDRES for the target
1552 WINDMC_FOR_TARGET
1553 WINDMC for the target
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1558 Report bugs to the package provider.
1559 _ACEOF
1560 ac_status=$?
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
1569 ac_builddir=.
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1587 case $srcdir in
1588 .) # We are building in place.
1589 ac_srcdir=.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1611 else
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 fi || ac_status=$?
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1615 done
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620 cat <<\_ACEOF
1621 configure
1622 generated by GNU Autoconf 2.64
1624 Copyright (C) 2009 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628 exit
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_compile
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_cxx_try_compile
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 $as_test_x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1745 ac_retval=1
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 return $ac_retval
1755 } # ac_fn_c_try_link
1756 cat >config.log <<_ACEOF
1757 This file contains any messages produced by compilers while
1758 running configure, to aid debugging if configure makes a mistake.
1760 It was created by $as_me, which was
1761 generated by GNU Autoconf 2.64. Invocation command line was
1763 $ $0 $@
1765 _ACEOF
1766 exec 5>>config.log
1768 cat <<_ASUNAME
1769 ## --------- ##
1770 ## Platform. ##
1771 ## --------- ##
1773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1785 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1790 _ASUNAME
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 $as_echo "PATH: $as_dir"
1798 done
1799 IFS=$as_save_IFS
1801 } >&5
1803 cat >&5 <<_ACEOF
1806 ## ----------- ##
1807 ## Core tests. ##
1808 ## ----------- ##
1810 _ACEOF
1813 # Keep a trace of the command line.
1814 # Strip out --no-create and --no-recursion so they do not pile up.
1815 # Strip out --silent because we don't want to record it for future runs.
1816 # Also quote any args containing shell meta-characters.
1817 # Make two passes to allow for proper duplicate-argument suppression.
1818 ac_configure_args=
1819 ac_configure_args0=
1820 ac_configure_args1=
1821 ac_must_keep_next=false
1822 for ac_pass in 1 2
1824 for ac_arg
1826 case $ac_arg in
1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1829 | -silent | --silent | --silen | --sile | --sil)
1830 continue ;;
1831 *\'*)
1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 case $ac_pass in
1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1837 as_fn_append ac_configure_args1 " '$ac_arg'"
1838 if test $ac_must_keep_next = true; then
1839 ac_must_keep_next=false # Got value, back to normal.
1840 else
1841 case $ac_arg in
1842 *=* | --config-cache | -C | -disable-* | --disable-* \
1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1845 | -with-* | --with-* | -without-* | --without-* | --x)
1846 case "$ac_configure_args0 " in
1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1848 esac
1850 -* ) ac_must_keep_next=true ;;
1851 esac
1853 as_fn_append ac_configure_args " '$ac_arg'"
1855 esac
1856 done
1857 done
1858 { ac_configure_args0=; unset ac_configure_args0;}
1859 { ac_configure_args1=; unset ac_configure_args1;}
1861 # When interrupted or exit'd, cleanup temporary files, and complete
1862 # config.log. We remove comments because anyway the quotes in there
1863 # would cause problems or look ugly.
1864 # WARNING: Use '\'' to represent an apostrophe within the trap.
1865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1866 trap 'exit_status=$?
1867 # Save into config.log some information that might help in debugging.
1869 echo
1871 cat <<\_ASBOX
1872 ## ---------------- ##
1873 ## Cache variables. ##
1874 ## ---------------- ##
1875 _ASBOX
1876 echo
1877 # The following way of writing the cache mishandles newlines in values,
1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in #(
1882 *${as_nl}*)
1883 case $ac_var in #(
1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1886 esac
1887 case $ac_var in #(
1888 _ | IFS | as_nl) ;; #(
1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1890 *) { eval $ac_var=; unset $ac_var;} ;;
1891 esac ;;
1892 esac
1893 done
1894 (set) 2>&1 |
1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1896 *${as_nl}ac_space=\ *)
1897 sed -n \
1898 "s/'\''/'\''\\\\'\'''\''/g;
1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1900 ;; #(
1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1904 esac |
1905 sort
1907 echo
1909 cat <<\_ASBOX
1910 ## ----------------- ##
1911 ## Output variables. ##
1912 ## ----------------- ##
1913 _ASBOX
1914 echo
1915 for ac_var in $ac_subst_vars
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1925 if test -n "$ac_subst_files"; then
1926 cat <<\_ASBOX
1927 ## ------------------- ##
1928 ## File substitutions. ##
1929 ## ------------------- ##
1930 _ASBOX
1931 echo
1932 for ac_var in $ac_subst_files
1934 eval ac_val=\$$ac_var
1935 case $ac_val in
1936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 esac
1938 $as_echo "$ac_var='\''$ac_val'\''"
1939 done | sort
1940 echo
1943 if test -s confdefs.h; then
1944 cat <<\_ASBOX
1945 ## ----------- ##
1946 ## confdefs.h. ##
1947 ## ----------- ##
1948 _ASBOX
1949 echo
1950 cat confdefs.h
1951 echo
1953 test "$ac_signal" != 0 &&
1954 $as_echo "$as_me: caught signal $ac_signal"
1955 $as_echo "$as_me: exit $exit_status"
1956 } >&5
1957 rm -f core *.core core.conftest.* &&
1958 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1959 exit $exit_status
1961 for ac_signal in 1 2 13 15; do
1962 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1963 done
1964 ac_signal=0
1966 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1967 rm -f -r conftest* confdefs.h
1969 $as_echo "/* confdefs.h */" > confdefs.h
1971 # Predefined preprocessor variables.
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_NAME "$PACKAGE_NAME"
1975 _ACEOF
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979 _ACEOF
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1983 _ACEOF
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 _ACEOF
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991 _ACEOF
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_URL "$PACKAGE_URL"
1995 _ACEOF
1998 # Let the site file select an alternate cache file if it wants to.
1999 # Prefer an explicitly selected file to automatically selected ones.
2000 ac_site_file1=NONE
2001 ac_site_file2=NONE
2002 if test -n "$CONFIG_SITE"; then
2003 ac_site_file1=$CONFIG_SITE
2004 elif test "x$prefix" != xNONE; then
2005 ac_site_file1=$prefix/share/config.site
2006 ac_site_file2=$prefix/etc/config.site
2007 else
2008 ac_site_file1=$ac_default_prefix/share/config.site
2009 ac_site_file2=$ac_default_prefix/etc/config.site
2011 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2013 test "x$ac_site_file" = xNONE && continue
2014 if test -r "$ac_site_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2016 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2017 sed 's/^/| /' "$ac_site_file" >&5
2018 . "$ac_site_file"
2020 done
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special
2024 # files actually), so we avoid doing that.
2025 if test -f "$cache_file"; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 $as_echo "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2033 else
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 $as_echo "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2039 # Check that the precious variables saved in the cache have kept the same
2040 # value.
2041 ac_cache_corrupted=false
2042 for ac_var in $ac_precious_vars; do
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
2047 case $ac_old_set,$ac_new_set in
2048 set,)
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051 ac_cache_corrupted=: ;;
2052 ,set)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2056 ,);;
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2075 fi;;
2076 esac
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2079 case $ac_new_val in
2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2082 esac
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086 esac
2088 done
2089 if $ac_cache_corrupted; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2096 ## -------------------- ##
2097 ## Main body of script. ##
2098 ## -------------------- ##
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 progname=$0
2115 # if PWD already has a value, it is probably wrong.
2116 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2118 # Export original configure arguments for use by sub-configures.
2119 # Quote arguments with shell meta charatcers.
2120 TOPLEVEL_CONFIGURE_ARGUMENTS=
2121 set -- "$progname" "$@"
2122 for ac_arg
2124 case "$ac_arg" in
2125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2127 # if the argument is of the form -foo=baz, quote the baz part only
2128 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2129 *) ;;
2130 esac
2131 # Add the quoted argument to the list.
2132 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2133 done
2134 if test "$silent" = yes; then
2135 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2137 # Remove the initial space we just introduced and, as these will be
2138 # expanded by make, quote '$'.
2139 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2142 # Find the build, host, and target systems.
2143 ac_aux_dir=
2144 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2145 for ac_t in install-sh install.sh shtool; do
2146 if test -f "$ac_dir/$ac_t"; then
2147 ac_aux_dir=$ac_dir
2148 ac_install_sh="$ac_aux_dir/$ac_t -c"
2149 break 2
2151 done
2152 done
2153 if test -z "$ac_aux_dir"; then
2154 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2157 # These three variables are undocumented and unsupported,
2158 # and are intended to be withdrawn in a future Autoconf release.
2159 # They can cause serious problems if a builder's source tree is in a directory
2160 # whose full name contains unusual characters.
2161 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2166 # Make sure we can run config.sub.
2167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2168 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2171 $as_echo_n "checking build system type... " >&6; }
2172 if test "${ac_cv_build+set}" = set; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 ac_build_alias=$build_alias
2176 test "x$ac_build_alias" = x &&
2177 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2178 test "x$ac_build_alias" = x &&
2179 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2185 $as_echo "$ac_cv_build" >&6; }
2186 case $ac_cv_build in
2187 *-*-*) ;;
2188 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2189 esac
2190 build=$ac_cv_build
2191 ac_save_IFS=$IFS; IFS='-'
2192 set x $ac_cv_build
2193 shift
2194 build_cpu=$1
2195 build_vendor=$2
2196 shift; shift
2197 # Remember, the first character of IFS is used to create $*,
2198 # except with old shells:
2199 build_os=$*
2200 IFS=$ac_save_IFS
2201 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2204 case ${build_alias} in
2205 "") build_noncanonical=${build} ;;
2206 *) build_noncanonical=${build_alias} ;;
2207 esac
2211 case ${host_alias} in
2212 "") host_noncanonical=${build_noncanonical} ;;
2213 *) host_noncanonical=${host_alias} ;;
2214 esac
2218 case ${target_alias} in
2219 "") target_noncanonical=${host_noncanonical} ;;
2220 *) target_noncanonical=${target_alias} ;;
2221 esac
2226 test "$host_noncanonical" = "$target_noncanonical" &&
2227 test "$program_prefix$program_suffix$program_transform_name" = \
2228 NONENONEs,x,x, &&
2229 program_transform_name=s,y,y,
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2232 $as_echo_n "checking host system type... " >&6; }
2233 if test "${ac_cv_host+set}" = set; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 if test "x$host_alias" = x; then
2237 ac_cv_host=$ac_cv_build
2238 else
2239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2240 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2245 $as_echo "$ac_cv_host" >&6; }
2246 case $ac_cv_host in
2247 *-*-*) ;;
2248 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2249 esac
2250 host=$ac_cv_host
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_host
2253 shift
2254 host_cpu=$1
2255 host_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 host_os=$*
2260 IFS=$ac_save_IFS
2261 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2265 $as_echo_n "checking target system type... " >&6; }
2266 if test "${ac_cv_target+set}" = set; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 if test "x$target_alias" = x; then
2270 ac_cv_target=$ac_cv_host
2271 else
2272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2273 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2278 $as_echo "$ac_cv_target" >&6; }
2279 case $ac_cv_target in
2280 *-*-*) ;;
2281 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2282 esac
2283 target=$ac_cv_target
2284 ac_save_IFS=$IFS; IFS='-'
2285 set x $ac_cv_target
2286 shift
2287 target_cpu=$1
2288 target_vendor=$2
2289 shift; shift
2290 # Remember, the first character of IFS is used to create $*,
2291 # except with old shells:
2292 target_os=$*
2293 IFS=$ac_save_IFS
2294 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2297 # The aliases save the names the user supplied, while $host etc.
2298 # will get canonicalized.
2299 test -n "$target_alias" &&
2300 test "$program_prefix$program_suffix$program_transform_name" = \
2301 NONENONEs,x,x, &&
2302 program_prefix=${target_alias}-
2304 test "$program_prefix" != NONE &&
2305 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2306 # Use a double $ so make ignores it.
2307 test "$program_suffix" != NONE &&
2308 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2309 # Double any \ or $.
2310 # By default was `s,x,x', remove it if useless.
2311 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2312 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2316 # Get 'install' or 'install-sh' and its variants.
2317 # Find a good install program. We prefer a C program (faster),
2318 # so one script is as good as another. But avoid the broken or
2319 # incompatible versions:
2320 # SysV /etc/install, /usr/sbin/install
2321 # SunOS /usr/etc/install
2322 # IRIX /sbin/install
2323 # AIX /bin/install
2324 # AmigaOS /C/install, which installs bootblocks on floppy discs
2325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2328 # OS/2's system install, which has a completely different semantic
2329 # ./install, which can be erroneously created by make from ./install.sh.
2330 # Reject install programs that cannot install multiple files.
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2332 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2333 if test -z "$INSTALL"; then
2334 if test "${ac_cv_path_install+set}" = set; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 # Account for people who put trailing slashes in PATH elements.
2343 case $as_dir/ in #((
2344 ./ | .// | /[cC]/* | \
2345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2346 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2347 /usr/ucb/* ) ;;
2349 # OSF1 and SCO ODT 3.0 have their own names for install.
2350 # Don't use installbsd from OSF since it installs stuff as root
2351 # by default.
2352 for ac_prog in ginstall scoinst install; do
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2355 if test $ac_prog = install &&
2356 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357 # AIX install. It has an incompatible calling convention.
2359 elif test $ac_prog = install &&
2360 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # program-specific install script used by HP pwplus--don't use.
2363 else
2364 rm -rf conftest.one conftest.two conftest.dir
2365 echo one > conftest.one
2366 echo two > conftest.two
2367 mkdir conftest.dir
2368 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2369 test -s conftest.one && test -s conftest.two &&
2370 test -s conftest.dir/conftest.one &&
2371 test -s conftest.dir/conftest.two
2372 then
2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 break 3
2378 done
2379 done
2381 esac
2383 done
2384 IFS=$as_save_IFS
2386 rm -rf conftest.one conftest.two conftest.dir
2389 if test "${ac_cv_path_install+set}" = set; then
2390 INSTALL=$ac_cv_path_install
2391 else
2392 # As a last resort, use the slow shell script. Don't cache a
2393 # value for INSTALL within a source directory, because that will
2394 # break other packages using the cache if that directory is
2395 # removed, or if the value is a relative name.
2396 INSTALL=$ac_install_sh
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2400 $as_echo "$INSTALL" >&6; }
2402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2403 # It thinks the first close brace ends the variable substitution.
2404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2411 $as_echo_n "checking whether ln works... " >&6; }
2412 if test "${acx_cv_prog_LN+set}" = set; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 rm -f conftestdata_t
2416 echo >conftestdata_f
2417 if ln conftestdata_f conftestdata_t 2>/dev/null
2418 then
2419 acx_cv_prog_LN=ln
2420 else
2421 acx_cv_prog_LN=no
2423 rm -f conftestdata_f conftestdata_t
2426 if test $acx_cv_prog_LN = no; then
2427 LN="cp"
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2429 $as_echo "no, using $LN" >&6; }
2430 else
2431 LN="$acx_cv_prog_LN"
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2433 $as_echo "yes" >&6; }
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2437 $as_echo_n "checking whether ln -s works... " >&6; }
2438 LN_S=$as_ln_s
2439 if test "$LN_S" = "ln -s"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2444 $as_echo "no, using $LN_S" >&6; }
2448 ### we might need to use some other shell than /bin/sh for running subshells
2449 ### If we are on Windows, search for the shell. This will permit people
2450 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2451 ### without also having to set CONFIG_SHELL. This code will work when
2452 ### using bash, which sets OSTYPE.
2453 case "${OSTYPE}" in
2454 *win32*)
2455 if test x${CONFIG_SHELL} = x ; then
2456 if test ! -f /bin/sh ; then
2457 if test x${SHELL} != x && test -f ${SHELL} ; then
2458 CONFIG_SHELL=${SHELL}
2459 export CONFIG_SHELL
2460 else
2461 for prog in sh sh.exe bash bash.exe; do
2462 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2463 for dir in $PATH; do
2464 test -z "$dir" && dir=.
2465 if test -f $dir/$prog; then
2466 CONFIG_SHELL=$dir/$prog
2467 export CONFIG_SHELL
2468 break
2470 done
2471 IFS="$save_ifs"
2472 test -n "${CONFIG_SHELL}" && break
2473 done
2478 esac
2480 config_shell=${CONFIG_SHELL-/bin/sh}
2482 moveifchange=${srcdir}/move-if-change
2484 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2486 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2487 # a relative path.
2488 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2489 INSTALL="${srcpwd}/install-sh -c"
2492 # Set srcdir to "." if that's what it is.
2493 # This is important for multilib support.
2494 pwd=`${PWDCMD-pwd}`
2495 if test "${pwd}" = "${srcpwd}" ; then
2496 srcdir=.
2499 topsrcdir=$srcpwd
2501 extra_host_args=
2503 ### To add a new directory to the tree, first choose whether it is a target
2504 ### or a host dependent tool. Then put it into the appropriate list
2505 ### (library or tools, host or target), doing a dependency sort.
2507 # Subdirs will be configured in the order listed in build_configdirs,
2508 # configdirs, or target_configdirs; see the serialization section below.
2510 # Dependency sorting is only needed when *configuration* must be done in
2511 # a particular order. In all cases a dependency should be specified in
2512 # the Makefile, whether or not it's implicitly specified here.
2514 # Double entries in build_configdirs, configdirs, or target_configdirs may
2515 # cause circular dependencies and break everything horribly.
2517 # these library is used by various programs built for the build
2518 # environment
2520 build_libs="build-libiberty"
2522 # these tools are built for the build environment
2523 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2525 # these libraries are used by various programs built for the host environment
2527 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2529 # these tools are built for the host environment
2530 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2531 # know that we are building the simulator.
2532 # binutils, gas and ld appear in that order because it makes sense to run
2533 # "make check" in that particular order.
2534 # If --enable-gold is used, "gold" will replace "ld".
2535 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2537 # libgcj represents the runtime libraries only used by gcj.
2538 libgcj="target-libffi \
2539 target-zlib \
2540 target-qthreads \
2541 target-libjava"
2543 # these libraries are built for the target environment, and are built after
2544 # the host libraries and the host tools (which may be a cross compiler)
2546 target_libraries="target-libgcc \
2547 target-libiberty \
2548 target-libgloss \
2549 target-newlib \
2550 target-libgomp \
2551 target-libstdc++-v3 \
2552 target-libmudflap \
2553 target-libssp \
2554 target-libgfortran \
2555 target-boehm-gc \
2556 ${libgcj} \
2557 target-libobjc \
2558 target-libada"
2560 # these tools are built using the target libraries, and are intended to
2561 # run only in the target environment
2563 # note: any program that *uses* libraries that are in the "target_libraries"
2564 # list belongs in this list. those programs are also very likely
2565 # candidates for the "native_only" list which follows
2567 target_tools="target-examples target-groff target-gperf target-rda"
2569 ################################################################################
2571 ## All tools belong in one of the four categories, and are assigned above
2572 ## We assign ${configdirs} this way to remove all embedded newlines. This
2573 ## is important because configure will choke if they ever get through.
2574 ## ${configdirs} is directories we build using the host tools.
2575 ## ${target_configdirs} is directories we build using the target tools.
2576 configdirs=`echo ${host_libs} ${host_tools}`
2577 target_configdirs=`echo ${target_libraries} ${target_tools}`
2578 build_configdirs=`echo ${build_libs} ${build_tools}`
2582 ################################################################################
2584 srcname="gnu development package"
2586 # This gets set non-empty for some net releases of packages.
2587 appdirs=""
2589 # Define is_cross_compiler to save on calls to 'test'.
2590 is_cross_compiler=
2591 if test x"${host}" = x"${target}" ; then
2592 is_cross_compiler=no
2593 else
2594 is_cross_compiler=yes
2597 # Find the build and target subdir names.
2599 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2600 # have matching libraries, they should use host libraries: Makefile.tpl
2601 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2602 # However, they still use the build modules, because the corresponding
2603 # host modules (e.g. bison) are only built for the host when bootstrap
2604 # finishes. So:
2605 # - build_subdir is where we find build modules, and never changes.
2606 # - build_libsubdir is where we find build libraries, and can be overridden.
2608 # Prefix 'build-' so this never conflicts with target_subdir.
2609 build_subdir="build-${build_noncanonical}"
2611 # Check whether --with-build-libsubdir was given.
2612 if test "${with_build_libsubdir+set}" = set; then :
2613 withval=$with_build_libsubdir; build_libsubdir="$withval"
2614 else
2615 build_libsubdir="$build_subdir"
2618 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2619 if ( test $srcdir = . && test -d gcc ) \
2620 || test -d $srcdir/../host-${host_noncanonical}; then
2621 host_subdir="host-${host_noncanonical}"
2622 else
2623 host_subdir=.
2625 # No prefix.
2626 target_subdir=${target_noncanonical}
2629 # Skipdirs are removed silently.
2630 skipdirs=
2631 # Noconfigdirs are removed loudly.
2632 noconfigdirs=""
2634 use_gnu_ld=
2635 # Make sure we don't let GNU ld be added if we didn't want it.
2636 if test x$with_gnu_ld = xno ; then
2637 use_gnu_ld=no
2638 noconfigdirs="$noconfigdirs ld gold"
2641 use_gnu_as=
2642 # Make sure we don't let GNU as be added if we didn't want it.
2643 if test x$with_gnu_as = xno ; then
2644 use_gnu_as=no
2645 noconfigdirs="$noconfigdirs gas"
2648 # some tools are so dependent upon X11 that if we're not building with X,
2649 # it's not even worth trying to configure, much less build, that tool.
2651 case ${with_x} in
2652 yes | "") ;; # the default value for this tree is that X11 is available
2654 skipdirs="${skipdirs} tk itcl libgui"
2655 # We won't be able to build gdbtk without X.
2656 enable_gdbtk=no
2658 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2659 esac
2661 # Some tools are only suitable for building in a "native" situation.
2662 # Remove these if host!=target.
2663 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2665 # Similarly, some are only suitable for cross toolchains.
2666 # Remove these if host=target.
2667 cross_only="target-libgloss target-newlib target-opcodes"
2669 case $is_cross_compiler in
2670 no) skipdirs="${skipdirs} ${cross_only}" ;;
2671 yes) skipdirs="${skipdirs} ${native_only}" ;;
2672 esac
2674 # If both --with-headers and --with-libs are specified, default to
2675 # --without-newlib.
2676 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2677 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2678 if test x"${with_newlib}" = x ; then
2679 with_newlib=no
2683 # Recognize --with-newlib/--without-newlib.
2684 case ${with_newlib} in
2685 no) skipdirs="${skipdirs} target-newlib" ;;
2686 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2687 esac
2689 # Handle --enable-gold.
2691 # Check whether --enable-gold was given.
2692 if test "${enable_gold+set}" = set; then :
2693 enableval=$enable_gold; ENABLE_GOLD=$enableval
2694 else
2695 ENABLE_GOLD=no
2698 if test "${ENABLE_GOLD}" = "yes"; then
2699 # Check for ELF target.
2700 is_elf=no
2701 case "${target}" in
2702 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2703 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2704 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2705 case "${target}" in
2706 *-*-linux*aout* | *-*-linux*oldld*)
2709 is_elf=yes
2711 esac
2712 esac
2714 if test "$is_elf" = "yes"; then
2715 # Check for target supported by gold.
2716 case "${target}" in
2717 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2718 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2720 esac
2724 # Configure extra directories which are host specific
2726 case "${host}" in
2727 *-cygwin*)
2728 configdirs="$configdirs libtermcap" ;;
2729 esac
2731 # A target can indicate whether a language isn't supported for some reason.
2732 # Only spaces may be used in this macro; not newlines or tabs.
2733 unsupported_languages=
2735 # Remove more programs from consideration, based on the host or
2736 # target this usually means that a port of the program doesn't
2737 # exist yet.
2739 case "${host}" in
2740 hppa*64*-*-*)
2741 noconfigdirs="$noconfigdirs byacc"
2743 i[3456789]86-*-vsta)
2744 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2746 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2747 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2749 x86_64-*-mingw*)
2750 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2752 i[3456789]86-*-mingw32*)
2753 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2754 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2756 i[3456789]86-*-beos*)
2757 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2759 *-*-cygwin*)
2760 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2762 *-*-netbsd*)
2763 noconfigdirs="$noconfigdirs rcs"
2765 ppc*-*-pe)
2766 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2768 powerpc-*-beos*)
2769 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2771 esac
2774 # Check whether --enable-libada was given.
2775 if test "${enable_libada+set}" = set; then :
2776 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2777 else
2778 ENABLE_LIBADA=yes
2781 if test "${ENABLE_LIBADA}" != "yes" ; then
2782 noconfigdirs="$noconfigdirs gnattools"
2785 # Check whether --enable-libssp was given.
2786 if test "${enable_libssp+set}" = set; then :
2787 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2788 else
2789 ENABLE_LIBSSP=yes
2793 # Save it here so that, even in case of --enable-libgcj, if the Java
2794 # front-end isn't enabled, we still get libgcj disabled.
2795 libgcj_saved=$libgcj
2796 case $enable_libgcj in
2797 yes)
2798 # If we reset it here, it won't get added to noconfigdirs in the
2799 # target-specific build rules, so it will be forcibly enabled
2800 # (unless the Java language itself isn't enabled).
2801 libgcj=
2804 # Make sure we get it printed in the list of not supported target libs.
2805 noconfigdirs="$noconfigdirs ${libgcj}"
2807 esac
2810 # Disable libmudflap on some systems.
2811 if test x$enable_libmudflap = x ; then
2812 case "${target}" in
2813 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2814 # Enable libmudflap by default in GNU and friends.
2816 *-*-freebsd*)
2817 # Enable libmudflap by default in FreeBSD.
2820 # Disable it by default everywhere else.
2821 noconfigdirs="$noconfigdirs target-libmudflap"
2823 esac
2826 # Disable libgomp on non POSIX hosted systems.
2827 if test x$enable_libgomp = x ; then
2828 # Enable libgomp by default on hosted POSIX systems.
2829 case "${target}" in
2830 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2832 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2834 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2836 *-*-darwin* | *-*-aix*)
2839 noconfigdirs="$noconfigdirs target-libgomp"
2841 esac
2844 # Default libgloss CPU subdirectory.
2845 libgloss_dir="$target_cpu"
2847 case "${target}" in
2848 *-*-chorusos)
2849 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2851 powerpc-*-darwin*)
2852 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2853 noconfigdirs="$noconfigdirs sim target-rda"
2855 i[3456789]86-*-darwin*)
2856 noconfigdirs="$noconfigdirs ld gprof"
2857 noconfigdirs="$noconfigdirs sim target-rda"
2859 x86_64-*-darwin[912]*)
2860 noconfigdirs="$noconfigdirs ld gas gprof"
2861 noconfigdirs="$noconfigdirs sim target-rda"
2863 *-*-darwin*)
2864 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2865 noconfigdirs="$noconfigdirs sim target-rda"
2866 noconfigdirs="$noconfigdirs ${libgcj}"
2868 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2869 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2871 *-*-freebsd*)
2872 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2873 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2874 && test -f /usr/local/include/gmp.h; then
2875 with_gmp=/usr/local
2878 # Skip some stuff that's unsupported on some FreeBSD configurations.
2879 case "${target}" in
2880 i*86-*-*) ;;
2881 alpha*-*-*) ;;
2883 noconfigdirs="$noconfigdirs ${libgcj}"
2885 esac
2887 *-*-kaos*)
2888 # Remove unsupported stuff on all kaOS configurations.
2889 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2890 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2891 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2892 noconfigdirs="$noconfigdirs target-libgloss"
2894 *-*-netbsd*)
2895 # Skip some stuff on all NetBSD configurations.
2896 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2898 # Skip some stuff that's unsupported on some NetBSD configurations.
2899 case "${target}" in
2900 i*86-*-netbsdelf*) ;;
2901 arm*-*-netbsdelf*) ;;
2903 noconfigdirs="$noconfigdirs ${libgcj}"
2905 esac
2907 *-*-netware*)
2908 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2910 *-*-rtems*)
2911 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2913 # The tpf target doesn't support gdb yet.
2914 *-*-tpf*)
2915 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2917 *-*-uclinux*)
2918 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2920 *-*-vxworks*)
2921 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2923 alpha*-dec-osf*)
2924 # ld works, but does not support shared libraries.
2925 # newlib is not 64 bit ready. I'm not sure about fileutils.
2926 # gas doesn't generate exception information.
2927 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2929 alpha*-*-*vms*)
2930 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2932 alpha*-*-linux*)
2933 # newlib is not 64 bit ready
2934 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2936 alpha*-*-*)
2937 # newlib is not 64 bit ready
2938 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2940 am33_2.0-*-linux*)
2941 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2943 sh-*-linux*)
2944 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2946 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2947 noconfigdirs="$noconfigdirs ${libgcj}"
2948 noconfigdirs="$noconfigdirs target-examples"
2949 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2950 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2951 noconfigdirs="$noconfigdirs expect dejagnu"
2952 # the C++ libraries don't build on top of CE's C libraries
2953 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2954 noconfigdirs="$noconfigdirs target-newlib"
2955 case "${host}" in
2956 *-*-cygwin*) ;; # keep gdb and readline
2957 *) noconfigdirs="$noconfigdirs gdb readline"
2959 esac
2960 libgloss_dir=wince
2962 arc-*-*)
2963 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2965 arm-semi-aof )
2967 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2968 noconfigdirs="$noconfigdirs ${libgcj}"
2969 libgloss_dir=arm
2971 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2972 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2973 libgloss_dir=arm
2975 arm*-*-linux-gnueabi)
2976 noconfigdirs="$noconfigdirs target-qthreads"
2977 case ${with_newlib} in
2978 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2979 esac
2980 libgloss_dir=arm
2982 arm*-*-symbianelf*)
2983 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2984 libgloss_dir=arm
2986 arm-*-pe*)
2987 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2989 thumb-*-coff)
2990 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2992 thumb-*-elf)
2993 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2995 thumb-*-pe)
2996 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2998 arm-*-riscix*)
2999 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3001 avr-*-*)
3002 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3004 bfin-*-*)
3005 noconfigdirs="$noconfigdirs gdb"
3006 if test x${is_cross_compiler} != xno ; then
3007 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3010 c4x-*-* | tic4x-*-*)
3011 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3013 c54x*-*-* | tic54x-*-*)
3014 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3016 cr16-*-*)
3017 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3019 cris-*-* | crisv32-*-*)
3020 unsupported_languages="$unsupported_languages java"
3021 case "${target}" in
3022 *-*-aout)
3023 unsupported_languages="$unsupported_languages fortran"
3024 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3025 *-*-elf)
3026 noconfigdirs="$noconfigdirs target-boehm-gc";;
3027 *-*-linux*)
3028 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3030 unsupported_languages="$unsupported_languages fortran"
3031 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3032 esac
3033 libgloss_dir=cris
3035 crx-*-*)
3036 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3038 d10v-*-*)
3039 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3041 d30v-*-*)
3042 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3044 ep9312-*-elf | ep9312-*-coff)
3045 libgloss_dir=arm
3047 fr30-*-elf*)
3048 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3050 frv-*-*)
3051 noconfigdirs="$noconfigdirs ${libgcj}"
3053 moxie-*-*)
3054 noconfigdirs="$noconfigdirs ${libgcj}"
3055 noconfigdirs="$noconfigdirs gprof"
3057 h8300*-*-*)
3058 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3060 h8500-*-*)
3061 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3063 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3065 hppa*64*-*-linux* | parisc*64*-*-linux*)
3066 # In this case, it's because the hppa64-linux target is for
3067 # the kernel only at this point and has no libc, and thus no
3068 # headers, crt*.o, etc., all of which are needed by these.
3069 noconfigdirs="$noconfigdirs target-zlib"
3071 parisc*-*-linux* | hppa*-*-linux*)
3073 hppa*-*-*elf* | \
3074 hppa*-*-lites* | \
3075 hppa*-*-openbsd* | \
3076 hppa*64*-*-*)
3077 noconfigdirs="$noconfigdirs ${libgcj}"
3079 hppa*-hp-hpux11*)
3080 noconfigdirs="$noconfigdirs ld shellutils"
3082 hppa*-*-pro*)
3083 libgloss_dir=pa
3085 hppa*-*-*)
3086 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3087 # build on HP-UX 10.20.
3088 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3090 i960-*-*)
3091 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3093 ia64*-*-elf*)
3094 # No gdb support yet.
3095 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3097 ia64*-**-hpux*)
3098 # No gdb or ld support yet.
3099 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3101 ia64*-*-*vms*)
3102 # No gdb or ld support yet.
3103 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3105 i370-*-opened*)
3107 i[3456789]86-*-coff | i[3456789]86-*-elf)
3108 noconfigdirs="$noconfigdirs ${libgcj}"
3109 libgloss_dir=i386
3111 i[3456789]86-*-linux*)
3112 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3113 # not build java stuff by default.
3114 case "${target}" in
3115 *-*-*libc1*)
3116 noconfigdirs="$noconfigdirs ${libgcj}";;
3117 esac
3119 # This section makes it possible to build newlib natively on linux.
3120 # If we are using a cross compiler then don't configure newlib.
3121 if test x${is_cross_compiler} != xno ; then
3122 noconfigdirs="$noconfigdirs target-newlib"
3124 noconfigdirs="$noconfigdirs target-libgloss"
3125 # If we are not using a cross compiler, do configure newlib.
3126 # Note however, that newlib will only be configured in this situation
3127 # if the --with-newlib option has been given, because otherwise
3128 # 'target-newlib' will appear in skipdirs.
3130 i[3456789]86-*-mingw32*)
3131 target_configdirs="$target_configdirs target-winsup"
3132 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3134 x86_64-*-mingw*)
3135 target_configdirs="$target_configdirs target-winsup"
3136 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3138 *-*-cygwin*)
3139 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3140 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3141 # always build newlib if winsup directory is present.
3142 if test -d "$srcdir/winsup/cygwin"; then
3143 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3144 elif test -d "$srcdir/newlib"; then
3145 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3148 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3149 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3151 i[3456789]86-*-pe)
3152 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3154 i[3456789]86-*-sco3.2v5*)
3155 # The linker does not yet know about weak symbols in COFF,
3156 # and is not configured to handle mixed ELF and COFF.
3157 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3159 i[3456789]86-*-sco*)
3160 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3162 i[3456789]86-*-solaris2*)
3163 noconfigdirs="$noconfigdirs target-libgloss"
3165 i[3456789]86-*-sysv4*)
3166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3168 i[3456789]86-*-beos*)
3169 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3171 i[3456789]86-*-rdos*)
3172 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3174 m32r-*-*)
3175 noconfigdirs="$noconfigdirs ${libgcj}"
3177 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3178 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3179 libgloss_dir=m68hc11
3181 m68k-*-elf*)
3182 noconfigdirs="$noconfigdirs ${libgcj}"
3184 m68k-*-coff*)
3185 noconfigdirs="$noconfigdirs ${libgcj}"
3187 m68*-*-* | fido-*-*)
3188 libgloss_dir=m68k
3190 mcore-*-pe*)
3191 # The EPOC C++ environment does not support exceptions or rtti,
3192 # and so building libstdc++-v3 tends not to always work.
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3195 mmix-*-*)
3196 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3197 unsupported_languages="$unsupported_languages fortran java"
3199 mn10200-*-*)
3200 noconfigdirs="$noconfigdirs ${libgcj}"
3202 mn10300-*-*)
3203 noconfigdirs="$noconfigdirs ${libgcj}"
3205 mt-*-*)
3206 noconfigdirs="$noconfigdirs sim"
3208 powerpc-*-aix*)
3209 # copied from rs6000-*-* entry
3210 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3212 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3213 target_configdirs="$target_configdirs target-winsup"
3214 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3215 # always build newlib.
3216 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3218 # This is temporary until we can link against shared libraries
3219 powerpcle-*-solaris*)
3220 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3221 libgloss_dir=rs6000
3223 powerpc-*-beos*)
3224 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3226 powerpc-*-eabi)
3227 noconfigdirs="$noconfigdirs ${libgcj}"
3228 libgloss_dir=rs6000
3230 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3231 libgloss_dir=rs6000
3233 rs6000-*-lynxos*)
3234 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3236 rs6000-*-aix*)
3237 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3239 rs6000-*-*)
3240 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3242 m68k-apollo-*)
3243 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3245 microblaze*)
3246 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3248 mips*-sde-elf*)
3249 skipdirs="$skipdirs target-libiberty"
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 if test x$with_newlib = xyes; then
3252 noconfigdirs="$noconfigdirs gprof"
3254 libgloss_dir=mips
3256 mips*-*-irix5*)
3257 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3259 mips*-*-irix6*)
3260 # Linking libjava exceeds command-line length limits on at least
3261 # IRIX 6.2, but not on IRIX 6.5.
3262 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3263 # <oldham@codesourcery.com>
3264 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3266 mips*-*-bsd*)
3267 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3269 mips*-*-linux*)
3270 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3272 mips*-*-*)
3273 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3274 libgloss_dir=mips
3276 romp-*-*)
3277 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3279 sh-*-* | sh64-*-*)
3280 case "${host}" in
3281 i[3456789]86-*-vsta) ;; # don't add gprof back in
3282 i[3456789]86-*-go32*) ;; # don't add gprof back in
3283 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3284 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3285 esac
3286 case "${target}" in
3287 sh*-*-elf)
3288 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3291 esac
3293 sparclet-*-aout* | sparc86x-*-*)
3294 libgloss_dir=sparc
3296 sparc-*-elf*)
3297 noconfigdirs="$noconfigdirs ${libgcj}"
3299 sparc64-*-elf*)
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3301 libgloss_dir=sparc
3303 sparclite-*-*)
3304 noconfigdirs="$noconfigdirs ${libgcj}"
3305 libgloss_dir=sparc
3307 sparc-*-sunos4*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3309 if test x${is_cross_compiler} != xno ; then
3310 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3311 else
3312 use_gnu_ld=no
3315 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3316 noconfigdirs="$noconfigdirs ${libgcj}"
3318 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3320 v810-*-*)
3321 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3323 v850-*-*)
3324 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3326 v850e-*-*)
3327 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3329 v850ea-*-*)
3330 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3332 vax-*-vms)
3333 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3335 vax-*-*)
3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3338 xtensa*-*-*)
3339 noconfigdirs="$noconfigdirs ${libgcj}"
3341 ip2k-*-*)
3342 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3344 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3345 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3347 *-*-lynxos*)
3348 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3350 *-*-*)
3351 noconfigdirs="$noconfigdirs ${libgcj}"
3353 esac
3355 # If we aren't building newlib, then don't build libgloss, since libgloss
3356 # depends upon some newlib header files.
3357 case "${noconfigdirs}" in
3358 *target-libgloss*) ;;
3359 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3360 esac
3362 # Work in distributions that contain no compiler tools, like Autoconf.
3363 tentative_cc=""
3364 host_makefile_frag=/dev/null
3365 if test -d ${srcdir}/config ; then
3366 case "${host}" in
3367 m68k-hp-hpux*)
3368 # Avoid "too much defining" errors from HPUX compiler.
3369 tentative_cc="cc -Wp,-H256000"
3370 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3371 # If it's HP/UX ar, this should be harmless.
3372 RANLIB="ar ts"
3374 m68k-apollo-sysv*)
3375 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3377 m68k-apollo-bsd*)
3378 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3379 # chokes on bfd, the compiler won't let you assign integers to enums, and
3380 # other problems. Defining CC to gcc is a questionable way to say "don't use
3381 # the apollo compiler" (the preferred version of GCC could be called cc,
3382 # or whatever), but I'm not sure leaving CC as cc is any better...
3383 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3384 # Used to have BISON=yacc.
3385 tentative_cc=gcc
3387 m88k-dg-dgux*)
3388 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3390 m88k-harris-cxux*)
3391 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3392 tentative_cc="cc -Xa"
3393 host_makefile_frag="config/mh-cxux"
3395 m88k-motorola-sysv*)
3397 mips*-dec-ultrix*)
3398 tentative_cc="cc -Wf,-XNg1000"
3399 host_makefile_frag="config/mh-decstation"
3401 mips*-nec-sysv4*)
3402 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3403 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3404 host_makefile_frag="config/mh-necv4"
3406 mips*-sgi-irix4*)
3407 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3408 # environment. Also bump switch table size so that cp-parse will
3409 # compile. Bump string length limit so linker builds.
3410 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3412 mips*-*-sysv4*)
3413 host_makefile_frag="config/mh-sysv4"
3415 mips*-*-sysv*)
3416 # This is for a MIPS running RISC/os 4.52C.
3418 # This is needed for GDB, but needs to be in the top-level make because
3419 # if a library is compiled with the bsd headers and gets linked with the
3420 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3421 # a different size).
3422 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3423 # known except to select the sysv environment. Could we use /proc instead?
3424 # These "sysv environments" and "bsd environments" often end up being a pain.
3426 # This is not part of CFLAGS because perhaps not all C compilers have this
3427 # option.
3428 tentative_cc="cc -systype sysv"
3430 i370-ibm-opened*)
3431 tentative_cc="c89"
3433 i[3456789]86-*-sysv5*)
3434 host_makefile_frag="config/mh-sysv5"
3436 i[3456789]86-*-dgux*)
3437 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3438 host_makefile_frag="config/mh-dgux386"
3440 i[3456789]86-ncr-sysv4.3*)
3441 # The MetaWare compiler will generate a copyright message unless you
3442 # turn it off by adding the -Hnocopyr flag.
3443 tentative_cc="cc -Hnocopyr"
3445 i[3456789]86-ncr-sysv4*)
3446 # for an NCR 3000 (i486/SVR4) system.
3447 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3448 # This compiler not only emits obnoxious copyright messages every time
3449 # you run it, but it chokes and dies on a whole bunch of GNU source
3450 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3451 tentative_cc="/usr/ccs/ATT/cc"
3452 host_makefile_frag="config/mh-ncr3000"
3454 i[3456789]86-*-sco3.2v5*)
3456 i[3456789]86-*-sco*)
3457 # The native C compiler botches some simple uses of const. Unfortunately,
3458 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3459 tentative_cc="cc -Dconst="
3460 host_makefile_frag="config/mh-sco"
3462 i[3456789]86-*-udk*)
3463 host_makefile_frag="config/mh-sysv5"
3465 i[3456789]86-*-solaris2*)
3466 host_makefile_frag="config/mh-sysv4"
3468 i[3456789]86-*-msdosdjgpp*)
3469 host_makefile_frag="config/mh-djgpp"
3471 *-cygwin*)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3474 $as_echo_n "checking to see if cat works as expected... " >&6; }
3475 echo a >cygwin-cat-check
3476 if test `cat cygwin-cat-check` == a ; then
3477 rm cygwin-cat-check
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480 else
3481 rm cygwin-cat-check
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 as_fn_error "The cat command does not ignore carriage return characters.
3485 Please either mount the build directory in binary mode or run the following
3486 commands before running any configure script:
3487 set -o igncr
3488 export SHELLOPTS
3489 " "$LINENO" 5
3492 host_makefile_frag="config/mh-cygwin"
3494 *-mingw*)
3495 host_makefile_frag="config/mh-mingw"
3497 *-interix*)
3498 host_makefile_frag="config/mh-interix"
3500 vax-*-ultrix2*)
3501 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3502 tentative_cc=gcc
3504 *-*-solaris2*)
3505 host_makefile_frag="config/mh-solaris"
3507 m68k-sun-sunos*)
3508 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3509 # without overflowing the jump tables (-J says to use a 32 bit table)
3510 tentative_cc="cc -J"
3512 hppa*-hp-hpux10*)
3513 tentative_cc="cc -Wp,-H256000"
3514 host_makefile_frag="config/mh-pa-hpux10"
3516 hppa*-hp-hpux* | hppa*-*-hiux*)
3517 tentative_cc="cc -Wp,-H256000"
3518 host_makefile_frag="config/mh-pa"
3520 hppa*-*)
3521 host_makefile_frag="config/mh-pa"
3523 *-hp-hpux* | *-*-hiux*)
3524 tentative_cc="cc -Wp,-H256000"
3526 rs6000-*-lynxos*)
3527 # /bin/cc is less than useful for our purposes. Always use GCC
3528 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3529 host_makefile_frag="config/mh-lynxrs6k"
3531 powerpc-*-darwin*)
3532 host_makefile_frag="config/mh-ppc-darwin"
3534 powerpc-*-aix*)
3535 host_makefile_frag="config/mh-ppc-aix"
3537 rs6000-*-aix*)
3538 host_makefile_frag="config/mh-ppc-aix"
3540 *-*-lynxos*)
3541 # /bin/cc is less than useful for our purposes. Always use GCC
3542 tentative_cc="/bin/gcc"
3544 *-*-sysv4*)
3545 host_makefile_frag="config/mh-sysv4"
3547 # This is placed last to prevent interfering with the cases above.
3548 i[3456789]86-*-*)
3549 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3550 host_makefile_frag="config/mh-x86omitfp"
3552 esac
3555 # If we aren't going to be using gcc, see if we can extract a definition
3556 # of CC from the fragment.
3557 # Actually, use the 'pre-extracted' version above.
3558 if test -z "${CC}" && test "${build}" = "${host}" ; then
3559 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3560 found=
3561 for dir in $PATH; do
3562 test -z "$dir" && dir=.
3563 if test -f $dir/gcc; then
3564 found=yes
3565 break
3567 done
3568 IFS="$save_ifs"
3569 if test -z "${found}" && test -n "${tentative_cc}" ; then
3570 CC=$tentative_cc
3574 if test "${build}" != "${host}" ; then
3575 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3576 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3577 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3578 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3579 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3580 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3581 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3582 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3583 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3584 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3585 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3586 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3587 else
3588 AR_FOR_BUILD="\$(AR)"
3589 AS_FOR_BUILD="\$(AS)"
3590 CC_FOR_BUILD="\$(CC)"
3591 CXX_FOR_BUILD="\$(CXX)"
3592 GCJ_FOR_BUILD="\$(GCJ)"
3593 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3594 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3595 LD_FOR_BUILD="\$(LD)"
3596 NM_FOR_BUILD="\$(NM)"
3597 RANLIB_FOR_BUILD="\$(RANLIB)"
3598 WINDRES_FOR_BUILD="\$(WINDRES)"
3599 WINDMC_FOR_BUILD="\$(WINDMC)"
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CC="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693 CC=$ac_ct_CC
3695 else
3696 CC="$ac_cv_prog_CC"
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}cc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if test "${ac_cv_prog_CC+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 ac_prog_rejected=no
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3761 continue
3763 ac_cv_prog_CC="cc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3771 if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3774 shift
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3779 shift
3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3785 CC=$ac_cv_prog_CC
3786 if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in cl.exe
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if test "${ac_cv_prog_CC+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3821 done
3822 done
3823 IFS=$as_save_IFS
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$CC" && break
3838 done
3840 if test -z "$CC"; then
3841 ac_ct_CC=$CC
3842 for ac_prog in cl.exe
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_ac_ct_CC="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$ac_ct_CC" && break
3882 done
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error "no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details." "$LINENO" 5; }
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907 set X $ac_compile
3908 ac_compiler=$2
3909 for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918 ac_status=$?
3919 if test -s conftest.err; then
3920 sed '10a\
3921 ... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3924 rm -f conftest.er1 conftest.err
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 done
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3934 main ()
3938 return 0;
3940 _ACEOF
3941 ac_clean_files_save=$ac_clean_files
3942 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3943 # Try to create an executable without -o first, disregard a.out.
3944 # It will help us diagnose broken compilers, and finding out an intuition
3945 # of exeext.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3947 $as_echo_n "checking for C compiler default output file name... " >&6; }
3948 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3950 # The possible output files:
3951 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3953 ac_rmfiles=
3954 for ac_file in $ac_files
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3959 esac
3960 done
3961 rm -f $ac_rmfiles
3963 if { { ac_try="$ac_link_default"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link_default") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3977 # so that the user can short-circuit this test for compilers unknown to
3978 # Autoconf.
3979 for ac_file in $ac_files ''
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3985 [ab].out )
3986 # We found the default executable, but exeext='' is most
3987 # certainly right.
3988 break;;
3989 *.* )
3990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 then :; else
3992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 # We set ac_cv_exeext here because the later test for it is not
3995 # safe: cross compilers may not add the suffix if given an `-o'
3996 # argument, so we may need to know it at that point already.
3997 # Even if this section looks crufty: it has the advantage of
3998 # actually working.
3999 break;;
4001 break;;
4002 esac
4003 done
4004 test "$ac_cv_exeext" = no && ac_cv_exeext=
4006 else
4007 ac_file=''
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4010 $as_echo "$ac_file" >&6; }
4011 if test -z "$ac_file"; then :
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 { as_fn_set_status 77
4018 as_fn_error "C compiler cannot create executables
4019 See \`config.log' for more details." "$LINENO" 5; }; }
4021 ac_exeext=$ac_cv_exeext
4023 # Check that the compiler produces executables we can run. If not, either
4024 # the compiler is broken, or we cross compile.
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4026 $as_echo_n "checking whether the C compiler works... " >&6; }
4027 # If not cross compiling, check that we can run a simple program.
4028 if test "$cross_compiling" != yes; then
4029 if { ac_try='./$ac_file'
4030 { { case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
4040 cross_compiling=no
4041 else
4042 if test "$cross_compiling" = maybe; then
4043 cross_compiling=yes
4044 else
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error "cannot run C compiled programs.
4048 If you meant to cross compile, use \`--host'.
4049 See \`config.log' for more details." "$LINENO" 5; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4057 ac_clean_files=$ac_clean_files_save
4058 # Check that the compiler produces executables we can run. If not, either
4059 # the compiler is broken, or we cross compile.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061 $as_echo_n "checking whether we are cross compiling... " >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4063 $as_echo "$cross_compiling" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 $as_echo_n "checking for suffix of executables... " >&6; }
4067 if { { ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
4081 # `rm'.
4082 for ac_file in conftest.exe conftest conftest.*; do
4083 test -f "$ac_file" || continue
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 break;;
4088 * ) break;;
4089 esac
4090 done
4091 else
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error "cannot compute suffix of executables: cannot compile and link
4095 See \`config.log' for more details." "$LINENO" 5; }
4097 rm -f conftest$ac_cv_exeext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099 $as_echo "$ac_cv_exeext" >&6; }
4101 rm -f conftest.$ac_ext
4102 EXEEXT=$ac_cv_exeext
4103 ac_exeext=$EXEEXT
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4105 $as_echo_n "checking for suffix of object files... " >&6; }
4106 if test "${ac_cv_objext+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4117 return 0;
4119 _ACEOF
4120 rm -f conftest.o conftest.obj
4121 if { { ac_try="$ac_compile"
4122 case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_compile") 2>&5
4129 ac_status=$?
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; then :
4132 for ac_file in conftest.o conftest.obj conftest.*; do
4133 test -f "$ac_file" || continue;
4134 case $ac_file in
4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4137 break;;
4138 esac
4139 done
4140 else
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error "cannot compute suffix of object files: cannot compile
4147 See \`config.log' for more details." "$LINENO" 5; }
4149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4152 $as_echo "$ac_cv_objext" >&6; }
4153 OBJEXT=$ac_cv_objext
4154 ac_objext=$OBJEXT
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4156 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4157 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4164 main ()
4166 #ifndef __GNUC__
4167 choke me
4168 #endif
4171 return 0;
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_compiler_gnu=yes
4176 else
4177 ac_compiler_gnu=no
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4185 if test $ac_compiler_gnu = yes; then
4186 GCC=yes
4187 else
4188 GCC=
4190 ac_test_CFLAGS=${CFLAGS+set}
4191 ac_save_CFLAGS=$CFLAGS
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4194 if test "${ac_cv_prog_cc_g+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_save_c_werror_flag=$ac_c_werror_flag
4198 ac_c_werror_flag=yes
4199 ac_cv_prog_cc_g=no
4200 CFLAGS="-g"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213 ac_cv_prog_cc_g=yes
4214 else
4215 CFLAGS=""
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4220 main ()
4224 return 0;
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4229 else
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4231 CFLAGS="-g"
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4236 main ()
4240 return 0;
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_g=yes
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4254 $as_echo "$ac_cv_prog_cc_g" >&6; }
4255 if test "$ac_test_CFLAGS" = set; then
4256 CFLAGS=$ac_save_CFLAGS
4257 elif test $ac_cv_prog_cc_g = yes; then
4258 if test "$GCC" = yes; then
4259 CFLAGS="-g -O2"
4260 else
4261 CFLAGS="-g"
4263 else
4264 if test "$GCC" = yes; then
4265 CFLAGS="-O2"
4266 else
4267 CFLAGS=
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4271 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4272 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_cv_prog_cc_c89=no
4276 ac_save_CC=$CC
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <stdarg.h>
4280 #include <stdio.h>
4281 #include <sys/types.h>
4282 #include <sys/stat.h>
4283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4284 struct buf { int x; };
4285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4286 static char *e (p, i)
4287 char **p;
4288 int i;
4290 return p[i];
4292 static char *f (char * (*g) (char **, int), char **p, ...)
4294 char *s;
4295 va_list v;
4296 va_start (v,p);
4297 s = g (p, va_arg (v,int));
4298 va_end (v);
4299 return s;
4302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4303 function prototypes and stuff, but not '\xHH' hex character constants.
4304 These don't provoke an error unfortunately, instead are silently treated
4305 as 'x'. The following induces an error, until -std is added to get
4306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4307 array size at least. It's necessary to write '\x00'==0 to get something
4308 that's true only with -std. */
4309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4312 inside strings and character constants. */
4313 #define FOO(x) 'x'
4314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4316 int test (int i, double x);
4317 struct s1 {int (*f) (int a);};
4318 struct s2 {int (*f) (double a);};
4319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4320 int argc;
4321 char **argv;
4323 main ()
4325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4327 return 0;
4329 _ACEOF
4330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_prog_cc_c89=$ac_arg
4337 rm -f core conftest.err conftest.$ac_objext
4338 test "x$ac_cv_prog_cc_c89" != "xno" && break
4339 done
4340 rm -f conftest.$ac_ext
4341 CC=$ac_save_CC
4344 # AC_CACHE_VAL
4345 case "x$ac_cv_prog_cc_c89" in
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4348 $as_echo "none needed" >&6; } ;;
4349 xno)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4351 $as_echo "unsupported" >&6; } ;;
4353 CC="$CC $ac_cv_prog_cc_c89"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4355 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4356 esac
4357 if test "x$ac_cv_prog_cc_c89" != xno; then :
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 ac_ext=cpp
4368 ac_cpp='$CXXCPP $CPPFLAGS'
4369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4372 if test -z "$CXX"; then
4373 if test -n "$CCC"; then
4374 CXX=$CCC
4375 else
4376 if test -n "$ac_tool_prefix"; then
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if test "${ac_cv_prog_CXX+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$CXX"; then
4387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4402 IFS=$as_save_IFS
4406 CXX=$ac_cv_prog_CXX
4407 if test -n "$CXX"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4409 $as_echo "$CXX" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4416 test -n "$CXX" && break
4417 done
4419 if test -z "$CXX"; then
4420 ac_ct_CXX=$CXX
4421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$ac_ct_CXX"; then
4431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_CXX="$ac_prog"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4451 if test -n "$ac_ct_CXX"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4453 $as_echo "$ac_ct_CXX" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4460 test -n "$ac_ct_CXX" && break
4461 done
4463 if test "x$ac_ct_CXX" = x; then
4464 CXX="g++"
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 CXX=$ac_ct_CXX
4478 # Provide some information about the compiler.
4479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4480 set X $ac_compile
4481 ac_compiler=$2
4482 for ac_option in --version -v -V -qversion; do
4483 { { ac_try="$ac_compiler $ac_option >&5"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4491 ac_status=$?
4492 if test -s conftest.err; then
4493 sed '10a\
4494 ... rest of stderr output deleted ...
4495 10q' conftest.err >conftest.er1
4496 cat conftest.er1 >&5
4497 rm -f conftest.er1 conftest.err
4499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }
4501 done
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4514 #ifndef __GNUC__
4515 choke me
4516 #endif
4519 return 0;
4521 _ACEOF
4522 if ac_fn_cxx_try_compile "$LINENO"; then :
4523 ac_compiler_gnu=yes
4524 else
4525 ac_compiler_gnu=no
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4533 if test $ac_compiler_gnu = yes; then
4534 GXX=yes
4535 else
4536 GXX=
4538 ac_test_CXXFLAGS=${CXXFLAGS+set}
4539 ac_save_CXXFLAGS=$CXXFLAGS
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4542 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4546 ac_cxx_werror_flag=yes
4547 ac_cv_prog_cxx_g=no
4548 CXXFLAGS="-g"
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4553 main ()
4557 return 0;
4559 _ACEOF
4560 if ac_fn_cxx_try_compile "$LINENO"; then :
4561 ac_cv_prog_cxx_g=yes
4562 else
4563 CXXFLAGS=""
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4568 main ()
4572 return 0;
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 else
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 CXXFLAGS="-g"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4588 return 0;
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cv_prog_cxx_g=yes
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4603 if test "$ac_test_CXXFLAGS" = set; then
4604 CXXFLAGS=$ac_save_CXXFLAGS
4605 elif test $ac_cv_prog_cxx_g = yes; then
4606 if test "$GXX" = yes; then
4607 CXXFLAGS="-g -O2"
4608 else
4609 CXXFLAGS="-g"
4611 else
4612 if test "$GXX" = yes; then
4613 CXXFLAGS="-O2"
4614 else
4615 CXXFLAGS=
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 # We must set the default linker to the linker used by gcc for the correct
4626 # operation of libtool. If LD is not defined and we are using gcc, try to
4627 # set the LD default to the ld used by gcc.
4628 if test -z "$LD"; then
4629 if test "$GCC" = yes; then
4630 case $build in
4631 *-*-mingw*)
4632 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4634 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4635 esac
4636 case $gcc_prog_ld in
4637 # Accept absolute paths.
4638 [\\/]* | [A-Za-z]:[\\/]*)
4639 LD="$gcc_prog_ld" ;;
4640 esac
4647 if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$GNATBIND"; then
4656 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 GNATBIND=$ac_cv_prog_GNATBIND
4676 if test -n "$GNATBIND"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4678 $as_echo "$GNATBIND" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4686 if test -z "$ac_cv_prog_GNATBIND"; then
4687 ac_ct_GNATBIND=$GNATBIND
4688 # Extract the first word of "gnatbind", so it can be a program name with args.
4689 set dummy gnatbind; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$ac_ct_GNATBIND"; then
4696 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4716 if test -n "$ac_ct_GNATBIND"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4718 $as_echo "$ac_ct_GNATBIND" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4724 if test "x$ac_ct_GNATBIND" = x; then
4725 GNATBIND="no"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 GNATBIND=$ac_ct_GNATBIND
4735 else
4736 GNATBIND="$ac_cv_prog_GNATBIND"
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$GNATMAKE"; then
4748 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 GNATMAKE=$ac_cv_prog_GNATMAKE
4768 if test -n "$GNATMAKE"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4770 $as_echo "$GNATMAKE" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 if test -z "$ac_cv_prog_GNATMAKE"; then
4779 ac_ct_GNATMAKE=$GNATMAKE
4780 # Extract the first word of "gnatmake", so it can be a program name with args.
4781 set dummy gnatmake; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_GNATMAKE"; then
4788 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4808 if test -n "$ac_ct_GNATMAKE"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4810 $as_echo "$ac_ct_GNATMAKE" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4816 if test "x$ac_ct_GNATMAKE" = x; then
4817 GNATMAKE="no"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825 GNATMAKE=$ac_ct_GNATMAKE
4827 else
4828 GNATMAKE="$ac_cv_prog_GNATMAKE"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4832 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4833 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 cat >conftest.adb <<EOF
4837 procedure conftest is begin null; end conftest;
4839 acx_cv_cc_gcc_supports_ada=no
4840 # There is a bug in old released versions of GCC which causes the
4841 # driver to exit successfully when the appropriate language module
4842 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4843 # Therefore we must check for the error message as well as an
4844 # unsuccessful exit.
4845 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4846 # given a .adb file, but produce no object file. So we must check
4847 # if an object file was really produced to guard against this.
4848 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4849 if test x"$errors" = x && test -f conftest.$ac_objext; then
4850 acx_cv_cc_gcc_supports_ada=yes
4852 rm -f conftest.*
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4855 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4857 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4858 have_gnat=yes
4859 else
4860 have_gnat=no
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4865 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 echo abfoo >t1
4869 echo cdfoo >t2
4870 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4871 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4872 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4874 else
4875 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4878 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4879 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4881 else
4882 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4885 rm t1 t2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
4890 do_compare="$gcc_cv_prog_cmp_skip"
4894 # See if we are building gcc with C++.
4895 # Check whether --enable-build-with-cxx was given.
4896 if test "${enable_build_with_cxx+set}" = set; then :
4897 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4898 else
4899 ENABLE_BUILD_WITH_CXX=no
4903 # Check for GMP, MPFR and MPC
4904 gmplibs="-lmpfr -lgmp"
4905 gmpinc=
4906 have_gmp=no
4907 mpclibs=-lmpc
4908 mpcinc=
4909 have_mpc=no
4911 # Specify a location for mpc
4912 # check for this first so it ends up on the link line before mpfr.
4914 # Check whether --with-mpc was given.
4915 if test "${with_mpc+set}" = set; then :
4916 withval=$with_mpc;
4920 # Check whether --with-mpc_include was given.
4921 if test "${with_mpc_include+set}" = set; then :
4922 withval=$with_mpc_include;
4926 # Check whether --with-mpc_lib was given.
4927 if test "${with_mpc_lib+set}" = set; then :
4928 withval=$with_mpc_lib;
4932 if test "x$with_mpc" != x; then
4933 mpclibs="-L$with_mpc/lib -lmpc"
4934 mpcinc="-I$with_mpc/include $mpcinc"
4936 if test "x$with_mpc_include" != x; then
4937 mpcinc="-I$with_mpc_include $mpcinc"
4939 if test "x$with_mpc_lib" != x; then
4940 mpclibs="-L$with_mpc_lib -lmpc"
4942 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4943 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4944 mpcinc='-I$$s/mpc/src '"$mpcinc"
4945 # Do not test the mpc version. Assume that it is sufficient, since
4946 # it is in the source tree, and the library has not been built yet
4947 # but it would be included on the link line in the version check below
4948 # hence making the test fail.
4949 have_mpc=yes
4952 # Specify a location for mpfr
4953 # check for this first so it ends up on the link line before gmp.
4955 # Check whether --with-mpfr-dir was given.
4956 if test "${with_mpfr_dir+set}" = set; then :
4957 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
4958 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
4963 # Check whether --with-mpfr was given.
4964 if test "${with_mpfr+set}" = set; then :
4965 withval=$with_mpfr;
4969 # Check whether --with-mpfr_include was given.
4970 if test "${with_mpfr_include+set}" = set; then :
4971 withval=$with_mpfr_include;
4975 # Check whether --with-mpfr_lib was given.
4976 if test "${with_mpfr_lib+set}" = set; then :
4977 withval=$with_mpfr_lib;
4981 if test "x$with_mpfr" != x; then
4982 gmplibs="-L$with_mpfr/lib $gmplibs"
4983 gmpinc="-I$with_mpfr/include"
4985 if test "x$with_mpfr_include" != x; then
4986 gmpinc="-I$with_mpfr_include"
4988 if test "x$with_mpfr_lib" != x; then
4989 gmplibs="-L$with_mpfr_lib $gmplibs"
4991 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4992 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4993 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4994 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4995 # Do not test the mpfr version. Assume that it is sufficient, since
4996 # it is in the source tree, and the library has not been built yet
4997 # but it would be included on the link line in the version check below
4998 # hence making the test fail.
4999 have_gmp=yes
5002 # Specify a location for gmp
5004 # Check whether --with-gmp-dir was given.
5005 if test "${with_gmp_dir+set}" = set; then :
5006 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5007 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5012 # Check whether --with-gmp was given.
5013 if test "${with_gmp+set}" = set; then :
5014 withval=$with_gmp;
5018 # Check whether --with-gmp_include was given.
5019 if test "${with_gmp_include+set}" = set; then :
5020 withval=$with_gmp_include;
5024 # Check whether --with-gmp_lib was given.
5025 if test "${with_gmp_lib+set}" = set; then :
5026 withval=$with_gmp_lib;
5031 if test "x$with_gmp" != x; then
5032 gmplibs="-L$with_gmp/lib $gmplibs"
5033 gmpinc="-I$with_gmp/include $gmpinc"
5035 if test "x$with_gmp_include" != x; then
5036 gmpinc="-I$with_gmp_include $gmpinc"
5038 if test "x$with_gmp_lib" != x; then
5039 gmplibs="-L$with_gmp_lib $gmplibs"
5041 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5042 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5043 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5044 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5045 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
5046 # Do not test the gmp version. Assume that it is sufficient, since
5047 # it is in the source tree, and the library has not been built yet
5048 # but it would be included on the link line in the version check below
5049 # hence making the test fail.
5050 have_gmp=yes
5053 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5054 have_gmp=yes
5055 saved_CFLAGS="$CFLAGS"
5056 CFLAGS="$CFLAGS $gmpinc"
5057 # Check GMP actually works
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5059 $as_echo_n "checking for correct version of gmp.h... " >&6; }
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include "gmp.h"
5065 main ()
5068 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
5069 choke me
5070 #endif
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5078 $as_echo "yes" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }; have_gmp=no
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 # If we have GMP, check the MPFR version.
5086 if test x"$have_gmp" = xyes; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5088 $as_echo_n "checking for correct version of mpfr.h... " >&6; }
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 #include <gmp.h>
5092 #include <mpfr.h>
5094 main ()
5097 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5098 choke me
5099 #endif
5102 return 0;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <gmp.h>
5109 #include <mpfr.h>
5111 main ()
5114 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
5115 choke me
5116 #endif
5119 return 0;
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"; then :
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124 $as_echo "yes" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5127 $as_echo "buggy but acceptable" >&6; }
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }; have_gmp=no
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 # Check for the MPC header version.
5138 if test x"$have_mpc" != xyes ; then
5139 CFLAGS="$CFLAGS $mpcinc"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5141 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <mpc.h>
5146 main ()
5149 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5150 choke me
5151 #endif
5154 return 0;
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159 $as_echo "yes" >&6; }; have_mpc=maybe
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 # Now check the MPFR library.
5168 if test x"$have_gmp" = xyes; then
5169 saved_LIBS="$LIBS"
5170 LIBS="$LIBS $gmplibs"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5172 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <gmp.h>
5176 #include <mpfr.h>
5178 main ()
5181 mpfr_t n;
5182 mpfr_t x;
5183 int t;
5184 mpfr_init (n);
5185 mpfr_init (x);
5186 mpfr_atan2 (n, n, x, GMP_RNDN);
5187 mpfr_erfc (n, x, GMP_RNDN);
5188 mpfr_subnormalize (x, t, GMP_RNDN);
5191 return 0;
5193 _ACEOF
5194 if ac_fn_c_try_link "$LINENO"; then :
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 $as_echo "yes" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }; have_gmp=no
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS="$saved_LIBS"
5206 if test x"$have_mpc" = xmaybe; then
5207 saved_LIBS="$LIBS"
5208 LIBS="$LIBS $mpclibs $gmplibs"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5210 $as_echo_n "checking for the correct version of the mpc library... " >&6; }
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <mpc.h>
5215 main ()
5218 mpc_t n;
5219 mpc_init2 (n, 53);
5220 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5221 mpc_sin (n, n, MPC_RNDNN);
5222 mpc_cos (n, n, MPC_RNDNN);
5223 mpc_tan (n, n, MPC_RNDNN);
5224 mpc_sinh (n, n, MPC_RNDNN);
5225 mpc_cosh (n, n, MPC_RNDNN);
5226 mpc_tanh (n, n, MPC_RNDNN);
5227 mpc_exp (n, n, MPC_RNDNN);
5228 mpc_log (n, n, MPC_RNDNN);
5229 mpc_sqrt (n, n, MPC_RNDNN);
5230 mpc_proj (n, n, MPC_RNDNN);
5231 mpc_neg (n, n, MPC_RNDNN);
5232 mpc_sqr (n, n, MPC_RNDNN);
5233 mpc_clear (n);
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }; have_mpc=yes
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 LIBS="$saved_LIBS"
5251 CFLAGS="$saved_CFLAGS"
5253 if test x$have_gmp != xyes; then
5254 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5255 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5256 Copies of these libraries' source code can be found at their respective
5257 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5258 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5259 If you obtained GMP and/or MPFR from a vendor distribution package, make
5260 sure that you have installed both the libraries and the header files.
5261 They may be located in separate packages." "$LINENO" 5
5265 if test x$have_mpc != xyes ; then
5266 mpcinc=
5267 mpclibs=
5270 gmpinc="$mpcinc $gmpinc"
5271 gmplibs="$mpclibs $gmplibs"
5273 # Flags needed for both GMP, MPFR and/or MPC.
5280 # Allow host libstdc++ to be specified for static linking with PPL.
5282 # Check whether --with-host-libstdcxx was given.
5283 if test "${with_host_libstdcxx+set}" = set; then :
5284 withval=$with_host_libstdcxx;
5288 case $with_host_libstdcxx in
5289 no|yes)
5290 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5292 esac
5294 # Linker flags to use for stage1 or when not boostrapping.
5296 # Check whether --with-stage1-ldflags was given.
5297 if test "${with_stage1_ldflags+set}" = set; then :
5298 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5299 stage1_ldflags=
5300 else
5301 stage1_ldflags=$withval
5303 else
5304 stage1_ldflags=
5309 # Libraries to use for stage1 or when not bootstrapping.
5311 # Check whether --with-stage1-libs was given.
5312 if test "${with_stage1_libs+set}" = set; then :
5313 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5314 stage1_libs=
5315 else
5316 stage1_libs=$withval
5318 else
5319 stage1_libs=$with_host_libstdcxx
5324 # Linker flags to use for stage2 and later builds.
5326 # Check whether --with-boot-ldflags was given.
5327 if test "${with_boot_ldflags+set}" = set; then :
5328 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5329 poststage1_ldflags=
5330 else
5331 poststage1_ldflags=$withval
5333 else
5334 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5335 poststage1_ldflags=-static-libstdc++
5336 else
5337 poststage1_ldflags=
5343 # Libraries to use for stage2 and later builds. This defaults to the
5344 # argument passed to --with-host-libstdcxx.
5346 # Check whether --with-boot-libs was given.
5347 if test "${with_boot_libs+set}" = set; then :
5348 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5349 poststage1_libs=
5350 else
5351 poststage1_libs=$withval
5353 else
5354 poststage1_libs=$with_host_libstdcxx
5359 # Check for PPL
5360 ppl_major_version=0
5361 ppl_minor_version=10
5362 ppllibs=" -lppl_c -lppl -lgmpxx"
5363 pplinc=
5366 # Check whether --with-ppl was given.
5367 if test "${with_ppl+set}" = set; then :
5368 withval=$with_ppl;
5369 else
5370 with_ppl=no
5374 # Check whether --with-ppl_include was given.
5375 if test "${with_ppl_include+set}" = set; then :
5376 withval=$with_ppl_include;
5380 # Check whether --with-ppl_lib was given.
5381 if test "${with_ppl_lib+set}" = set; then :
5382 withval=$with_ppl_lib;
5386 case $with_ppl in
5388 ppllibs=
5391 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5392 pplinc="-I$with_ppl/include $pplinc"
5393 LIBS="$ppllibs $LIBS"
5395 esac
5396 if test "x$with_ppl_include" != x; then
5397 pplinc="-I$with_ppl_include $pplinc"
5399 if test "x$with_ppl_lib" != x; then
5400 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5401 LIBS="$ppllibs $LIBS"
5403 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5404 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5405 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5406 LIBS="$ppllibs $LIBS"
5409 # Check whether --enable-ppl-version-check was given.
5410 if test "${enable_ppl_version_check+set}" = set; then :
5411 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5412 else
5413 ENABLE_PPL_CHECK=yes
5417 if test "${ENABLE_PPL_CHECK}" = "yes"; then
5418 saved_CFLAGS="$CFLAGS"
5419 CFLAGS="$CFLAGS $pplinc $gmpinc"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5421 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #include "ppl_c.h"
5426 main ()
5429 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5430 choke me
5431 #endif
5434 return 0;
5436 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439 $as_echo "yes" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }; ppllibs= ; pplinc=
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 CFLAGS="$saved_CFLAGS"
5448 # Flags needed for PPL
5453 # Check for CLOOG
5454 clooglibs=" -lcloog "
5455 clooginc=" -DCLOOG_PPL_BACKEND "
5458 # Check whether --with-cloog was given.
5459 if test "${with_cloog+set}" = set; then :
5460 withval=$with_cloog;
5461 else
5462 with_cloog=no
5466 # Check whether --with-cloog_include was given.
5467 if test "${with_cloog_include+set}" = set; then :
5468 withval=$with_cloog_include;
5472 # Check whether --with-cloog_lib was given.
5473 if test "${with_cloog_lib+set}" = set; then :
5474 withval=$with_cloog_lib;
5478 case $with_cloog in
5480 clooglibs=
5481 clooginc=
5484 clooglibs="-L$with_cloog/lib -lcloog"
5485 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5486 LIBS="$clooglibs $LIBS"
5488 esac
5489 if test "x$with_cloog_include" != x; then
5490 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5492 if test "x$with_cloog_lib" != x; then
5493 clooglibs="-L$with_cloog_lib -lcloog"
5494 LIBS="$clooglibs $LIBS"
5496 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5497 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5498 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5499 LIBS="$clooglibs $LIBS"
5502 # Check whether --enable-cloog-version-check was given.
5503 if test "${enable_cloog_version_check+set}" = set; then :
5504 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5505 else
5506 ENABLE_CLOOG_CHECK=yes
5510 if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5511 saved_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5514 $as_echo_n "checking for correct version of CLooG... " >&6; }
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include "cloog/cloog.h"
5519 main ()
5522 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5523 choke me
5524 #endif
5527 return 0;
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"; then :
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5532 $as_echo "yes" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 CFLAGS="$saved_CFLAGS"
5541 # Flags needed for CLOOG
5546 # By default, C is the only stage 1 language.
5547 stage1_languages=,c,
5549 # Target libraries that we bootstrap.
5550 bootstrap_target_libs=,target-libgcc,
5552 # Figure out what language subdirectories are present.
5553 # Look if the user specified --enable-languages="..."; if not, use
5554 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5555 # go away some day.
5556 # NB: embedded tabs in this IF block -- do not untabify
5557 if test -d ${srcdir}/gcc; then
5558 if test x"${enable_languages+set}" != xset; then
5559 if test x"${LANGUAGES+set}" = xset; then
5560 enable_languages="${LANGUAGES}"
5561 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5562 else
5563 enable_languages=all
5565 else
5566 if test x"${enable_languages}" = x ||
5567 test x"${enable_languages}" = xyes;
5568 then
5569 echo configure.in: --enable-languages needs at least one language argument 1>&2
5570 exit 1
5573 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5575 # 'f95' is the old name for the 'fortran' language. We issue a warning
5576 # and make the substitution.
5577 case ,${enable_languages}, in
5578 *,f95,*)
5579 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5580 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5582 esac
5584 # First scan to see if an enabled language requires some other language.
5585 # We assume that a given config-lang.in will list all the language
5586 # front ends it requires, even if some are required indirectly.
5587 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5588 case ${lang_frag} in
5589 ..) ;;
5590 # The odd quoting in the next line works around
5591 # an apparent bug in bash 1.12 on linux.
5592 ${srcdir}/gcc/[*]/config-lang.in) ;;
5594 # From the config-lang.in, get $language, $lang_requires
5595 language=
5596 lang_requires=
5597 . ${lang_frag}
5598 for other in ${lang_requires} ; do
5599 case ,${enable_languages}, in
5600 *,$other,*) ;;
5601 *,all,*) ;;
5602 *,$language,*)
5603 echo " \`$other' language required by \`$language'; enabling" 1>&2
5604 enable_languages="${enable_languages},${other}"
5606 esac
5607 done
5609 esac
5610 done
5612 new_enable_languages=,c,
5613 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5614 potential_languages=,c,
5616 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5617 case ${lang_frag} in
5618 ..) ;;
5619 # The odd quoting in the next line works around
5620 # an apparent bug in bash 1.12 on linux.
5621 ${srcdir}/gcc/[*]/config-lang.in) ;;
5623 # From the config-lang.in, get $language, $target_libs,
5624 # $lang_dirs, $boot_language, and $build_by_default
5625 language=
5626 target_libs=
5627 lang_dirs=
5628 subdir_requires=
5629 boot_language=no
5630 build_by_default=yes
5631 . ${lang_frag}
5632 if test x${language} = x; then
5633 echo "${lang_frag} doesn't set \$language." 1>&2
5634 exit 1
5637 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5638 boot_language=yes
5641 case ,${enable_languages}, in
5642 *,${language},*)
5643 # Language was explicitly selected; include it.
5644 add_this_lang=yes
5646 *,all,*)
5647 # 'all' was selected, select it if it is a default language
5648 add_this_lang=${build_by_default}
5651 add_this_lang=no
5653 esac
5655 # Disable languages that need other directories if these aren't available.
5656 for i in $subdir_requires; do
5657 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5658 case ,${enable_languages}, in
5659 *,${language},*)
5660 # Specifically requested language; tell them.
5661 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5664 # Silently disable.
5665 add_this_lang=unsupported
5667 esac
5668 done
5670 # Disable Ada if no preexisting GNAT is available.
5671 case ,${enable_languages},:${language}:${have_gnat} in
5672 *,${language},*:ada:no)
5673 # Specifically requested language; tell them.
5674 as_fn_error "GNAT is required to build $language" "$LINENO" 5
5676 *:ada:no)
5677 # Silently disable.
5678 add_this_lang=unsupported
5680 esac
5682 # Disable a language that is unsupported by the target.
5683 case " $unsupported_languages " in
5684 *" $language "*)
5685 add_this_lang=unsupported
5687 esac
5689 case $add_this_lang in
5690 unsupported)
5691 # Remove language-dependent dirs.
5692 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5695 # Remove language-dependent dirs; still show language as supported.
5696 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5697 potential_languages="${potential_languages}${language},"
5699 yes)
5700 new_enable_languages="${new_enable_languages}${language},"
5701 potential_languages="${potential_languages}${language},"
5702 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5703 case ${boot_language} in
5704 yes)
5705 # Add to (comma-separated) list of stage 1 languages.
5706 stage1_languages="${stage1_languages}${language},"
5707 # We need to bootstrap any supporting libraries.
5708 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5710 esac
5712 esac
5714 esac
5715 done
5717 # Check whether --enable-stage1-languages was given.
5718 if test "${enable_stage1_languages+set}" = set; then :
5719 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5720 ,no,|,,)
5721 # Set it to something that will have no effect in the loop below
5722 enable_stage1_languages=c ;;
5723 ,yes,)
5724 enable_stage1_languages=`echo $new_enable_languages | \
5725 sed -e "s/^,//" -e "s/,$//" ` ;;
5726 *,all,*)
5727 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5728 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5729 esac
5731 # Add "good" languages from enable_stage1_languages to stage1_languages,
5732 # while "bad" languages go in missing_languages. Leave no duplicates.
5733 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5734 case $potential_languages in
5735 *,$i,*)
5736 case $stage1_languages in
5737 *,$i,*) ;;
5738 *) stage1_languages="$stage1_languages$i," ;;
5739 esac ;;
5741 case $missing_languages in
5742 *,$i,*) ;;
5743 *) missing_languages="$missing_languages$i," ;;
5744 esac ;;
5745 esac
5746 done
5750 # Remove leading/trailing commas that were added for simplicity
5751 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5752 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5753 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5754 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5756 if test "x$missing_languages" != x; then
5757 as_fn_error "
5758 The following requested languages could not be built: ${missing_languages}
5759 Supported languages are: ${potential_languages}" "$LINENO" 5
5761 if test "x$new_enable_languages" != "x$enable_languages"; then
5762 echo The following languages will be built: ${new_enable_languages}
5763 enable_languages="$new_enable_languages"
5767 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5770 # Handle --disable-<component> generically.
5771 for dir in $configdirs $build_configdirs $target_configdirs ; do
5772 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5773 varname=`echo $dirname | sed -e s/+/_/g`
5774 if eval test x\${enable_${varname}} "=" xno ; then
5775 noconfigdirs="$noconfigdirs $dir"
5777 done
5779 # Check for Boehm's garbage collector
5780 # Check whether --enable-objc-gc was given.
5781 if test "${enable_objc_gc+set}" = set; then :
5782 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5783 *,objc,*:*:yes:*target-boehm-gc*)
5784 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
5786 esac
5790 # Make sure we only build Boehm's garbage collector if required.
5791 case ,${enable_languages},:${enable_objc_gc} in
5792 *,objc,*:yes)
5793 # Keep target-boehm-gc if requested for Objective-C.
5796 # Otherwise remove target-boehm-gc depending on target-libjava.
5797 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5798 noconfigdirs="$noconfigdirs target-boehm-gc"
5801 esac
5803 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5804 # $build_configdirs and $target_configdirs.
5805 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5807 notsupp=""
5808 for dir in . $skipdirs $noconfigdirs ; do
5809 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5810 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5811 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5812 if test -r $srcdir/$dirname/configure ; then
5813 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5814 true
5815 else
5816 notsupp="$notsupp $dir"
5820 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5821 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5822 if test -r $srcdir/$dirname/configure ; then
5823 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5824 true
5825 else
5826 notsupp="$notsupp $dir"
5830 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5831 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5832 if test -r $srcdir/$dirname/configure ; then
5833 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5834 true
5835 else
5836 notsupp="$notsupp $dir"
5840 done
5842 # Sometimes the tools are distributed with libiberty but with no other
5843 # libraries. In that case, we don't want to build target-libiberty.
5844 # Don't let libgcc imply libiberty either.
5845 if test -n "${target_configdirs}" ; then
5846 libgcc=
5847 others=
5848 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5849 if test "$i" = "libgcc"; then
5850 libgcc=target-libgcc
5851 elif test "$i" != "libiberty" ; then
5852 if test -r $srcdir/$i/configure ; then
5853 others=yes;
5854 break;
5857 done
5858 if test -z "${others}" ; then
5859 target_configdirs=$libgcc
5863 # Quietly strip out all directories which aren't configurable in this tree.
5864 # This relies on all configurable subdirectories being autoconfiscated, which
5865 # is now the case.
5866 build_configdirs_all="$build_configdirs"
5867 build_configdirs=
5868 for i in ${build_configdirs_all} ; do
5869 j=`echo $i | sed -e s/build-//g`
5870 if test -f ${srcdir}/$j/configure ; then
5871 build_configdirs="${build_configdirs} $i"
5873 done
5875 configdirs_all="$configdirs"
5876 configdirs=
5877 for i in ${configdirs_all} ; do
5878 if test -f ${srcdir}/$i/configure ; then
5879 configdirs="${configdirs} $i"
5881 done
5883 target_configdirs_all="$target_configdirs"
5884 target_configdirs=
5885 for i in ${target_configdirs_all} ; do
5886 j=`echo $i | sed -e s/target-//g`
5887 if test -f ${srcdir}/$j/configure ; then
5888 target_configdirs="${target_configdirs} $i"
5890 done
5892 # Produce a warning message for the subdirs we can't configure.
5893 # This isn't especially interesting in the Cygnus tree, but in the individual
5894 # FSF releases, it's important to let people know when their machine isn't
5895 # supported by the one or two programs in a package.
5897 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5898 # If $appdirs is non-empty, at least one of those directories must still
5899 # be configured, or we error out. (E.g., if the gas release supports a
5900 # specified target in some subdirs but not the gas subdir, we shouldn't
5901 # pretend that all is well.)
5902 if test -n "$appdirs" ; then
5903 for dir in $appdirs ; do
5904 if test -r $dir/Makefile.in ; then
5905 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5906 appdirs=""
5907 break
5909 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5910 appdirs=""
5911 break
5914 done
5915 if test -n "$appdirs" ; then
5916 echo "*** This configuration is not supported by this package." 1>&2
5917 exit 1
5920 # Okay, some application will build, or we don't care to check. Still
5921 # notify of subdirs not getting built.
5922 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5923 echo " ${notsupp}" 1>&2
5924 echo " (Any other directories should still work fine.)" 1>&2
5927 case "$host" in
5928 *msdosdjgpp*)
5929 enable_gdbtk=no ;;
5930 esac
5932 # To find our prefix, in gcc_cv_tool_prefix.
5934 # The user is always right.
5935 if test "${PATH_SEPARATOR+set}" != set; then
5936 echo "#! /bin/sh" >conf$$.sh
5937 echo "exit 0" >>conf$$.sh
5938 chmod +x conf$$.sh
5939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5940 PATH_SEPARATOR=';'
5941 else
5942 PATH_SEPARATOR=:
5944 rm -f conf$$.sh
5949 if test "x$exec_prefix" = xNONE; then
5950 if test "x$prefix" = xNONE; then
5951 gcc_cv_tool_prefix=$ac_default_prefix
5952 else
5953 gcc_cv_tool_prefix=$prefix
5955 else
5956 gcc_cv_tool_prefix=$exec_prefix
5959 # If there is no compiler in the tree, use the PATH only. In any
5960 # case, if there is no compiler in the tree nobody should use
5961 # AS_FOR_TARGET and LD_FOR_TARGET.
5962 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5963 gcc_version=`cat $srcdir/gcc/BASE-VER`
5964 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5965 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5966 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5967 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5968 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5969 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5970 else
5971 gcc_cv_tool_dirs=
5974 if test x$build = x$target && test -n "$md_exec_prefix"; then
5975 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5980 copy_dirs=
5983 # Check whether --with-build-sysroot was given.
5984 if test "${with_build_sysroot+set}" = set; then :
5985 withval=$with_build_sysroot; if test x"$withval" != x ; then
5986 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5988 else
5989 SYSROOT_CFLAGS_FOR_TARGET=
5995 # Check whether --with-debug-prefix-map was given.
5996 if test "${with_debug_prefix_map+set}" = set; then :
5997 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5998 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5999 for debug_map in $withval; do
6000 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6001 done
6003 else
6004 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6009 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6010 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6011 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6012 # We want to ensure that TARGET libraries (which we know are built with
6013 # gcc) are built with "-O2 -g", so include those options when setting
6014 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6015 if test "x$CFLAGS_FOR_TARGET" = x; then
6016 CFLAGS_FOR_TARGET=$CFLAGS
6017 case " $CFLAGS " in
6018 *" -O2 "*) ;;
6019 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6020 esac
6021 case " $CFLAGS " in
6022 *" -g "* | *" -g3 "*) ;;
6023 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6024 esac
6028 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6029 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6030 case " $CXXFLAGS " in
6031 *" -O2 "*) ;;
6032 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6033 esac
6034 case " $CXXFLAGS " in
6035 *" -g "* | *" -g3 "*) ;;
6036 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6037 esac
6041 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6042 # the named directory are copied to $(tooldir)/sys-include.
6043 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6044 if test x${is_cross_compiler} = xno ; then
6045 echo 1>&2 '***' --with-headers is only supported when cross compiling
6046 exit 1
6048 if test x"${with_headers}" != xyes ; then
6049 x=${gcc_cv_tool_prefix}
6050 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6054 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6055 # the name directories are copied to $(tooldir)/lib. Multiple directories
6056 # are permitted.
6057 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6058 if test x${is_cross_compiler} = xno ; then
6059 echo 1>&2 '***' --with-libs is only supported when cross compiling
6060 exit 1
6062 if test x"${with_libs}" != xyes ; then
6063 # Copy the libraries in reverse order, so that files in the first named
6064 # library override files in subsequent libraries.
6065 x=${gcc_cv_tool_prefix}
6066 for l in ${with_libs}; do
6067 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6068 done
6072 # Set with_gnu_as and with_gnu_ld as appropriate.
6074 # This is done by determining whether or not the appropriate directory
6075 # is available, and by checking whether or not specific configurations
6076 # have requested that this magic not happen.
6078 # The command line options always override the explicit settings in
6079 # configure.in, and the settings in configure.in override this magic.
6081 # If the default for a toolchain is to use GNU as and ld, and you don't
6082 # want to do that, then you should use the --without-gnu-as and
6083 # --without-gnu-ld options for the configure script.
6085 if test x${use_gnu_as} = x &&
6086 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6087 with_gnu_as=yes
6088 extra_host_args="$extra_host_args --with-gnu-as"
6091 if test x${use_gnu_ld} = x &&
6092 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6093 with_gnu_ld=yes
6094 extra_host_args="$extra_host_args --with-gnu-ld"
6097 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6098 # can detect this case.
6100 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6101 with_newlib=yes
6102 extra_host_args="$extra_host_args --with-newlib"
6105 # Handle ${copy_dirs}
6106 set fnord ${copy_dirs}
6107 shift
6108 while test $# != 0 ; do
6109 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6111 else
6112 echo Copying $1 to $2
6114 # Use the install script to create the directory and all required
6115 # parent directories.
6116 if test -d $2 ; then
6118 else
6119 echo >config.temp
6120 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6123 # Copy the directory, assuming we have tar.
6124 # FIXME: Should we use B in the second tar? Not all systems support it.
6125 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6127 # It is the responsibility of the user to correctly adjust all
6128 # symlinks. If somebody can figure out how to handle them correctly
6129 # here, feel free to add the code.
6131 echo $1 > $2/COPIED
6133 shift; shift
6134 done
6136 # Determine a target-dependent exec_prefix that the installed
6137 # gcc will search in. Keep this list sorted by triplet, with
6138 # the *-*-osname triplets last.
6139 md_exec_prefix=
6140 case "${target}" in
6141 alpha*-*-*vms*)
6142 md_exec_prefix=/gnu/lib/gcc-lib
6144 i[34567]86-pc-msdosdjgpp*)
6145 md_exec_prefix=/dev/env/DJDIR/bin
6147 i[34567]86-*-sco3.2v5*)
6148 if test $with_gnu_as = yes; then
6149 md_exec_prefix=/usr/gnu/bin
6150 else
6151 md_exec_prefix=/usr/ccs/bin/elf
6155 mn10300-*-* | \
6156 powerpc-*-chorusos* | \
6157 powerpc*-*-eabi* | \
6158 powerpc*-*-sysv* | \
6159 powerpc*-*-kaos* | \
6160 s390x-ibm-tpf*)
6161 md_exec_prefix=/usr/ccs/bin
6163 sparc64-*-elf*)
6165 v850*-*-*)
6166 md_exec_prefix=/usr/ccs/bin
6168 xtensa*-*-elf*)
6171 *-*-beos* | \
6172 *-*-elf* | \
6173 *-*-hpux* | \
6174 *-*-netware* | \
6175 *-*-nto-qnx* | \
6176 *-*-rtems* | \
6177 *-*-solaris2* | \
6178 *-*-sysv[45]* | \
6179 *-*-vxworks* | \
6180 *-wrs-windiss)
6181 md_exec_prefix=/usr/ccs/bin
6183 esac
6185 extra_arflags_for_target=
6186 extra_nmflags_for_target=
6187 extra_ranlibflags_for_target=
6188 target_makefile_frag=/dev/null
6189 case "${target}" in
6190 mep*-*-*)
6191 target_makefile_frag="config/mt-mep"
6193 spu-*-*)
6194 target_makefile_frag="config/mt-spu"
6196 mips*-sde-elf*)
6197 target_makefile_frag="config/mt-sde"
6199 mipsisa*-*-elfoabi*)
6200 target_makefile_frag="config/mt-mips-elfoabi"
6202 mips*-*-*linux* | mips*-*-gnu*)
6203 target_makefile_frag="config/mt-mips-gnu"
6205 *-*-netware*)
6206 target_makefile_frag="config/mt-netware"
6208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6209 target_makefile_frag="config/mt-gnu"
6211 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6212 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6213 # commands to handle both 32-bit and 64-bit objects. These flags are
6214 # harmless if we're using GNU nm or ar.
6215 extra_arflags_for_target=" -X32_64"
6216 extra_nmflags_for_target=" -B -X32_64"
6218 *-*-darwin*)
6219 # ranlib from Darwin requires the -c flag to look at common symbols.
6220 extra_ranlibflags_for_target=" -c"
6222 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6223 target_makefile_frag="config/mt-wince"
6225 esac
6227 alphaieee_frag=/dev/null
6228 case $target in
6229 alpha*-*-*)
6230 # This just makes sure to use the -mieee option to build target libs.
6231 # This should probably be set individually by each library.
6232 alphaieee_frag="config/mt-alphaieee"
6234 esac
6236 # If --enable-target-optspace always use -Os instead of -O2 to build
6237 # the target libraries, similarly if it is not specified, use -Os
6238 # on selected platforms.
6239 ospace_frag=/dev/null
6240 case "${enable_target_optspace}:${target}" in
6241 yes:*)
6242 ospace_frag="config/mt-ospace"
6244 :d30v-*)
6245 ospace_frag="config/mt-d30v"
6247 :m32r-* | :d10v-* | :fr30-*)
6248 ospace_frag="config/mt-ospace"
6250 no:* | :*)
6253 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6255 esac
6257 # Default to using --with-stabs for certain targets.
6258 if test x${with_stabs} = x ; then
6259 case "${target}" in
6260 mips*-*-irix[56]*)
6262 mips*-*-* | alpha*-*-osf*)
6263 with_stabs=yes;
6264 extra_host_args="${extra_host_args} --with-stabs"
6266 esac
6269 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6270 # them automatically.
6271 case "${host}" in
6272 hppa*64*-*-hpux11*)
6273 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6275 esac
6277 # Some systems (e.g., one of the i386-aix systems the gas testers are
6278 # using) don't handle "\$" correctly, so don't use it here.
6279 tooldir='${exec_prefix}'/${target_noncanonical}
6280 build_tooldir=${tooldir}
6282 # Create a .gdbinit file which runs the one in srcdir
6283 # and tells GDB to look there for source files.
6285 if test -r ${srcdir}/.gdbinit ; then
6286 case ${srcdir} in
6287 .) ;;
6288 *) cat > ./.gdbinit <<EOF
6289 # ${NO_EDIT}
6290 dir ${srcdir}
6291 dir .
6292 source ${srcdir}/.gdbinit
6295 esac
6298 # Make sure that the compiler is able to generate an executable. If it
6299 # can't, we are probably in trouble. We don't care whether we can run the
6300 # executable--we might be using a cross compiler--we only care whether it
6301 # can be created. At this point the main configure script has set CC.
6302 we_are_ok=no
6303 echo "int main () { return 0; }" > conftest.c
6304 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6305 if test $? = 0 ; then
6306 if test -s conftest || test -s conftest.exe ; then
6307 we_are_ok=yes
6310 case $we_are_ok in
6312 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6313 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6314 rm -f conftest*
6315 exit 1
6317 esac
6318 rm -f conftest*
6320 # The Solaris /usr/ucb/cc compiler does not appear to work.
6321 case "${host}" in
6322 sparc-sun-solaris2*)
6323 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6324 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6325 could_use=
6326 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6327 if test -d /opt/cygnus/bin ; then
6328 if test "$could_use" = "" ; then
6329 could_use="/opt/cygnus/bin"
6330 else
6331 could_use="$could_use or /opt/cygnus/bin"
6334 if test "$could_use" = "" ; then
6335 echo "Warning: compilation may fail because you're using"
6336 echo "/usr/ucb/cc. You should change your PATH or CC "
6337 echo "variable and rerun configure."
6338 else
6339 echo "Warning: compilation may fail because you're using"
6340 echo "/usr/ucb/cc, when you should use the C compiler from"
6341 echo "$could_use. You should change your"
6342 echo "PATH or CC variable and rerun configure."
6346 esac
6348 # Decide which environment variable is used to find dynamic libraries.
6349 case "${host}" in
6350 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6351 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6352 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6353 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6354 esac
6356 # On systems where the dynamic library environment variable is PATH,
6357 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6358 # built executables to PATH.
6359 if test "$RPATH_ENVVAR" = PATH; then
6360 GCC_SHLIB_SUBDIR=/shlib
6361 else
6362 GCC_SHLIB_SUBDIR=
6365 # Record target_configdirs and the configure arguments for target and
6366 # build configuration in Makefile.
6367 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6368 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6370 # Determine whether gdb needs tk/tcl or not.
6371 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6372 # and in that case we want gdb to be built without tk. Ugh!
6373 # In fact I believe gdb is the *only* package directly dependent on tk,
6374 # so we should be able to put the 'maybe's in unconditionally and
6375 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6376 # 100% sure that that's safe though.
6378 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6379 case "$enable_gdbtk" in
6381 GDB_TK="" ;;
6382 yes)
6383 GDB_TK="${gdb_tk}" ;;
6385 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6386 # distro. Eventually someone will fix this and move Insight, nee
6387 # gdbtk to a separate directory.
6388 if test -d ${srcdir}/gdb/gdbtk ; then
6389 GDB_TK="${gdb_tk}"
6390 else
6391 GDB_TK=""
6394 esac
6395 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6396 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6398 # Strip out unwanted targets.
6400 # While at that, we remove Makefiles if we were started for recursive
6401 # configuration, so that the top-level Makefile reconfigures them,
6402 # like we used to do when configure itself was recursive.
6404 # Loop over modules. $extrasub must be used with care, limiting as
6405 # much as possible the usage of range addresses. That's because autoconf
6406 # splits the sed script to overcome limits in the number of commands,
6407 # and relying on carefully-timed sed passes may turn out to be very hard
6408 # to maintain later. In this particular case, you just have to be careful
6409 # not to nest @if/@endif pairs, because configure will not warn you at all.
6411 # Check whether --enable-bootstrap was given.
6412 if test "${enable_bootstrap+set}" = set; then :
6413 enableval=$enable_bootstrap;
6414 else
6415 enable_bootstrap=default
6419 # Issue errors and warnings for invalid/strange bootstrap combinations.
6420 case "$configdirs" in
6421 *gcc*) have_compiler=yes ;;
6422 *) have_compiler=no ;;
6423 esac
6425 case "$have_compiler:$host:$target:$enable_bootstrap" in
6426 *:*:*:no) ;;
6428 # Default behavior. Enable bootstrap if we have a compiler
6429 # and we are in a native configuration.
6430 yes:$build:$build:default)
6431 enable_bootstrap=yes ;;
6433 *:*:*:default)
6434 enable_bootstrap=no ;;
6436 # We have a compiler and we are in a native configuration, bootstrap is ok
6437 yes:$build:$build:yes)
6440 # Other configurations, but we have a compiler. Assume the user knows
6441 # what he's doing.
6442 yes:*:*:yes)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6444 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6447 # No compiler: if they passed --enable-bootstrap explicitly, fail
6448 no:*:*:yes)
6449 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6451 # Fail if wrong command line
6453 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6455 esac
6457 # Adjust the toplevel makefile according to whether bootstrap was selected.
6458 case "$enable_bootstrap" in
6459 yes)
6460 bootstrap_suffix=bootstrap ;;
6462 bootstrap_suffix=no-bootstrap ;;
6463 esac
6465 for module in ${build_configdirs} ; do
6466 if test -z "${no_recursion}" \
6467 && test -f ${build_subdir}/${module}/Makefile; then
6468 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6469 rm -f ${build_subdir}/${module}/Makefile
6471 extrasub="$extrasub
6472 /^@if build-$module\$/d
6473 /^@endif build-$module\$/d
6474 /^@if build-$module-$bootstrap_suffix\$/d
6475 /^@endif build-$module-$bootstrap_suffix\$/d"
6476 done
6477 for module in ${configdirs} ; do
6478 if test -z "${no_recursion}"; then
6479 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6480 if test -f ${file}; then
6481 echo 1>&2 "*** removing ${file} to force reconfigure"
6482 rm -f ${file}
6484 done
6486 extrasub="$extrasub
6487 /^@if $module\$/d
6488 /^@endif $module\$/d
6489 /^@if $module-$bootstrap_suffix\$/d
6490 /^@endif $module-$bootstrap_suffix\$/d"
6491 done
6492 for module in ${target_configdirs} ; do
6493 if test -z "${no_recursion}" \
6494 && test -f ${target_subdir}/${module}/Makefile; then
6495 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6496 rm -f ${target_subdir}/${module}/Makefile
6499 # We only bootstrap target libraries listed in bootstrap_target_libs.
6500 case $bootstrap_target_libs in
6501 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6502 *) target_bootstrap_suffix=no-bootstrap ;;
6503 esac
6505 extrasub="$extrasub
6506 /^@if target-$module\$/d
6507 /^@endif target-$module\$/d
6508 /^@if target-$module-$target_bootstrap_suffix\$/d
6509 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6510 done
6512 extrasub="$extrasub
6513 /^@if /,/^@endif /d"
6515 # Create the serialization dependencies. This uses a temporary file.
6517 # Check whether --enable-serial-configure was given.
6518 if test "${enable_serial_configure+set}" = set; then :
6519 enableval=$enable_serial_configure;
6523 case ${enable_serial_configure} in
6524 yes)
6525 enable_serial_build_configure=yes
6526 enable_serial_host_configure=yes
6527 enable_serial_target_configure=yes
6529 esac
6531 # These force 'configure's to be done one at a time, to avoid problems
6532 # with contention over a shared config.cache.
6533 rm -f serdep.tmp
6534 echo '# serdep.tmp' > serdep.tmp
6535 olditem=
6536 test "x${enable_serial_build_configure}" = xyes &&
6537 for item in ${build_configdirs} ; do
6538 case ${olditem} in
6539 "") ;;
6540 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6541 esac
6542 olditem=${item}
6543 done
6544 olditem=
6545 test "x${enable_serial_host_configure}" = xyes &&
6546 for item in ${configdirs} ; do
6547 case ${olditem} in
6548 "") ;;
6549 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6550 esac
6551 olditem=${item}
6552 done
6553 olditem=
6554 test "x${enable_serial_target_configure}" = xyes &&
6555 for item in ${target_configdirs} ; do
6556 case ${olditem} in
6557 "") ;;
6558 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6559 esac
6560 olditem=${item}
6561 done
6562 serialization_dependencies=serdep.tmp
6565 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6566 # target, nonopt, and variable assignments. These are the ones we
6567 # might not want to pass down to subconfigures. Also strip
6568 # program-prefix, program-suffix, and program-transform-name, so that
6569 # we can pass down a consistent program-transform-name.
6570 baseargs=
6571 keep_next=no
6572 skip_next=no
6573 eval "set -- $ac_configure_args"
6574 for ac_arg
6576 if test X"$skip_next" = X"yes"; then
6577 skip_next=no
6578 continue
6580 if test X"$keep_next" = X"yes"; then
6581 case $ac_arg in
6582 *\'*)
6583 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6584 esac
6585 baseargs="$baseargs '$ac_arg'"
6586 keep_next=no
6587 continue
6590 # Handle separated arguments. Based on the logic generated by
6591 # autoconf 2.59.
6592 case $ac_arg in
6593 *=* | --config-cache | -C | -disable-* | --disable-* \
6594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6596 | -with-* | --with-* | -without-* | --without-* | --x)
6597 separate_arg=no
6600 separate_arg=yes
6603 separate_arg=no
6605 esac
6607 case "$ac_arg" in
6608 --no*)
6609 continue
6611 --c* | \
6612 --sr* | \
6613 --ho* | \
6614 --bu* | \
6615 --t* | \
6616 --program-* | \
6617 -cache_file* | \
6618 -srcdir* | \
6619 -host* | \
6620 -build* | \
6621 -target* | \
6622 -program-prefix* | \
6623 -program-suffix* | \
6624 -program-transform-name* )
6625 skip_next=$separate_arg
6626 continue
6629 # An option. Add it.
6630 case $ac_arg in
6631 *\'*)
6632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6633 esac
6634 baseargs="$baseargs '$ac_arg'"
6635 keep_next=$separate_arg
6638 # Either a variable assignment, or a nonopt (triplet). Don't
6639 # pass it down; let the Makefile handle this.
6640 continue
6642 esac
6643 done
6644 # Remove the initial space we just introduced and, as these will be
6645 # expanded by make, quote '$'.
6646 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6648 # Add in --program-transform-name, after --program-prefix and
6649 # --program-suffix have been applied to it. Autoconf has already
6650 # doubled dollar signs and backslashes in program_transform_name; we want
6651 # the backslashes un-doubled, and then the entire thing wrapped in single
6652 # quotes, because this will be expanded first by make and then by the shell.
6653 # Also, because we want to override the logic in subdir configure scripts to
6654 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6655 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6656 ${program_transform_name}
6657 EOF_SED
6658 gcc_transform_name=`cat conftestsed.out`
6659 rm -f conftestsed.out
6660 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6661 if test "$silent" = yes; then
6662 baseargs="$baseargs --silent"
6664 baseargs="$baseargs --disable-option-checking"
6666 # For the build-side libraries, we just need to pretend we're native,
6667 # and not use the same cache file. Multilibs are neither needed nor
6668 # desired.
6669 build_configargs="--cache-file=../config.cache ${baseargs}"
6671 # For host modules, accept cache file option, or specification as blank.
6672 case "${cache_file}" in
6673 "") # empty
6674 cache_file_option="" ;;
6675 /* | [A-Za-z]:[\\/]* ) # absolute path
6676 cache_file_option="--cache-file=${cache_file}" ;;
6677 *) # relative path
6678 cache_file_option="--cache-file=../${cache_file}" ;;
6679 esac
6681 # Host dirs don't like to share a cache file either, horribly enough.
6682 # This seems to be due to autoconf 2.5x stupidity.
6683 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6685 target_configargs=${baseargs}
6687 # Passing a --with-cross-host argument lets the target libraries know
6688 # whether they are being built with a cross-compiler or being built
6689 # native. However, it would be better to use other mechanisms to make the
6690 # sorts of decisions they want to make on this basis. Please consider
6691 # this option to be deprecated. FIXME.
6692 if test x${is_cross_compiler} = xyes ; then
6693 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6696 # Default to --enable-multilib.
6697 if test x${enable_multilib} = x ; then
6698 target_configargs="--enable-multilib ${target_configargs}"
6701 # Pass --with-newlib if appropriate. Note that target_configdirs has
6702 # changed from the earlier setting of with_newlib.
6703 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6704 target_configargs="--with-newlib ${target_configargs}"
6707 # Different target subdirs use different values of certain variables
6708 # (notably CXX). Worse, multilibs use *lots* of different values.
6709 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6710 # it doesn't automatically accept command-line overrides of them.
6711 # This means it's not safe for target subdirs to share a cache file,
6712 # which is disgusting, but there you have it. Hopefully this can be
6713 # fixed in future. It's still worthwhile to use a cache file for each
6714 # directory. I think.
6716 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6717 # We need to pass --target, as newer autoconf's requires consistency
6718 # for target_alias and gcc doesn't manage it consistently.
6719 target_configargs="--cache-file=./config.cache ${target_configargs}"
6721 FLAGS_FOR_TARGET=
6722 case " $target_configdirs " in
6723 *" newlib "*)
6724 case " $target_configargs " in
6725 *" --with-newlib "*)
6726 case "$target" in
6727 *-cygwin*)
6728 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' ;;
6729 esac
6731 # If we're not building GCC, don't discard standard headers.
6732 if test -d ${srcdir}/gcc; then
6733 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6735 if test "${build}" != "${host}"; then
6736 # On Canadian crosses, CC_FOR_TARGET will have already been set
6737 # by `configure', so we won't have an opportunity to add -Bgcc/
6738 # to it. This is right: we don't want to search that directory
6739 # for binaries, but we want the header files in there, so add
6740 # them explicitly.
6741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6743 # Someone might think of using the pre-installed headers on
6744 # Canadian crosses, in case the installed compiler is not fully
6745 # compatible with the compiler being built. In this case, it
6746 # would be better to flag an error than risking having
6747 # incompatible object files being constructed. We can't
6748 # guarantee that an error will be flagged, but let's hope the
6749 # compiler will do it, when presented with incompatible header
6750 # files.
6754 case "${target}-${is_cross_compiler}" in
6755 i[3456789]86-*-linux*-no)
6756 # Here host == target, so we don't need to build gcc,
6757 # so we don't want to discard standard headers.
6758 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6761 # If we're building newlib, use its generic headers last, but search
6762 # for any libc-related directories first (so make it the last -B
6763 # switch).
6764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6766 # If we're building libgloss, find the startup file, simulator library
6767 # and linker script.
6768 case " $target_configdirs " in
6769 *" libgloss "*)
6770 # Look for startup file, simulator library and maybe linker script.
6771 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6772 # Look for libnosys.a in case the target needs it.
6773 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6774 # Most targets have the linker script in the source directory.
6775 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6777 esac
6779 esac
6781 esac
6783 esac
6784 case "$target" in
6785 *-mingw*)
6786 # Can't be handled as Cygwin above since Mingw does not use newlib.
6787 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' ;;
6788 esac
6790 # Allow the user to override the flags for
6791 # our build compiler if desired.
6792 if test x"${build}" = x"${host}" ; then
6793 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6794 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6795 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6798 # On Canadian crosses, we'll be searching the right directories for
6799 # the previously-installed cross compiler, so don't bother to add
6800 # flags for directories within the install tree of the compiler
6801 # being built; programs in there won't even run.
6802 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6803 # Search for pre-installed headers if nothing else fits.
6804 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6807 if test "x${use_gnu_ld}" = x &&
6808 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6809 # Arrange for us to find uninstalled linker scripts.
6810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6813 # Search for other target-specific linker scripts and such.
6814 case "${target}" in
6815 mep*)
6816 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6818 esac
6820 # Makefile fragments.
6821 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6823 eval fragval=\$$frag
6824 if test $fragval != /dev/null; then
6825 eval $frag=${srcdir}/$fragval
6827 done
6833 # Miscellanea: directories, flags, etc.
6842 # Build module lists & subconfigure args.
6846 # Host module lists & subconfigure args.
6850 # Target module lists & subconfigure args.
6854 # Build tools.
6872 # Generate default definitions for YACC, M4, LEX and other programs that run
6873 # on the build machine. These are used if the Makefile can't locate these
6874 # programs in objdir.
6875 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6877 for ac_prog in 'bison -y' byacc yacc
6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_YACC+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$YACC"; then
6887 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_YACC="$ac_prog"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 YACC=$ac_cv_prog_YACC
6907 if test -n "$YACC"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6909 $as_echo "$YACC" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6916 test -n "$YACC" && break
6917 done
6918 test -n "$YACC" || YACC="$MISSING bison -y"
6920 case " $build_configdirs " in
6921 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6922 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6923 esac
6925 for ac_prog in bison
6927 # Extract the first word of "$ac_prog", so it can be a program name with args.
6928 set dummy $ac_prog; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if test "${ac_cv_prog_BISON+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$BISON"; then
6935 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_BISON="$ac_prog"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6948 done
6949 done
6950 IFS=$as_save_IFS
6954 BISON=$ac_cv_prog_BISON
6955 if test -n "$BISON"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6957 $as_echo "$BISON" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6964 test -n "$BISON" && break
6965 done
6966 test -n "$BISON" || BISON="$MISSING bison"
6968 case " $build_configdirs " in
6969 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6970 esac
6972 for ac_prog in gm4 gnum4 m4
6974 # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy $ac_prog; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_M4+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$M4"; then
6982 ac_cv_prog_M4="$M4" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_M4="$ac_prog"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 M4=$ac_cv_prog_M4
7002 if test -n "$M4"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7004 $as_echo "$M4" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7011 test -n "$M4" && break
7012 done
7013 test -n "$M4" || M4="$MISSING m4"
7015 case " $build_configdirs " in
7016 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7017 esac
7019 for ac_prog in flex lex
7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy $ac_prog; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_LEX+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$LEX"; then
7029 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_LEX="$ac_prog"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7042 done
7043 done
7044 IFS=$as_save_IFS
7048 LEX=$ac_cv_prog_LEX
7049 if test -n "$LEX"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7051 $as_echo "$LEX" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7058 test -n "$LEX" && break
7059 done
7060 test -n "$LEX" || LEX="$MISSING flex"
7062 case " $build_configdirs " in
7063 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7064 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7065 esac
7067 for ac_prog in flex
7069 # Extract the first word of "$ac_prog", so it can be a program name with args.
7070 set dummy $ac_prog; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_prog_FLEX+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$FLEX"; then
7077 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_FLEX="$ac_prog"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 FLEX=$ac_cv_prog_FLEX
7097 if test -n "$FLEX"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7099 $as_echo "$FLEX" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7106 test -n "$FLEX" && break
7107 done
7108 test -n "$FLEX" || FLEX="$MISSING flex"
7110 case " $build_configdirs " in
7111 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7112 esac
7114 for ac_prog in makeinfo
7116 # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$MAKEINFO"; then
7124 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_MAKEINFO="$ac_prog"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7143 MAKEINFO=$ac_cv_prog_MAKEINFO
7144 if test -n "$MAKEINFO"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7146 $as_echo "$MAKEINFO" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7153 test -n "$MAKEINFO" && break
7154 done
7155 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7157 case " $build_configdirs " in
7158 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7161 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7162 # higher, else we use the "missing" dummy.
7163 if ${MAKEINFO} --version \
7164 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7166 else
7167 MAKEINFO="$MISSING makeinfo"
7171 esac
7173 # FIXME: expect and dejagnu may become build tools?
7175 for ac_prog in expect
7177 # Extract the first word of "$ac_prog", so it can be a program name with args.
7178 set dummy $ac_prog; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$EXPECT"; then
7185 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_EXPECT="$ac_prog"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7198 done
7199 done
7200 IFS=$as_save_IFS
7204 EXPECT=$ac_cv_prog_EXPECT
7205 if test -n "$EXPECT"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7207 $as_echo "$EXPECT" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7214 test -n "$EXPECT" && break
7215 done
7216 test -n "$EXPECT" || EXPECT="expect"
7218 case " $configdirs " in
7219 *" expect "*)
7220 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7222 esac
7224 for ac_prog in runtest
7226 # Extract the first word of "$ac_prog", so it can be a program name with args.
7227 set dummy $ac_prog; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$RUNTEST"; then
7234 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_RUNTEST="$ac_prog"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7253 RUNTEST=$ac_cv_prog_RUNTEST
7254 if test -n "$RUNTEST"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7256 $as_echo "$RUNTEST" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7263 test -n "$RUNTEST" && break
7264 done
7265 test -n "$RUNTEST" || RUNTEST="runtest"
7267 case " $configdirs " in
7268 *" dejagnu "*)
7269 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7271 esac
7274 # Host tools.
7275 ncn_tool_prefix=
7276 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7277 ncn_target_tool_prefix=
7278 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7282 if test -n "$AR"; then
7283 ac_cv_prog_AR=$AR
7284 elif test -n "$ac_cv_prog_AR"; then
7285 AR=$ac_cv_prog_AR
7288 if test -n "$ac_cv_prog_AR"; then
7289 for ncn_progname in ar; do
7290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7291 set dummy ${ncn_progname}; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_prog_AR+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 if test -n "$AR"; then
7298 ac_cv_prog_AR="$AR" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_AR="${ncn_progname}"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7317 AR=$ac_cv_prog_AR
7318 if test -n "$AR"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7320 $as_echo "$AR" >&6; }
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7327 done
7330 for ncn_progname in ar; do
7331 if test -n "$ncn_tool_prefix"; then
7332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_AR+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$AR"; then
7340 ac_cv_prog_AR="$AR" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7355 IFS=$as_save_IFS
7359 AR=$ac_cv_prog_AR
7360 if test -n "$AR"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7362 $as_echo "$AR" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7370 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7372 set dummy ${ncn_progname}; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_AR+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$AR"; then
7379 ac_cv_prog_AR="$AR" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_AR="${ncn_progname}"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7392 done
7393 done
7394 IFS=$as_save_IFS
7398 AR=$ac_cv_prog_AR
7399 if test -n "$AR"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7401 $as_echo "$AR" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7409 test -n "$ac_cv_prog_AR" && break
7410 done
7412 if test -z "$ac_cv_prog_AR" ; then
7413 set dummy ar
7414 if test $build = $host ; then
7415 AR="$2"
7416 else
7417 AR="${ncn_tool_prefix}$2"
7423 if test -n "$AS"; then
7424 ac_cv_prog_AS=$AS
7425 elif test -n "$ac_cv_prog_AS"; then
7426 AS=$ac_cv_prog_AS
7429 if test -n "$ac_cv_prog_AS"; then
7430 for ncn_progname in as; do
7431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7432 set dummy ${ncn_progname}; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if test "${ac_cv_prog_AS+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$AS"; then
7439 ac_cv_prog_AS="$AS" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_prog_AS="${ncn_progname}"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7452 done
7453 done
7454 IFS=$as_save_IFS
7458 AS=$ac_cv_prog_AS
7459 if test -n "$AS"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7461 $as_echo "$AS" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7468 done
7471 for ncn_progname in as; do
7472 if test -n "$ncn_tool_prefix"; then
7473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if test "${ac_cv_prog_AS+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$AS"; then
7481 ac_cv_prog_AS="$AS" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7494 done
7495 done
7496 IFS=$as_save_IFS
7500 AS=$ac_cv_prog_AS
7501 if test -n "$AS"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7503 $as_echo "$AS" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7511 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7513 set dummy ${ncn_progname}; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_AS+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$AS"; then
7520 ac_cv_prog_AS="$AS" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_AS="${ncn_progname}"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7533 done
7534 done
7535 IFS=$as_save_IFS
7539 AS=$ac_cv_prog_AS
7540 if test -n "$AS"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7542 $as_echo "$AS" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 test -n "$ac_cv_prog_AS" && break
7551 done
7553 if test -z "$ac_cv_prog_AS" ; then
7554 set dummy as
7555 if test $build = $host ; then
7556 AS="$2"
7557 else
7558 AS="${ncn_tool_prefix}$2"
7564 if test -n "$DLLTOOL"; then
7565 ac_cv_prog_DLLTOOL=$DLLTOOL
7566 elif test -n "$ac_cv_prog_DLLTOOL"; then
7567 DLLTOOL=$ac_cv_prog_DLLTOOL
7570 if test -n "$ac_cv_prog_DLLTOOL"; then
7571 for ncn_progname in dlltool; do
7572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7573 set dummy ${ncn_progname}; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 if test -n "$DLLTOOL"; then
7580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_prog_DLLTOOL="${ncn_progname}"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7599 DLLTOOL=$ac_cv_prog_DLLTOOL
7600 if test -n "$DLLTOOL"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7602 $as_echo "$DLLTOOL" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7609 done
7612 for ncn_progname in dlltool; do
7613 if test -n "$ncn_tool_prefix"; then
7614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$DLLTOOL"; then
7622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7641 DLLTOOL=$ac_cv_prog_DLLTOOL
7642 if test -n "$DLLTOOL"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7644 $as_echo "$DLLTOOL" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7652 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7654 set dummy ${ncn_progname}; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$DLLTOOL"; then
7661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_DLLTOOL="${ncn_progname}"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 DLLTOOL=$ac_cv_prog_DLLTOOL
7681 if test -n "$DLLTOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7683 $as_echo "$DLLTOOL" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7691 test -n "$ac_cv_prog_DLLTOOL" && break
7692 done
7694 if test -z "$ac_cv_prog_DLLTOOL" ; then
7695 set dummy dlltool
7696 if test $build = $host ; then
7697 DLLTOOL="$2"
7698 else
7699 DLLTOOL="${ncn_tool_prefix}$2"
7705 if test -n "$LD"; then
7706 ac_cv_prog_LD=$LD
7707 elif test -n "$ac_cv_prog_LD"; then
7708 LD=$ac_cv_prog_LD
7711 if test -n "$ac_cv_prog_LD"; then
7712 for ncn_progname in ld; do
7713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7714 set dummy ${ncn_progname}; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_LD+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$LD"; then
7721 ac_cv_prog_LD="$LD" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_LD="${ncn_progname}"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 LD=$ac_cv_prog_LD
7741 if test -n "$LD"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7743 $as_echo "$LD" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 done
7753 for ncn_progname in ld; do
7754 if test -n "$ncn_tool_prefix"; then
7755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_LD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$LD"; then
7763 ac_cv_prog_LD="$LD" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7782 LD=$ac_cv_prog_LD
7783 if test -n "$LD"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7785 $as_echo "$LD" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7795 set dummy ${ncn_progname}; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_LD+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$LD"; then
7802 ac_cv_prog_LD="$LD" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_LD="${ncn_progname}"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 LD=$ac_cv_prog_LD
7822 if test -n "$LD"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7824 $as_echo "$LD" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7832 test -n "$ac_cv_prog_LD" && break
7833 done
7835 if test -z "$ac_cv_prog_LD" ; then
7836 set dummy ld
7837 if test $build = $host ; then
7838 LD="$2"
7839 else
7840 LD="${ncn_tool_prefix}$2"
7846 if test -n "$LIPO"; then
7847 ac_cv_prog_LIPO=$LIPO
7848 elif test -n "$ac_cv_prog_LIPO"; then
7849 LIPO=$ac_cv_prog_LIPO
7852 if test -n "$ac_cv_prog_LIPO"; then
7853 for ncn_progname in lipo; do
7854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7855 set dummy ${ncn_progname}; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if test "${ac_cv_prog_LIPO+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 if test -n "$LIPO"; then
7862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_LIPO="${ncn_progname}"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7875 done
7876 done
7877 IFS=$as_save_IFS
7881 LIPO=$ac_cv_prog_LIPO
7882 if test -n "$LIPO"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7884 $as_echo "$LIPO" >&6; }
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7891 done
7894 for ncn_progname in lipo; do
7895 if test -n "$ncn_tool_prefix"; then
7896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_LIPO+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$LIPO"; then
7904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7917 done
7918 done
7919 IFS=$as_save_IFS
7923 LIPO=$ac_cv_prog_LIPO
7924 if test -n "$LIPO"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7926 $as_echo "$LIPO" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7934 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7936 set dummy ${ncn_progname}; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if test "${ac_cv_prog_LIPO+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$LIPO"; then
7943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_prog_LIPO="${ncn_progname}"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7956 done
7957 done
7958 IFS=$as_save_IFS
7962 LIPO=$ac_cv_prog_LIPO
7963 if test -n "$LIPO"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7965 $as_echo "$LIPO" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 test -n "$ac_cv_prog_LIPO" && break
7974 done
7976 if test -z "$ac_cv_prog_LIPO" ; then
7977 set dummy lipo
7978 if test $build = $host ; then
7979 LIPO="$2"
7980 else
7981 LIPO="${ncn_tool_prefix}$2"
7987 if test -n "$NM"; then
7988 ac_cv_prog_NM=$NM
7989 elif test -n "$ac_cv_prog_NM"; then
7990 NM=$ac_cv_prog_NM
7993 if test -n "$ac_cv_prog_NM"; then
7994 for ncn_progname in nm; do
7995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7996 set dummy ${ncn_progname}; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_NM+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$NM"; then
8003 ac_cv_prog_NM="$NM" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_NM="${ncn_progname}"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 NM=$ac_cv_prog_NM
8023 if test -n "$NM"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8025 $as_echo "$NM" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8032 done
8035 for ncn_progname in nm; do
8036 if test -n "$ncn_tool_prefix"; then
8037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_NM+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$NM"; then
8045 ac_cv_prog_NM="$NM" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8064 NM=$ac_cv_prog_NM
8065 if test -n "$NM"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8067 $as_echo "$NM" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8077 set dummy ${ncn_progname}; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_NM+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 if test -n "$NM"; then
8084 ac_cv_prog_NM="$NM" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_NM="${ncn_progname}"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8097 done
8098 done
8099 IFS=$as_save_IFS
8103 NM=$ac_cv_prog_NM
8104 if test -n "$NM"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8106 $as_echo "$NM" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8114 test -n "$ac_cv_prog_NM" && break
8115 done
8117 if test -z "$ac_cv_prog_NM" ; then
8118 set dummy nm
8119 if test $build = $host ; then
8120 NM="$2"
8121 else
8122 NM="${ncn_tool_prefix}$2"
8128 if test -n "$RANLIB"; then
8129 ac_cv_prog_RANLIB=$RANLIB
8130 elif test -n "$ac_cv_prog_RANLIB"; then
8131 RANLIB=$ac_cv_prog_RANLIB
8134 if test -n "$ac_cv_prog_RANLIB"; then
8135 for ncn_progname in ranlib; do
8136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8137 set dummy ${ncn_progname}; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 if test -n "$RANLIB"; then
8144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_prog_RANLIB="${ncn_progname}"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8157 done
8158 done
8159 IFS=$as_save_IFS
8163 RANLIB=$ac_cv_prog_RANLIB
8164 if test -n "$RANLIB"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8166 $as_echo "$RANLIB" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8173 done
8176 for ncn_progname in ranlib; do
8177 if test -n "$ncn_tool_prefix"; then
8178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8179 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$RANLIB"; then
8186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8205 RANLIB=$ac_cv_prog_RANLIB
8206 if test -n "$RANLIB"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8208 $as_echo "$RANLIB" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8216 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8218 set dummy ${ncn_progname}; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test -n "$RANLIB"; then
8225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_RANLIB="${ncn_progname}"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8238 done
8239 done
8240 IFS=$as_save_IFS
8244 RANLIB=$ac_cv_prog_RANLIB
8245 if test -n "$RANLIB"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8247 $as_echo "$RANLIB" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 test -n "$ac_cv_prog_RANLIB" && break
8256 done
8258 if test -z "$ac_cv_prog_RANLIB" ; then
8259 RANLIB=":"
8264 if test -n "$STRIP"; then
8265 ac_cv_prog_STRIP=$STRIP
8266 elif test -n "$ac_cv_prog_STRIP"; then
8267 STRIP=$ac_cv_prog_STRIP
8270 if test -n "$ac_cv_prog_STRIP"; then
8271 for ncn_progname in strip; do
8272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8273 set dummy ${ncn_progname}; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if test "${ac_cv_prog_STRIP+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$STRIP"; then
8280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_prog_STRIP="${ncn_progname}"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8299 STRIP=$ac_cv_prog_STRIP
8300 if test -n "$STRIP"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8302 $as_echo "$STRIP" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8309 done
8312 for ncn_progname in strip; do
8313 if test -n "$ncn_tool_prefix"; then
8314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8315 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_STRIP+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$STRIP"; then
8322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 STRIP=$ac_cv_prog_STRIP
8342 if test -n "$STRIP"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8344 $as_echo "$STRIP" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8352 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354 set dummy ${ncn_progname}; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if test "${ac_cv_prog_STRIP+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$STRIP"; then
8361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_STRIP="${ncn_progname}"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8374 done
8375 done
8376 IFS=$as_save_IFS
8380 STRIP=$ac_cv_prog_STRIP
8381 if test -n "$STRIP"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8383 $as_echo "$STRIP" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 test -n "$ac_cv_prog_STRIP" && break
8392 done
8394 if test -z "$ac_cv_prog_STRIP" ; then
8395 STRIP=":"
8400 if test -n "$WINDRES"; then
8401 ac_cv_prog_WINDRES=$WINDRES
8402 elif test -n "$ac_cv_prog_WINDRES"; then
8403 WINDRES=$ac_cv_prog_WINDRES
8406 if test -n "$ac_cv_prog_WINDRES"; then
8407 for ncn_progname in windres; do
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409 set dummy ${ncn_progname}; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$WINDRES"; then
8416 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 ac_cv_prog_WINDRES="${ncn_progname}"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8429 done
8430 done
8431 IFS=$as_save_IFS
8435 WINDRES=$ac_cv_prog_WINDRES
8436 if test -n "$WINDRES"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8438 $as_echo "$WINDRES" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8445 done
8448 for ncn_progname in windres; do
8449 if test -n "$ncn_tool_prefix"; then
8450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 if test -n "$WINDRES"; then
8458 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8471 done
8472 done
8473 IFS=$as_save_IFS
8477 WINDRES=$ac_cv_prog_WINDRES
8478 if test -n "$WINDRES"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8480 $as_echo "$WINDRES" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8488 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8490 set dummy ${ncn_progname}; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test -n "$WINDRES"; then
8497 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_WINDRES="${ncn_progname}"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8510 done
8511 done
8512 IFS=$as_save_IFS
8516 WINDRES=$ac_cv_prog_WINDRES
8517 if test -n "$WINDRES"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8519 $as_echo "$WINDRES" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 test -n "$ac_cv_prog_WINDRES" && break
8528 done
8530 if test -z "$ac_cv_prog_WINDRES" ; then
8531 set dummy windres
8532 if test $build = $host ; then
8533 WINDRES="$2"
8534 else
8535 WINDRES="${ncn_tool_prefix}$2"
8541 if test -n "$WINDMC"; then
8542 ac_cv_prog_WINDMC=$WINDMC
8543 elif test -n "$ac_cv_prog_WINDMC"; then
8544 WINDMC=$ac_cv_prog_WINDMC
8547 if test -n "$ac_cv_prog_WINDMC"; then
8548 for ncn_progname in windmc; do
8549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550 set dummy ${ncn_progname}; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 if test -n "$WINDMC"; then
8557 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8558 else
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_prog_WINDMC="${ncn_progname}"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8570 done
8571 done
8572 IFS=$as_save_IFS
8576 WINDMC=$ac_cv_prog_WINDMC
8577 if test -n "$WINDMC"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8579 $as_echo "$WINDMC" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8586 done
8589 for ncn_progname in windmc; do
8590 if test -n "$ncn_tool_prefix"; then
8591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$WINDMC"; then
8599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8612 done
8613 done
8614 IFS=$as_save_IFS
8618 WINDMC=$ac_cv_prog_WINDMC
8619 if test -n "$WINDMC"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8621 $as_echo "$WINDMC" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8629 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8631 set dummy ${ncn_progname}; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$WINDMC"; then
8638 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_WINDMC="${ncn_progname}"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8657 WINDMC=$ac_cv_prog_WINDMC
8658 if test -n "$WINDMC"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8660 $as_echo "$WINDMC" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8668 test -n "$ac_cv_prog_WINDMC" && break
8669 done
8671 if test -z "$ac_cv_prog_WINDMC" ; then
8672 set dummy windmc
8673 if test $build = $host ; then
8674 WINDMC="$2"
8675 else
8676 WINDMC="${ncn_tool_prefix}$2"
8682 if test -n "$OBJCOPY"; then
8683 ac_cv_prog_OBJCOPY=$OBJCOPY
8684 elif test -n "$ac_cv_prog_OBJCOPY"; then
8685 OBJCOPY=$ac_cv_prog_OBJCOPY
8688 if test -n "$ac_cv_prog_OBJCOPY"; then
8689 for ncn_progname in objcopy; do
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691 set dummy ${ncn_progname}; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$OBJCOPY"; then
8698 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_prog_OBJCOPY="${ncn_progname}"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8717 OBJCOPY=$ac_cv_prog_OBJCOPY
8718 if test -n "$OBJCOPY"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8720 $as_echo "$OBJCOPY" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8727 done
8730 for ncn_progname in objcopy; do
8731 if test -n "$ncn_tool_prefix"; then
8732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8733 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -n "$OBJCOPY"; then
8740 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8759 OBJCOPY=$ac_cv_prog_OBJCOPY
8760 if test -n "$OBJCOPY"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8762 $as_echo "$OBJCOPY" >&6; }
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8772 set dummy ${ncn_progname}; ac_word=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 if test -n "$OBJCOPY"; then
8779 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8780 else
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in $PATH
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8788 ac_cv_prog_OBJCOPY="${ncn_progname}"
8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8792 done
8793 done
8794 IFS=$as_save_IFS
8798 OBJCOPY=$ac_cv_prog_OBJCOPY
8799 if test -n "$OBJCOPY"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8801 $as_echo "$OBJCOPY" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8809 test -n "$ac_cv_prog_OBJCOPY" && break
8810 done
8812 if test -z "$ac_cv_prog_OBJCOPY" ; then
8813 set dummy objcopy
8814 if test $build = $host ; then
8815 OBJCOPY="$2"
8816 else
8817 OBJCOPY="${ncn_tool_prefix}$2"
8823 if test -n "$OBJDUMP"; then
8824 ac_cv_prog_OBJDUMP=$OBJDUMP
8825 elif test -n "$ac_cv_prog_OBJDUMP"; then
8826 OBJDUMP=$ac_cv_prog_OBJDUMP
8829 if test -n "$ac_cv_prog_OBJDUMP"; then
8830 for ncn_progname in objdump; do
8831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8832 set dummy ${ncn_progname}; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$OBJDUMP"; then
8839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_OBJDUMP="${ncn_progname}"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8852 done
8853 done
8854 IFS=$as_save_IFS
8858 OBJDUMP=$ac_cv_prog_OBJDUMP
8859 if test -n "$OBJDUMP"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8861 $as_echo "$OBJDUMP" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8868 done
8871 for ncn_progname in objdump; do
8872 if test -n "$ncn_tool_prefix"; then
8873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8874 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 if test -n "$OBJDUMP"; then
8881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8894 done
8895 done
8896 IFS=$as_save_IFS
8900 OBJDUMP=$ac_cv_prog_OBJDUMP
8901 if test -n "$OBJDUMP"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8903 $as_echo "$OBJDUMP" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8913 set dummy ${ncn_progname}; ac_word=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 if test -n "$OBJDUMP"; then
8920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8921 else
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_prog_OBJDUMP="${ncn_progname}"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8933 done
8934 done
8935 IFS=$as_save_IFS
8939 OBJDUMP=$ac_cv_prog_OBJDUMP
8940 if test -n "$OBJDUMP"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8942 $as_echo "$OBJDUMP" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8950 test -n "$ac_cv_prog_OBJDUMP" && break
8951 done
8953 if test -z "$ac_cv_prog_OBJDUMP" ; then
8954 set dummy objdump
8955 if test $build = $host ; then
8956 OBJDUMP="$2"
8957 else
8958 OBJDUMP="${ncn_tool_prefix}$2"
8967 # Target tools.
8969 # Check whether --with-build-time-tools was given.
8970 if test "${with_build_time_tools+set}" = set; then :
8971 withval=$with_build_time_tools; case x"$withval" in
8972 x/*) ;;
8974 with_build_time_tools=
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8976 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8978 esac
8979 else
8980 with_build_time_tools=
8986 if test -n "$CC_FOR_TARGET"; then
8987 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8988 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8989 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8992 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8993 for ncn_progname in cc gcc; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995 set dummy ${ncn_progname}; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$CC_FOR_TARGET"; then
9002 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9021 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9022 if test -n "$CC_FOR_TARGET"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9024 $as_echo "$CC_FOR_TARGET" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9031 done
9034 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9035 for ncn_progname in cc gcc; do
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9037 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9038 if test -x $with_build_time_tools/${ncn_progname}; then
9039 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 break
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9047 done
9050 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9051 for ncn_progname in cc gcc; do
9052 if test -n "$ncn_target_tool_prefix"; then
9053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9054 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 if test -n "$CC_FOR_TARGET"; then
9061 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9062 else
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9070 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9074 done
9075 done
9076 IFS=$as_save_IFS
9080 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9081 if test -n "$CC_FOR_TARGET"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9083 $as_echo "$CC_FOR_TARGET" >&6; }
9084 else
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9091 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9093 set dummy ${ncn_progname}; ac_word=$2
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095 $as_echo_n "checking for $ac_word... " >&6; }
9096 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 if test -n "$CC_FOR_TARGET"; then
9100 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111 break 2
9113 done
9114 done
9115 IFS=$as_save_IFS
9119 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9120 if test -n "$CC_FOR_TARGET"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9122 $as_echo "$CC_FOR_TARGET" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9130 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9131 done
9134 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9135 set dummy cc gcc
9136 if test $build = $target ; then
9137 CC_FOR_TARGET="$2"
9138 else
9139 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9141 else
9142 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9147 if test -n "$CXX_FOR_TARGET"; then
9148 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9149 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9150 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9153 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9154 for ncn_progname in c++ g++ cxx gxx; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156 set dummy ${ncn_progname}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$CXX_FOR_TARGET"; then
9163 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9182 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9183 if test -n "$CXX_FOR_TARGET"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9185 $as_echo "$CXX_FOR_TARGET" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9192 done
9195 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9196 for ncn_progname in c++ g++ cxx gxx; do
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9199 if test -x $with_build_time_tools/${ncn_progname}; then
9200 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9202 $as_echo "yes" >&6; }
9203 break
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9208 done
9211 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9212 for ncn_progname in c++ g++ cxx gxx; do
9213 if test -n "$ncn_target_tool_prefix"; then
9214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 if test -n "$CXX_FOR_TARGET"; then
9222 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9223 else
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 for as_dir in $PATH
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9231 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9235 done
9236 done
9237 IFS=$as_save_IFS
9241 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9242 if test -n "$CXX_FOR_TARGET"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9244 $as_echo "$CXX_FOR_TARGET" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9252 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9254 set dummy ${ncn_progname}; ac_word=$2
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256 $as_echo_n "checking for $ac_word... " >&6; }
9257 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 if test -n "$CXX_FOR_TARGET"; then
9261 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9262 else
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 break 2
9274 done
9275 done
9276 IFS=$as_save_IFS
9280 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9281 if test -n "$CXX_FOR_TARGET"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9283 $as_echo "$CXX_FOR_TARGET" >&6; }
9284 else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9291 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9292 done
9295 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9296 set dummy c++ g++ cxx gxx
9297 if test $build = $target ; then
9298 CXX_FOR_TARGET="$2"
9299 else
9300 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9302 else
9303 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9308 if test -n "$GCC_FOR_TARGET"; then
9309 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9310 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9311 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9314 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9315 for ncn_progname in gcc; do
9316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9317 set dummy ${ncn_progname}; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 if test -n "$GCC_FOR_TARGET"; then
9324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9325 else
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9343 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9344 if test -n "$GCC_FOR_TARGET"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9346 $as_echo "$GCC_FOR_TARGET" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9353 done
9356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9357 for ncn_progname in gcc; do
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9359 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9360 if test -x $with_build_time_tools/${ncn_progname}; then
9361 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9363 $as_echo "yes" >&6; }
9364 break
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9369 done
9372 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9373 for ncn_progname in gcc; do
9374 if test -n "$ncn_target_tool_prefix"; then
9375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9376 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 if test -n "$GCC_FOR_TARGET"; then
9383 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9396 done
9397 done
9398 IFS=$as_save_IFS
9402 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9403 if test -n "$GCC_FOR_TARGET"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9405 $as_echo "$GCC_FOR_TARGET" >&6; }
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9413 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9415 set dummy ${ncn_progname}; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 if test -n "$GCC_FOR_TARGET"; then
9422 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9423 else
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9435 done
9436 done
9437 IFS=$as_save_IFS
9441 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9442 if test -n "$GCC_FOR_TARGET"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9444 $as_echo "$GCC_FOR_TARGET" >&6; }
9445 else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9452 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9453 done
9456 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9457 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9458 else
9459 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9464 if test -n "$GCJ_FOR_TARGET"; then
9465 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9466 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9467 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9470 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9471 for ncn_progname in gcj; do
9472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9473 set dummy ${ncn_progname}; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 if test -n "$GCJ_FOR_TARGET"; then
9480 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9481 else
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 break 2
9493 done
9494 done
9495 IFS=$as_save_IFS
9499 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9500 if test -n "$GCJ_FOR_TARGET"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9502 $as_echo "$GCJ_FOR_TARGET" >&6; }
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9509 done
9512 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9513 for ncn_progname in gcj; do
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9515 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9516 if test -x $with_build_time_tools/${ncn_progname}; then
9517 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9519 $as_echo "yes" >&6; }
9520 break
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9525 done
9528 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9529 for ncn_progname in gcj; do
9530 if test -n "$ncn_target_tool_prefix"; then
9531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9532 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 if test -n "$GCJ_FOR_TARGET"; then
9539 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9540 else
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9548 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9552 done
9553 done
9554 IFS=$as_save_IFS
9558 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9559 if test -n "$GCJ_FOR_TARGET"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9561 $as_echo "$GCJ_FOR_TARGET" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9569 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9571 set dummy ${ncn_progname}; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 if test -n "$GCJ_FOR_TARGET"; then
9578 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9591 done
9592 done
9593 IFS=$as_save_IFS
9597 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9598 if test -n "$GCJ_FOR_TARGET"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9600 $as_echo "$GCJ_FOR_TARGET" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9608 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9609 done
9612 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9613 set dummy gcj
9614 if test $build = $target ; then
9615 GCJ_FOR_TARGET="$2"
9616 else
9617 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9619 else
9620 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9625 if test -n "$GFORTRAN_FOR_TARGET"; then
9626 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9627 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9628 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9631 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9632 for ncn_progname in gfortran; do
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634 set dummy ${ncn_progname}; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test -n "$GFORTRAN_FOR_TARGET"; then
9641 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9642 else
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9660 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9661 if test -n "$GFORTRAN_FOR_TARGET"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9663 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9670 done
9673 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9674 for ncn_progname in gfortran; do
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9677 if test -x $with_build_time_tools/${ncn_progname}; then
9678 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9680 $as_echo "yes" >&6; }
9681 break
9682 else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9686 done
9689 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9690 for ncn_progname in gfortran; do
9691 if test -n "$ncn_target_tool_prefix"; then
9692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 if test -n "$GFORTRAN_FOR_TARGET"; then
9700 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9713 done
9714 done
9715 IFS=$as_save_IFS
9719 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9720 if test -n "$GFORTRAN_FOR_TARGET"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9722 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9730 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732 set dummy ${ncn_progname}; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 if test -n "$GFORTRAN_FOR_TARGET"; then
9739 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9752 done
9753 done
9754 IFS=$as_save_IFS
9758 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9759 if test -n "$GFORTRAN_FOR_TARGET"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9761 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9769 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9770 done
9773 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9774 set dummy gfortran
9775 if test $build = $target ; then
9776 GFORTRAN_FOR_TARGET="$2"
9777 else
9778 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9780 else
9781 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9786 cat > conftest.c << \EOF
9787 #ifdef __GNUC__
9788 gcc_yay;
9789 #endif
9791 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9792 have_gcc_for_target=yes
9793 else
9794 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9795 have_gcc_for_target=no
9797 rm conftest.c
9802 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9803 if test -n "$with_build_time_tools"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9805 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
9806 if test -x $with_build_time_tools/ar; then
9807 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9808 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9810 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9815 elif test $build != $host && test $have_gcc_for_target = yes; then
9816 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9817 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9818 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9821 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9822 # Extract the first word of "ar", so it can be a program name with args.
9823 set dummy ar; ac_word=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 case $AR_FOR_TARGET in
9830 [\\/]* | ?:[\\/]*)
9831 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $gcc_cv_tool_dirs
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9845 done
9846 done
9847 IFS=$as_save_IFS
9850 esac
9852 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9853 if test -n "$AR_FOR_TARGET"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9855 $as_echo "$AR_FOR_TARGET" >&6; }
9856 else
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9863 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9866 if test -n "$AR_FOR_TARGET"; then
9867 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9868 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9869 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9872 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9873 for ncn_progname in ar; do
9874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9875 set dummy ${ncn_progname}; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 if test -n "$AR_FOR_TARGET"; then
9882 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9883 else
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 for as_dir in $PATH
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9891 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 break 2
9895 done
9896 done
9897 IFS=$as_save_IFS
9901 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9902 if test -n "$AR_FOR_TARGET"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9904 $as_echo "$AR_FOR_TARGET" >&6; }
9905 else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9911 done
9914 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9915 for ncn_progname in ar; do
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9917 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9918 if test -x $with_build_time_tools/${ncn_progname}; then
9919 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9921 $as_echo "yes" >&6; }
9922 break
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9927 done
9930 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9931 for ncn_progname in ar; do
9932 if test -n "$ncn_target_tool_prefix"; then
9933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9934 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test -n "$AR_FOR_TARGET"; then
9941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9960 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9961 if test -n "$AR_FOR_TARGET"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9963 $as_echo "$AR_FOR_TARGET" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9971 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_progname}; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 if test -n "$AR_FOR_TARGET"; then
9980 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9989 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9993 done
9994 done
9995 IFS=$as_save_IFS
9999 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10000 if test -n "$AR_FOR_TARGET"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10002 $as_echo "$AR_FOR_TARGET" >&6; }
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10010 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10011 done
10014 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10015 set dummy ar
10016 if test $build = $target ; then
10017 AR_FOR_TARGET="$2"
10018 else
10019 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10021 else
10022 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10025 else
10026 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10032 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10033 if test -n "$with_build_time_tools"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10035 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10036 if test -x $with_build_time_tools/as; then
10037 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10038 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10040 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10045 elif test $build != $host && test $have_gcc_for_target = yes; then
10046 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10047 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10048 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10051 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10052 # Extract the first word of "as", so it can be a program name with args.
10053 set dummy as; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 case $AS_FOR_TARGET in
10060 [\\/]* | ?:[\\/]*)
10061 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $gcc_cv_tool_dirs
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10080 esac
10082 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10083 if test -n "$AS_FOR_TARGET"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10085 $as_echo "$AS_FOR_TARGET" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10093 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10096 if test -n "$AS_FOR_TARGET"; then
10097 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10098 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10099 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10102 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10103 for ncn_progname in as; do
10104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10105 set dummy ${ncn_progname}; ac_word=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 if test -n "$AS_FOR_TARGET"; then
10112 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10113 else
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10121 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10125 done
10126 done
10127 IFS=$as_save_IFS
10131 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10132 if test -n "$AS_FOR_TARGET"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10134 $as_echo "$AS_FOR_TARGET" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10141 done
10144 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10145 for ncn_progname in as; do
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10147 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10148 if test -x $with_build_time_tools/${ncn_progname}; then
10149 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10151 $as_echo "yes" >&6; }
10152 break
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10157 done
10160 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10161 for ncn_progname in as; do
10162 if test -n "$ncn_target_tool_prefix"; then
10163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 if test -n "$AS_FOR_TARGET"; then
10171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10172 else
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10180 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10184 done
10185 done
10186 IFS=$as_save_IFS
10190 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10191 if test -n "$AS_FOR_TARGET"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10193 $as_echo "$AS_FOR_TARGET" >&6; }
10194 else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10203 set dummy ${ncn_progname}; ac_word=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 if test -n "$AS_FOR_TARGET"; then
10210 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10211 else
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10215 IFS=$as_save_IFS
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10219 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 break 2
10223 done
10224 done
10225 IFS=$as_save_IFS
10229 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10230 if test -n "$AS_FOR_TARGET"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10232 $as_echo "$AS_FOR_TARGET" >&6; }
10233 else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10240 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10241 done
10244 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10245 set dummy as
10246 if test $build = $target ; then
10247 AS_FOR_TARGET="$2"
10248 else
10249 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10251 else
10252 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10255 else
10256 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10262 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10263 if test -n "$with_build_time_tools"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10265 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10266 if test -x $with_build_time_tools/dlltool; then
10267 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10268 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10270 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10271 else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10275 elif test $build != $host && test $have_gcc_for_target = yes; then
10276 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10277 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10278 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10281 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10282 # Extract the first word of "dlltool", so it can be a program name with args.
10283 set dummy dlltool; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 case $DLLTOOL_FOR_TARGET in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $gcc_cv_tool_dirs
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10301 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10305 done
10306 done
10307 IFS=$as_save_IFS
10310 esac
10312 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10313 if test -n "$DLLTOOL_FOR_TARGET"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10315 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10323 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10326 if test -n "$DLLTOOL_FOR_TARGET"; then
10327 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10328 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10329 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10332 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10333 for ncn_progname in dlltool; do
10334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10335 set dummy ${ncn_progname}; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 if test -n "$DLLTOOL_FOR_TARGET"; then
10342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10343 else
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 break 2
10355 done
10356 done
10357 IFS=$as_save_IFS
10361 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10362 if test -n "$DLLTOOL_FOR_TARGET"; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10364 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10365 else
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10371 done
10374 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10375 for ncn_progname in dlltool; do
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10377 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10378 if test -x $with_build_time_tools/${ncn_progname}; then
10379 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381 $as_echo "yes" >&6; }
10382 break
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10387 done
10390 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10391 for ncn_progname in dlltool; do
10392 if test -n "$ncn_target_tool_prefix"; then
10393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10394 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test -n "$DLLTOOL_FOR_TARGET"; then
10401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10402 else
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10420 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10421 if test -n "$DLLTOOL_FOR_TARGET"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10423 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10431 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10433 set dummy ${ncn_progname}; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 if test -n "$DLLTOOL_FOR_TARGET"; then
10440 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10441 else
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10453 done
10454 done
10455 IFS=$as_save_IFS
10459 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10460 if test -n "$DLLTOOL_FOR_TARGET"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10462 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10470 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10471 done
10474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10475 set dummy dlltool
10476 if test $build = $target ; then
10477 DLLTOOL_FOR_TARGET="$2"
10478 else
10479 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10481 else
10482 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10485 else
10486 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10492 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10493 if test -n "$with_build_time_tools"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10495 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10496 if test -x $with_build_time_tools/ld; then
10497 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10498 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10500 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10505 elif test $build != $host && test $have_gcc_for_target = yes; then
10506 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10507 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10508 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10511 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10512 # Extract the first word of "ld", so it can be a program name with args.
10513 set dummy ld; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $LD_FOR_TARGET in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $gcc_cv_tool_dirs
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10543 if test -n "$LD_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10545 $as_echo "$LD_FOR_TARGET" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10553 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10556 if test -n "$LD_FOR_TARGET"; then
10557 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10558 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10559 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10562 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10563 for ncn_progname in ld; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565 set dummy ${ncn_progname}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 if test -n "$LD_FOR_TARGET"; then
10572 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10585 done
10586 done
10587 IFS=$as_save_IFS
10591 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10592 if test -n "$LD_FOR_TARGET"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10594 $as_echo "$LD_FOR_TARGET" >&6; }
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10601 done
10604 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605 for ncn_progname in ld; do
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612 break
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10617 done
10620 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10621 for ncn_progname in ld; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$LD_FOR_TARGET"; then
10631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10650 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10651 if test -n "$LD_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10653 $as_echo "$LD_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10661 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663 set dummy ${ncn_progname}; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 if test -n "$LD_FOR_TARGET"; then
10670 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10685 IFS=$as_save_IFS
10689 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10690 if test -n "$LD_FOR_TARGET"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10692 $as_echo "$LD_FOR_TARGET" >&6; }
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10700 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10701 done
10704 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10705 set dummy ld
10706 if test $build = $target ; then
10707 LD_FOR_TARGET="$2"
10708 else
10709 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10711 else
10712 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10715 else
10716 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10722 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10723 if test -n "$with_build_time_tools"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10725 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
10726 if test -x $with_build_time_tools/lipo; then
10727 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10728 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10730 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10735 elif test $build != $host && test $have_gcc_for_target = yes; then
10736 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10737 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10738 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10741 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10742 # Extract the first word of "lipo", so it can be a program name with args.
10743 set dummy lipo; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 case $LIPO_FOR_TARGET in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $gcc_cv_tool_dirs
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10770 esac
10772 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10773 if test -n "$LIPO_FOR_TARGET"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10775 $as_echo "$LIPO_FOR_TARGET" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10783 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10786 if test -n "$LIPO_FOR_TARGET"; then
10787 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10788 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10789 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10792 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10793 for ncn_progname in lipo; do
10794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10795 set dummy ${ncn_progname}; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 if test -n "$LIPO_FOR_TARGET"; then
10802 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10815 done
10816 done
10817 IFS=$as_save_IFS
10821 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10822 if test -n "$LIPO_FOR_TARGET"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10824 $as_echo "$LIPO_FOR_TARGET" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10831 done
10834 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10835 for ncn_progname in lipo; do
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10837 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10838 if test -x $with_build_time_tools/${ncn_progname}; then
10839 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10841 $as_echo "yes" >&6; }
10842 break
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10847 done
10850 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10851 for ncn_progname in lipo; do
10852 if test -n "$ncn_target_tool_prefix"; then
10853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$LIPO_FOR_TARGET"; then
10861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10880 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10881 if test -n "$LIPO_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10883 $as_echo "$LIPO_FOR_TARGET" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893 set dummy ${ncn_progname}; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test -n "$LIPO_FOR_TARGET"; then
10900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10901 else
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10913 done
10914 done
10915 IFS=$as_save_IFS
10919 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10920 if test -n "$LIPO_FOR_TARGET"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10922 $as_echo "$LIPO_FOR_TARGET" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10930 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10931 done
10934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10935 set dummy lipo
10936 if test $build = $target ; then
10937 LIPO_FOR_TARGET="$2"
10938 else
10939 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10941 else
10942 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10945 else
10946 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10952 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10953 if test -n "$with_build_time_tools"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
10955 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
10956 if test -x $with_build_time_tools/nm; then
10957 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10958 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
10960 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10965 elif test $build != $host && test $have_gcc_for_target = yes; then
10966 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10967 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10968 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10971 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10972 # Extract the first word of "nm", so it can be a program name with args.
10973 set dummy nm; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 case $NM_FOR_TARGET in
10980 [\\/]* | ?:[\\/]*)
10981 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $gcc_cv_tool_dirs
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10995 done
10996 done
10997 IFS=$as_save_IFS
11000 esac
11002 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11003 if test -n "$NM_FOR_TARGET"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11005 $as_echo "$NM_FOR_TARGET" >&6; }
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11013 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11016 if test -n "$NM_FOR_TARGET"; then
11017 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11018 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11019 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11022 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11023 for ncn_progname in nm; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025 set dummy ${ncn_progname}; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 if test -n "$NM_FOR_TARGET"; then
11032 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11033 else
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11045 done
11046 done
11047 IFS=$as_save_IFS
11051 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11052 if test -n "$NM_FOR_TARGET"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11054 $as_echo "$NM_FOR_TARGET" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11061 done
11064 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11065 for ncn_progname in nm; do
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11067 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11068 if test -x $with_build_time_tools/${ncn_progname}; then
11069 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; }
11072 break
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11077 done
11080 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11081 for ncn_progname in nm; do
11082 if test -n "$ncn_target_tool_prefix"; then
11083 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11084 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if test -n "$NM_FOR_TARGET"; then
11091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11104 done
11105 done
11106 IFS=$as_save_IFS
11110 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11111 if test -n "$NM_FOR_TARGET"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11113 $as_echo "$NM_FOR_TARGET" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11123 set dummy ${ncn_progname}; ac_word=$2
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 if test -n "$NM_FOR_TARGET"; then
11130 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11131 else
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 break 2
11143 done
11144 done
11145 IFS=$as_save_IFS
11149 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11150 if test -n "$NM_FOR_TARGET"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11152 $as_echo "$NM_FOR_TARGET" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11160 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11161 done
11164 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11165 set dummy nm
11166 if test $build = $target ; then
11167 NM_FOR_TARGET="$2"
11168 else
11169 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11171 else
11172 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11175 else
11176 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11182 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11183 if test -n "$with_build_time_tools"; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11185 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11186 if test -x $with_build_time_tools/objdump; then
11187 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11188 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11190 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11195 elif test $build != $host && test $have_gcc_for_target = yes; then
11196 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11197 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11198 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11201 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11202 # Extract the first word of "objdump", so it can be a program name with args.
11203 set dummy objdump; ac_word=$2
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205 $as_echo_n "checking for $ac_word... " >&6; }
11206 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 case $OBJDUMP_FOR_TARGET in
11210 [\\/]* | ?:[\\/]*)
11211 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $gcc_cv_tool_dirs
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11221 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11225 done
11226 done
11227 IFS=$as_save_IFS
11230 esac
11232 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11233 if test -n "$OBJDUMP_FOR_TARGET"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11235 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11243 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11246 if test -n "$OBJDUMP_FOR_TARGET"; then
11247 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11248 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11249 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11252 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11253 for ncn_progname in objdump; do
11254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11255 set dummy ${ncn_progname}; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 if test -n "$OBJDUMP_FOR_TARGET"; then
11262 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11263 else
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11271 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 break 2
11275 done
11276 done
11277 IFS=$as_save_IFS
11281 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11282 if test -n "$OBJDUMP_FOR_TARGET"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11284 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11291 done
11294 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11295 for ncn_progname in objdump; do
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11297 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11298 if test -x $with_build_time_tools/${ncn_progname}; then
11299 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; }
11302 break
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11307 done
11310 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11311 for ncn_progname in objdump; do
11312 if test -n "$ncn_target_tool_prefix"; then
11313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$OBJDUMP_FOR_TARGET"; then
11321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11334 done
11335 done
11336 IFS=$as_save_IFS
11340 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11341 if test -n "$OBJDUMP_FOR_TARGET"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11351 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11353 set dummy ${ncn_progname}; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 if test -n "$OBJDUMP_FOR_TARGET"; then
11360 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11361 else
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11369 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11373 done
11374 done
11375 IFS=$as_save_IFS
11379 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11380 if test -n "$OBJDUMP_FOR_TARGET"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11382 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11390 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11391 done
11394 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11395 set dummy objdump
11396 if test $build = $target ; then
11397 OBJDUMP_FOR_TARGET="$2"
11398 else
11399 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11401 else
11402 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11405 else
11406 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11412 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11413 if test -n "$with_build_time_tools"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11415 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11416 if test -x $with_build_time_tools/ranlib; then
11417 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11418 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11420 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11425 elif test $build != $host && test $have_gcc_for_target = yes; then
11426 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11427 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11428 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11431 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11432 # Extract the first word of "ranlib", so it can be a program name with args.
11433 set dummy ranlib; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 case $RANLIB_FOR_TARGET in
11440 [\\/]* | ?:[\\/]*)
11441 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $gcc_cv_tool_dirs
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11455 done
11456 done
11457 IFS=$as_save_IFS
11460 esac
11462 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11463 if test -n "$RANLIB_FOR_TARGET"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11465 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11473 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11476 if test -n "$RANLIB_FOR_TARGET"; then
11477 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11478 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11479 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11482 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11483 for ncn_progname in ranlib; do
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485 set dummy ${ncn_progname}; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 if test -n "$RANLIB_FOR_TARGET"; then
11492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11493 else
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11505 done
11506 done
11507 IFS=$as_save_IFS
11511 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11512 if test -n "$RANLIB_FOR_TARGET"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11514 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11521 done
11524 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11525 for ncn_progname in ranlib; do
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11527 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11528 if test -x $with_build_time_tools/${ncn_progname}; then
11529 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11532 break
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11537 done
11540 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11541 for ncn_progname in ranlib; do
11542 if test -n "$ncn_target_tool_prefix"; then
11543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11544 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test -n "$RANLIB_FOR_TARGET"; then
11551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11552 else
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11571 if test -n "$RANLIB_FOR_TARGET"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11581 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11583 set dummy ${ncn_progname}; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test -n "$RANLIB_FOR_TARGET"; then
11590 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11591 else
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11599 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11603 done
11604 done
11605 IFS=$as_save_IFS
11609 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11610 if test -n "$RANLIB_FOR_TARGET"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11612 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11620 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11621 done
11624 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11625 set dummy ranlib
11626 if test $build = $target ; then
11627 RANLIB_FOR_TARGET="$2"
11628 else
11629 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11631 else
11632 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11635 else
11636 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11642 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11643 if test -n "$with_build_time_tools"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11645 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
11646 if test -x $with_build_time_tools/strip; then
11647 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11648 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11650 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11655 elif test $build != $host && test $have_gcc_for_target = yes; then
11656 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11657 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11658 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11661 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11662 # Extract the first word of "strip", so it can be a program name with args.
11663 set dummy strip; ac_word=$2
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 case $STRIP_FOR_TARGET in
11670 [\\/]* | ?:[\\/]*)
11671 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $gcc_cv_tool_dirs
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11685 done
11686 done
11687 IFS=$as_save_IFS
11690 esac
11692 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11693 if test -n "$STRIP_FOR_TARGET"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11695 $as_echo "$STRIP_FOR_TARGET" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11703 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11706 if test -n "$STRIP_FOR_TARGET"; then
11707 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11708 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11709 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11712 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11713 for ncn_progname in strip; do
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715 set dummy ${ncn_progname}; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 if test -n "$STRIP_FOR_TARGET"; then
11722 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11723 else
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11731 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11737 IFS=$as_save_IFS
11741 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11742 if test -n "$STRIP_FOR_TARGET"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11744 $as_echo "$STRIP_FOR_TARGET" >&6; }
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11751 done
11754 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11755 for ncn_progname in strip; do
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11757 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11758 if test -x $with_build_time_tools/${ncn_progname}; then
11759 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 break
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11767 done
11770 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11771 for ncn_progname in strip; do
11772 if test -n "$ncn_target_tool_prefix"; then
11773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 if test -n "$STRIP_FOR_TARGET"; then
11781 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11796 IFS=$as_save_IFS
11800 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11801 if test -n "$STRIP_FOR_TARGET"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11803 $as_echo "$STRIP_FOR_TARGET" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11811 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11813 set dummy ${ncn_progname}; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 if test -n "$STRIP_FOR_TARGET"; then
11820 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11833 done
11834 done
11835 IFS=$as_save_IFS
11839 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11840 if test -n "$STRIP_FOR_TARGET"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11842 $as_echo "$STRIP_FOR_TARGET" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11850 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11851 done
11854 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11855 set dummy strip
11856 if test $build = $target ; then
11857 STRIP_FOR_TARGET="$2"
11858 else
11859 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11861 else
11862 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11865 else
11866 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11872 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11873 if test -n "$with_build_time_tools"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11875 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
11876 if test -x $with_build_time_tools/windres; then
11877 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11878 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11880 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11885 elif test $build != $host && test $have_gcc_for_target = yes; then
11886 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11887 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11888 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11891 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11892 # Extract the first word of "windres", so it can be a program name with args.
11893 set dummy windres; ac_word=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 case $WINDRES_FOR_TARGET in
11900 [\\/]* | ?:[\\/]*)
11901 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $gcc_cv_tool_dirs
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11920 esac
11922 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11923 if test -n "$WINDRES_FOR_TARGET"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11925 $as_echo "$WINDRES_FOR_TARGET" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11933 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11936 if test -n "$WINDRES_FOR_TARGET"; then
11937 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11938 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11939 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11942 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11943 for ncn_progname in windres; do
11944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11945 set dummy ${ncn_progname}; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 if test -n "$WINDRES_FOR_TARGET"; then
11952 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11971 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11972 if test -n "$WINDRES_FOR_TARGET"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11974 $as_echo "$WINDRES_FOR_TARGET" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11981 done
11984 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11985 for ncn_progname in windres; do
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11987 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11988 if test -x $with_build_time_tools/${ncn_progname}; then
11989 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; }
11992 break
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11997 done
12000 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12001 for ncn_progname in windres; do
12002 if test -n "$ncn_target_tool_prefix"; then
12003 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$WINDRES_FOR_TARGET"; then
12011 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12024 done
12025 done
12026 IFS=$as_save_IFS
12030 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12031 if test -n "$WINDRES_FOR_TARGET"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12033 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12041 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12043 set dummy ${ncn_progname}; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 if test -n "$WINDRES_FOR_TARGET"; then
12050 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12059 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 break 2
12063 done
12064 done
12065 IFS=$as_save_IFS
12069 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12070 if test -n "$WINDRES_FOR_TARGET"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12072 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12080 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12081 done
12084 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12085 set dummy windres
12086 if test $build = $target ; then
12087 WINDRES_FOR_TARGET="$2"
12088 else
12089 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12091 else
12092 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12095 else
12096 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12102 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12103 if test -n "$with_build_time_tools"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12105 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12106 if test -x $with_build_time_tools/windmc; then
12107 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12108 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12110 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12115 elif test $build != $host && test $have_gcc_for_target = yes; then
12116 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12117 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12118 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12121 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12122 # Extract the first word of "windmc", so it can be a program name with args.
12123 set dummy windmc; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $WINDMC_FOR_TARGET in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $gcc_cv_tool_dirs
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12150 esac
12152 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12153 if test -n "$WINDMC_FOR_TARGET"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12155 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12163 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12166 if test -n "$WINDMC_FOR_TARGET"; then
12167 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12168 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12169 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12172 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12173 for ncn_progname in windmc; do
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175 set dummy ${ncn_progname}; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test -n "$WINDMC_FOR_TARGET"; then
12182 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12191 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12195 done
12196 done
12197 IFS=$as_save_IFS
12201 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12202 if test -n "$WINDMC_FOR_TARGET"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12204 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12211 done
12214 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12215 for ncn_progname in windmc; do
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12217 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12218 if test -x $with_build_time_tools/${ncn_progname}; then
12219 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12222 break
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12227 done
12230 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12231 for ncn_progname in windmc; do
12232 if test -n "$ncn_target_tool_prefix"; then
12233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$WINDMC_FOR_TARGET"; then
12241 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12254 done
12255 done
12256 IFS=$as_save_IFS
12260 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12261 if test -n "$WINDMC_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12263 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12273 set dummy ${ncn_progname}; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if test -n "$WINDMC_FOR_TARGET"; then
12280 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12281 else
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12293 done
12294 done
12295 IFS=$as_save_IFS
12299 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12300 if test -n "$WINDMC_FOR_TARGET"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12302 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12310 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12311 done
12314 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12315 set dummy windmc
12316 if test $build = $target ; then
12317 WINDMC_FOR_TARGET="$2"
12318 else
12319 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12321 else
12322 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12325 else
12326 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12330 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12333 $as_echo_n "checking where to find the target ar... " >&6; }
12334 if test "x${build}" != "x${host}" ; then
12335 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12336 # We already found the complete path
12337 ac_dir=`dirname $AR_FOR_TARGET`
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12339 $as_echo "pre-installed in $ac_dir" >&6; }
12340 else
12341 # Canadian cross, just use what we found
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12343 $as_echo "pre-installed" >&6; }
12345 else
12346 ok=yes
12347 case " ${configdirs} " in
12348 *" binutils "*) ;;
12349 *) ok=no ;;
12350 esac
12352 if test $ok = yes; then
12353 # An in-tree tool is available and we can use it
12354 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12356 $as_echo "just compiled" >&6; }
12357 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12358 # We already found the complete path
12359 ac_dir=`dirname $AR_FOR_TARGET`
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12361 $as_echo "pre-installed in $ac_dir" >&6; }
12362 elif test "x$target" = "x$host"; then
12363 # We can use an host tool
12364 AR_FOR_TARGET='$(AR)'
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12366 $as_echo "host tool" >&6; }
12367 else
12368 # We need a cross tool
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12370 $as_echo "pre-installed" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12375 $as_echo_n "checking where to find the target as... " >&6; }
12376 if test "x${build}" != "x${host}" ; then
12377 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12378 # We already found the complete path
12379 ac_dir=`dirname $AS_FOR_TARGET`
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12381 $as_echo "pre-installed in $ac_dir" >&6; }
12382 else
12383 # Canadian cross, just use what we found
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12385 $as_echo "pre-installed" >&6; }
12387 else
12388 ok=yes
12389 case " ${configdirs} " in
12390 *" gas "*) ;;
12391 *) ok=no ;;
12392 esac
12394 if test $ok = yes; then
12395 # An in-tree tool is available and we can use it
12396 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12398 $as_echo "just compiled" >&6; }
12399 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12400 # We already found the complete path
12401 ac_dir=`dirname $AS_FOR_TARGET`
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12403 $as_echo "pre-installed in $ac_dir" >&6; }
12404 elif test "x$target" = "x$host"; then
12405 # We can use an host tool
12406 AS_FOR_TARGET='$(AS)'
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12408 $as_echo "host tool" >&6; }
12409 else
12410 # We need a cross tool
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12412 $as_echo "pre-installed" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12417 $as_echo_n "checking where to find the target cc... " >&6; }
12418 if test "x${build}" != "x${host}" ; then
12419 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12420 # We already found the complete path
12421 ac_dir=`dirname $CC_FOR_TARGET`
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12423 $as_echo "pre-installed in $ac_dir" >&6; }
12424 else
12425 # Canadian cross, just use what we found
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12427 $as_echo "pre-installed" >&6; }
12429 else
12430 ok=yes
12431 case " ${configdirs} " in
12432 *" gcc "*) ;;
12433 *) ok=no ;;
12434 esac
12436 if test $ok = yes; then
12437 # An in-tree tool is available and we can use it
12438 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12440 $as_echo "just compiled" >&6; }
12441 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12442 # We already found the complete path
12443 ac_dir=`dirname $CC_FOR_TARGET`
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12445 $as_echo "pre-installed in $ac_dir" >&6; }
12446 elif test "x$target" = "x$host"; then
12447 # We can use an host tool
12448 CC_FOR_TARGET='$(CC)'
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12450 $as_echo "host tool" >&6; }
12451 else
12452 # We need a cross tool
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12454 $as_echo "pre-installed" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12459 $as_echo_n "checking where to find the target c++... " >&6; }
12460 if test "x${build}" != "x${host}" ; then
12461 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12462 # We already found the complete path
12463 ac_dir=`dirname $CXX_FOR_TARGET`
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12465 $as_echo "pre-installed in $ac_dir" >&6; }
12466 else
12467 # Canadian cross, just use what we found
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12469 $as_echo "pre-installed" >&6; }
12471 else
12472 ok=yes
12473 case " ${configdirs} " in
12474 *" gcc "*) ;;
12475 *) ok=no ;;
12476 esac
12477 case ,${enable_languages}, in
12478 *,c++,*) ;;
12479 *) ok=no ;;
12480 esac
12481 if test $ok = yes; then
12482 # An in-tree tool is available and we can use it
12483 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12485 $as_echo "just compiled" >&6; }
12486 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12487 # We already found the complete path
12488 ac_dir=`dirname $CXX_FOR_TARGET`
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12490 $as_echo "pre-installed in $ac_dir" >&6; }
12491 elif test "x$target" = "x$host"; then
12492 # We can use an host tool
12493 CXX_FOR_TARGET='$(CXX)'
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12495 $as_echo "host tool" >&6; }
12496 else
12497 # We need a cross tool
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12499 $as_echo "pre-installed" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12504 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12505 if test "x${build}" != "x${host}" ; then
12506 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12507 # We already found the complete path
12508 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12510 $as_echo "pre-installed in $ac_dir" >&6; }
12511 else
12512 # Canadian cross, just use what we found
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12514 $as_echo "pre-installed" >&6; }
12516 else
12517 ok=yes
12518 case " ${configdirs} " in
12519 *" gcc "*) ;;
12520 *) ok=no ;;
12521 esac
12522 case ,${enable_languages}, in
12523 *,c++,*) ;;
12524 *) ok=no ;;
12525 esac
12526 if test $ok = yes; then
12527 # An in-tree tool is available and we can use it
12528 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'
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12530 $as_echo "just compiled" >&6; }
12531 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12532 # We already found the complete path
12533 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12535 $as_echo "pre-installed in $ac_dir" >&6; }
12536 elif test "x$target" = "x$host"; then
12537 # We can use an host tool
12538 RAW_CXX_FOR_TARGET='$(CXX)'
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12540 $as_echo "host tool" >&6; }
12541 else
12542 # We need a cross tool
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12544 $as_echo "pre-installed" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12549 $as_echo_n "checking where to find the target dlltool... " >&6; }
12550 if test "x${build}" != "x${host}" ; then
12551 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12552 # We already found the complete path
12553 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12555 $as_echo "pre-installed in $ac_dir" >&6; }
12556 else
12557 # Canadian cross, just use what we found
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12559 $as_echo "pre-installed" >&6; }
12561 else
12562 ok=yes
12563 case " ${configdirs} " in
12564 *" binutils "*) ;;
12565 *) ok=no ;;
12566 esac
12568 if test $ok = yes; then
12569 # An in-tree tool is available and we can use it
12570 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12572 $as_echo "just compiled" >&6; }
12573 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12574 # We already found the complete path
12575 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12577 $as_echo "pre-installed in $ac_dir" >&6; }
12578 elif test "x$target" = "x$host"; then
12579 # We can use an host tool
12580 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12582 $as_echo "host tool" >&6; }
12583 else
12584 # We need a cross tool
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12586 $as_echo "pre-installed" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12591 $as_echo_n "checking where to find the target gcc... " >&6; }
12592 if test "x${build}" != "x${host}" ; then
12593 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12594 # We already found the complete path
12595 ac_dir=`dirname $GCC_FOR_TARGET`
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12597 $as_echo "pre-installed in $ac_dir" >&6; }
12598 else
12599 # Canadian cross, just use what we found
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12601 $as_echo "pre-installed" >&6; }
12603 else
12604 ok=yes
12605 case " ${configdirs} " in
12606 *" gcc "*) ;;
12607 *) ok=no ;;
12608 esac
12610 if test $ok = yes; then
12611 # An in-tree tool is available and we can use it
12612 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12614 $as_echo "just compiled" >&6; }
12615 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12616 # We already found the complete path
12617 ac_dir=`dirname $GCC_FOR_TARGET`
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12619 $as_echo "pre-installed in $ac_dir" >&6; }
12620 elif test "x$target" = "x$host"; then
12621 # We can use an host tool
12622 GCC_FOR_TARGET='$()'
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12624 $as_echo "host tool" >&6; }
12625 else
12626 # We need a cross tool
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12628 $as_echo "pre-installed" >&6; }
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12633 $as_echo_n "checking where to find the target gcj... " >&6; }
12634 if test "x${build}" != "x${host}" ; then
12635 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12636 # We already found the complete path
12637 ac_dir=`dirname $GCJ_FOR_TARGET`
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12639 $as_echo "pre-installed in $ac_dir" >&6; }
12640 else
12641 # Canadian cross, just use what we found
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12643 $as_echo "pre-installed" >&6; }
12645 else
12646 ok=yes
12647 case " ${configdirs} " in
12648 *" gcc "*) ;;
12649 *) ok=no ;;
12650 esac
12651 case ,${enable_languages}, in
12652 *,java,*) ;;
12653 *) ok=no ;;
12654 esac
12655 if test $ok = yes; then
12656 # An in-tree tool is available and we can use it
12657 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12659 $as_echo "just compiled" >&6; }
12660 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12661 # We already found the complete path
12662 ac_dir=`dirname $GCJ_FOR_TARGET`
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12664 $as_echo "pre-installed in $ac_dir" >&6; }
12665 elif test "x$target" = "x$host"; then
12666 # We can use an host tool
12667 GCJ_FOR_TARGET='$(GCJ)'
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12669 $as_echo "host tool" >&6; }
12670 else
12671 # We need a cross tool
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12673 $as_echo "pre-installed" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12678 $as_echo_n "checking where to find the target gfortran... " >&6; }
12679 if test "x${build}" != "x${host}" ; then
12680 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12681 # We already found the complete path
12682 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12684 $as_echo "pre-installed in $ac_dir" >&6; }
12685 else
12686 # Canadian cross, just use what we found
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12688 $as_echo "pre-installed" >&6; }
12690 else
12691 ok=yes
12692 case " ${configdirs} " in
12693 *" gcc "*) ;;
12694 *) ok=no ;;
12695 esac
12696 case ,${enable_languages}, in
12697 *,fortran,*) ;;
12698 *) ok=no ;;
12699 esac
12700 if test $ok = yes; then
12701 # An in-tree tool is available and we can use it
12702 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12704 $as_echo "just compiled" >&6; }
12705 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12706 # We already found the complete path
12707 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12709 $as_echo "pre-installed in $ac_dir" >&6; }
12710 elif test "x$target" = "x$host"; then
12711 # We can use an host tool
12712 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12714 $as_echo "host tool" >&6; }
12715 else
12716 # We need a cross tool
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12718 $as_echo "pre-installed" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12723 $as_echo_n "checking where to find the target ld... " >&6; }
12724 if test "x${build}" != "x${host}" ; then
12725 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12726 # We already found the complete path
12727 ac_dir=`dirname $LD_FOR_TARGET`
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12729 $as_echo "pre-installed in $ac_dir" >&6; }
12730 else
12731 # Canadian cross, just use what we found
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12733 $as_echo "pre-installed" >&6; }
12735 else
12736 ok=yes
12737 case " ${configdirs} " in
12738 *" ld "*) ;;
12739 *) ok=no ;;
12740 esac
12742 if test $ok = yes; then
12743 # An in-tree tool is available and we can use it
12744 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12746 $as_echo "just compiled" >&6; }
12747 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12748 # We already found the complete path
12749 ac_dir=`dirname $LD_FOR_TARGET`
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12751 $as_echo "pre-installed in $ac_dir" >&6; }
12752 elif test "x$target" = "x$host"; then
12753 # We can use an host tool
12754 LD_FOR_TARGET='$(LD)'
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12756 $as_echo "host tool" >&6; }
12757 else
12758 # We need a cross tool
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12760 $as_echo "pre-installed" >&6; }
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12765 $as_echo_n "checking where to find the target lipo... " >&6; }
12766 if test "x${build}" != "x${host}" ; then
12767 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12768 # We already found the complete path
12769 ac_dir=`dirname $LIPO_FOR_TARGET`
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12771 $as_echo "pre-installed in $ac_dir" >&6; }
12772 else
12773 # Canadian cross, just use what we found
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12775 $as_echo "pre-installed" >&6; }
12777 else
12778 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12779 # We already found the complete path
12780 ac_dir=`dirname $LIPO_FOR_TARGET`
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12782 $as_echo "pre-installed in $ac_dir" >&6; }
12783 elif test "x$target" = "x$host"; then
12784 # We can use an host tool
12785 LIPO_FOR_TARGET='$(LIPO)'
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12787 $as_echo "host tool" >&6; }
12788 else
12789 # We need a cross tool
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12791 $as_echo "pre-installed" >&6; }
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12796 $as_echo_n "checking where to find the target nm... " >&6; }
12797 if test "x${build}" != "x${host}" ; then
12798 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12799 # We already found the complete path
12800 ac_dir=`dirname $NM_FOR_TARGET`
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12802 $as_echo "pre-installed in $ac_dir" >&6; }
12803 else
12804 # Canadian cross, just use what we found
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12806 $as_echo "pre-installed" >&6; }
12808 else
12809 ok=yes
12810 case " ${configdirs} " in
12811 *" binutils "*) ;;
12812 *) ok=no ;;
12813 esac
12815 if test $ok = yes; then
12816 # An in-tree tool is available and we can use it
12817 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12819 $as_echo "just compiled" >&6; }
12820 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12821 # We already found the complete path
12822 ac_dir=`dirname $NM_FOR_TARGET`
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12824 $as_echo "pre-installed in $ac_dir" >&6; }
12825 elif test "x$target" = "x$host"; then
12826 # We can use an host tool
12827 NM_FOR_TARGET='$(NM)'
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12829 $as_echo "host tool" >&6; }
12830 else
12831 # We need a cross tool
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12833 $as_echo "pre-installed" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12838 $as_echo_n "checking where to find the target objdump... " >&6; }
12839 if test "x${build}" != "x${host}" ; then
12840 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12841 # We already found the complete path
12842 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12844 $as_echo "pre-installed in $ac_dir" >&6; }
12845 else
12846 # Canadian cross, just use what we found
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12848 $as_echo "pre-installed" >&6; }
12850 else
12851 ok=yes
12852 case " ${configdirs} " in
12853 *" binutils "*) ;;
12854 *) ok=no ;;
12855 esac
12857 if test $ok = yes; then
12858 # An in-tree tool is available and we can use it
12859 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12861 $as_echo "just compiled" >&6; }
12862 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12863 # We already found the complete path
12864 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12866 $as_echo "pre-installed in $ac_dir" >&6; }
12867 elif test "x$target" = "x$host"; then
12868 # We can use an host tool
12869 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12871 $as_echo "host tool" >&6; }
12872 else
12873 # We need a cross tool
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12875 $as_echo "pre-installed" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12880 $as_echo_n "checking where to find the target ranlib... " >&6; }
12881 if test "x${build}" != "x${host}" ; then
12882 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12883 # We already found the complete path
12884 ac_dir=`dirname $RANLIB_FOR_TARGET`
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12886 $as_echo "pre-installed in $ac_dir" >&6; }
12887 else
12888 # Canadian cross, just use what we found
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12890 $as_echo "pre-installed" >&6; }
12892 else
12893 ok=yes
12894 case " ${configdirs} " in
12895 *" binutils "*) ;;
12896 *) ok=no ;;
12897 esac
12899 if test $ok = yes; then
12900 # An in-tree tool is available and we can use it
12901 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12903 $as_echo "just compiled" >&6; }
12904 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12905 # We already found the complete path
12906 ac_dir=`dirname $RANLIB_FOR_TARGET`
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12908 $as_echo "pre-installed in $ac_dir" >&6; }
12909 elif test "x$target" = "x$host"; then
12910 # We can use an host tool
12911 RANLIB_FOR_TARGET='$(RANLIB)'
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12913 $as_echo "host tool" >&6; }
12914 else
12915 # We need a cross tool
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12917 $as_echo "pre-installed" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
12922 $as_echo_n "checking where to find the target strip... " >&6; }
12923 if test "x${build}" != "x${host}" ; then
12924 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12925 # We already found the complete path
12926 ac_dir=`dirname $STRIP_FOR_TARGET`
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12928 $as_echo "pre-installed in $ac_dir" >&6; }
12929 else
12930 # Canadian cross, just use what we found
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12932 $as_echo "pre-installed" >&6; }
12934 else
12935 ok=yes
12936 case " ${configdirs} " in
12937 *" binutils "*) ;;
12938 *) ok=no ;;
12939 esac
12941 if test $ok = yes; then
12942 # An in-tree tool is available and we can use it
12943 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12945 $as_echo "just compiled" >&6; }
12946 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12947 # We already found the complete path
12948 ac_dir=`dirname $STRIP_FOR_TARGET`
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12950 $as_echo "pre-installed in $ac_dir" >&6; }
12951 elif test "x$target" = "x$host"; then
12952 # We can use an host tool
12953 STRIP_FOR_TARGET='$(STRIP)'
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12955 $as_echo "host tool" >&6; }
12956 else
12957 # We need a cross tool
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12959 $as_echo "pre-installed" >&6; }
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
12964 $as_echo_n "checking where to find the target windres... " >&6; }
12965 if test "x${build}" != "x${host}" ; then
12966 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12967 # We already found the complete path
12968 ac_dir=`dirname $WINDRES_FOR_TARGET`
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12970 $as_echo "pre-installed in $ac_dir" >&6; }
12971 else
12972 # Canadian cross, just use what we found
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12974 $as_echo "pre-installed" >&6; }
12976 else
12977 ok=yes
12978 case " ${configdirs} " in
12979 *" binutils "*) ;;
12980 *) ok=no ;;
12981 esac
12983 if test $ok = yes; then
12984 # An in-tree tool is available and we can use it
12985 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12987 $as_echo "just compiled" >&6; }
12988 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12989 # We already found the complete path
12990 ac_dir=`dirname $WINDRES_FOR_TARGET`
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12992 $as_echo "pre-installed in $ac_dir" >&6; }
12993 elif test "x$target" = "x$host"; then
12994 # We can use an host tool
12995 WINDRES_FOR_TARGET='$(WINDRES)'
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12997 $as_echo "host tool" >&6; }
12998 else
12999 # We need a cross tool
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13001 $as_echo "pre-installed" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13006 $as_echo_n "checking where to find the target windmc... " >&6; }
13007 if test "x${build}" != "x${host}" ; then
13008 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13009 # We already found the complete path
13010 ac_dir=`dirname $WINDMC_FOR_TARGET`
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13012 $as_echo "pre-installed in $ac_dir" >&6; }
13013 else
13014 # Canadian cross, just use what we found
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13016 $as_echo "pre-installed" >&6; }
13018 else
13019 ok=yes
13020 case " ${configdirs} " in
13021 *" binutils "*) ;;
13022 *) ok=no ;;
13023 esac
13025 if test $ok = yes; then
13026 # An in-tree tool is available and we can use it
13027 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13029 $as_echo "just compiled" >&6; }
13030 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13031 # We already found the complete path
13032 ac_dir=`dirname $WINDMC_FOR_TARGET`
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13034 $as_echo "pre-installed in $ac_dir" >&6; }
13035 elif test "x$target" = "x$host"; then
13036 # We can use an host tool
13037 WINDMC_FOR_TARGET='$(WINDMC)'
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13039 $as_echo "host tool" >&6; }
13040 else
13041 # We need a cross tool
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13043 $as_echo "pre-installed" >&6; }
13051 # Certain tools may need extra flags.
13052 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13053 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13054 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13056 # When building target libraries, except in a Canadian cross, we use
13057 # the same toolchain as the compiler we just built.
13058 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13059 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13060 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13061 if test $host = $build; then
13062 case " $configdirs " in
13063 *" gcc "*)
13064 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13065 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13066 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13068 esac
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13076 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13077 # Check whether --enable-maintainer-mode was given.
13078 if test "${enable_maintainer_mode+set}" = set; then :
13079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13080 else
13081 USE_MAINTAINER_MODE=no
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13085 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13088 if test "$USE_MAINTAINER_MODE" = yes; then
13089 MAINTAINER_MODE_TRUE=
13090 MAINTAINER_MODE_FALSE='#'
13091 else
13092 MAINTAINER_MODE_TRUE='#'
13093 MAINTAINER_MODE_FALSE=
13095 MAINT=$MAINTAINER_MODE_TRUE
13097 # ---------------------
13098 # GCC bootstrap support
13099 # ---------------------
13101 # Stage specific cflags for build.
13102 stage1_cflags="-g"
13103 case $build in
13104 vax-*-*)
13105 case ${GCC} in
13106 yes) stage1_cflags="-g -Wa,-J" ;;
13107 *) stage1_cflags="-g -J" ;;
13108 esac ;;
13109 esac
13111 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13112 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13113 saved_CFLAGS="$CFLAGS"
13115 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13116 CFLAGS="$CFLAGS -fkeep-inline-functions"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13118 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13122 #if (__GNUC__ < 3) \
13123 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13124 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13125 #error http://gcc.gnu.org/PR29382
13126 #endif
13129 main ()
13133 return 0;
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 CFLAGS="$saved_CFLAGS"
13150 # Enable --enable-checking in stage1 of the compiler.
13151 # Check whether --enable-stage1-checking was given.
13152 if test "${enable_stage1_checking+set}" = set; then :
13153 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13154 else
13155 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13156 stage1_checking=--enable-checking=yes,types
13157 else
13158 stage1_checking=--enable-checking=$enable_checking,types
13164 # Enable -Werror in bootstrap stage2 and later.
13165 # Check whether --enable-werror was given.
13166 if test "${enable_werror+set}" = set; then :
13167 enableval=$enable_werror;
13168 else
13169 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13170 enable_werror=yes
13171 else
13172 enable_werror=no
13176 case ${enable_werror} in
13177 yes) stage2_werror_flag="--enable-werror-always" ;;
13178 *) stage2_werror_flag="" ;;
13179 esac
13182 # Specify what files to not compare during bootstrap.
13184 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13185 case "$target" in
13186 hppa*64*-*-hpux*) ;;
13187 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13188 esac
13191 ac_config_files="$ac_config_files Makefile"
13193 cat >confcache <<\_ACEOF
13194 # This file is a shell script that caches the results of configure
13195 # tests run on this system so they can be shared between configure
13196 # scripts and configure runs, see configure's option --config-cache.
13197 # It is not useful on other systems. If it contains results you don't
13198 # want to keep, you may remove or edit it.
13200 # config.status only pays attention to the cache file if you give it
13201 # the --recheck option to rerun configure.
13203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13205 # following values.
13207 _ACEOF
13209 # The following way of writing the cache mishandles newlines in values,
13210 # but we know of no workaround that is simple, portable, and efficient.
13211 # So, we kill variables containing newlines.
13212 # Ultrix sh set writes to stderr and can't be redirected directly,
13213 # and sets the high bit in the cache file unless we assign to the vars.
13215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13216 eval ac_val=\$$ac_var
13217 case $ac_val in #(
13218 *${as_nl}*)
13219 case $ac_var in #(
13220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13222 esac
13223 case $ac_var in #(
13224 _ | IFS | as_nl) ;; #(
13225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13226 *) { eval $ac_var=; unset $ac_var;} ;;
13227 esac ;;
13228 esac
13229 done
13231 (set) 2>&1 |
13232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13233 *${as_nl}ac_space=\ *)
13234 # `set' does not quote correctly, so add quotes: double-quote
13235 # substitution turns \\\\ into \\, and sed turns \\ into \.
13236 sed -n \
13237 "s/'/'\\\\''/g;
13238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13239 ;; #(
13241 # `set' quotes correctly as required by POSIX, so do not add quotes.
13242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13244 esac |
13245 sort
13247 sed '
13248 /^ac_cv_env_/b end
13249 t clear
13250 :clear
13251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13252 t end
13253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13254 :end' >>confcache
13255 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13256 if test -w "$cache_file"; then
13257 test "x$cache_file" != "x/dev/null" &&
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13259 $as_echo "$as_me: updating cache $cache_file" >&6;}
13260 cat confcache >$cache_file
13261 else
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13263 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13266 rm -f confcache
13268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13269 # Let make expand exec_prefix.
13270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13272 # Transform confdefs.h into DEFS.
13273 # Protect against shell expansion while executing Makefile rules.
13274 # Protect against Makefile macro expansion.
13276 # If the first sed substitution is executed (which looks for macros that
13277 # take arguments), then branch to the quote section. Otherwise,
13278 # look for a macro that doesn't take arguments.
13279 ac_script='
13280 :mline
13281 /\\$/{
13283 s,\\\n,,
13284 b mline
13286 t clear
13287 :clear
13288 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13289 t quote
13290 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13291 t quote
13292 b any
13293 :quote
13294 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13295 s/\[/\\&/g
13296 s/\]/\\&/g
13297 s/\$/$$/g
13299 :any
13302 s/^\n//
13303 s/\n/ /g
13307 DEFS=`sed -n "$ac_script" confdefs.h`
13310 ac_libobjs=
13311 ac_ltlibobjs=
13312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13313 # 1. Remove the extension, and $U if already installed.
13314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13315 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13317 # will be set to the directory where LIBOBJS objects are built.
13318 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13319 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13320 done
13321 LIBOBJS=$ac_libobjs
13323 LTLIBOBJS=$ac_ltlibobjs
13327 : ${CONFIG_STATUS=./config.status}
13328 ac_write_fail=0
13329 ac_clean_files_save=$ac_clean_files
13330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13332 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13333 as_write_fail=0
13334 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13335 #! $SHELL
13336 # Generated by $as_me.
13337 # Run this file to recreate the current configuration.
13338 # Compiler output produced by configure, useful for debugging
13339 # configure, is in config.log if it exists.
13341 debug=false
13342 ac_cs_recheck=false
13343 ac_cs_silent=false
13345 SHELL=\${CONFIG_SHELL-$SHELL}
13346 export SHELL
13347 _ASEOF
13348 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13349 ## -------------------- ##
13350 ## M4sh Initialization. ##
13351 ## -------------------- ##
13353 # Be more Bourne compatible
13354 DUALCASE=1; export DUALCASE # for MKS sh
13355 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13356 emulate sh
13357 NULLCMD=:
13358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13359 # is contrary to our usage. Disable this feature.
13360 alias -g '${1+"$@"}'='"$@"'
13361 setopt NO_GLOB_SUBST
13362 else
13363 case `(set -o) 2>/dev/null` in #(
13364 *posix*) :
13365 set -o posix ;; #(
13366 *) :
13368 esac
13372 as_nl='
13374 export as_nl
13375 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13376 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13379 # Prefer a ksh shell builtin over an external printf program on Solaris,
13380 # but without wasting forks for bash or zsh.
13381 if test -z "$BASH_VERSION$ZSH_VERSION" \
13382 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13383 as_echo='print -r --'
13384 as_echo_n='print -rn --'
13385 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13386 as_echo='printf %s\n'
13387 as_echo_n='printf %s'
13388 else
13389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13391 as_echo_n='/usr/ucb/echo -n'
13392 else
13393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13394 as_echo_n_body='eval
13395 arg=$1;
13396 case $arg in #(
13397 *"$as_nl"*)
13398 expr "X$arg" : "X\\(.*\\)$as_nl";
13399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13400 esac;
13401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13403 export as_echo_n_body
13404 as_echo_n='sh -c $as_echo_n_body as_echo'
13406 export as_echo_body
13407 as_echo='sh -c $as_echo_body as_echo'
13410 # The user is always right.
13411 if test "${PATH_SEPARATOR+set}" != set; then
13412 PATH_SEPARATOR=:
13413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13415 PATH_SEPARATOR=';'
13420 # IFS
13421 # We need space, tab and new line, in precisely that order. Quoting is
13422 # there to prevent editors from complaining about space-tab.
13423 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13424 # splitting by setting IFS to empty value.)
13425 IFS=" "" $as_nl"
13427 # Find who we are. Look in the path if we contain no directory separator.
13428 case $0 in #((
13429 *[\\/]* ) as_myself=$0 ;;
13430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13436 done
13437 IFS=$as_save_IFS
13440 esac
13441 # We did not find ourselves, most probably we were run as `sh COMMAND'
13442 # in which case we are not to be found in the path.
13443 if test "x$as_myself" = x; then
13444 as_myself=$0
13446 if test ! -f "$as_myself"; then
13447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13448 exit 1
13451 # Unset variables that we do not need and which cause bugs (e.g. in
13452 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13453 # suppresses any "Segmentation fault" message there. '((' could
13454 # trigger a bug in pdksh 5.2.14.
13455 for as_var in BASH_ENV ENV MAIL MAILPATH
13456 do eval test x\${$as_var+set} = xset \
13457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13458 done
13459 PS1='$ '
13460 PS2='> '
13461 PS4='+ '
13463 # NLS nuisances.
13464 LC_ALL=C
13465 export LC_ALL
13466 LANGUAGE=C
13467 export LANGUAGE
13469 # CDPATH.
13470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13473 # as_fn_error ERROR [LINENO LOG_FD]
13474 # ---------------------------------
13475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13477 # script with status $?, using 1 if that was 0.
13478 as_fn_error ()
13480 as_status=$?; test $as_status -eq 0 && as_status=1
13481 if test "$3"; then
13482 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13485 $as_echo "$as_me: error: $1" >&2
13486 as_fn_exit $as_status
13487 } # as_fn_error
13490 # as_fn_set_status STATUS
13491 # -----------------------
13492 # Set $? to STATUS, without forking.
13493 as_fn_set_status ()
13495 return $1
13496 } # as_fn_set_status
13498 # as_fn_exit STATUS
13499 # -----------------
13500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13501 as_fn_exit ()
13503 set +e
13504 as_fn_set_status $1
13505 exit $1
13506 } # as_fn_exit
13508 # as_fn_unset VAR
13509 # ---------------
13510 # Portably unset VAR.
13511 as_fn_unset ()
13513 { eval $1=; unset $1;}
13515 as_unset=as_fn_unset
13516 # as_fn_append VAR VALUE
13517 # ----------------------
13518 # Append the text in VALUE to the end of the definition contained in VAR. Take
13519 # advantage of any shell optimizations that allow amortized linear growth over
13520 # repeated appends, instead of the typical quadratic growth present in naive
13521 # implementations.
13522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13523 eval 'as_fn_append ()
13525 eval $1+=\$2
13527 else
13528 as_fn_append ()
13530 eval $1=\$$1\$2
13532 fi # as_fn_append
13534 # as_fn_arith ARG...
13535 # ------------------
13536 # Perform arithmetic evaluation on the ARGs, and store the result in the
13537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13538 # must be portable across $(()) and expr.
13539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13540 eval 'as_fn_arith ()
13542 as_val=$(( $* ))
13544 else
13545 as_fn_arith ()
13547 as_val=`expr "$@" || test $? -eq 1`
13549 fi # as_fn_arith
13552 if expr a : '\(a\)' >/dev/null 2>&1 &&
13553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13554 as_expr=expr
13555 else
13556 as_expr=false
13559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13560 as_basename=basename
13561 else
13562 as_basename=false
13565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13566 as_dirname=dirname
13567 else
13568 as_dirname=false
13571 as_me=`$as_basename -- "$0" ||
13572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13573 X"$0" : 'X\(//\)$' \| \
13574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13575 $as_echo X/"$0" |
13576 sed '/^.*\/\([^/][^/]*\)\/*$/{
13577 s//\1/
13580 /^X\/\(\/\/\)$/{
13581 s//\1/
13584 /^X\/\(\/\).*/{
13585 s//\1/
13588 s/.*/./; q'`
13590 # Avoid depending upon Character Ranges.
13591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13594 as_cr_digits='0123456789'
13595 as_cr_alnum=$as_cr_Letters$as_cr_digits
13597 ECHO_C= ECHO_N= ECHO_T=
13598 case `echo -n x` in #(((((
13599 -n*)
13600 case `echo 'xy\c'` in
13601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13602 xy) ECHO_C='\c';;
13603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13604 ECHO_T=' ';;
13605 esac;;
13607 ECHO_N='-n';;
13608 esac
13610 rm -f conf$$ conf$$.exe conf$$.file
13611 if test -d conf$$.dir; then
13612 rm -f conf$$.dir/conf$$.file
13613 else
13614 rm -f conf$$.dir
13615 mkdir conf$$.dir 2>/dev/null
13617 if (echo >conf$$.file) 2>/dev/null; then
13618 if ln -s conf$$.file conf$$ 2>/dev/null; then
13619 as_ln_s='ln -s'
13620 # ... but there are two gotchas:
13621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13623 # In both cases, we have to default to `cp -p'.
13624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13625 as_ln_s='cp -p'
13626 elif ln conf$$.file conf$$ 2>/dev/null; then
13627 as_ln_s=ln
13628 else
13629 as_ln_s='cp -p'
13631 else
13632 as_ln_s='cp -p'
13634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13635 rmdir conf$$.dir 2>/dev/null
13638 # as_fn_mkdir_p
13639 # -------------
13640 # Create "$as_dir" as a directory, including parents if necessary.
13641 as_fn_mkdir_p ()
13644 case $as_dir in #(
13645 -*) as_dir=./$as_dir;;
13646 esac
13647 test -d "$as_dir" || eval $as_mkdir_p || {
13648 as_dirs=
13649 while :; do
13650 case $as_dir in #(
13651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13652 *) as_qdir=$as_dir;;
13653 esac
13654 as_dirs="'$as_qdir' $as_dirs"
13655 as_dir=`$as_dirname -- "$as_dir" ||
13656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13657 X"$as_dir" : 'X\(//\)[^/]' \| \
13658 X"$as_dir" : 'X\(//\)$' \| \
13659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13660 $as_echo X"$as_dir" |
13661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13662 s//\1/
13665 /^X\(\/\/\)[^/].*/{
13666 s//\1/
13669 /^X\(\/\/\)$/{
13670 s//\1/
13673 /^X\(\/\).*/{
13674 s//\1/
13677 s/.*/./; q'`
13678 test -d "$as_dir" && break
13679 done
13680 test -z "$as_dirs" || eval "mkdir $as_dirs"
13681 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13684 } # as_fn_mkdir_p
13685 if mkdir -p . 2>/dev/null; then
13686 as_mkdir_p='mkdir -p "$as_dir"'
13687 else
13688 test -d ./-p && rmdir ./-p
13689 as_mkdir_p=false
13692 if test -x / >/dev/null 2>&1; then
13693 as_test_x='test -x'
13694 else
13695 if ls -dL / >/dev/null 2>&1; then
13696 as_ls_L_option=L
13697 else
13698 as_ls_L_option=
13700 as_test_x='
13701 eval sh -c '\''
13702 if test -d "$1"; then
13703 test -d "$1/.";
13704 else
13705 case $1 in #(
13706 -*)set "./$1";;
13707 esac;
13708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13709 ???[sx]*):;;*)false;;esac;fi
13710 '\'' sh
13713 as_executable_p=$as_test_x
13715 # Sed expression to map a string onto a valid CPP name.
13716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13718 # Sed expression to map a string onto a valid variable name.
13719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13722 exec 6>&1
13723 ## ----------------------------------- ##
13724 ## Main body of $CONFIG_STATUS script. ##
13725 ## ----------------------------------- ##
13726 _ASEOF
13727 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13730 # Save the log message, to keep $0 and so on meaningful, and to
13731 # report actual input values of CONFIG_FILES etc. instead of their
13732 # values after options handling.
13733 ac_log="
13734 This file was extended by $as_me, which was
13735 generated by GNU Autoconf 2.64. Invocation command line was
13737 CONFIG_FILES = $CONFIG_FILES
13738 CONFIG_HEADERS = $CONFIG_HEADERS
13739 CONFIG_LINKS = $CONFIG_LINKS
13740 CONFIG_COMMANDS = $CONFIG_COMMANDS
13741 $ $0 $@
13743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13746 _ACEOF
13748 case $ac_config_files in *"
13749 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13750 esac
13754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13755 # Files that config.status was made for.
13756 config_files="$ac_config_files"
13758 _ACEOF
13760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13761 ac_cs_usage="\
13762 \`$as_me' instantiates files and other configuration actions
13763 from templates according to the current configuration. Unless the files
13764 and actions are specified as TAGs, all are instantiated by default.
13766 Usage: $0 [OPTION]... [TAG]...
13768 -h, --help print this help, then exit
13769 -V, --version print version number and configuration settings, then exit
13770 -q, --quiet, --silent
13771 do not print progress messages
13772 -d, --debug don't remove temporary files
13773 --recheck update $as_me by reconfiguring in the same conditions
13774 --file=FILE[:TEMPLATE]
13775 instantiate the configuration file FILE
13777 Configuration files:
13778 $config_files
13780 Report bugs to the package provider."
13782 _ACEOF
13783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13784 ac_cs_version="\\
13785 config.status
13786 configured by $0, generated by GNU Autoconf 2.64,
13787 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13789 Copyright (C) 2009 Free Software Foundation, Inc.
13790 This config.status script is free software; the Free Software Foundation
13791 gives unlimited permission to copy, distribute and modify it."
13793 ac_pwd='$ac_pwd'
13794 srcdir='$srcdir'
13795 INSTALL='$INSTALL'
13796 test -n "\$AWK" || AWK=awk
13797 _ACEOF
13799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800 # The default lists apply if the user does not specify any file.
13801 ac_need_defaults=:
13802 while test $# != 0
13804 case $1 in
13805 --*=*)
13806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13808 ac_shift=:
13811 ac_option=$1
13812 ac_optarg=$2
13813 ac_shift=shift
13815 esac
13817 case $ac_option in
13818 # Handling of the options.
13819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13820 ac_cs_recheck=: ;;
13821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13822 $as_echo "$ac_cs_version"; exit ;;
13823 --debug | --debu | --deb | --de | --d | -d )
13824 debug=: ;;
13825 --file | --fil | --fi | --f )
13826 $ac_shift
13827 case $ac_optarg in
13828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13829 esac
13830 as_fn_append CONFIG_FILES " '$ac_optarg'"
13831 ac_need_defaults=false;;
13832 --he | --h | --help | --hel | -h )
13833 $as_echo "$ac_cs_usage"; exit ;;
13834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13836 ac_cs_silent=: ;;
13838 # This is an error.
13839 -*) as_fn_error "unrecognized option: \`$1'
13840 Try \`$0 --help' for more information." ;;
13842 *) as_fn_append ac_config_targets " $1"
13843 ac_need_defaults=false ;;
13845 esac
13846 shift
13847 done
13849 ac_configure_extra_args=
13851 if $ac_cs_silent; then
13852 exec 6>/dev/null
13853 ac_configure_extra_args="$ac_configure_extra_args --silent"
13856 _ACEOF
13857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858 if \$ac_cs_recheck; then
13859 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13860 shift
13861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13862 CONFIG_SHELL='$SHELL'
13863 export CONFIG_SHELL
13864 exec "\$@"
13867 _ACEOF
13868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869 exec 5>>config.log
13871 echo
13872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13873 ## Running $as_me. ##
13874 _ASBOX
13875 $as_echo "$ac_log"
13876 } >&5
13878 _ACEOF
13879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13880 _ACEOF
13882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13884 # Handling of arguments.
13885 for ac_config_target in $ac_config_targets
13887 case $ac_config_target in
13888 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13890 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13891 esac
13892 done
13895 # If the user did not use the arguments to specify the items to instantiate,
13896 # then the envvar interface is used. Set only those that are not.
13897 # We use the long form for the default assignment because of an extremely
13898 # bizarre bug on SunOS 4.1.3.
13899 if $ac_need_defaults; then
13900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13903 # Have a temporary directory for convenience. Make it in the build tree
13904 # simply because there is no reason against having it here, and in addition,
13905 # creating and moving files from /tmp can sometimes cause problems.
13906 # Hook for its removal unless debugging.
13907 # Note that there is a small window in which the directory will not be cleaned:
13908 # after its creation but before its name has been assigned to `$tmp'.
13909 $debug ||
13911 tmp=
13912 trap 'exit_status=$?
13913 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13915 trap 'as_fn_exit 1' 1 2 13 15
13917 # Create a (secure) tmp directory for tmp files.
13920 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13921 test -n "$tmp" && test -d "$tmp"
13922 } ||
13924 tmp=./conf$$-$RANDOM
13925 (umask 077 && mkdir "$tmp")
13926 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13928 # Set up the scripts for CONFIG_FILES section.
13929 # No need to generate them if there are no CONFIG_FILES.
13930 # This happens for instance with `./config.status config.h'.
13931 if test -n "$CONFIG_FILES"; then
13933 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13934 ac_cs_awk_getline=:
13935 ac_cs_awk_pipe_init=
13936 ac_cs_awk_read_file='
13937 while ((getline aline < (F[key])) > 0)
13938 print(aline)
13939 close(F[key])'
13940 ac_cs_awk_pipe_fini=
13941 else
13942 ac_cs_awk_getline=false
13943 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13944 ac_cs_awk_read_file='
13945 print "|#_!!_#|"
13946 print "cat " F[key] " &&"
13947 '$ac_cs_awk_pipe_init
13948 # The final `:' finishes the AND list.
13949 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13951 ac_cr=`echo X | tr X '\015'`
13952 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13953 # But we know of no other shell where ac_cr would be empty at this
13954 # point, so we can use a bashism as a fallback.
13955 if test "x$ac_cr" = x; then
13956 eval ac_cr=\$\'\\r\'
13958 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13960 ac_cs_awk_cr='\r'
13961 else
13962 ac_cs_awk_cr=$ac_cr
13965 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13966 _ACEOF
13968 # Create commands to substitute file output variables.
13970 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13971 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
13972 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13973 echo "_ACAWK" &&
13974 echo "_ACEOF"
13975 } >conf$$files.sh &&
13976 . ./conf$$files.sh ||
13977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13978 rm -f conf$$files.sh
13981 echo "cat >conf$$subs.awk <<_ACEOF" &&
13982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13983 echo "_ACEOF"
13984 } >conf$$subs.sh ||
13985 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13987 ac_delim='%!_!# '
13988 for ac_last_try in false false false false false :; do
13989 . ./conf$$subs.sh ||
13990 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13993 if test $ac_delim_n = $ac_delim_num; then
13994 break
13995 elif $ac_last_try; then
13996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13997 else
13998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14000 done
14001 rm -f conf$$subs.sh
14003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14005 _ACEOF
14006 sed -n '
14008 s/^/S["/; s/!.*/"]=/
14011 s/^[^!]*!//
14012 :repl
14013 t repl
14014 s/'"$ac_delim"'$//
14015 t delim
14018 s/\(.\{148\}\).*/\1/
14019 t more1
14020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14023 b repl
14024 :more1
14025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14028 s/.\{148\}//
14029 t nl
14030 :delim
14032 s/\(.\{148\}\).*/\1/
14033 t more2
14034 s/["\\]/\\&/g; s/^/"/; s/$/"/
14037 :more2
14038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14041 s/.\{148\}//
14042 t delim
14043 ' <conf$$subs.awk | sed '
14044 /^[^""]/{
14046 s/\n//
14048 ' >>$CONFIG_STATUS || ac_write_fail=1
14049 rm -f conf$$subs.awk
14050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14051 _ACAWK
14052 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14053 for (key in S) S_is_set[key] = 1
14054 FS = "\a"
14055 \$ac_cs_awk_pipe_init
14058 line = $ 0
14059 nfields = split(line, field, "@")
14060 substed = 0
14061 len = length(field[1])
14062 for (i = 2; i < nfields; i++) {
14063 key = field[i]
14064 keylen = length(key)
14065 if (S_is_set[key]) {
14066 value = S[key]
14067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14068 len += length(value) + length(field[++i])
14069 substed = 1
14070 } else
14071 len += 1 + keylen
14073 if (nfields == 3 && !substed) {
14074 key = field[2]
14075 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14076 \$ac_cs_awk_read_file
14077 next
14080 print line
14082 \$ac_cs_awk_pipe_fini
14083 _ACAWK
14084 _ACEOF
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14088 else
14090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14091 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14092 _ACEOF
14094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096 # trailing colons and then remove the whole line if VPATH becomes empty
14097 # (actually we leave an empty line to preserve line numbers).
14098 if test "x$srcdir" = x.; then
14099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14100 s/:*\$(srcdir):*/:/
14101 s/:*\${srcdir}:*/:/
14102 s/:*@srcdir@:*/:/
14103 s/^\([^=]*=[ ]*\):*/\1/
14104 s/:*$//
14105 s/^[^=]*=[ ]*$//
14109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110 fi # test -n "$CONFIG_FILES"
14113 eval set X " :F $CONFIG_FILES "
14114 shift
14115 for ac_tag
14117 case $ac_tag in
14118 :[FHLC]) ac_mode=$ac_tag; continue;;
14119 esac
14120 case $ac_mode$ac_tag in
14121 :[FHL]*:*);;
14122 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14123 :[FH]-) ac_tag=-:-;;
14124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14125 esac
14126 ac_save_IFS=$IFS
14127 IFS=:
14128 set x $ac_tag
14129 IFS=$ac_save_IFS
14130 shift
14131 ac_file=$1
14132 shift
14134 case $ac_mode in
14135 :L) ac_source=$1;;
14136 :[FH])
14137 ac_file_inputs=
14138 for ac_f
14140 case $ac_f in
14141 -) ac_f="$tmp/stdin";;
14142 *) # Look for the file first in the build tree, then in the source tree
14143 # (if the path is not absolute). The absolute path cannot be DOS-style,
14144 # because $ac_f cannot contain `:'.
14145 test -f "$ac_f" ||
14146 case $ac_f in
14147 [\\/$]*) false;;
14148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14149 esac ||
14150 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14151 esac
14152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14153 as_fn_append ac_file_inputs " '$ac_f'"
14154 done
14156 # Let's still pretend it is `configure' which instantiates (i.e., don't
14157 # use $as_me), people would be surprised to read:
14158 # /* config.h. Generated by config.status. */
14159 configure_input='Generated from '`
14160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14161 `' by configure.'
14162 if test x"$ac_file" != x-; then
14163 configure_input="$ac_file. $configure_input"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14165 $as_echo "$as_me: creating $ac_file" >&6;}
14167 # Neutralize special characters interpreted by sed in replacement strings.
14168 case $configure_input in #(
14169 *\&* | *\|* | *\\* )
14170 ac_sed_conf_input=`$as_echo "$configure_input" |
14171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14172 *) ac_sed_conf_input=$configure_input;;
14173 esac
14175 case $ac_tag in
14176 *:-:* | *:-) cat >"$tmp/stdin" \
14177 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14178 esac
14180 esac
14182 ac_dir=`$as_dirname -- "$ac_file" ||
14183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14184 X"$ac_file" : 'X\(//\)[^/]' \| \
14185 X"$ac_file" : 'X\(//\)$' \| \
14186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14187 $as_echo X"$ac_file" |
14188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14189 s//\1/
14192 /^X\(\/\/\)[^/].*/{
14193 s//\1/
14196 /^X\(\/\/\)$/{
14197 s//\1/
14200 /^X\(\/\).*/{
14201 s//\1/
14204 s/.*/./; q'`
14205 as_dir="$ac_dir"; as_fn_mkdir_p
14206 ac_builddir=.
14208 case "$ac_dir" in
14209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14212 # A ".." for each directory in $ac_dir_suffix.
14213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14214 case $ac_top_builddir_sub in
14215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14217 esac ;;
14218 esac
14219 ac_abs_top_builddir=$ac_pwd
14220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14221 # for backward compatibility:
14222 ac_top_builddir=$ac_top_build_prefix
14224 case $srcdir in
14225 .) # We are building in place.
14226 ac_srcdir=.
14227 ac_top_srcdir=$ac_top_builddir_sub
14228 ac_abs_top_srcdir=$ac_pwd ;;
14229 [\\/]* | ?:[\\/]* ) # Absolute name.
14230 ac_srcdir=$srcdir$ac_dir_suffix;
14231 ac_top_srcdir=$srcdir
14232 ac_abs_top_srcdir=$srcdir ;;
14233 *) # Relative name.
14234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14235 ac_top_srcdir=$ac_top_build_prefix$srcdir
14236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14237 esac
14238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14241 case $ac_mode in
14244 # CONFIG_FILE
14247 case $INSTALL in
14248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14250 esac
14251 _ACEOF
14253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254 # If the template does not know about datarootdir, expand it.
14255 # FIXME: This hack should be removed a few years after 2.60.
14256 ac_datarootdir_hack=; ac_datarootdir_seen=
14257 ac_sed_dataroot='
14258 /datarootdir/ {
14262 /@datadir@/p
14263 /@docdir@/p
14264 /@infodir@/p
14265 /@localedir@/p
14266 /@mandir@/p'
14267 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14268 *datarootdir*) ac_datarootdir_seen=yes;;
14269 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14271 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14272 _ACEOF
14273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14274 ac_datarootdir_hack='
14275 s&@datadir@&$datadir&g
14276 s&@docdir@&$docdir&g
14277 s&@infodir@&$infodir&g
14278 s&@localedir@&$localedir&g
14279 s&@mandir@&$mandir&g
14280 s&\\\${datarootdir}&$datarootdir&g' ;;
14281 esac
14282 _ACEOF
14284 # Neutralize VPATH when `$srcdir' = `.'.
14285 # Shell code in configure.ac might set extrasub.
14286 # FIXME: do we really want to maintain this feature?
14287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288 ac_sed_extra="$ac_vpsub
14289 $extrasub
14290 _ACEOF
14291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14294 s|@configure_input@|$ac_sed_conf_input|;t t
14295 s&@top_builddir@&$ac_top_builddir_sub&;t t
14296 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14297 s&@srcdir@&$ac_srcdir&;t t
14298 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14299 s&@top_srcdir@&$ac_top_srcdir&;t t
14300 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14301 s&@builddir@&$ac_builddir&;t t
14302 s&@abs_builddir@&$ac_abs_builddir&;t t
14303 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14304 s&@INSTALL@&$ac_INSTALL&;t t
14305 $ac_datarootdir_hack
14307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14308 if $ac_cs_awk_getline; then
14309 $AWK -f "$tmp/subs.awk"
14310 else
14311 $AWK -f "$tmp/subs.awk" | $SHELL
14312 fi >$tmp/out \
14313 || as_fn_error "could not create $ac_file" "$LINENO" 5
14315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14319 which seems to be undefined. Please make sure it is defined." >&5
14320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14321 which seems to be undefined. Please make sure it is defined." >&2;}
14323 rm -f "$tmp/stdin"
14324 case $ac_file in
14325 -) cat "$tmp/out" && rm -f "$tmp/out";;
14326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14327 esac \
14328 || as_fn_error "could not create $ac_file" "$LINENO" 5
14333 esac
14335 done # for ac_tag
14338 as_fn_exit 0
14339 _ACEOF
14340 ac_clean_files=$ac_clean_files_save
14342 test $ac_write_fail = 0 ||
14343 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14346 # configure is writing to config.log, and then calls config.status.
14347 # config.status does its own redirection, appending to config.log.
14348 # Unfortunately, on DOS this fails, as config.log is still kept open
14349 # by configure, so config.status won't be able to write to it; its
14350 # output is simply discarded. So we exec the FD to /dev/null,
14351 # effectively closing config.log, so it can be properly (re)opened and
14352 # appended to by config.status. When coming back to configure, we
14353 # need to make the FD available again.
14354 if test "$no_create" != yes; then
14355 ac_cs_success=:
14356 ac_config_status_args=
14357 test "$silent" = yes &&
14358 ac_config_status_args="$ac_config_status_args --quiet"
14359 exec 5>/dev/null
14360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14361 exec 5>>config.log
14362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14363 # would make configure fail if this is the last instruction.
14364 $ac_cs_success || as_fn_exit $?
14366 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14368 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}