Refactor the LIPO fixup to make sure the cgraph is always consistent.
[official-gcc.git] / main / configure
blob5551d1d0c69f8611d90205697456c1350f5a3e23
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 islinc
650 poststage1_ldflags
651 poststage1_libs
652 stage1_ldflags
653 stage1_libs
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
680 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_libstdcxx
754 enable_static_libjava
755 enable_bootstrap
756 with_mpc
757 with_mpc_include
758 with_mpc_lib
759 with_mpfr_dir
760 with_mpfr
761 with_mpfr_include
762 with_mpfr_lib
763 with_gmp_dir
764 with_gmp
765 with_gmp_include
766 with_gmp_lib
767 with_host_libstdcxx
768 with_stage1_libs
769 with_stage1_ldflags
770 with_boot_libs
771 with_boot_ldflags
772 with_cloog
773 with_isl
774 with_isl_include
775 with_isl_lib
776 enable_isl_version_check
777 with_cloog_include
778 with_cloog_lib
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
790 enable_werror
791 enable_host_shared
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
802 CXXFLAGS
804 build_configargs
805 host_configargs
806 target_configargs
809 DLLTOOL
811 LIPO
813 RANLIB
814 STRIP
815 WINDRES
816 WINDMC
817 OBJCOPY
818 OBJDUMP
819 READELF
820 CC_FOR_TARGET
821 CXX_FOR_TARGET
822 GCC_FOR_TARGET
823 GCJ_FOR_TARGET
824 GFORTRAN_FOR_TARGET
825 GOC_FOR_TARGET
826 AR_FOR_TARGET
827 AS_FOR_TARGET
828 DLLTOOL_FOR_TARGET
829 LD_FOR_TARGET
830 LIPO_FOR_TARGET
831 NM_FOR_TARGET
832 OBJDUMP_FOR_TARGET
833 RANLIB_FOR_TARGET
834 READELF_FOR_TARGET
835 STRIP_FOR_TARGET
836 WINDRES_FOR_TARGET
837 WINDMC_FOR_TARGET'
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
888 ac_prev=
889 ac_dashdash=
890 for ac_option
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
908 ac_dashdash=yes ;;
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
927 --config-cache | -C)
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1369 esac
1370 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452 _ACEOF
1455 if test -n "$ac_init_help"; then
1457 cat <<\_ACEOF
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1470 --disable-libstdcxx do not build libstdc++-v3 directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --disable-isl-version-check
1475 disable check for ISL version
1476 --disable-cloog-version-check
1477 disable check for CLooG version
1478 --enable-lto enable link time optimization support
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1483 Objective-C runtime
1484 --enable-serial-[{host,target,build}-]configure
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1487 sub-packages
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1493 compiler
1494 --enable-werror enable -Werror in bootstrap stage2 and later
1495 --enable-host-shared build host code as shared libraries
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1510 --with-mpfr-include=PATH
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
1522 --with-stage1-libs=LIBS libraries for stage1
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
1532 --with-isl=PATH Specify prefix directory for the installed ISL
1533 package. Equivalent to
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
1542 --with-build-sysroot=SYSROOT
1543 use sysroot as the system root during the build
1544 --with-debug-prefix-map='A=B C=D ...'
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
1548 --with-build-time-tools=PATH
1549 use given path to find target tools during the build
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1561 build_configargs
1562 additional configure arguments for build directories
1563 host_configargs
1564 additional configure arguments for host directories
1565 target_configargs
1566 additional configure arguments for target directories
1567 AR AR for the host
1568 AS AS for the host
1569 DLLTOOL DLLTOOL for the host
1570 LD LD for the host
1571 LIPO LIPO for the host
1572 NM NM for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
1576 WINDMC WINDMC for the host
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
1579 READELF READELF for the host
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
1590 GOC_FOR_TARGET
1591 GOC for the target
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
1608 READELF_FOR_TARGET
1609 READELF for the target
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1621 _ACEOF
1622 ac_status=$?
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 configure
1684 generated by GNU Autoconf 2.64
1686 Copyright (C) 2009 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_cxx_try_link LINENO
1774 # -------------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_link ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=1
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1817 } # ac_fn_cxx_try_link
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_link ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1863 } # ac_fn_c_try_link
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1869 ac_fn_c_try_run ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 return $ac_retval
1905 } # ac_fn_c_try_run
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1910 It was created by $as_me, which was
1911 generated by GNU Autoconf 2.64. Invocation command line was
1913 $ $0 $@
1915 _ACEOF
1916 exec 5>>config.log
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940 _ASUNAME
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 $as_echo "PATH: $as_dir"
1948 done
1949 IFS=$as_save_IFS
1951 } >&5
1953 cat >&5 <<_ACEOF
1956 ## ----------- ##
1957 ## Core tests. ##
1958 ## ----------- ##
1960 _ACEOF
1963 # Keep a trace of the command line.
1964 # Strip out --no-create and --no-recursion so they do not pile up.
1965 # Strip out --silent because we don't want to record it for future runs.
1966 # Also quote any args containing shell meta-characters.
1967 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_configure_args=
1969 ac_configure_args0=
1970 ac_configure_args1=
1971 ac_must_keep_next=false
1972 for ac_pass in 1 2
1974 for ac_arg
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 esac
1984 case $ac_pass in
1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2003 as_fn_append ac_configure_args " '$ac_arg'"
2005 esac
2006 done
2007 done
2008 { ac_configure_args0=; unset ac_configure_args0;}
2009 { ac_configure_args1=; unset ac_configure_args1;}
2011 # When interrupted or exit'd, cleanup temporary files, and complete
2012 # config.log. We remove comments because anyway the quotes in there
2013 # would cause problems or look ugly.
2014 # WARNING: Use '\'' to represent an apostrophe within the trap.
2015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2016 trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2019 echo
2021 cat <<\_ASBOX
2022 ## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##
2025 _ASBOX
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
2044 (set) 2>&1 |
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2047 sed -n \
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 esac |
2055 sort
2057 echo
2059 cat <<\_ASBOX
2060 ## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##
2063 _ASBOX
2064 echo
2065 for ac_var in $ac_subst_vars
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2075 if test -n "$ac_subst_files"; then
2076 cat <<\_ASBOX
2077 ## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##
2080 _ASBOX
2081 echo
2082 for ac_var in $ac_subst_files
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2093 if test -s confdefs.h; then
2094 cat <<\_ASBOX
2095 ## ----------- ##
2096 ## confdefs.h. ##
2097 ## ----------- ##
2098 _ASBOX
2099 echo
2100 cat confdefs.h
2101 echo
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2106 } >&5
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109 exit $exit_status
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 done
2114 ac_signal=0
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2119 $as_echo "/* confdefs.h */" > confdefs.h
2121 # Predefined preprocessor variables.
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_NAME "$PACKAGE_NAME"
2125 _ACEOF
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129 _ACEOF
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2133 _ACEOF
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_STRING "$PACKAGE_STRING"
2137 _ACEOF
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141 _ACEOF
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_URL "$PACKAGE_URL"
2145 _ACEOF
2148 # Let the site file select an alternate cache file if it wants to.
2149 # Prefer an explicitly selected file to automatically selected ones.
2150 ac_site_file1=NONE
2151 ac_site_file2=NONE
2152 if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163 test "x$ac_site_file" = xNONE && continue
2164 if test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file"
2170 done
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 case $cache_file in
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2181 esac
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 >$cache_file
2189 # Check that the precious variables saved in the cache have kept the same
2190 # value.
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2198 set,)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,set)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,);;
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 esac
2238 done
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 progname=$0
2265 # if PWD already has a value, it is probably wrong.
2266 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2268 # Export original configure arguments for use by sub-configures.
2269 # Quote arguments with shell meta charatcers.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=
2271 set -- "$progname" "$@"
2272 for ac_arg
2274 case "$ac_arg" in
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2279 *) ;;
2280 esac
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2283 done
2284 if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2287 # Remove the initial space we just introduced and, as these will be
2288 # expanded by make, quote '$'.
2289 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2292 # Find the build, host, and target systems.
2293 ac_aux_dir=
2294 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2299 break 2
2301 done
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316 # Make sure we can run config.sub.
2317 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321 $as_echo_n "checking build system type... " >&6; }
2322 if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 ac_build_alias=$build_alias
2326 test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328 test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335 $as_echo "$ac_cv_build" >&6; }
2336 case $ac_cv_build in
2337 *-*-*) ;;
2338 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2339 esac
2340 build=$ac_cv_build
2341 ac_save_IFS=$IFS; IFS='-'
2342 set x $ac_cv_build
2343 shift
2344 build_cpu=$1
2345 build_vendor=$2
2346 shift; shift
2347 # Remember, the first character of IFS is used to create $*,
2348 # except with old shells:
2349 build_os=$*
2350 IFS=$ac_save_IFS
2351 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
2357 esac
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2364 esac
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
2371 esac
2376 test "$host_noncanonical" = "$target_noncanonical" &&
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
2379 program_transform_name=s,y,y,
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388 else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2396 case $ac_cv_host in
2397 *-*-*) ;;
2398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399 esac
2400 host=$ac_cv_host
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_host
2403 shift
2404 host_cpu=$1
2405 host_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 host_os=$*
2410 IFS=$ac_save_IFS
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421 else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2430 *-*-*) ;;
2431 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432 esac
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2435 set x $ac_cv_target
2436 shift
2437 target_cpu=$1
2438 target_vendor=$2
2439 shift; shift
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2442 target_os=$*
2443 IFS=$ac_save_IFS
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
2454 test "$program_prefix" != NONE &&
2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2456 # Use a double $ so make ignores it.
2457 test "$program_suffix" != NONE &&
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459 # Double any \ or $.
2460 # By default was `s,x,x', remove it if useless.
2461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2466 # Get 'install' or 'install-sh' and its variants.
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497 /usr/ucb/* ) ;;
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2513 else
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2528 done
2529 done
2531 esac
2533 done
2534 IFS=$as_save_IFS
2536 rm -rf conftest.one conftest.two conftest.dir
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561 $as_echo_n "checking whether ln works... " >&6; }
2562 if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 rm -f conftestdata_t
2566 echo >conftestdata_f
2567 if ln conftestdata_f conftestdata_t 2>/dev/null
2568 then
2569 acx_cv_prog_LN=ln
2570 else
2571 acx_cv_prog_LN=no
2573 rm -f conftestdata_f conftestdata_t
2576 if test $acx_cv_prog_LN = no; then
2577 LN="cp"
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579 $as_echo "no, using $LN" >&6; }
2580 else
2581 LN="$acx_cv_prog_LN"
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587 $as_echo_n "checking whether ln -s works... " >&6; }
2588 LN_S=$as_ln_s
2589 if test "$LN_S" = "ln -s"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594 $as_echo "no, using $LN_S" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599 if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2605 done
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620 # Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622 case `"$ac_path_SED" --version 2>&1` in
2623 *GNU*)
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2626 ac_count=0
2627 $as_echo_n 0123456789 >"conftest.in"
2628 while :
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2644 done
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2646 esac
2648 $ac_path_SED_found && break 3
2649 done
2650 done
2651 done
2652 IFS=$as_save_IFS
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2656 else
2657 ac_cv_path_SED=$SED
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662 $as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2664 rm -f conftest.sed
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$AWK" && break
2706 done
2709 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2711 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2712 # a relative path.
2713 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2717 # Set srcdir to "." if that's what it is.
2718 # This is important for multilib support.
2719 pwd=`${PWDCMD-pwd}`
2720 if test "${pwd}" = "${srcpwd}" ; then
2721 srcdir=.
2724 topsrcdir=$srcpwd
2726 extra_host_args=
2728 ### To add a new directory to the tree, first choose whether it is a target
2729 ### or a host dependent tool. Then put it into the appropriate list
2730 ### (library or tools, host or target), doing a dependency sort.
2732 # Subdirs will be configured in the order listed in build_configdirs,
2733 # configdirs, or target_configdirs; see the serialization section below.
2735 # Dependency sorting is only needed when *configuration* must be done in
2736 # a particular order. In all cases a dependency should be specified in
2737 # the Makefile, whether or not it's implicitly specified here.
2739 # Double entries in build_configdirs, configdirs, or target_configdirs may
2740 # cause circular dependencies and break everything horribly.
2742 # these library is used by various programs built for the build
2743 # environment
2745 build_libs="build-libiberty"
2747 # these tools are built for the build environment
2748 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2750 # these libraries are used by various programs built for the host environment
2752 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2754 # these tools are built for the host environment
2755 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756 # know that we are building the simulator.
2757 # binutils, gas and ld appear in that order because it makes sense to run
2758 # "make check" in that particular order.
2759 # If --enable-gold is used, "gold" may replace "ld".
2760 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2762 # libgcj represents the runtime libraries only used by gcj.
2763 libgcj="target-libffi \
2764 target-zlib \
2765 target-libjava"
2767 # these libraries are built for the target environment, and are built after
2768 # the host libraries and the host tools (which may be a cross compiler)
2769 # Note that libiberty is not a target library.
2770 target_libraries="target-libgcc \
2771 target-libbacktrace \
2772 target-libgloss \
2773 target-newlib \
2774 target-libgomp \
2775 target-libcilkrts \
2776 target-libatomic \
2777 target-libitm \
2778 target-libstdc++-v3 \
2779 target-libsanitizer \
2780 target-libvtv \
2781 target-libssp \
2782 target-libquadmath \
2783 target-libgfortran \
2784 target-boehm-gc \
2785 ${libgcj} \
2786 target-libobjc \
2787 target-libada \
2788 target-libgo"
2790 # these tools are built using the target libraries, and are intended to
2791 # run only in the target environment
2793 # note: any program that *uses* libraries that are in the "target_libraries"
2794 # list belongs in this list.
2796 target_tools="target-rda"
2798 ################################################################################
2800 ## All tools belong in one of the four categories, and are assigned above
2801 ## We assign ${configdirs} this way to remove all embedded newlines. This
2802 ## is important because configure will choke if they ever get through.
2803 ## ${configdirs} is directories we build using the host tools.
2804 ## ${target_configdirs} is directories we build using the target tools.
2805 configdirs=`echo ${host_libs} ${host_tools}`
2806 target_configdirs=`echo ${target_libraries} ${target_tools}`
2807 build_configdirs=`echo ${build_libs} ${build_tools}`
2811 ################################################################################
2813 srcname="gnu development package"
2815 # This gets set non-empty for some net releases of packages.
2816 appdirs=""
2818 # Define is_cross_compiler to save on calls to 'test'.
2819 is_cross_compiler=
2820 if test x"${host}" = x"${target}" ; then
2821 is_cross_compiler=no
2822 else
2823 is_cross_compiler=yes
2826 # Find the build and target subdir names.
2828 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2829 # have matching libraries, they should use host libraries: Makefile.tpl
2830 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2831 # However, they still use the build modules, because the corresponding
2832 # host modules (e.g. bison) are only built for the host when bootstrap
2833 # finishes. So:
2834 # - build_subdir is where we find build modules, and never changes.
2835 # - build_libsubdir is where we find build libraries, and can be overridden.
2837 # Prefix 'build-' so this never conflicts with target_subdir.
2838 build_subdir="build-${build_noncanonical}"
2840 # Check whether --with-build-libsubdir was given.
2841 if test "${with_build_libsubdir+set}" = set; then :
2842 withval=$with_build_libsubdir; build_libsubdir="$withval"
2843 else
2844 build_libsubdir="$build_subdir"
2847 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2848 if ( test $srcdir = . && test -d gcc ) \
2849 || test -d $srcdir/../host-${host_noncanonical}; then
2850 host_subdir="host-${host_noncanonical}"
2851 else
2852 host_subdir=.
2854 # No prefix.
2855 target_subdir=${target_noncanonical}
2857 # Be sure to cover against remnants of an in-tree build.
2858 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2859 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2860 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2863 # Skipdirs are removed silently.
2864 skipdirs=
2865 # Noconfigdirs are removed loudly.
2866 noconfigdirs=""
2868 use_gnu_ld=
2869 # Make sure we don't let GNU ld be added if we didn't want it.
2870 if test x$with_gnu_ld = xno ; then
2871 use_gnu_ld=no
2872 noconfigdirs="$noconfigdirs ld gold"
2875 use_gnu_as=
2876 # Make sure we don't let GNU as be added if we didn't want it.
2877 if test x$with_gnu_as = xno ; then
2878 use_gnu_as=no
2879 noconfigdirs="$noconfigdirs gas"
2882 use_included_zlib=
2883 # Make sure we don't let ZLIB be added if we didn't want it.
2884 if test x$with_system_zlib = xyes ; then
2885 use_included_zlib=no
2886 noconfigdirs="$noconfigdirs zlib"
2889 # some tools are so dependent upon X11 that if we're not building with X,
2890 # it's not even worth trying to configure, much less build, that tool.
2892 case ${with_x} in
2893 yes | "") ;; # the default value for this tree is that X11 is available
2895 skipdirs="${skipdirs} tk itcl libgui"
2896 # We won't be able to build gdbtk without X.
2897 enable_gdbtk=no
2899 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2900 esac
2902 # Some are only suitable for cross toolchains.
2903 # Remove these if host=target.
2904 cross_only="target-libgloss target-newlib target-opcodes"
2906 case $is_cross_compiler in
2907 no) skipdirs="${skipdirs} ${cross_only}" ;;
2908 esac
2910 # If both --with-headers and --with-libs are specified, default to
2911 # --without-newlib.
2912 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2913 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2914 if test x"${with_newlib}" = x ; then
2915 with_newlib=no
2919 # Recognize --with-newlib/--without-newlib.
2920 case ${with_newlib} in
2921 no) skipdirs="${skipdirs} target-newlib" ;;
2922 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2923 esac
2925 # Handle --enable-gold, --enable-ld.
2926 # --disable-gold [--enable-ld]
2927 # Build only ld. Default option.
2928 # --enable-gold [--enable-ld]
2929 # Build both gold and ld. Install gold as "ld.gold", install ld
2930 # as "ld.bfd" and "ld".
2931 # --enable-gold=default [--enable-ld]
2932 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2933 # install ld as "ld.bfd".
2934 # --enable-gold[=default] --disable-ld
2935 # Build only gold, which is then installed as both "ld.gold" and "ld".
2936 # --enable-gold --enable-ld=default
2937 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2938 # and ld.bfd).
2939 # In other words, ld is default
2940 # --enable-gold=default --enable-ld=default
2941 # Error.
2943 default_ld=
2944 # Check whether --enable-gold was given.
2945 if test "${enable_gold+set}" = set; then :
2946 enableval=$enable_gold; ENABLE_GOLD=$enableval
2947 else
2948 ENABLE_GOLD=no
2951 case "${ENABLE_GOLD}" in
2952 yes|default)
2953 # Check for ELF target.
2954 is_elf=no
2955 case "${target}" in
2956 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2957 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2958 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2959 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2960 case "${target}" in
2961 *-*-linux*aout* | *-*-linux*oldld*)
2964 is_elf=yes
2966 esac
2967 esac
2969 if test "$is_elf" = "yes"; then
2970 # Check for target supported by gold.
2971 case "${target}" in
2972 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2973 configdirs="$configdirs gold"
2974 if test x${ENABLE_GOLD} = xdefault; then
2975 default_ld=gold
2977 ENABLE_GOLD=yes
2979 esac
2985 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2987 esac
2989 # Check whether --enable-ld was given.
2990 if test "${enable_ld+set}" = set; then :
2991 enableval=$enable_ld; ENABLE_LD=$enableval
2992 else
2993 ENABLE_LD=yes
2997 case "${ENABLE_LD}" in
2998 default)
2999 if test x${default_ld} != x; then
3000 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 yes)
3006 if test x${ENABLE_GOLD} != xyes; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3008 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3010 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3015 esac
3017 # Configure extra directories which are host specific
3019 case "${host}" in
3020 *-cygwin*)
3021 configdirs="$configdirs libtermcap" ;;
3022 esac
3024 # A target can indicate whether a language isn't supported for some reason.
3025 # Only spaces may be used in this macro; not newlines or tabs.
3026 unsupported_languages=
3028 # Remove more programs from consideration, based on the host or
3029 # target this usually means that a port of the program doesn't
3030 # exist yet.
3032 case "${host}" in
3033 i[3456789]86-*-msdosdjgpp*)
3034 noconfigdirs="$noconfigdirs tcl tk itcl"
3036 esac
3039 # Check whether --enable-libquadmath was given.
3040 if test "${enable_libquadmath+set}" = set; then :
3041 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3042 else
3043 ENABLE_LIBQUADMATH=yes
3046 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3047 noconfigdirs="$noconfigdirs target-libquadmath"
3051 # Check whether --enable-libquadmath-support was given.
3052 if test "${enable_libquadmath_support+set}" = set; then :
3053 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3054 else
3055 ENABLE_LIBQUADMATH_SUPPORT=yes
3058 enable_libquadmath_support=
3059 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3060 enable_libquadmath_support=no
3064 # Check whether --enable-libada was given.
3065 if test "${enable_libada+set}" = set; then :
3066 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3067 else
3068 ENABLE_LIBADA=yes
3071 if test "${ENABLE_LIBADA}" != "yes" ; then
3072 noconfigdirs="$noconfigdirs gnattools"
3075 # Check whether --enable-libssp was given.
3076 if test "${enable_libssp+set}" = set; then :
3077 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3078 else
3079 ENABLE_LIBSSP=yes
3083 # Check whether --enable-libstdcxx was given.
3084 if test "${enable_libstdcxx+set}" = set; then :
3085 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3086 else
3087 ENABLE_LIBSTDCXX=default
3090 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3091 noconfigdirs="$noconfigdirs libstdc++-v3"
3094 # Save it here so that, even in case of --enable-libgcj, if the Java
3095 # front-end isn't enabled, we still get libgcj disabled.
3096 libgcj_saved=$libgcj
3097 case $enable_libgcj in
3098 yes)
3099 # If we reset it here, it won't get added to noconfigdirs in the
3100 # target-specific build rules, so it will be forcibly enabled
3101 # (unless the Java language itself isn't enabled).
3102 libgcj=
3105 # Make sure we get it printed in the list of not supported target libs.
3106 # Don't disable libffi, though, other languages use it.
3107 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3108 # Clear libgcj_saved so that even if java is enabled libffi won't be
3109 # built.
3110 libgcj_saved=
3112 esac
3114 # Check whether --enable-static-libjava was given.
3115 if test "${enable_static_libjava+set}" = set; then :
3116 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3117 else
3118 ENABLE_STATIC_LIBJAVA=no
3121 enable_static_libjava=
3122 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3123 enable_static_libjava=yes
3126 if test x$enable_static_libjava != xyes ; then
3127 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3131 # Disable libgomp on non POSIX hosted systems.
3132 if test x$enable_libgomp = x ; then
3133 # Enable libgomp by default on hosted POSIX systems.
3134 case "${target}" in
3135 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3137 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3139 *-*-solaris2* | *-*-hpux11*)
3141 *-*-darwin* | *-*-aix*)
3144 noconfigdirs="$noconfigdirs target-libgomp"
3146 esac
3149 # Disable libatomic on unsupported systems.
3150 if test -d ${srcdir}/libatomic; then
3151 if test x$enable_libatomic = x; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3153 $as_echo_n "checking for libatomic support... " >&6; }
3154 if (srcdir=${srcdir}/libatomic; \
3155 . ${srcdir}/configure.tgt; \
3156 test -n "$UNSUPPORTED")
3157 then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 noconfigdirs="$noconfigdirs target-libatomic"
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3168 # Disable libcilkrts on unsupported systems.
3169 if test -d ${srcdir}/libcilkrts; then
3170 if test x$enable_libcilkrts = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3172 $as_echo_n "checking for libcilkrts support... " >&6; }
3173 if (srcdir=${srcdir}/libcilkrts; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libcilkrts"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3187 # Disable libitm on unsupported systems.
3188 if test -d ${srcdir}/libitm; then
3189 if test x$enable_libitm = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3191 $as_echo_n "checking for libitm support... " >&6; }
3192 if (srcdir=${srcdir}/libitm; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libitm"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3206 # Disable libsanitizer on unsupported systems.
3207 if test -d ${srcdir}/libsanitizer; then
3208 if test x$enable_libsanitizer = x; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3210 $as_echo_n "checking for libsanitizer support... " >&6; }
3211 if (srcdir=${srcdir}/libsanitizer; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-libsanitizer"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3225 # Disable libvtv on unsupported systems.
3226 if test -d ${srcdir}/libvtv; then
3227 if test x$enable_libvtv = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3229 $as_echo_n "checking for libvtv support... " >&6; }
3230 if (srcdir=${srcdir}/libvtv; \
3231 . ${srcdir}/configure.tgt; \
3232 test "$VTV_SUPPORTED" != "yes")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libvtv"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3244 # Disable libquadmath for some systems.
3245 case "${target}" in
3246 avr-*-*)
3247 noconfigdirs="$noconfigdirs target-libquadmath"
3249 # libquadmath is unused on AIX and libquadmath build process use of
3250 # LD_LIBRARY_PATH can break AIX bootstrap.
3251 powerpc-*-aix* | rs6000-*-aix*)
3252 noconfigdirs="$noconfigdirs target-libquadmath"
3254 esac
3256 # Disable libssp for some systems.
3257 case "${target}" in
3258 avr-*-*)
3259 # No hosted I/O support.
3260 noconfigdirs="$noconfigdirs target-libssp"
3262 powerpc-*-aix* | rs6000-*-aix*)
3263 noconfigdirs="$noconfigdirs target-libssp"
3265 rl78-*-*)
3266 # libssp uses a misaligned load to trigger a fault, but the RL78
3267 # doesn't fault for those - instead, it gives a build-time error
3268 # for explicit misaligned loads.
3269 noconfigdirs="$noconfigdirs target-libssp"
3271 esac
3273 # Disable libstdc++-v3 for some systems.
3274 # Allow user to override this if they pass --enable-libstdc++-v3
3275 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3276 case "${target}" in
3277 *-*-vxworks*)
3278 # VxWorks uses the Dinkumware C++ library.
3279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3281 arm*-wince-pe*)
3282 # the C++ libraries don't build on top of CE's C libraries
3283 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3285 avr-*-*)
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3288 esac
3291 # Disable Fortran for some systems.
3292 case "${target}" in
3293 mmix-*-*)
3294 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3295 unsupported_languages="$unsupported_languages fortran"
3297 esac
3299 # Disable Java if libffi is not supported.
3300 case "${target}" in
3301 aarch64-*-*)
3303 alpha*-*-*)
3305 arm*-*-*)
3307 cris-*-*)
3309 frv-*-*)
3311 hppa*-*-linux*)
3313 hppa*-*-hpux*)
3315 i?86-*-*)
3317 ia64*-*-*)
3319 m32r*-*-*)
3321 m68k-*-*)
3323 mips*-*-rtems*)
3325 mips*-*-linux*)
3327 powerpc*-*-linux*)
3329 powerpc-*-darwin*)
3331 powerpc-*-aix* | rs6000-*-aix*)
3333 powerpc-*-freebsd*)
3335 powerpc64-*-freebsd*)
3337 powerpc*-*-rtems*)
3339 s390-*-* | s390x-*-*)
3341 sh-*-* | sh[34]*-*-*)
3343 sh64-*-* | sh5*-*-*)
3345 sparc*-*-*)
3347 x86_64-*-*)
3349 *-*-*)
3350 unsupported_languages="$unsupported_languages java"
3352 esac
3354 # Disable Java, libgcj or related libraries for some systems.
3355 case "${target}" in
3356 powerpc-*-darwin*)
3358 i[3456789]86-*-darwin*)
3360 x86_64-*-darwin[912]*)
3362 *-*-darwin*)
3363 noconfigdirs="$noconfigdirs ${libgcj}"
3365 *-*-netware*)
3366 noconfigdirs="$noconfigdirs ${libgcj}"
3368 *-*-rtems*)
3369 noconfigdirs="$noconfigdirs ${libgcj}"
3371 *-*-tpf*)
3372 noconfigdirs="$noconfigdirs ${libgcj}"
3374 *-*-uclinux*)
3375 noconfigdirs="$noconfigdirs ${libgcj}"
3377 *-*-vxworks*)
3378 noconfigdirs="$noconfigdirs ${libgcj}"
3380 alpha*-*-*vms*)
3381 noconfigdirs="$noconfigdirs ${libgcj}"
3383 arm-wince-pe)
3384 noconfigdirs="$noconfigdirs ${libgcj}"
3386 arm*-*-symbianelf*)
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3389 bfin-*-*)
3390 noconfigdirs="$noconfigdirs target-boehm-gc"
3392 cris-*-* | crisv32-*-*)
3393 unsupported_languages="$unsupported_languages java"
3394 case "${target}" in
3395 *-*-linux*)
3397 *) # See PR46792 regarding target-libffi.
3398 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3399 esac
3401 hppa*64*-*-linux*)
3402 # In this case, it's because the hppa64-linux target is for
3403 # the kernel only at this point and has no libc, and thus no
3404 # headers, crt*.o, etc., all of which are needed by these.
3405 unsupported_languages="$unsupported_languages java"
3407 hppa*64*-*-hpux*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3410 hppa*-hp-hpux11*)
3412 hppa*-*-hpux*)
3413 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3414 # build on HP-UX 10.20.
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3417 ia64*-*-*vms*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3420 i[3456789]86-w64-mingw*)
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3423 i[3456789]86-*-mingw*)
3424 noconfigdirs="$noconfigdirs ${libgcj}"
3426 x86_64-*-mingw*)
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3429 mmix-*-*)
3430 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3432 powerpc-*-aix*)
3433 # copied from rs6000-*-* entry
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 rs6000-*-aix*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3439 *-*-lynxos*)
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3442 esac
3444 # Disable libgo for some systems where it is known to not work.
3445 # For testing, you can easily override this with --enable-libgo.
3446 if test x$enable_libgo = x; then
3447 case "${target}" in
3448 *-*-darwin*)
3449 # PR 46986
3450 noconfigdirs="$noconfigdirs target-libgo"
3452 *-*-cygwin* | *-*-mingw*)
3453 noconfigdirs="$noconfigdirs target-libgo"
3455 *-*-aix*)
3456 noconfigdirs="$noconfigdirs target-libgo"
3458 esac
3461 # Default libgloss CPU subdirectory.
3462 libgloss_dir="$target_cpu"
3464 case "${target}" in
3465 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3466 libgloss_dir=wince
3468 aarch64*-*-* )
3469 libgloss_dir=aarch64
3471 arm*-*-*)
3472 libgloss_dir=arm
3474 cris-*-* | crisv32-*-*)
3475 libgloss_dir=cris
3477 hppa*-*-*)
3478 libgloss_dir=pa
3480 i[3456789]86-*-*)
3481 libgloss_dir=i386
3483 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3484 libgloss_dir=m68hc11
3486 m68*-*-* | fido-*-*)
3487 libgloss_dir=m68k
3489 mips*-*-*)
3490 libgloss_dir=mips
3492 powerpc*-*-*)
3493 libgloss_dir=rs6000
3495 sparc*-*-*)
3496 libgloss_dir=sparc
3498 esac
3500 # Disable newlib and libgloss for various target OSes.
3501 case "${target}" in
3502 alpha*-dec-osf*)
3503 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505 i[3456789]86-*-linux*)
3506 # This section makes it possible to build newlib natively on linux.
3507 # If we are using a cross compiler then don't configure newlib.
3508 if test x${is_cross_compiler} != xno ; then
3509 noconfigdirs="$noconfigdirs target-newlib"
3511 noconfigdirs="$noconfigdirs target-libgloss"
3512 # If we are not using a cross compiler, do configure newlib.
3513 # Note however, that newlib will only be configured in this situation
3514 # if the --with-newlib option has been given, because otherwise
3515 # 'target-newlib' will appear in skipdirs.
3517 i[3456789]86-*-rdos*)
3518 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523 sparc-*-sunos4*)
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 *-*-aix*)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 *-*-beos*)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 *-*-chorusos)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 *-*-dragonfly*)
3536 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 *-*-freebsd*)
3539 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 *-*-lynxos*)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 *-*-mingw*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 *-*-netbsd*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 *-*-netware*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 *-*-tpf*)
3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 *-*-uclinux*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 *-*-vxworks*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 esac
3567 case "${target}" in
3568 *-*-chorusos)
3570 powerpc-*-darwin*)
3571 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3572 noconfigdirs="$noconfigdirs sim target-rda"
3574 i[3456789]86-*-darwin*)
3575 noconfigdirs="$noconfigdirs ld gprof"
3576 noconfigdirs="$noconfigdirs sim target-rda"
3578 x86_64-*-darwin[912]*)
3579 noconfigdirs="$noconfigdirs ld gas gprof"
3580 noconfigdirs="$noconfigdirs sim target-rda"
3582 *-*-darwin*)
3583 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3584 noconfigdirs="$noconfigdirs sim target-rda"
3586 *-*-dragonfly*)
3588 *-*-freebsd*)
3589 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3590 && test -f /usr/local/include/gmp.h; then
3591 with_gmp=/usr/local
3594 *-*-kaos*)
3595 # Remove unsupported stuff on all kaOS configurations.
3596 noconfigdirs="$noconfigdirs target-libgloss"
3598 *-*-netbsd*)
3600 *-*-netware*)
3602 *-*-rtems*)
3603 noconfigdirs="$noconfigdirs target-libgloss"
3605 # The tpf target doesn't support gdb yet.
3606 *-*-tpf*)
3607 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3609 *-*-uclinux*)
3610 noconfigdirs="$noconfigdirs target-rda"
3612 *-*-vxworks*)
3614 alpha*-dec-osf*)
3615 # ld works, but does not support shared libraries.
3616 # gas doesn't generate exception information.
3617 noconfigdirs="$noconfigdirs gas ld"
3619 alpha*-*-*vms*)
3620 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3622 alpha*-*-*)
3623 # newlib is not 64 bit ready
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3627 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3629 arc-*-*|arceb-*-*)
3630 noconfigdirs="$noconfigdirs target-libgloss"
3632 arm*-*-linux-androideabi)
3633 noconfigdirs="$noconfigdirs target-libiberty"
3635 arm-*-pe*)
3636 noconfigdirs="$noconfigdirs target-libgloss"
3638 arm-*-riscix*)
3639 noconfigdirs="$noconfigdirs ld target-libgloss"
3641 avr-*-rtems*)
3643 avr-*-*)
3644 if test x${with_avrlibc} != xno; then
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 c4x-*-* | tic4x-*-*)
3649 noconfigdirs="$noconfigdirs target-libgloss"
3651 tic54x-*-*)
3652 noconfigdirs="$noconfigdirs target-libgloss gdb"
3654 d10v-*-*)
3655 noconfigdirs="$noconfigdirs target-libgloss"
3657 d30v-*-*)
3658 noconfigdirs="$noconfigdirs gdb"
3660 fr30-*-elf*)
3661 noconfigdirs="$noconfigdirs gdb"
3663 moxie-*-*)
3664 noconfigdirs="$noconfigdirs gprof"
3666 h8300*-*-*)
3667 noconfigdirs="$noconfigdirs target-libgloss"
3669 h8500-*-*)
3670 noconfigdirs="$noconfigdirs target-libgloss"
3672 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3674 hppa*64*-*-linux*)
3676 hppa*-*-linux*)
3678 hppa*-*-*elf* | \
3679 hppa*-*-lites* | \
3680 hppa*-*-openbsd* | \
3681 hppa*64*-*-*)
3683 hppa*-hp-hpux11*)
3684 noconfigdirs="$noconfigdirs ld"
3686 hppa*-*-pro*)
3688 hppa*-*-*)
3689 noconfigdirs="$noconfigdirs ld"
3691 i960-*-*)
3692 noconfigdirs="$noconfigdirs gdb"
3694 ia64*-*-elf*)
3695 # No gdb support yet.
3696 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3698 ia64*-**-hpux*)
3699 # No ld support yet.
3700 noconfigdirs="$noconfigdirs libgui itcl ld"
3702 ia64*-*-*vms*)
3703 # No ld support yet.
3704 noconfigdirs="$noconfigdirs libgui itcl ld"
3706 i[3456789]86-w64-mingw*)
3708 i[3456789]86-*-mingw*)
3709 target_configdirs="$target_configdirs target-winsup"
3711 *-*-cygwin*)
3712 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3713 noconfigdirs="$noconfigdirs target-libgloss"
3714 # always build newlib if winsup directory is present.
3715 if test -d "$srcdir/winsup/cygwin"; then
3716 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3717 elif test -d "$srcdir/newlib"; then
3718 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3721 i[3456789]86-*-pe)
3722 noconfigdirs="$noconfigdirs target-libgloss"
3724 i[3456789]86-*-sco3.2v5*)
3725 # The linker does not yet know about weak symbols in COFF,
3726 # and is not configured to handle mixed ELF and COFF.
3727 noconfigdirs="$noconfigdirs ld target-libgloss"
3729 i[3456789]86-*-sco*)
3730 noconfigdirs="$noconfigdirs gprof target-libgloss"
3732 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3733 noconfigdirs="$noconfigdirs target-libgloss"
3735 i[3456789]86-*-sysv4*)
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 i[3456789]86-*-beos*)
3739 noconfigdirs="$noconfigdirs gdb"
3741 i[3456789]86-*-rdos*)
3742 noconfigdirs="$noconfigdirs gdb"
3744 mmix-*-*)
3745 noconfigdirs="$noconfigdirs gdb"
3747 mt-*-*)
3748 noconfigdirs="$noconfigdirs sim"
3750 powerpc-*-aix*)
3751 # copied from rs6000-*-* entry
3752 noconfigdirs="$noconfigdirs gprof"
3754 powerpc*-*-winnt* | powerpc*-*-pe*)
3755 target_configdirs="$target_configdirs target-winsup"
3756 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3757 # always build newlib.
3758 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3760 # This is temporary until we can link against shared libraries
3761 powerpcle-*-solaris*)
3762 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3764 powerpc-*-beos*)
3765 noconfigdirs="$noconfigdirs gdb"
3767 rs6000-*-lynxos*)
3768 noconfigdirs="$noconfigdirs gprof"
3770 rs6000-*-aix*)
3771 noconfigdirs="$noconfigdirs gprof"
3773 rs6000-*-*)
3774 noconfigdirs="$noconfigdirs gprof"
3776 m68k-apollo-*)
3777 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3779 microblaze*)
3780 noconfigdirs="$noconfigdirs gprof"
3782 mips*-sde-elf* | mips*-mti-elf*)
3783 if test x$with_newlib = xyes; then
3784 noconfigdirs="$noconfigdirs gprof"
3787 mips*-*-irix5*)
3788 noconfigdirs="$noconfigdirs gprof target-libgloss"
3790 mips*-*-irix6*)
3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
3793 mips*-*-bsd*)
3794 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3796 mips*-*-linux*)
3798 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3799 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3800 noconfigdirs="$noconfigdirs ld gas gprof"
3802 mips*-*-*)
3803 noconfigdirs="$noconfigdirs gprof"
3805 sh-*-* | sh64-*-*)
3806 case "${target}" in
3807 sh*-*-elf)
3810 noconfigdirs="$noconfigdirs target-libgloss" ;;
3811 esac
3813 sparc-*-sunos4*)
3814 if test x${is_cross_compiler} = xno ; then
3815 use_gnu_ld=no
3818 tic6x-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3821 tilepro-*-* | tilegx-*-*)
3822 noconfigdirs="$noconfigdirs sim"
3824 v810-*-*)
3825 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3827 vax-*-*)
3828 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3830 esac
3832 # If we aren't building newlib, then don't build libgloss, since libgloss
3833 # depends upon some newlib header files.
3834 case "${noconfigdirs}" in
3835 *target-libgloss*) ;;
3836 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3837 esac
3839 # Work in distributions that contain no compiler tools, like Autoconf.
3840 host_makefile_frag=/dev/null
3841 if test -d ${srcdir}/config ; then
3842 case "${host}" in
3843 i[3456789]86-*-msdosdjgpp*)
3844 host_makefile_frag="config/mh-djgpp"
3846 *-cygwin*)
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3849 $as_echo_n "checking to see if cat works as expected... " >&6; }
3850 echo a >cygwin-cat-check
3851 if test `cat cygwin-cat-check` = a ; then
3852 rm cygwin-cat-check
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3855 else
3856 rm cygwin-cat-check
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 as_fn_error "The cat command does not ignore carriage return characters.
3860 Please either mount the build directory in binary mode or run the following
3861 commands before running any configure script:
3862 set -o igncr
3863 export SHELLOPTS
3864 " "$LINENO" 5
3867 host_makefile_frag="config/mh-cygwin"
3869 *-mingw*)
3870 host_makefile_frag="config/mh-mingw"
3872 hppa*-hp-hpux10*)
3873 host_makefile_frag="config/mh-pa-hpux10"
3875 hppa*-hp-hpux*)
3876 host_makefile_frag="config/mh-pa"
3878 hppa*-*)
3879 host_makefile_frag="config/mh-pa"
3881 *-*-darwin*)
3882 host_makefile_frag="config/mh-darwin"
3884 powerpc-*-aix*)
3885 host_makefile_frag="config/mh-ppc-aix"
3887 rs6000-*-aix*)
3888 host_makefile_frag="config/mh-ppc-aix"
3890 esac
3893 if test "${build}" != "${host}" ; then
3894 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3895 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3896 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3897 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3898 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3899 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3900 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3901 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3902 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3903 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3904 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3905 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3906 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3907 else
3908 AR_FOR_BUILD="\$(AR)"
3909 AS_FOR_BUILD="\$(AS)"
3910 CC_FOR_BUILD="\$(CC)"
3911 CXX_FOR_BUILD="\$(CXX)"
3912 GCJ_FOR_BUILD="\$(GCJ)"
3913 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3914 GOC_FOR_BUILD="\$(GOC)"
3915 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3916 LD_FOR_BUILD="\$(LD)"
3917 NM_FOR_BUILD="\$(NM)"
3918 RANLIB_FOR_BUILD="\$(RANLIB)"
3919 WINDRES_FOR_BUILD="\$(WINDRES)"
3920 WINDMC_FOR_BUILD="\$(WINDMC)"
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_CC+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3952 IFS=$as_save_IFS
3956 CC=$ac_cv_prog_CC
3957 if test -n "$CC"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959 $as_echo "$CC" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3967 if test -z "$ac_cv_prog_CC"; then
3968 ac_ct_CC=$CC
3969 # Extract the first word of "gcc", so it can be a program name with args.
3970 set dummy gcc; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -n "$ac_ct_CC"; then
3977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_ac_ct_CC="gcc"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3992 IFS=$as_save_IFS
3996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3997 if test -n "$ac_ct_CC"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3999 $as_echo "$ac_ct_CC" >&6; }
4000 else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4005 if test "x$ac_ct_CC" = x; then
4006 CC=""
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009 yes:)
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012 ac_tool_warned=yes ;;
4013 esac
4014 CC=$ac_ct_CC
4016 else
4017 CC="$ac_cv_prog_CC"
4020 if test -z "$CC"; then
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}cc; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_CC+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_CC="${ac_tool_prefix}cc"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 $as_echo "$CC" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4061 if test -z "$CC"; then
4062 # Extract the first word of "cc", so it can be a program name with args.
4063 set dummy cc; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_CC+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071 else
4072 ac_prog_rejected=no
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4081 ac_prog_rejected=yes
4082 continue
4084 ac_cv_prog_CC="cc"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4090 IFS=$as_save_IFS
4092 if test $ac_prog_rejected = yes; then
4093 # We found a bogon in the path, so make sure we never use it.
4094 set dummy $ac_cv_prog_CC
4095 shift
4096 if test $# != 0; then
4097 # We chose a different compiler from the bogus one.
4098 # However, it has the same basename, so the bogon will be chosen
4099 # first if we set CC to just the basename; use the full file name.
4100 shift
4101 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4106 CC=$ac_cv_prog_CC
4107 if test -n "$CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109 $as_echo "$CC" >&6; }
4110 else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 for ac_prog in cl.exe
4121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4144 IFS=$as_save_IFS
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4151 $as_echo "$CC" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4158 test -n "$CC" && break
4159 done
4161 if test -z "$CC"; then
4162 ac_ct_CC=$CC
4163 for ac_prog in cl.exe
4165 # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$ac_ct_CC"; then
4173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_prog_ac_ct_CC="$ac_prog"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4188 IFS=$as_save_IFS
4192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4193 if test -n "$ac_ct_CC"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4195 $as_echo "$ac_ct_CC" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4202 test -n "$ac_ct_CC" && break
4203 done
4205 if test "x$ac_ct_CC" = x; then
4206 CC=""
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214 CC=$ac_ct_CC
4221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4223 as_fn_error "no acceptable C compiler found in \$PATH
4224 See \`config.log' for more details." "$LINENO" 5; }
4226 # Provide some information about the compiler.
4227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4228 set X $ac_compile
4229 ac_compiler=$2
4230 for ac_option in --version -v -V -qversion; do
4231 { { ac_try="$ac_compiler $ac_option >&5"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4239 ac_status=$?
4240 if test -s conftest.err; then
4241 sed '10a\
4242 ... rest of stderr output deleted ...
4243 10q' conftest.err >conftest.er1
4244 cat conftest.er1 >&5
4245 rm -f conftest.er1 conftest.err
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; }
4249 done
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 main ()
4259 return 0;
4261 _ACEOF
4262 ac_clean_files_save=$ac_clean_files
4263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4264 # Try to create an executable without -o first, disregard a.out.
4265 # It will help us diagnose broken compilers, and finding out an intuition
4266 # of exeext.
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4268 $as_echo_n "checking for C compiler default output file name... " >&6; }
4269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4271 # The possible output files:
4272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4274 ac_rmfiles=
4275 for ac_file in $ac_files
4277 case $ac_file in
4278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4280 esac
4281 done
4282 rm -f $ac_rmfiles
4284 if { { ac_try="$ac_link_default"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_link_default") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }; then :
4295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4297 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4298 # so that the user can short-circuit this test for compilers unknown to
4299 # Autoconf.
4300 for ac_file in $ac_files ''
4302 test -f "$ac_file" || continue
4303 case $ac_file in
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4306 [ab].out )
4307 # We found the default executable, but exeext='' is most
4308 # certainly right.
4309 break;;
4310 *.* )
4311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4312 then :; else
4313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4315 # We set ac_cv_exeext here because the later test for it is not
4316 # safe: cross compilers may not add the suffix if given an `-o'
4317 # argument, so we may need to know it at that point already.
4318 # Even if this section looks crufty: it has the advantage of
4319 # actually working.
4320 break;;
4322 break;;
4323 esac
4324 done
4325 test "$ac_cv_exeext" = no && ac_cv_exeext=
4327 else
4328 ac_file=''
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4331 $as_echo "$ac_file" >&6; }
4332 if test -z "$ac_file"; then :
4333 $as_echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338 { as_fn_set_status 77
4339 as_fn_error "C compiler cannot create executables
4340 See \`config.log' for more details." "$LINENO" 5; }; }
4342 ac_exeext=$ac_cv_exeext
4344 # Check that the compiler produces executables we can run. If not, either
4345 # the compiler is broken, or we cross compile.
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4347 $as_echo_n "checking whether the C compiler works... " >&6; }
4348 # If not cross compiling, check that we can run a simple program.
4349 if test "$cross_compiling" != yes; then
4350 if { ac_try='./$ac_file'
4351 { { case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_try") 2>&5
4358 ac_status=$?
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; }; then
4361 cross_compiling=no
4362 else
4363 if test "$cross_compiling" = maybe; then
4364 cross_compiling=yes
4365 else
4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error "cannot run C compiled programs.
4369 If you meant to cross compile, use \`--host'.
4370 See \`config.log' for more details." "$LINENO" 5; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4378 ac_clean_files=$ac_clean_files_save
4379 # Check that the compiler produces executables we can run. If not, either
4380 # the compiler is broken, or we cross compile.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4382 $as_echo_n "checking whether we are cross compiling... " >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4384 $as_echo "$cross_compiling" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4387 $as_echo_n "checking for suffix of executables... " >&6; }
4388 if { { ac_try="$ac_link"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395 (eval "$ac_link") 2>&5
4396 ac_status=$?
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }; then :
4399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4401 # work properly (i.e., refer to `conftest.exe'), while it won't with
4402 # `rm'.
4403 for ac_file in conftest.exe conftest conftest.*; do
4404 test -f "$ac_file" || continue
4405 case $ac_file in
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 break;;
4409 * ) break;;
4410 esac
4411 done
4412 else
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error "cannot compute suffix of executables: cannot compile and link
4416 See \`config.log' for more details." "$LINENO" 5; }
4418 rm -f conftest$ac_cv_exeext
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4420 $as_echo "$ac_cv_exeext" >&6; }
4422 rm -f conftest.$ac_ext
4423 EXEEXT=$ac_cv_exeext
4424 ac_exeext=$EXEEXT
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4426 $as_echo_n "checking for suffix of object files... " >&6; }
4427 if test "${ac_cv_objext+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4434 main ()
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.o conftest.obj
4442 if { { ac_try="$ac_compile"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_compile") 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 for ac_file in conftest.o conftest.obj conftest.*; do
4454 test -f "$ac_file" || continue;
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4458 break;;
4459 esac
4460 done
4461 else
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error "cannot compute suffix of object files: cannot compile
4468 See \`config.log' for more details." "$LINENO" 5; }
4470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4473 $as_echo "$ac_cv_objext" >&6; }
4474 OBJEXT=$ac_cv_objext
4475 ac_objext=$OBJEXT
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4477 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4478 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4487 #ifndef __GNUC__
4488 choke me
4489 #endif
4492 return 0;
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_compiler_gnu=yes
4497 else
4498 ac_compiler_gnu=no
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4506 if test $ac_compiler_gnu = yes; then
4507 GCC=yes
4508 else
4509 GCC=
4511 ac_test_CFLAGS=${CFLAGS+set}
4512 ac_save_CFLAGS=$CFLAGS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4515 if test "${ac_cv_prog_cc_g+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 ac_save_c_werror_flag=$ac_c_werror_flag
4519 ac_c_werror_flag=yes
4520 ac_cv_prog_cc_g=no
4521 CFLAGS="-g"
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 main ()
4530 return 0;
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_cv_prog_cc_g=yes
4535 else
4536 CFLAGS=""
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4541 main ()
4545 return 0;
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4550 else
4551 ac_c_werror_flag=$ac_save_c_werror_flag
4552 CFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 main ()
4561 return 0;
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_prog_cc_g=yes
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_c_werror_flag=$ac_save_c_werror_flag
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4575 $as_echo "$ac_cv_prog_cc_g" >&6; }
4576 if test "$ac_test_CFLAGS" = set; then
4577 CFLAGS=$ac_save_CFLAGS
4578 elif test $ac_cv_prog_cc_g = yes; then
4579 if test "$GCC" = yes; then
4580 CFLAGS="-g -O2"
4581 else
4582 CFLAGS="-g"
4584 else
4585 if test "$GCC" = yes; then
4586 CFLAGS="-O2"
4587 else
4588 CFLAGS=
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4592 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4593 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_cv_prog_cc_c89=no
4597 ac_save_CC=$CC
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <stdarg.h>
4601 #include <stdio.h>
4602 #include <sys/types.h>
4603 #include <sys/stat.h>
4604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4605 struct buf { int x; };
4606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4607 static char *e (p, i)
4608 char **p;
4609 int i;
4611 return p[i];
4613 static char *f (char * (*g) (char **, int), char **p, ...)
4615 char *s;
4616 va_list v;
4617 va_start (v,p);
4618 s = g (p, va_arg (v,int));
4619 va_end (v);
4620 return s;
4623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4624 function prototypes and stuff, but not '\xHH' hex character constants.
4625 These don't provoke an error unfortunately, instead are silently treated
4626 as 'x'. The following induces an error, until -std is added to get
4627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4628 array size at least. It's necessary to write '\x00'==0 to get something
4629 that's true only with -std. */
4630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4633 inside strings and character constants. */
4634 #define FOO(x) 'x'
4635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4637 int test (int i, double x);
4638 struct s1 {int (*f) (int a);};
4639 struct s2 {int (*f) (double a);};
4640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4641 int argc;
4642 char **argv;
4644 main ()
4646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4648 return 0;
4650 _ACEOF
4651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654 CC="$ac_save_CC $ac_arg"
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_prog_cc_c89=$ac_arg
4658 rm -f core conftest.err conftest.$ac_objext
4659 test "x$ac_cv_prog_cc_c89" != "xno" && break
4660 done
4661 rm -f conftest.$ac_ext
4662 CC=$ac_save_CC
4665 # AC_CACHE_VAL
4666 case "x$ac_cv_prog_cc_c89" in
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4669 $as_echo "none needed" >&6; } ;;
4670 xno)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4672 $as_echo "unsupported" >&6; } ;;
4674 CC="$CC $ac_cv_prog_cc_c89"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4677 esac
4678 if test "x$ac_cv_prog_cc_c89" != xno; then :
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 ac_ext=cpp
4689 ac_cpp='$CXXCPP $CPPFLAGS'
4690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4693 if test -z "$CXX"; then
4694 if test -n "$CCC"; then
4695 CXX=$CCC
4696 else
4697 if test -n "$ac_tool_prefix"; then
4698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_CXX+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$CXX"; then
4708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 CXX=$ac_cv_prog_CXX
4728 if test -n "$CXX"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4730 $as_echo "$CXX" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4737 test -n "$CXX" && break
4738 done
4740 if test -z "$CXX"; then
4741 ac_ct_CXX=$CXX
4742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4744 # Extract the first word of "$ac_prog", so it can be a program name with args.
4745 set dummy $ac_prog; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$ac_ct_CXX"; then
4752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_CXX="$ac_prog"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4772 if test -n "$ac_ct_CXX"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4774 $as_echo "$ac_ct_CXX" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4781 test -n "$ac_ct_CXX" && break
4782 done
4784 if test "x$ac_ct_CXX" = x; then
4785 CXX="g++"
4786 else
4787 case $cross_compiling:$ac_tool_warned in
4788 yes:)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 CXX=$ac_ct_CXX
4799 # Provide some information about the compiler.
4800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4801 set X $ac_compile
4802 ac_compiler=$2
4803 for ac_option in --version -v -V -qversion; do
4804 { { ac_try="$ac_compiler $ac_option >&5"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810 $as_echo "$ac_try_echo"; } >&5
4811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4812 ac_status=$?
4813 if test -s conftest.err; then
4814 sed '10a\
4815 ... rest of stderr output deleted ...
4816 10q' conftest.err >conftest.er1
4817 cat conftest.er1 >&5
4818 rm -f conftest.er1 conftest.err
4820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822 done
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4825 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4826 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4833 main ()
4835 #ifndef __GNUC__
4836 choke me
4837 #endif
4840 return 0;
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4844 ac_compiler_gnu=yes
4845 else
4846 ac_compiler_gnu=no
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4853 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4854 if test $ac_compiler_gnu = yes; then
4855 GXX=yes
4856 else
4857 GXX=
4859 ac_test_CXXFLAGS=${CXXFLAGS+set}
4860 ac_save_CXXFLAGS=$CXXFLAGS
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4862 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4863 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4867 ac_cxx_werror_flag=yes
4868 ac_cv_prog_cxx_g=no
4869 CXXFLAGS="-g"
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4874 main ()
4878 return 0;
4880 _ACEOF
4881 if ac_fn_cxx_try_compile "$LINENO"; then :
4882 ac_cv_prog_cxx_g=yes
4883 else
4884 CXXFLAGS=""
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 main ()
4893 return 0;
4895 _ACEOF
4896 if ac_fn_cxx_try_compile "$LINENO"; then :
4898 else
4899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4900 CXXFLAGS="-g"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4905 main ()
4909 return 0;
4911 _ACEOF
4912 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_cv_prog_cxx_g=yes
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4923 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4924 if test "$ac_test_CXXFLAGS" = set; then
4925 CXXFLAGS=$ac_save_CXXFLAGS
4926 elif test $ac_cv_prog_cxx_g = yes; then
4927 if test "$GXX" = yes; then
4928 CXXFLAGS="-g -O2"
4929 else
4930 CXXFLAGS="-g"
4932 else
4933 if test "$GXX" = yes; then
4934 CXXFLAGS="-O2"
4935 else
4936 CXXFLAGS=
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 # We must set the default linker to the linker used by gcc for the correct
4947 # operation of libtool. If LD is not defined and we are using gcc, try to
4948 # set the LD default to the ld used by gcc.
4949 if test -z "$LD"; then
4950 if test "$GCC" = yes; then
4951 case $build in
4952 *-*-mingw*)
4953 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4955 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4956 esac
4957 case $gcc_prog_ld in
4958 # Accept absolute paths.
4959 [\\/]* | [A-Za-z]:[\\/]*)
4960 LD="$gcc_prog_ld" ;;
4961 esac
4965 # Check whether -static-libstdc++ -static-libgcc is supported.
4966 have_static_libs=no
4967 if test "$GCC" = yes; then
4968 saved_LDFLAGS="$LDFLAGS"
4970 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4972 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4973 ac_ext=cpp
4974 ac_cpp='$CXXCPP $CPPFLAGS'
4975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4983 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4984 #error -static-libstdc++ not implemented
4985 #endif
4986 int main() {}
4987 _ACEOF
4988 if ac_fn_cxx_try_link "$LINENO"; then :
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; }; have_static_libs=yes
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4995 rm -f core conftest.err conftest.$ac_objext \
4996 conftest$ac_exeext conftest.$ac_ext
4997 ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 LDFLAGS="$saved_LDFLAGS"
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$GNATBIND"; then
5019 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 GNATBIND=$ac_cv_prog_GNATBIND
5039 if test -n "$GNATBIND"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5041 $as_echo "$GNATBIND" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5049 if test -z "$ac_cv_prog_GNATBIND"; then
5050 ac_ct_GNATBIND=$GNATBIND
5051 # Extract the first word of "gnatbind", so it can be a program name with args.
5052 set dummy gnatbind; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$ac_ct_GNATBIND"; then
5059 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5079 if test -n "$ac_ct_GNATBIND"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5081 $as_echo "$ac_ct_GNATBIND" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5087 if test "x$ac_ct_GNATBIND" = x; then
5088 GNATBIND="no"
5089 else
5090 case $cross_compiling:$ac_tool_warned in
5091 yes:)
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5094 ac_tool_warned=yes ;;
5095 esac
5096 GNATBIND=$ac_ct_GNATBIND
5098 else
5099 GNATBIND="$ac_cv_prog_GNATBIND"
5102 if test -n "$ac_tool_prefix"; then
5103 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5104 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$GNATMAKE"; then
5111 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 GNATMAKE=$ac_cv_prog_GNATMAKE
5131 if test -n "$GNATMAKE"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5133 $as_echo "$GNATMAKE" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5141 if test -z "$ac_cv_prog_GNATMAKE"; then
5142 ac_ct_GNATMAKE=$GNATMAKE
5143 # Extract the first word of "gnatmake", so it can be a program name with args.
5144 set dummy gnatmake; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$ac_ct_GNATMAKE"; then
5151 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5171 if test -n "$ac_ct_GNATMAKE"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5173 $as_echo "$ac_ct_GNATMAKE" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5179 if test "x$ac_ct_GNATMAKE" = x; then
5180 GNATMAKE="no"
5181 else
5182 case $cross_compiling:$ac_tool_warned in
5183 yes:)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5186 ac_tool_warned=yes ;;
5187 esac
5188 GNATMAKE=$ac_ct_GNATMAKE
5190 else
5191 GNATMAKE="$ac_cv_prog_GNATMAKE"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5195 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5196 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat >conftest.adb <<EOF
5200 procedure conftest is begin null; end conftest;
5202 acx_cv_cc_gcc_supports_ada=no
5203 # There is a bug in old released versions of GCC which causes the
5204 # driver to exit successfully when the appropriate language module
5205 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5206 # Therefore we must check for the error message as well as an
5207 # unsuccessful exit.
5208 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5209 # given a .adb file, but produce no object file. So we must check
5210 # if an object file was really produced to guard against this.
5211 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5212 if test x"$errors" = x && test -f conftest.$ac_objext; then
5213 acx_cv_cc_gcc_supports_ada=yes
5215 rm -f conftest.*
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5218 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5220 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5221 have_gnat=yes
5222 else
5223 have_gnat=no
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5227 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5228 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 echo abfoo >t1
5232 echo cdfoo >t2
5233 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5234 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5235 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5237 else
5238 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5241 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5242 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5244 else
5245 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5248 rm t1 t2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5252 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5253 do_compare="$gcc_cv_prog_cmp_skip"
5257 # Check whether --enable-bootstrap was given.
5258 if test "${enable_bootstrap+set}" = set; then :
5259 enableval=$enable_bootstrap;
5260 else
5261 enable_bootstrap=default
5265 # Issue errors and warnings for invalid/strange bootstrap combinations.
5266 if test -r $srcdir/gcc/configure; then
5267 have_compiler=yes
5268 else
5269 have_compiler=no
5272 case "$have_compiler:$host:$target:$enable_bootstrap" in
5273 *:*:*:no) ;;
5275 # Default behavior. Enable bootstrap if we have a compiler
5276 # and we are in a native configuration.
5277 yes:$build:$build:default)
5278 enable_bootstrap=yes ;;
5280 *:*:*:default)
5281 enable_bootstrap=no ;;
5283 # We have a compiler and we are in a native configuration, bootstrap is ok
5284 yes:$build:$build:yes)
5287 # Other configurations, but we have a compiler. Assume the user knows
5288 # what he's doing.
5289 yes:*:*:yes)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5291 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5294 # No compiler: if they passed --enable-bootstrap explicitly, fail
5295 no:*:*:yes)
5296 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5298 # Fail if wrong command line
5300 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5302 esac
5304 # Used for setting $lt_cv_objdir
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5306 $as_echo_n "checking for objdir... " >&6; }
5307 if test "${lt_cv_objdir+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 rm -f .libs 2>/dev/null
5311 mkdir .libs 2>/dev/null
5312 if test -d .libs; then
5313 lt_cv_objdir=.libs
5314 else
5315 # MS-DOS does not allow filenames that begin with a dot.
5316 lt_cv_objdir=_libs
5318 rmdir .libs 2>/dev/null
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5321 $as_echo "$lt_cv_objdir" >&6; }
5322 objdir=$lt_cv_objdir
5328 cat >>confdefs.h <<_ACEOF
5329 #define LT_OBJDIR "$lt_cv_objdir/"
5330 _ACEOF
5334 # Check for GMP, MPFR and MPC
5335 gmplibs="-lmpc -lmpfr -lgmp"
5336 gmpinc=
5337 have_gmp=no
5339 # Specify a location for mpc
5340 # check for this first so it ends up on the link line before mpfr.
5342 # Check whether --with-mpc was given.
5343 if test "${with_mpc+set}" = set; then :
5344 withval=$with_mpc;
5348 # Check whether --with-mpc-include was given.
5349 if test "${with_mpc_include+set}" = set; then :
5350 withval=$with_mpc_include;
5354 # Check whether --with-mpc-lib was given.
5355 if test "${with_mpc_lib+set}" = set; then :
5356 withval=$with_mpc_lib;
5360 if test "x$with_mpc" != x; then
5361 gmplibs="-L$with_mpc/lib $gmplibs"
5362 gmpinc="-I$with_mpc/include $gmpinc"
5364 if test "x$with_mpc_include" != x; then
5365 gmpinc="-I$with_mpc_include $gmpinc"
5367 if test "x$with_mpc_lib" != x; then
5368 gmplibs="-L$with_mpc_lib $gmplibs"
5370 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5371 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5372 gmpinc='-I$$s/mpc/src '"$gmpinc"
5373 # Do not test the mpc version. Assume that it is sufficient, since
5374 # it is in the source tree, and the library has not been built yet
5375 # but it would be included on the link line in the version check below
5376 # hence making the test fail.
5377 have_gmp=yes
5380 # Specify a location for mpfr
5381 # check for this first so it ends up on the link line before gmp.
5383 # Check whether --with-mpfr-dir was given.
5384 if test "${with_mpfr_dir+set}" = set; then :
5385 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5386 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5391 # Check whether --with-mpfr was given.
5392 if test "${with_mpfr+set}" = set; then :
5393 withval=$with_mpfr;
5397 # Check whether --with-mpfr-include was given.
5398 if test "${with_mpfr_include+set}" = set; then :
5399 withval=$with_mpfr_include;
5403 # Check whether --with-mpfr-lib was given.
5404 if test "${with_mpfr_lib+set}" = set; then :
5405 withval=$with_mpfr_lib;
5409 if test "x$with_mpfr" != x; then
5410 gmplibs="-L$with_mpfr/lib $gmplibs"
5411 gmpinc="-I$with_mpfr/include $gmpinc"
5413 if test "x$with_mpfr_include" != x; then
5414 gmpinc="-I$with_mpfr_include $gmpinc"
5416 if test "x$with_mpfr_lib" != x; then
5417 gmplibs="-L$with_mpfr_lib $gmplibs"
5419 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5420 # MPFR v3.1.0 moved the sources into a src sub-directory.
5421 if test -d ${srcdir}/mpfr/src; then
5422 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5423 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5424 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5425 else
5426 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5427 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5428 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5430 # Do not test the mpfr version. Assume that it is sufficient, since
5431 # it is in the source tree, and the library has not been built yet
5432 # but it would be included on the link line in the version check below
5433 # hence making the test fail.
5434 have_gmp=yes
5437 # Specify a location for gmp
5439 # Check whether --with-gmp-dir was given.
5440 if test "${with_gmp_dir+set}" = set; then :
5441 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5442 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5447 # Check whether --with-gmp was given.
5448 if test "${with_gmp+set}" = set; then :
5449 withval=$with_gmp;
5453 # Check whether --with-gmp-include was given.
5454 if test "${with_gmp_include+set}" = set; then :
5455 withval=$with_gmp_include;
5459 # Check whether --with-gmp-lib was given.
5460 if test "${with_gmp_lib+set}" = set; then :
5461 withval=$with_gmp_lib;
5466 if test "x$with_gmp" != x; then
5467 gmplibs="-L$with_gmp/lib $gmplibs"
5468 gmpinc="-I$with_gmp/include $gmpinc"
5470 if test "x$with_gmp_include" != x; then
5471 gmpinc="-I$with_gmp_include $gmpinc"
5473 if test "x$with_gmp_lib" != x; then
5474 gmplibs="-L$with_gmp_lib $gmplibs"
5476 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5477 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5478 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5479 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5480 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5481 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5482 # Do not test the gmp version. Assume that it is sufficient, since
5483 # it is in the source tree, and the library has not been built yet
5484 # but it would be included on the link line in the version check below
5485 # hence making the test fail.
5486 have_gmp=yes
5489 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5490 have_gmp=yes
5491 saved_CFLAGS="$CFLAGS"
5492 CFLAGS="$CFLAGS $gmpinc"
5493 # Check for the recommended and required versions of GMP.
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5495 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include "gmp.h"
5501 main ()
5504 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5505 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5506 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5507 choke me
5508 #endif
5511 return 0;
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"; then :
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <gmp.h>
5519 main ()
5522 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5523 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5524 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5525 choke me
5526 #endif
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5534 $as_echo "yes" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5537 $as_echo "buggy but acceptable" >&6; }
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }; have_gmp=no
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 # If we have GMP, check the MPFR version.
5547 if test x"$have_gmp" = xyes; then
5548 # Check for the recommended and required versions of MPFR.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5550 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <gmp.h>
5554 #include <mpfr.h>
5556 main ()
5559 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5560 choke me
5561 #endif
5564 return 0;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include <gmp.h>
5571 #include <mpfr.h>
5573 main ()
5576 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5577 choke me
5578 #endif
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586 $as_echo "yes" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5589 $as_echo "buggy but acceptable" >&6; }
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }; have_gmp=no
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 # Check for the MPC header version.
5600 if test x"$have_gmp" = xyes ; then
5601 # Check for the recommended and required versions of MPC.
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5603 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <mpc.h>
5608 main ()
5611 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5612 choke me
5613 #endif
5616 return 0;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <mpc.h>
5624 main ()
5627 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5628 choke me
5629 #endif
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 $as_echo "yes" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5640 $as_echo "buggy but acceptable" >&6; }
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }; have_gmp=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 # Now check the MPFR library.
5651 if test x"$have_gmp" = xyes; then
5652 saved_LIBS="$LIBS"
5653 LIBS="$LIBS $gmplibs"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5655 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <mpc.h>
5660 main ()
5663 mpfr_t n;
5664 mpfr_t x;
5665 mpc_t c;
5666 int t;
5667 mpfr_init (n);
5668 mpfr_init (x);
5669 mpfr_atan2 (n, n, x, GMP_RNDN);
5670 mpfr_erfc (n, x, GMP_RNDN);
5671 mpfr_subnormalize (x, t, GMP_RNDN);
5672 mpfr_clear(n);
5673 mpfr_clear(x);
5674 mpc_init2 (c, 53);
5675 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5676 mpc_cosh (c, c, MPC_RNDNN);
5677 mpc_pow (c, c, c, MPC_RNDNN);
5678 mpc_acosh (c, c, MPC_RNDNN);
5679 mpc_clear (c);
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }; have_gmp=no
5692 rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694 LIBS="$saved_LIBS"
5697 CFLAGS="$saved_CFLAGS"
5699 # The library versions listed in the error message below should match
5700 # the HARD-minimums enforced above.
5701 if test x$have_gmp != xyes; then
5702 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5703 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5704 their locations. Source code for these libraries can be found at
5705 their respective hosting sites as well as at
5706 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5707 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5708 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5709 make sure that you have installed both the libraries and the header
5710 files. They may be located in separate packages." "$LINENO" 5
5714 # Flags needed for both GMP, MPFR and/or MPC.
5722 # Allow host libstdc++ to be specified for static linking with PPL.
5724 # Check whether --with-host-libstdcxx was given.
5725 if test "${with_host_libstdcxx+set}" = set; then :
5726 withval=$with_host_libstdcxx;
5730 case $with_host_libstdcxx in
5731 no|yes)
5732 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5734 esac
5736 # Libraries to use for stage1 or when not bootstrapping.
5738 # Check whether --with-stage1-libs was given.
5739 if test "${with_stage1_libs+set}" = set; then :
5740 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5741 stage1_libs=
5742 else
5743 stage1_libs=$withval
5745 else
5746 stage1_libs=$with_host_libstdcxx
5751 # Linker flags to use for stage1 or when not bootstrapping.
5753 # Check whether --with-stage1-ldflags was given.
5754 if test "${with_stage1_ldflags+set}" = set; then :
5755 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5756 stage1_ldflags=
5757 else
5758 stage1_ldflags=$withval
5760 else
5761 stage1_ldflags=
5762 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5763 # if supported. But if the user explicitly specified the libraries to use,
5764 # trust that they are doing what they want.
5765 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5766 stage1_ldflags="-static-libstdc++ -static-libgcc"
5772 # Libraries to use for stage2 and later builds. This defaults to the
5773 # argument passed to --with-host-libstdcxx.
5775 # Check whether --with-boot-libs was given.
5776 if test "${with_boot_libs+set}" = set; then :
5777 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5778 poststage1_libs=
5779 else
5780 poststage1_libs=$withval
5782 else
5783 poststage1_libs=$with_host_libstdcxx
5788 # Linker flags to use for stage2 and later builds.
5790 # Check whether --with-boot-ldflags was given.
5791 if test "${with_boot_ldflags+set}" = set; then :
5792 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5793 poststage1_ldflags=
5794 else
5795 poststage1_ldflags=$withval
5797 else
5798 poststage1_ldflags=
5799 # In stages 2 and 3, default to linking libstdc++ and libgcc
5800 # statically. But if the user explicitly specified the libraries to
5801 # use, trust that they are doing what they want.
5802 if test "$poststage1_libs" = ""; then
5803 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5809 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5810 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5811 # config/isl.m4
5814 # Check whether --with-cloog was given.
5815 if test "${with_cloog+set}" = set; then :
5816 withval=$with_cloog;
5820 # Check whether --with-isl was given.
5821 if test "${with_isl+set}" = set; then :
5822 withval=$with_isl;
5826 # Treat either --without-cloog or --without-isl as a request to disable
5827 # GRAPHITE support and skip all following checks.
5828 if test "x$with_isl" != "xno" &&
5829 test "x$with_cloog" != "xno"; then
5830 # Check for ISL
5833 # Check whether --with-isl-include was given.
5834 if test "${with_isl_include+set}" = set; then :
5835 withval=$with_isl_include;
5839 # Check whether --with-isl-lib was given.
5840 if test "${with_isl_lib+set}" = set; then :
5841 withval=$with_isl_lib;
5845 # Check whether --enable-isl-version-check was given.
5846 if test "${enable_isl_version_check+set}" = set; then :
5847 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5848 else
5849 ENABLE_ISL_CHECK=yes
5853 # Initialize isllibs and islinc.
5854 case $with_isl in
5856 isllibs=
5857 islinc=
5859 "" | yes)
5862 isllibs="-L$with_isl/lib"
5863 islinc="-I$with_isl/include"
5865 esac
5866 if test "x${with_isl_include}" != x ; then
5867 islinc="-I$with_isl_include"
5869 if test "x${with_isl_lib}" != x; then
5870 isllibs="-L$with_isl_lib"
5872 if test "x${islinc}" = x && test "x${isllibs}" = x \
5873 && test -d ${srcdir}/isl; then
5874 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5875 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5876 ENABLE_ISL_CHECK=no
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5878 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5883 if test "${ENABLE_ISL_CHECK}" = yes ; then
5884 _isl_saved_CFLAGS=$CFLAGS
5885 _isl_saved_LDFLAGS=$LDFLAGS
5886 _isl_saved_LIBS=$LIBS
5888 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5889 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5890 LIBS="${_isl_saved_LIBS} -lisl"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5893 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5894 if test "$cross_compiling" = yes; then :
5895 gcc_cv_isl=yes
5896 else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <isl/version.h>
5900 #include <string.h>
5902 main ()
5904 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5905 return 1;
5908 return 0;
5910 _ACEOF
5911 if ac_fn_c_try_run "$LINENO"; then :
5912 gcc_cv_isl=yes
5913 else
5914 gcc_cv_isl=no
5916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5917 conftest.$ac_objext conftest.beam conftest.$ac_ext
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5921 $as_echo "$gcc_cv_isl" >&6; }
5923 CFLAGS=$_isl_saved_CFLAGS
5924 LDFLAGS=$_isl_saved_LDFLAGS
5925 LIBS=$_isl_saved_LIBS
5929 if test "${gcc_cv_isl}" = no ; then
5931 if test "${ENABLE_ISL_CHECK}" = yes ; then
5932 _isl_saved_CFLAGS=$CFLAGS
5933 _isl_saved_LDFLAGS=$LDFLAGS
5934 _isl_saved_LIBS=$LIBS
5936 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5937 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5938 LIBS="${_isl_saved_LIBS} -lisl"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5941 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5942 if test "$cross_compiling" = yes; then :
5943 gcc_cv_isl=yes
5944 else
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 #include <isl/version.h>
5948 #include <string.h>
5950 main ()
5952 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5953 return 1;
5956 return 0;
5958 _ACEOF
5959 if ac_fn_c_try_run "$LINENO"; then :
5960 gcc_cv_isl=yes
5961 else
5962 gcc_cv_isl=no
5964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5965 conftest.$ac_objext conftest.beam conftest.$ac_ext
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5969 $as_echo "$gcc_cv_isl" >&6; }
5971 CFLAGS=$_isl_saved_CFLAGS
5972 LDFLAGS=$_isl_saved_LDFLAGS
5973 LIBS=$_isl_saved_LIBS
5977 if test "${gcc_cv_isl}" = no ; then
5979 if test "${ENABLE_ISL_CHECK}" = yes ; then
5980 _isl_saved_CFLAGS=$CFLAGS
5981 _isl_saved_LDFLAGS=$LDFLAGS
5982 _isl_saved_LIBS=$LIBS
5984 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5985 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5986 LIBS="${_isl_saved_LIBS} -lisl"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5989 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5990 if test "$cross_compiling" = yes; then :
5991 gcc_cv_isl=yes
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <isl/version.h>
5996 #include <string.h>
5998 main ()
6000 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6001 return 1;
6004 return 0;
6006 _ACEOF
6007 if ac_fn_c_try_run "$LINENO"; then :
6008 gcc_cv_isl=yes
6009 else
6010 gcc_cv_isl=no
6012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6013 conftest.$ac_objext conftest.beam conftest.$ac_ext
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6017 $as_echo "$gcc_cv_isl" >&6; }
6019 CFLAGS=$_isl_saved_CFLAGS
6020 LDFLAGS=$_isl_saved_LDFLAGS
6021 LIBS=$_isl_saved_LIBS
6031 if test "x${with_isl}" = xno; then
6032 graphite_requested=no
6033 elif test "x${with_isl}" != x \
6034 || test "x${with_isl_include}" != x \
6035 || test "x${with_isl_lib}" != x ; then
6036 graphite_requested=yes
6037 else
6038 graphite_requested=no
6043 if test "${gcc_cv_isl}" = no ; then
6044 isllibs=
6045 islinc=
6048 if test "${graphite_requested}" = yes \
6049 && test "x${isllibs}" = x \
6050 && test "x${islinc}" = x ; then
6052 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6057 if test "x$gcc_cv_isl" != "xno"; then
6058 # Check for CLOOG
6061 # Check whether --with-cloog-include was given.
6062 if test "${with_cloog_include+set}" = set; then :
6063 withval=$with_cloog_include;
6067 # Check whether --with-cloog-lib was given.
6068 if test "${with_cloog_lib+set}" = set; then :
6069 withval=$with_cloog_lib;
6073 # Check whether --enable-cloog-version-check was given.
6074 if test "${enable_cloog_version_check+set}" = set; then :
6075 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6076 else
6077 ENABLE_CLOOG_CHECK=yes
6081 # Initialize clooglibs and clooginc.
6082 case $with_cloog in
6084 clooglibs=
6085 clooginc=
6087 "" | yes)
6090 clooglibs="-L$with_cloog/lib"
6091 clooginc="-I$with_cloog/include"
6093 esac
6094 if test "x${with_cloog_include}" != x ; then
6095 clooginc="-I$with_cloog_include"
6097 if test "x${with_cloog_lib}" != x; then
6098 clooglibs="-L$with_cloog_lib"
6100 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6101 && test -d ${srcdir}/cloog; then
6102 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6103 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6104 ENABLE_CLOOG_CHECK=no
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6106 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6109 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6110 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6116 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6117 _cloog_saved_CFLAGS=$CFLAGS
6118 _cloog_saved_LDFLAGS=$LDFLAGS
6120 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6121 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6124 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 #include "cloog/version.h"
6129 main ()
6131 #if CLOOG_VERSION_MAJOR != 0 \
6132 || CLOOG_VERSION_MINOR != 17 \
6133 || CLOOG_VERSION_REVISION < 0
6134 choke me
6135 #endif
6137 return 0;
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 gcc_cv_cloog=yes
6142 else
6143 gcc_cv_cloog=no
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6147 $as_echo "$gcc_cv_cloog" >&6; }
6149 CFLAGS=$_cloog_saved_CFLAGS
6150 LDFLAGS=$_cloog_saved_LDFLAGS
6154 if test "${gcc_cv_cloog}" = no ; then
6158 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6159 _cloog_saved_CFLAGS=$CFLAGS
6160 _cloog_saved_LDFLAGS=$LDFLAGS
6162 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6163 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6166 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 #include "cloog/version.h"
6171 main ()
6173 #if CLOOG_VERSION_MAJOR != 0 \
6174 || CLOOG_VERSION_MINOR != 18 \
6175 || CLOOG_VERSION_REVISION < 0
6176 choke me
6177 #endif
6179 return 0;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 gcc_cv_cloog=yes
6184 else
6185 gcc_cv_cloog=no
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6189 $as_echo "$gcc_cv_cloog" >&6; }
6191 CFLAGS=$_cloog_saved_CFLAGS
6192 LDFLAGS=$_cloog_saved_LDFLAGS
6202 if test "x${with_cloog}" = xno; then
6203 graphite_requested=no
6204 elif test "x${with_cloog}" != x \
6205 || test "x${with_cloog_include}" != x \
6206 || test "x${with_cloog_lib}" != x ; then
6207 graphite_requested=yes
6208 else
6209 graphite_requested=no
6214 if test "${gcc_cv_cloog}" = no ; then
6215 clooglibs=
6216 clooginc=
6219 if test "${graphite_requested}" = yes \
6220 && test "x${clooglibs}" = x \
6221 && test "x${clooginc}" = x ; then
6223 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6230 # If either the ISL or the CLooG check failed, disable builds of in-tree
6231 # variants of both
6232 if test "x$with_isl" = xno ||
6233 test "x$with_cloog" = xno ||
6234 test "x$gcc_cv_cloog" = xno ||
6235 test "x$gcc_cv_isl" = xno; then
6236 noconfigdirs="$noconfigdirs cloog isl"
6237 islinc=
6238 clooginc=
6239 clooglibs=
6247 # Check for LTO support.
6248 # Check whether --enable-lto was given.
6249 if test "${enable_lto+set}" = set; then :
6250 enableval=$enable_lto; enable_lto=$enableval
6251 else
6252 enable_lto=yes; default_enable_lto=yes
6259 target_elf=no
6260 case $target in
6261 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6262 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6263 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6264 target_elf=no
6267 target_elf=yes
6269 esac
6271 if test $target_elf = yes; then :
6272 # ELF platforms build the lto-plugin always.
6273 build_lto_plugin=yes
6274 # Allow ELF platforms to build the function_reordering_plugin always.
6275 build_function_reordering_plugin=yes
6277 else
6278 if test x"$default_enable_lto" = x"yes" ; then
6279 case $target in
6280 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6281 # On other non-ELF platforms, LTO has yet to be validated.
6282 *) enable_lto=no ;;
6283 esac
6284 else
6285 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6286 # It would also be nice to check the binutils support, but we don't
6287 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6288 # warn during gcc/ subconfigure; unless you're bootstrapping with
6289 # -flto it won't be needed until after installation anyway.
6290 case $target in
6291 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6292 *) if test x"$enable_lto" = x"yes"; then
6293 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6296 esac
6298 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6299 # Build it unless LTO was explicitly disabled.
6300 case $target in
6301 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6302 *) ;;
6303 esac
6309 # By default, C and C++ are the only stage 1 languages.
6310 stage1_languages=,c,
6312 # Target libraries that we bootstrap.
6313 bootstrap_target_libs=,target-libgcc,
6315 # Figure out what language subdirectories are present.
6316 # Look if the user specified --enable-languages="..."; if not, use
6317 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6318 # go away some day.
6319 # NB: embedded tabs in this IF block -- do not untabify
6320 if test -d ${srcdir}/gcc; then
6321 if test x"${enable_languages+set}" != xset; then
6322 if test x"${LANGUAGES+set}" = xset; then
6323 enable_languages="${LANGUAGES}"
6324 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6325 else
6326 enable_languages=all
6328 else
6329 if test x"${enable_languages}" = x ||
6330 test x"${enable_languages}" = xyes;
6331 then
6332 echo configure.in: --enable-languages needs at least one language argument 1>&2
6333 exit 1
6336 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6338 # 'f95' is the old name for the 'fortran' language. We issue a warning
6339 # and make the substitution.
6340 case ,${enable_languages}, in
6341 *,f95,*)
6342 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6343 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6345 esac
6347 # If bootstrapping, C++ must be enabled.
6348 case ",$enable_languages,:$enable_bootstrap" in
6349 *,c++,*:*) ;;
6350 *:yes)
6351 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6352 enable_languages="${enable_languages},c++"
6353 else
6354 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6357 esac
6359 # First scan to see if an enabled language requires some other language.
6360 # We assume that a given config-lang.in will list all the language
6361 # front ends it requires, even if some are required indirectly.
6362 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6363 case ${lang_frag} in
6364 ..) ;;
6365 # The odd quoting in the next line works around
6366 # an apparent bug in bash 1.12 on linux.
6367 ${srcdir}/gcc/[*]/config-lang.in) ;;
6369 # From the config-lang.in, get $language, $lang_requires, and
6370 # $lang_requires_boot_languages.
6371 language=
6372 lang_requires=
6373 lang_requires_boot_languages=
6374 . ${lang_frag}
6375 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6376 case ,${enable_languages}, in
6377 *,$other,*) ;;
6378 *,all,*) ;;
6379 *,$language,*)
6380 echo " \`$other' language required by \`$language'; enabling" 1>&2
6381 enable_languages="${enable_languages},${other}"
6383 esac
6384 done
6385 for other in ${lang_requires_boot_languages} ; do
6386 if test "$other" != "c"; then
6387 case ,${enable_stage1_languages}, in
6388 *,$other,*) ;;
6389 *,all,*) ;;
6391 case ,${enable_languages}, in
6392 *,$language,*)
6393 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6394 enable_stage1_languages="$enable_stage1_languages,${other}"
6396 esac
6398 esac
6400 done
6402 esac
6403 done
6405 new_enable_languages=,c,
6407 # If LTO is enabled, add the LTO front end.
6408 extra_host_libiberty_configure_flags=
6409 if test "$enable_lto" = "yes" ; then
6410 case ,${enable_languages}, in
6411 *,lto,*) ;;
6412 *) enable_languages="${enable_languages},lto" ;;
6413 esac
6414 if test "${build_lto_plugin}" = "yes" ; then
6415 configdirs="$configdirs lto-plugin"
6416 extra_host_libiberty_configure_flags=--enable-shared
6419 if test "${build_function_reordering_plugin}" = "yes" ; then
6420 configdirs="$configdirs function_reordering_plugin"
6421 extra_host_libiberty_configure_flags=--enable-shared
6426 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6427 potential_languages=,c,
6429 enabled_target_libs=
6430 disabled_target_libs=
6432 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6433 case ${lang_frag} in
6434 ..) ;;
6435 # The odd quoting in the next line works around
6436 # an apparent bug in bash 1.12 on linux.
6437 ${srcdir}/gcc/[*]/config-lang.in) ;;
6439 # From the config-lang.in, get $language, $target_libs,
6440 # $lang_dirs, $boot_language, and $build_by_default
6441 language=
6442 target_libs=
6443 lang_dirs=
6444 subdir_requires=
6445 boot_language=no
6446 build_by_default=yes
6447 . ${lang_frag}
6448 if test x${language} = x; then
6449 echo "${lang_frag} doesn't set \$language." 1>&2
6450 exit 1
6453 if test "$language" = "c++"; then
6454 boot_language=yes
6457 add_this_lang=no
6458 case ,${enable_languages}, in
6459 *,${language},*)
6460 # Language was explicitly selected; include it
6461 # unless it is C, which is enabled by default.
6462 if test "$language" != "c"; then
6463 add_this_lang=yes
6466 *,all,*)
6467 # 'all' was selected, select it if it is a default language
6468 if test "$language" != "c"; then
6469 add_this_lang=${build_by_default}
6472 esac
6474 # Disable languages that need other directories if these aren't available.
6475 for i in $subdir_requires; do
6476 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6477 case ,${enable_languages}, in
6478 *,${language},*)
6479 # Specifically requested language; tell them.
6480 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6483 # Silently disable.
6484 add_this_lang=unsupported
6486 esac
6487 done
6489 # Disable Ada if no preexisting GNAT is available.
6490 case ,${enable_languages},:${language}:${have_gnat} in
6491 *,${language},*:ada:no)
6492 # Specifically requested language; tell them.
6493 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6495 *:ada:no)
6496 # Silently disable.
6497 add_this_lang=unsupported
6499 esac
6501 # Disable a language that is unsupported by the target.
6502 case " $unsupported_languages " in
6503 *" $language "*)
6504 add_this_lang=unsupported
6506 esac
6508 case $add_this_lang in
6509 unsupported)
6510 # Remove language-dependent dirs.
6511 disabled_target_libs="$disabled_target_libs $target_libs"
6512 noconfigdirs="$noconfigdirs $lang_dirs"
6515 # Remove language-dependent dirs; still show language as supported.
6516 disabled_target_libs="$disabled_target_libs $target_libs"
6517 noconfigdirs="$noconfigdirs $lang_dirs"
6518 potential_languages="${potential_languages}${language},"
6520 yes)
6521 new_enable_languages="${new_enable_languages}${language},"
6522 potential_languages="${potential_languages}${language},"
6523 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6524 enabled_target_libs="$enabled_target_libs $target_libs"
6525 case "${boot_language}:,$enable_stage1_languages," in
6526 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6527 # Add to (comma-separated) list of stage 1 languages.
6528 case ",$stage1_languages," in
6529 *,$language,* | ,yes, | ,all,) ;;
6530 *) stage1_languages="${stage1_languages}${language}," ;;
6531 esac
6532 # We need to bootstrap any supporting libraries.
6533 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6535 esac
6537 esac
6539 esac
6540 done
6542 # Add target libraries which are only needed for disabled languages
6543 # to noconfigdirs.
6544 if test -n "$disabled_target_libs"; then
6545 for dir in $disabled_target_libs; do
6546 case " $enabled_target_libs " in
6547 *" ${dir} "*) ;;
6548 *) noconfigdirs="$noconfigdirs $dir" ;;
6549 esac
6550 done
6553 # Check whether --enable-stage1-languages was given.
6554 if test "${enable_stage1_languages+set}" = set; then :
6555 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6556 ,no,|,,)
6557 # Set it to something that will have no effect in the loop below
6558 enable_stage1_languages=c ;;
6559 ,yes,)
6560 enable_stage1_languages=`echo $new_enable_languages | \
6561 sed -e "s/^,//" -e "s/,$//" ` ;;
6562 *,all,*)
6563 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6564 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6565 esac
6567 # Add "good" languages from enable_stage1_languages to stage1_languages,
6568 # while "bad" languages go in missing_languages. Leave no duplicates.
6569 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6570 case $potential_languages in
6571 *,$i,*)
6572 case $stage1_languages in
6573 *,$i,*) ;;
6574 *) stage1_languages="$stage1_languages$i," ;;
6575 esac ;;
6577 case $missing_languages in
6578 *,$i,*) ;;
6579 *) missing_languages="$missing_languages$i," ;;
6580 esac ;;
6581 esac
6582 done
6586 # Remove leading/trailing commas that were added for simplicity
6587 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6588 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6589 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6590 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6592 if test "x$missing_languages" != x; then
6593 as_fn_error "
6594 The following requested languages could not be built: ${missing_languages}
6595 Supported languages are: ${potential_languages}" "$LINENO" 5
6597 if test "x$new_enable_languages" != "x$enable_languages"; then
6598 echo The following languages will be built: ${new_enable_languages}
6599 enable_languages="$new_enable_languages"
6603 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6606 # Handle --disable-<component> generically.
6607 for dir in $configdirs $build_configdirs $target_configdirs ; do
6608 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6609 varname=`echo $dirname | sed -e s/+/_/g`
6610 if eval test x\${enable_${varname}} "=" xno ; then
6611 noconfigdirs="$noconfigdirs $dir"
6613 done
6615 # Check for Boehm's garbage collector
6616 # Check whether --enable-objc-gc was given.
6617 if test "${enable_objc_gc+set}" = set; then :
6618 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6619 *,objc,*:*:yes:*target-boehm-gc*)
6620 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6622 esac
6626 # Make sure we only build Boehm's garbage collector if required.
6627 case ,${enable_languages},:${enable_objc_gc} in
6628 *,objc,*:yes)
6629 # Keep target-boehm-gc if requested for Objective-C.
6632 # Otherwise remove target-boehm-gc depending on target-libjava.
6633 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6634 noconfigdirs="$noconfigdirs target-boehm-gc"
6637 esac
6639 # Disable libitm, libsanitizer, libvtv if we're not building C++
6640 case ,${enable_languages}, in
6641 *,c++,*) ;;
6643 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6645 esac
6647 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6648 # $build_configdirs and $target_configdirs.
6649 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6651 notsupp=""
6652 for dir in . $skipdirs $noconfigdirs ; do
6653 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6654 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6655 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6656 if test -r $srcdir/$dirname/configure ; then
6657 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6658 true
6659 else
6660 notsupp="$notsupp $dir"
6664 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6665 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6666 if test -r $srcdir/$dirname/configure ; then
6667 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6668 true
6669 else
6670 notsupp="$notsupp $dir"
6674 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6675 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6676 if test -r $srcdir/$dirname/configure ; then
6677 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6678 true
6679 else
6680 notsupp="$notsupp $dir"
6684 done
6686 # Quietly strip out all directories which aren't configurable in this tree.
6687 # This relies on all configurable subdirectories being autoconfiscated, which
6688 # is now the case.
6689 build_configdirs_all="$build_configdirs"
6690 build_configdirs=
6691 for i in ${build_configdirs_all} ; do
6692 j=`echo $i | sed -e s/build-//g`
6693 if test -f ${srcdir}/$j/configure ; then
6694 build_configdirs="${build_configdirs} $i"
6696 done
6698 configdirs_all="$configdirs"
6699 configdirs=
6700 for i in ${configdirs_all} ; do
6701 if test -f ${srcdir}/$i/configure ; then
6702 configdirs="${configdirs} $i"
6704 done
6706 target_configdirs_all="$target_configdirs"
6707 target_configdirs=
6708 for i in ${target_configdirs_all} ; do
6709 j=`echo $i | sed -e s/target-//g`
6710 if test -f ${srcdir}/$j/configure ; then
6711 target_configdirs="${target_configdirs} $i"
6713 done
6715 # Produce a warning message for the subdirs we can't configure.
6716 # This isn't especially interesting in the Cygnus tree, but in the individual
6717 # FSF releases, it's important to let people know when their machine isn't
6718 # supported by the one or two programs in a package.
6720 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6721 # If $appdirs is non-empty, at least one of those directories must still
6722 # be configured, or we error out. (E.g., if the gas release supports a
6723 # specified target in some subdirs but not the gas subdir, we shouldn't
6724 # pretend that all is well.)
6725 if test -n "$appdirs" ; then
6726 for dir in $appdirs ; do
6727 if test -r $dir/Makefile.in ; then
6728 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6729 appdirs=""
6730 break
6732 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6733 appdirs=""
6734 break
6737 done
6738 if test -n "$appdirs" ; then
6739 echo "*** This configuration is not supported by this package." 1>&2
6740 exit 1
6743 # Okay, some application will build, or we don't care to check. Still
6744 # notify of subdirs not getting built.
6745 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6746 echo " ${notsupp}" 1>&2
6747 echo " (Any other directories should still work fine.)" 1>&2
6750 case "$host" in
6751 *msdosdjgpp*)
6752 enable_gdbtk=no ;;
6753 esac
6755 # To find our prefix, in gcc_cv_tool_prefix.
6757 # The user is always right.
6758 if test "${PATH_SEPARATOR+set}" != set; then
6759 echo "#! /bin/sh" >conf$$.sh
6760 echo "exit 0" >>conf$$.sh
6761 chmod +x conf$$.sh
6762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6763 PATH_SEPARATOR=';'
6764 else
6765 PATH_SEPARATOR=:
6767 rm -f conf$$.sh
6772 if test "x$exec_prefix" = xNONE; then
6773 if test "x$prefix" = xNONE; then
6774 gcc_cv_tool_prefix=$ac_default_prefix
6775 else
6776 gcc_cv_tool_prefix=$prefix
6778 else
6779 gcc_cv_tool_prefix=$exec_prefix
6782 # If there is no compiler in the tree, use the PATH only. In any
6783 # case, if there is no compiler in the tree nobody should use
6784 # AS_FOR_TARGET and LD_FOR_TARGET.
6785 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6786 gcc_version=`cat $srcdir/gcc/BASE-VER`
6787 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6793 else
6794 gcc_cv_tool_dirs=
6797 if test x$build = x$target && test -n "$md_exec_prefix"; then
6798 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6803 copy_dirs=
6806 # Check whether --with-build-sysroot was given.
6807 if test "${with_build_sysroot+set}" = set; then :
6808 withval=$with_build_sysroot; if test x"$withval" != x ; then
6809 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6811 else
6812 SYSROOT_CFLAGS_FOR_TARGET=
6818 # Check whether --with-debug-prefix-map was given.
6819 if test "${with_debug_prefix_map+set}" = set; then :
6820 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6821 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6822 for debug_map in $withval; do
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6824 done
6826 else
6827 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6832 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6833 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6834 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6835 # We want to ensure that TARGET libraries (which we know are built with
6836 # gcc) are built with "-O2 -g", so include those options when setting
6837 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6838 if test "x$CFLAGS_FOR_TARGET" = x; then
6839 CFLAGS_FOR_TARGET=$CFLAGS
6840 case " $CFLAGS " in
6841 *" -O2 "*) ;;
6842 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6843 esac
6844 case " $CFLAGS " in
6845 *" -g "* | *" -g3 "*) ;;
6846 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6847 esac
6851 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6852 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6853 case " $CXXFLAGS " in
6854 *" -O2 "*) ;;
6855 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6856 esac
6857 case " $CXXFLAGS " in
6858 *" -g "* | *" -g3 "*) ;;
6859 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6860 esac
6866 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6867 # the named directory are copied to $(tooldir)/sys-include.
6868 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6869 if test x${is_cross_compiler} = xno ; then
6870 echo 1>&2 '***' --with-headers is only supported when cross compiling
6871 exit 1
6873 if test x"${with_headers}" != xyes ; then
6874 x=${gcc_cv_tool_prefix}
6875 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6879 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6880 # the name directories are copied to $(tooldir)/lib. Multiple directories
6881 # are permitted.
6882 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6883 if test x${is_cross_compiler} = xno ; then
6884 echo 1>&2 '***' --with-libs is only supported when cross compiling
6885 exit 1
6887 if test x"${with_libs}" != xyes ; then
6888 # Copy the libraries in reverse order, so that files in the first named
6889 # library override files in subsequent libraries.
6890 x=${gcc_cv_tool_prefix}
6891 for l in ${with_libs}; do
6892 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6893 done
6897 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6899 # This is done by determining whether or not the appropriate directory
6900 # is available, and by checking whether or not specific configurations
6901 # have requested that this magic not happen.
6903 # The command line options always override the explicit settings in
6904 # configure.in, and the settings in configure.in override this magic.
6906 # If the default for a toolchain is to use GNU as and ld, and you don't
6907 # want to do that, then you should use the --without-gnu-as and
6908 # --without-gnu-ld options for the configure script. Similarly, if
6909 # the default is to use the included zlib and you don't want to do that,
6910 # you should use the --with-system-zlib option for the configure script.
6912 if test x${use_gnu_as} = x &&
6913 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6914 with_gnu_as=yes
6915 extra_host_args="$extra_host_args --with-gnu-as"
6918 if test x${use_gnu_ld} = x &&
6919 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6920 with_gnu_ld=yes
6921 extra_host_args="$extra_host_args --with-gnu-ld"
6924 if test x${use_included_zlib} = x &&
6925 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6927 else
6928 with_system_zlib=yes
6929 extra_host_args="$extra_host_args --with-system-zlib"
6932 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6933 # can detect this case.
6935 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6936 with_newlib=yes
6937 extra_host_args="$extra_host_args --with-newlib"
6940 # Handle ${copy_dirs}
6941 set fnord ${copy_dirs}
6942 shift
6943 while test $# != 0 ; do
6944 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6946 else
6947 echo Copying $1 to $2
6949 # Use the install script to create the directory and all required
6950 # parent directories.
6951 if test -d $2 ; then
6953 else
6954 echo >config.temp
6955 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6958 # Copy the directory, assuming we have tar.
6959 # FIXME: Should we use B in the second tar? Not all systems support it.
6960 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6962 # It is the responsibility of the user to correctly adjust all
6963 # symlinks. If somebody can figure out how to handle them correctly
6964 # here, feel free to add the code.
6966 echo $1 > $2/COPIED
6968 shift; shift
6969 done
6971 # Determine a target-dependent exec_prefix that the installed
6972 # gcc will search in. Keep this list sorted by triplet, with
6973 # the *-*-osname triplets last.
6974 md_exec_prefix=
6975 case "${target}" in
6976 i[34567]86-pc-msdosdjgpp*)
6977 md_exec_prefix=/dev/env/DJDIR/bin
6979 *-*-hpux* | \
6980 *-*-nto-qnx* | \
6981 *-*-solaris2*)
6982 md_exec_prefix=/usr/ccs/bin
6984 esac
6986 extra_arflags_for_target=
6987 extra_nmflags_for_target=
6988 extra_ranlibflags_for_target=
6989 target_makefile_frag=/dev/null
6990 case "${target}" in
6991 spu-*-*)
6992 target_makefile_frag="config/mt-spu"
6994 mips*-sde-elf* | mips*-mti-elf*)
6995 target_makefile_frag="config/mt-sde"
6997 mipsisa*-*-elfoabi*)
6998 target_makefile_frag="config/mt-mips-elfoabi"
7000 mips*-*-*linux* | mips*-*-gnu*)
7001 target_makefile_frag="config/mt-mips-gnu"
7003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7004 target_makefile_frag="config/mt-gnu"
7006 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7007 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7008 # commands to handle both 32-bit and 64-bit objects. These flags are
7009 # harmless if we're using GNU nm or ar.
7010 extra_arflags_for_target=" -X32_64"
7011 extra_nmflags_for_target=" -B -X32_64"
7013 esac
7015 alphaieee_frag=/dev/null
7016 case $target in
7017 alpha*-*-*)
7018 # This just makes sure to use the -mieee option to build target libs.
7019 # This should probably be set individually by each library.
7020 alphaieee_frag="config/mt-alphaieee"
7022 esac
7024 # If --enable-target-optspace always use -Os instead of -O2 to build
7025 # the target libraries, similarly if it is not specified, use -Os
7026 # on selected platforms.
7027 ospace_frag=/dev/null
7028 case "${enable_target_optspace}:${target}" in
7029 yes:*)
7030 ospace_frag="config/mt-ospace"
7032 :d30v-*)
7033 ospace_frag="config/mt-d30v"
7035 :m32r-* | :d10v-* | :fr30-*)
7036 ospace_frag="config/mt-ospace"
7038 no:* | :*)
7041 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7043 esac
7045 # Some systems (e.g., one of the i386-aix systems the gas testers are
7046 # using) don't handle "\$" correctly, so don't use it here.
7047 tooldir='${exec_prefix}'/${target_noncanonical}
7048 build_tooldir=${tooldir}
7050 # Create a .gdbinit file which runs the one in srcdir
7051 # and tells GDB to look there for source files.
7053 if test -r ${srcdir}/.gdbinit ; then
7054 case ${srcdir} in
7055 .) ;;
7056 *) cat > ./.gdbinit <<EOF
7057 # ${NO_EDIT}
7058 dir ${srcdir}
7059 dir .
7060 source ${srcdir}/.gdbinit
7063 esac
7066 # Make sure that the compiler is able to generate an executable. If it
7067 # can't, we are probably in trouble. We don't care whether we can run the
7068 # executable--we might be using a cross compiler--we only care whether it
7069 # can be created. At this point the main configure script has set CC.
7070 we_are_ok=no
7071 echo "int main () { return 0; }" > conftest.c
7072 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7073 if test $? = 0 ; then
7074 if test -s conftest || test -s conftest.exe ; then
7075 we_are_ok=yes
7078 case $we_are_ok in
7080 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7081 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7082 rm -f conftest*
7083 exit 1
7085 esac
7086 rm -f conftest*
7088 # Decide which environment variable is used to find dynamic libraries.
7089 case "${host}" in
7090 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7091 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7092 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7093 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7094 esac
7096 # On systems where the dynamic library environment variable is PATH,
7097 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7098 # built executables to PATH.
7099 if test "$RPATH_ENVVAR" = PATH; then
7100 GCC_SHLIB_SUBDIR=/shlib
7101 else
7102 GCC_SHLIB_SUBDIR=
7105 # Record target_configdirs and the configure arguments for target and
7106 # build configuration in Makefile.
7107 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7108 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7110 # If we are building libgomp, bootstrap it.
7111 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7112 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7115 # If we are building libsanitizer, bootstrap it.
7116 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7117 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7120 # If we are building libvtv, bootstrap it.
7121 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7122 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7125 # Determine whether gdb needs tk/tcl or not.
7126 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7127 # and in that case we want gdb to be built without tk. Ugh!
7128 # In fact I believe gdb is the *only* package directly dependent on tk,
7129 # so we should be able to put the 'maybe's in unconditionally and
7130 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7131 # 100% sure that that's safe though.
7133 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7134 case "$enable_gdbtk" in
7136 GDB_TK="" ;;
7137 yes)
7138 GDB_TK="${gdb_tk}" ;;
7140 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7141 # distro. Eventually someone will fix this and move Insight, nee
7142 # gdbtk to a separate directory.
7143 if test -d ${srcdir}/gdb/gdbtk ; then
7144 GDB_TK="${gdb_tk}"
7145 else
7146 GDB_TK=""
7149 esac
7150 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7151 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7153 # Strip out unwanted targets.
7155 # While at that, we remove Makefiles if we were started for recursive
7156 # configuration, so that the top-level Makefile reconfigures them,
7157 # like we used to do when configure itself was recursive.
7159 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7160 # but now we're fixing up the Makefile ourselves with the additional
7161 # commands passed to AC_CONFIG_FILES. Use separate variables
7162 # extrasub-{build,host,target} not because there is any reason to split
7163 # the substitutions up that way, but only to remain below the limit of
7164 # 99 commands in a script, for HP-UX sed.
7165 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7167 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7168 yes:yes:*\ gold\ *:*,c++,*) ;;
7169 yes:yes:*\ gold\ *:*)
7170 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7172 esac
7174 # Adjust the toplevel makefile according to whether bootstrap was selected.
7175 case $enable_bootstrap in
7176 yes)
7177 bootstrap_suffix=bootstrap
7178 BUILD_CONFIG=bootstrap-debug
7181 bootstrap_suffix=no-bootstrap
7182 BUILD_CONFIG=
7184 esac
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7187 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7190 # Check whether --with-build-config was given.
7191 if test "${with_build_config+set}" = set; then :
7192 withval=$with_build_config; case $with_build_config in
7193 yes) with_build_config= ;;
7194 no) with_build_config= BUILD_CONFIG= ;;
7195 esac
7199 if test "x${with_build_config}" != x; then
7200 BUILD_CONFIG=$with_build_config
7201 else
7202 case $BUILD_CONFIG in
7203 bootstrap-debug)
7204 if echo "int f (void) { return 0; }" > conftest.c &&
7205 ${CC} -c conftest.c &&
7206 mv conftest.o conftest.o.g0 &&
7207 ${CC} -c -g conftest.c &&
7208 mv conftest.o conftest.o.g &&
7209 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7211 else
7212 BUILD_CONFIG=
7214 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7216 esac
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7219 $as_echo "$BUILD_CONFIG" >&6; }
7222 extrasub_build=
7223 for module in ${build_configdirs} ; do
7224 if test -z "${no_recursion}" \
7225 && test -f ${build_subdir}/${module}/Makefile; then
7226 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7227 rm -f ${build_subdir}/${module}/Makefile
7229 extrasub_build="$extrasub_build
7230 /^@if build-$module\$/d
7231 /^@endif build-$module\$/d
7232 /^@if build-$module-$bootstrap_suffix\$/d
7233 /^@endif build-$module-$bootstrap_suffix\$/d"
7234 done
7235 extrasub_host=
7236 for module in ${configdirs} ; do
7237 if test -z "${no_recursion}"; then
7238 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7239 if test -f ${file}; then
7240 echo 1>&2 "*** removing ${file} to force reconfigure"
7241 rm -f ${file}
7243 done
7245 extrasub_host="$extrasub_host
7246 /^@if $module\$/d
7247 /^@endif $module\$/d
7248 /^@if $module-$bootstrap_suffix\$/d
7249 /^@endif $module-$bootstrap_suffix\$/d"
7250 done
7251 extrasub_target=
7252 for module in ${target_configdirs} ; do
7253 if test -z "${no_recursion}" \
7254 && test -f ${target_subdir}/${module}/Makefile; then
7255 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7256 rm -f ${target_subdir}/${module}/Makefile
7259 # We only bootstrap target libraries listed in bootstrap_target_libs.
7260 case $bootstrap_target_libs in
7261 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7262 *) target_bootstrap_suffix=no-bootstrap ;;
7263 esac
7265 extrasub_target="$extrasub_target
7266 /^@if target-$module\$/d
7267 /^@endif target-$module\$/d
7268 /^@if target-$module-$target_bootstrap_suffix\$/d
7269 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7270 done
7272 # Do the final fixup along with target modules.
7273 extrasub_target="$extrasub_target
7274 /^@if /,/^@endif /d"
7276 # Create the serialization dependencies. This uses a temporary file.
7278 # Check whether --enable-serial-configure was given.
7279 if test "${enable_serial_configure+set}" = set; then :
7280 enableval=$enable_serial_configure;
7284 case ${enable_serial_configure} in
7285 yes)
7286 enable_serial_build_configure=yes
7287 enable_serial_host_configure=yes
7288 enable_serial_target_configure=yes
7290 esac
7292 # These force 'configure's to be done one at a time, to avoid problems
7293 # with contention over a shared config.cache.
7294 rm -f serdep.tmp
7295 echo '# serdep.tmp' > serdep.tmp
7296 olditem=
7297 test "x${enable_serial_build_configure}" = xyes &&
7298 for item in ${build_configdirs} ; do
7299 case ${olditem} in
7300 "") ;;
7301 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7302 esac
7303 olditem=${item}
7304 done
7305 olditem=
7306 test "x${enable_serial_host_configure}" = xyes &&
7307 for item in ${configdirs} ; do
7308 case ${olditem} in
7309 "") ;;
7310 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7311 esac
7312 olditem=${item}
7313 done
7314 olditem=
7315 test "x${enable_serial_target_configure}" = xyes &&
7316 for item in ${target_configdirs} ; do
7317 case ${olditem} in
7318 "") ;;
7319 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7320 esac
7321 olditem=${item}
7322 done
7323 serialization_dependencies=serdep.tmp
7326 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7327 # target, nonopt, and variable assignments. These are the ones we
7328 # might not want to pass down to subconfigures. The exception being
7329 # --cache-file=/dev/null, which is used to turn off the use of cache
7330 # files altogether, and which should be passed on to subconfigures.
7331 # Also strip program-prefix, program-suffix, and program-transform-name,
7332 # so that we can pass down a consistent program-transform-name.
7333 baseargs=
7334 tbaseargs=
7335 keep_next=no
7336 skip_next=no
7337 eval "set -- $ac_configure_args"
7338 for ac_arg
7340 if test X"$skip_next" = X"yes"; then
7341 skip_next=no
7342 continue
7344 if test X"$keep_next" = X"yes"; then
7345 case $ac_arg in
7346 *\'*)
7347 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7348 esac
7349 baseargs="$baseargs '$ac_arg'"
7350 tbaseargs="$tbaseargs '$ac_arg'"
7351 keep_next=no
7352 continue
7355 # Handle separated arguments. Based on the logic generated by
7356 # autoconf 2.59.
7357 case $ac_arg in
7358 *=* | --config-cache | -C | -disable-* | --disable-* \
7359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7361 | -with-* | --with-* | -without-* | --without-* | --x)
7362 separate_arg=no
7365 separate_arg=yes
7368 separate_arg=no
7370 esac
7372 skip_targ=no
7373 case $ac_arg in
7375 --with-* | --without-*)
7376 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7378 case $libopt in
7379 *[-_]include)
7380 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7382 *[-_]lib)
7383 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7386 lib=$libopt
7388 esac
7391 case $lib in
7392 mpc | mpfr | gmp | cloog)
7393 # If we're processing --with-$lib, --with-$lib-include or
7394 # --with-$lib-lib, for one of the libs above, and target is
7395 # different from host, don't pass the current argument to any
7396 # target library's configure.
7397 if test x$is_cross_compiler = xyes; then
7398 skip_targ=yes
7401 esac
7403 esac
7405 case "$ac_arg" in
7406 --cache-file=/dev/null | \
7407 -cache-file=/dev/null )
7408 # Handled here to avoid the test to skip args below.
7409 baseargs="$baseargs '$ac_arg'"
7410 tbaseargs="$tbaseargs '$ac_arg'"
7411 # Assert: $separate_arg should always be no.
7412 keep_next=$separate_arg
7414 --no*)
7415 continue
7417 --c* | \
7418 --sr* | \
7419 --ho* | \
7420 --bu* | \
7421 --t* | \
7422 --program-* | \
7423 -cache_file* | \
7424 -srcdir* | \
7425 -host* | \
7426 -build* | \
7427 -target* | \
7428 -program-prefix* | \
7429 -program-suffix* | \
7430 -program-transform-name* )
7431 skip_next=$separate_arg
7432 continue
7435 # An option. Add it.
7436 case $ac_arg in
7437 *\'*)
7438 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7439 esac
7440 baseargs="$baseargs '$ac_arg'"
7441 if test X"$skip_targ" = Xno; then
7442 tbaseargs="$tbaseargs '$ac_arg'"
7444 keep_next=$separate_arg
7447 # Either a variable assignment, or a nonopt (triplet). Don't
7448 # pass it down; let the Makefile handle this.
7449 continue
7451 esac
7452 done
7453 # Remove the initial space we just introduced and, as these will be
7454 # expanded by make, quote '$'.
7455 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7457 # Add in --program-transform-name, after --program-prefix and
7458 # --program-suffix have been applied to it. Autoconf has already
7459 # doubled dollar signs and backslashes in program_transform_name; we want
7460 # the backslashes un-doubled, and then the entire thing wrapped in single
7461 # quotes, because this will be expanded first by make and then by the shell.
7462 # Also, because we want to override the logic in subdir configure scripts to
7463 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7464 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7465 ${program_transform_name}
7466 EOF_SED
7467 gcc_transform_name=`cat conftestsed.out`
7468 rm -f conftestsed.out
7469 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7470 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7471 if test "$silent" = yes; then
7472 baseargs="$baseargs --silent"
7473 tbaseargs="$tbaseargs --silent"
7475 baseargs="$baseargs --disable-option-checking"
7476 tbaseargs="$tbaseargs --disable-option-checking"
7478 # Record and document user additions to sub configure arguments.
7483 # For the build-side libraries, we just need to pretend we're native,
7484 # and not use the same cache file. Multilibs are neither needed nor
7485 # desired.
7486 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7488 # For host modules, accept cache file option, or specification as blank.
7489 case "${cache_file}" in
7490 "") # empty
7491 cache_file_option="" ;;
7492 /* | [A-Za-z]:[\\/]* ) # absolute path
7493 cache_file_option="--cache-file=${cache_file}" ;;
7494 *) # relative path
7495 cache_file_option="--cache-file=../${cache_file}" ;;
7496 esac
7498 # Host dirs don't like to share a cache file either, horribly enough.
7499 # This seems to be due to autoconf 2.5x stupidity.
7500 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7502 target_configargs="$target_configargs ${tbaseargs}"
7504 # Passing a --with-cross-host argument lets the target libraries know
7505 # whether they are being built with a cross-compiler or being built
7506 # native. However, it would be better to use other mechanisms to make the
7507 # sorts of decisions they want to make on this basis. Please consider
7508 # this option to be deprecated. FIXME.
7509 if test x${is_cross_compiler} = xyes ; then
7510 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7513 # Special user-friendly check for native x86_64-linux build, if
7514 # multilib is not explicitly enabled.
7515 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7516 x86_64-*linux*:yes:$build:$build:)
7517 # Make sure we have a developement environment that handles 32-bit
7518 dev64=no
7519 echo "int main () { return 0; }" > conftest.c
7520 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7521 if test $? = 0 ; then
7522 if test -s conftest || test -s conftest.exe ; then
7523 dev64=yes
7526 rm -f conftest*
7527 if test x${dev64} != xyes ; then
7528 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7531 esac
7533 # Default to --enable-multilib.
7534 if test x${enable_multilib} = x ; then
7535 target_configargs="--enable-multilib ${target_configargs}"
7538 # Pass --with-newlib if appropriate. Note that target_configdirs has
7539 # changed from the earlier setting of with_newlib.
7540 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7541 target_configargs="--with-newlib ${target_configargs}"
7544 # Different target subdirs use different values of certain variables
7545 # (notably CXX). Worse, multilibs use *lots* of different values.
7546 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7547 # it doesn't automatically accept command-line overrides of them.
7548 # This means it's not safe for target subdirs to share a cache file,
7549 # which is disgusting, but there you have it. Hopefully this can be
7550 # fixed in future. It's still worthwhile to use a cache file for each
7551 # directory. I think.
7553 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7554 # We need to pass --target, as newer autoconf's requires consistency
7555 # for target_alias and gcc doesn't manage it consistently.
7556 target_configargs="--cache-file=./config.cache ${target_configargs}"
7558 FLAGS_FOR_TARGET=
7559 case " $target_configdirs " in
7560 *" newlib "*)
7561 case " $target_configargs " in
7562 *" --with-newlib "*)
7563 case "$target" in
7564 *-cygwin*)
7565 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7567 esac
7569 # If we're not building GCC, don't discard standard headers.
7570 if test -d ${srcdir}/gcc; then
7571 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7573 if test "${build}" != "${host}"; then
7574 # On Canadian crosses, CC_FOR_TARGET will have already been set
7575 # by `configure', so we won't have an opportunity to add -Bgcc/
7576 # to it. This is right: we don't want to search that directory
7577 # for binaries, but we want the header files in there, so add
7578 # them explicitly.
7579 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7581 # Someone might think of using the pre-installed headers on
7582 # Canadian crosses, in case the installed compiler is not fully
7583 # compatible with the compiler being built. In this case, it
7584 # would be better to flag an error than risking having
7585 # incompatible object files being constructed. We can't
7586 # guarantee that an error will be flagged, but let's hope the
7587 # compiler will do it, when presented with incompatible header
7588 # files.
7592 case "${target}-${is_cross_compiler}" in
7593 i[3456789]86-*-linux*-no)
7594 # Here host == target, so we don't need to build gcc,
7595 # so we don't want to discard standard headers.
7596 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7599 # If we're building newlib, use its generic headers last, but search
7600 # for any libc-related directories first (so make it the last -B
7601 # switch).
7602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7604 # If we're building libgloss, find the startup file, simulator library
7605 # and linker script.
7606 case " $target_configdirs " in
7607 *" libgloss "*)
7608 # Look for startup file, simulator library and maybe linker script.
7609 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7610 # Look for libnosys.a in case the target needs it.
7611 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7612 # Most targets have the linker script in the source directory.
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7615 esac
7617 esac
7619 esac
7621 esac
7623 case "$target" in
7624 x86_64-*mingw* | *-w64-mingw*)
7625 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7626 # however, use a symlink named 'mingw' in ${prefix} .
7627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7629 *-mingw*)
7630 # MinGW can't be handled as Cygwin above since it does not use newlib.
7631 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'
7633 esac
7635 # Allow the user to override the flags for
7636 # our build compiler if desired.
7637 if test x"${build}" = x"${host}" ; then
7638 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7639 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7640 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7643 # On Canadian crosses, we'll be searching the right directories for
7644 # the previously-installed cross compiler, so don't bother to add
7645 # flags for directories within the install tree of the compiler
7646 # being built; programs in there won't even run.
7647 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7648 # Search for pre-installed headers if nothing else fits.
7649 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7652 if test "x${use_gnu_ld}" = x &&
7653 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7654 # Arrange for us to find uninstalled linker scripts.
7655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7658 # Search for other target-specific linker scripts and such.
7659 case "${target}" in
7660 mep*)
7661 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7663 esac
7665 # Makefile fragments.
7666 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7668 eval fragval=\$$frag
7669 if test $fragval != /dev/null; then
7670 eval $frag=${srcdir}/$fragval
7672 done
7678 # Miscellanea: directories, flags, etc.
7687 # Build module lists & subconfigure args.
7691 # Host module lists & subconfigure args.
7696 # Target module lists & subconfigure args.
7700 # Build tools.
7718 # Generate default definitions for YACC, M4, LEX and other programs that run
7719 # on the build machine. These are used if the Makefile can't locate these
7720 # programs in objdir.
7721 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7723 for ac_prog in 'bison -y' byacc yacc
7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_YACC+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$YACC"; then
7733 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_YACC="$ac_prog"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7752 YACC=$ac_cv_prog_YACC
7753 if test -n "$YACC"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7755 $as_echo "$YACC" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7762 test -n "$YACC" && break
7763 done
7764 test -n "$YACC" || YACC="$MISSING bison -y"
7766 case " $build_configdirs " in
7767 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7768 esac
7770 for ac_prog in bison
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_BISON+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$BISON"; then
7780 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_BISON="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7799 BISON=$ac_cv_prog_BISON
7800 if test -n "$BISON"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7802 $as_echo "$BISON" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 test -n "$BISON" && break
7810 done
7811 test -n "$BISON" || BISON="$MISSING bison"
7813 case " $build_configdirs " in
7814 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7815 esac
7817 for ac_prog in gm4 gnum4 m4
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_M4+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$M4"; then
7827 ac_cv_prog_M4="$M4" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_M4="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7840 done
7841 done
7842 IFS=$as_save_IFS
7846 M4=$ac_cv_prog_M4
7847 if test -n "$M4"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7849 $as_echo "$M4" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$M4" && break
7857 done
7858 test -n "$M4" || M4="$MISSING m4"
7860 case " $build_configdirs " in
7861 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7862 esac
7864 for ac_prog in flex lex
7866 # Extract the first word of "$ac_prog", so it can be a program name with args.
7867 set dummy $ac_prog; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_LEX+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$LEX"; then
7874 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_LEX="$ac_prog"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7887 done
7888 done
7889 IFS=$as_save_IFS
7893 LEX=$ac_cv_prog_LEX
7894 if test -n "$LEX"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7896 $as_echo "$LEX" >&6; }
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7903 test -n "$LEX" && break
7904 done
7905 test -n "$LEX" || LEX="$MISSING flex"
7907 case " $build_configdirs " in
7908 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7909 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7910 esac
7912 for ac_prog in flex
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_FLEX+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$FLEX"; then
7922 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_FLEX="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7937 IFS=$as_save_IFS
7941 FLEX=$ac_cv_prog_FLEX
7942 if test -n "$FLEX"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7944 $as_echo "$FLEX" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7951 test -n "$FLEX" && break
7952 done
7953 test -n "$FLEX" || FLEX="$MISSING flex"
7955 case " $build_configdirs " in
7956 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 esac
7959 for ac_prog in makeinfo
7961 # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$MAKEINFO"; then
7969 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_MAKEINFO="$ac_prog"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 MAKEINFO=$ac_cv_prog_MAKEINFO
7989 if test -n "$MAKEINFO"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7991 $as_echo "$MAKEINFO" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7998 test -n "$MAKEINFO" && break
7999 done
8000 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8002 case " $build_configdirs " in
8003 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8006 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8007 # higher, else we use the "missing" dummy.
8008 if ${MAKEINFO} --version \
8009 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8011 else
8012 MAKEINFO="$MISSING makeinfo"
8016 esac
8018 # FIXME: expect and dejagnu may become build tools?
8020 for ac_prog in expect
8022 # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$EXPECT"; then
8030 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_EXPECT="$ac_prog"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8043 done
8044 done
8045 IFS=$as_save_IFS
8049 EXPECT=$ac_cv_prog_EXPECT
8050 if test -n "$EXPECT"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8052 $as_echo "$EXPECT" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8059 test -n "$EXPECT" && break
8060 done
8061 test -n "$EXPECT" || EXPECT="expect"
8063 case " $configdirs " in
8064 *" expect "*)
8065 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8067 esac
8069 for ac_prog in runtest
8071 # Extract the first word of "$ac_prog", so it can be a program name with args.
8072 set dummy $ac_prog; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$RUNTEST"; then
8079 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_RUNTEST="$ac_prog"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8098 RUNTEST=$ac_cv_prog_RUNTEST
8099 if test -n "$RUNTEST"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8101 $as_echo "$RUNTEST" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8108 test -n "$RUNTEST" && break
8109 done
8110 test -n "$RUNTEST" || RUNTEST="runtest"
8112 case " $configdirs " in
8113 *" dejagnu "*)
8114 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8116 esac
8119 # Host tools.
8120 ncn_tool_prefix=
8121 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8122 ncn_target_tool_prefix=
8123 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8127 if test -n "$AR"; then
8128 ac_cv_prog_AR=$AR
8129 elif test -n "$ac_cv_prog_AR"; then
8130 AR=$ac_cv_prog_AR
8133 if test -n "$ac_cv_prog_AR"; then
8134 for ncn_progname in ar; do
8135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8136 set dummy ${ncn_progname}; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if test "${ac_cv_prog_AR+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 if test -n "$AR"; then
8143 ac_cv_prog_AR="$AR" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_prog_AR="${ncn_progname}"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8162 AR=$ac_cv_prog_AR
8163 if test -n "$AR"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8165 $as_echo "$AR" >&6; }
8166 else
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8172 done
8175 for ncn_progname in ar; do
8176 if test -n "$ncn_tool_prefix"; then
8177 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8178 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if test "${ac_cv_prog_AR+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 if test -n "$AR"; then
8185 ac_cv_prog_AR="$AR" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8200 IFS=$as_save_IFS
8204 AR=$ac_cv_prog_AR
8205 if test -n "$AR"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8207 $as_echo "$AR" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8215 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8217 set dummy ${ncn_progname}; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_AR+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$AR"; then
8224 ac_cv_prog_AR="$AR" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_AR="${ncn_progname}"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8243 AR=$ac_cv_prog_AR
8244 if test -n "$AR"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8246 $as_echo "$AR" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 test -n "$ac_cv_prog_AR" && break
8255 done
8257 if test -z "$ac_cv_prog_AR" ; then
8258 set dummy ar
8259 if test $build = $host ; then
8260 AR="$2"
8261 else
8262 AR="${ncn_tool_prefix}$2"
8268 if test -n "$AS"; then
8269 ac_cv_prog_AS=$AS
8270 elif test -n "$ac_cv_prog_AS"; then
8271 AS=$ac_cv_prog_AS
8274 if test -n "$ac_cv_prog_AS"; then
8275 for ncn_progname in as; do
8276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8277 set dummy ${ncn_progname}; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if test "${ac_cv_prog_AS+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$AS"; then
8284 ac_cv_prog_AS="$AS" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_prog_AS="${ncn_progname}"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8303 AS=$ac_cv_prog_AS
8304 if test -n "$AS"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8306 $as_echo "$AS" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8313 done
8316 for ncn_progname in as; do
8317 if test -n "$ncn_tool_prefix"; then
8318 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8319 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if test "${ac_cv_prog_AS+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 if test -n "$AS"; then
8326 ac_cv_prog_AS="$AS" # Let the user override the test.
8327 else
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8339 done
8340 done
8341 IFS=$as_save_IFS
8345 AS=$ac_cv_prog_AS
8346 if test -n "$AS"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8348 $as_echo "$AS" >&6; }
8349 else
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8356 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8358 set dummy ${ncn_progname}; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_AS+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 if test -n "$AS"; then
8365 ac_cv_prog_AS="$AS" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_AS="${ncn_progname}"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8378 done
8379 done
8380 IFS=$as_save_IFS
8384 AS=$ac_cv_prog_AS
8385 if test -n "$AS"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8387 $as_echo "$AS" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8395 test -n "$ac_cv_prog_AS" && break
8396 done
8398 if test -z "$ac_cv_prog_AS" ; then
8399 set dummy as
8400 if test $build = $host ; then
8401 AS="$2"
8402 else
8403 AS="${ncn_tool_prefix}$2"
8409 if test -n "$DLLTOOL"; then
8410 ac_cv_prog_DLLTOOL=$DLLTOOL
8411 elif test -n "$ac_cv_prog_DLLTOOL"; then
8412 DLLTOOL=$ac_cv_prog_DLLTOOL
8415 if test -n "$ac_cv_prog_DLLTOOL"; then
8416 for ncn_progname in dlltool; do
8417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8418 set dummy ${ncn_progname}; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 if test -n "$DLLTOOL"; then
8425 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_prog_DLLTOOL="${ncn_progname}"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8438 done
8439 done
8440 IFS=$as_save_IFS
8444 DLLTOOL=$ac_cv_prog_DLLTOOL
8445 if test -n "$DLLTOOL"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8447 $as_echo "$DLLTOOL" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8454 done
8457 for ncn_progname in dlltool; do
8458 if test -n "$ncn_tool_prefix"; then
8459 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8460 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 if test -n "$DLLTOOL"; then
8467 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8476 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8480 done
8481 done
8482 IFS=$as_save_IFS
8486 DLLTOOL=$ac_cv_prog_DLLTOOL
8487 if test -n "$DLLTOOL"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8489 $as_echo "$DLLTOOL" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8497 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8499 set dummy ${ncn_progname}; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test -n "$DLLTOOL"; then
8506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_DLLTOOL="${ncn_progname}"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8525 DLLTOOL=$ac_cv_prog_DLLTOOL
8526 if test -n "$DLLTOOL"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8528 $as_echo "$DLLTOOL" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 test -n "$ac_cv_prog_DLLTOOL" && break
8537 done
8539 if test -z "$ac_cv_prog_DLLTOOL" ; then
8540 set dummy dlltool
8541 if test $build = $host ; then
8542 DLLTOOL="$2"
8543 else
8544 DLLTOOL="${ncn_tool_prefix}$2"
8550 if test -n "$LD"; then
8551 ac_cv_prog_LD=$LD
8552 elif test -n "$ac_cv_prog_LD"; then
8553 LD=$ac_cv_prog_LD
8556 if test -n "$ac_cv_prog_LD"; then
8557 for ncn_progname in ld; do
8558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8559 set dummy ${ncn_progname}; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if test "${ac_cv_prog_LD+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$LD"; then
8566 ac_cv_prog_LD="$LD" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_prog_LD="${ncn_progname}"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8585 LD=$ac_cv_prog_LD
8586 if test -n "$LD"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8588 $as_echo "$LD" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8595 done
8598 for ncn_progname in ld; do
8599 if test -n "$ncn_tool_prefix"; then
8600 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8601 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if test "${ac_cv_prog_LD+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 if test -n "$LD"; then
8608 ac_cv_prog_LD="$LD" # Let the user override the test.
8609 else
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8621 done
8622 done
8623 IFS=$as_save_IFS
8627 LD=$ac_cv_prog_LD
8628 if test -n "$LD"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8630 $as_echo "$LD" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8638 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8640 set dummy ${ncn_progname}; ac_word=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if test "${ac_cv_prog_LD+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 if test -n "$LD"; then
8647 ac_cv_prog_LD="$LD" # Let the user override the test.
8648 else
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_prog_LD="${ncn_progname}"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8660 done
8661 done
8662 IFS=$as_save_IFS
8666 LD=$ac_cv_prog_LD
8667 if test -n "$LD"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8669 $as_echo "$LD" >&6; }
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8677 test -n "$ac_cv_prog_LD" && break
8678 done
8680 if test -z "$ac_cv_prog_LD" ; then
8681 set dummy ld
8682 if test $build = $host ; then
8683 LD="$2"
8684 else
8685 LD="${ncn_tool_prefix}$2"
8691 if test -n "$LIPO"; then
8692 ac_cv_prog_LIPO=$LIPO
8693 elif test -n "$ac_cv_prog_LIPO"; then
8694 LIPO=$ac_cv_prog_LIPO
8697 if test -n "$ac_cv_prog_LIPO"; then
8698 for ncn_progname in lipo; do
8699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8700 set dummy ${ncn_progname}; ac_word=$2
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702 $as_echo_n "checking for $ac_word... " >&6; }
8703 if test "${ac_cv_prog_LIPO+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 if test -n "$LIPO"; then
8707 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8708 else
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8716 ac_cv_prog_LIPO="${ncn_progname}"
8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8720 done
8721 done
8722 IFS=$as_save_IFS
8726 LIPO=$ac_cv_prog_LIPO
8727 if test -n "$LIPO"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8729 $as_echo "$LIPO" >&6; }
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8736 done
8739 for ncn_progname in lipo; do
8740 if test -n "$ncn_tool_prefix"; then
8741 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8742 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_prog_LIPO+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 if test -n "$LIPO"; then
8749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8762 done
8763 done
8764 IFS=$as_save_IFS
8768 LIPO=$ac_cv_prog_LIPO
8769 if test -n "$LIPO"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8771 $as_echo "$LIPO" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8779 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8781 set dummy ${ncn_progname}; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_LIPO+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 if test -n "$LIPO"; then
8788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_LIPO="${ncn_progname}"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8801 done
8802 done
8803 IFS=$as_save_IFS
8807 LIPO=$ac_cv_prog_LIPO
8808 if test -n "$LIPO"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8810 $as_echo "$LIPO" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8818 test -n "$ac_cv_prog_LIPO" && break
8819 done
8821 if test -z "$ac_cv_prog_LIPO" ; then
8822 set dummy lipo
8823 if test $build = $host ; then
8824 LIPO="$2"
8825 else
8826 LIPO="${ncn_tool_prefix}$2"
8832 if test -n "$NM"; then
8833 ac_cv_prog_NM=$NM
8834 elif test -n "$ac_cv_prog_NM"; then
8835 NM=$ac_cv_prog_NM
8838 if test -n "$ac_cv_prog_NM"; then
8839 for ncn_progname in nm; do
8840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8841 set dummy ${ncn_progname}; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if test "${ac_cv_prog_NM+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 if test -n "$NM"; then
8848 ac_cv_prog_NM="$NM" # Let the user override the test.
8849 else
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857 ac_cv_prog_NM="${ncn_progname}"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8861 done
8862 done
8863 IFS=$as_save_IFS
8867 NM=$ac_cv_prog_NM
8868 if test -n "$NM"; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8870 $as_echo "$NM" >&6; }
8871 else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8877 done
8880 for ncn_progname in nm; do
8881 if test -n "$ncn_tool_prefix"; then
8882 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8883 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if test "${ac_cv_prog_NM+set}" = set; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 if test -n "$NM"; then
8890 ac_cv_prog_NM="$NM" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8909 NM=$ac_cv_prog_NM
8910 if test -n "$NM"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8912 $as_echo "$NM" >&6; }
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8920 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8922 set dummy ${ncn_progname}; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if test "${ac_cv_prog_NM+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 if test -n "$NM"; then
8929 ac_cv_prog_NM="$NM" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938 ac_cv_prog_NM="${ncn_progname}"
8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8942 done
8943 done
8944 IFS=$as_save_IFS
8948 NM=$ac_cv_prog_NM
8949 if test -n "$NM"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8951 $as_echo "$NM" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8959 test -n "$ac_cv_prog_NM" && break
8960 done
8962 if test -z "$ac_cv_prog_NM" ; then
8963 set dummy nm
8964 if test $build = $host ; then
8965 NM="$2"
8966 else
8967 NM="${ncn_tool_prefix}$2"
8973 if test -n "$RANLIB"; then
8974 ac_cv_prog_RANLIB=$RANLIB
8975 elif test -n "$ac_cv_prog_RANLIB"; then
8976 RANLIB=$ac_cv_prog_RANLIB
8979 if test -n "$ac_cv_prog_RANLIB"; then
8980 for ncn_progname in ranlib; do
8981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8982 set dummy ${ncn_progname}; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 if test -n "$RANLIB"; then
8989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998 ac_cv_prog_RANLIB="${ncn_progname}"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9002 done
9003 done
9004 IFS=$as_save_IFS
9008 RANLIB=$ac_cv_prog_RANLIB
9009 if test -n "$RANLIB"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9011 $as_echo "$RANLIB" >&6; }
9012 else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9018 done
9021 for ncn_progname in ranlib; do
9022 if test -n "$ncn_tool_prefix"; then
9023 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9024 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 if test -n "$RANLIB"; then
9031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9032 else
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9040 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 break 2
9044 done
9045 done
9046 IFS=$as_save_IFS
9050 RANLIB=$ac_cv_prog_RANLIB
9051 if test -n "$RANLIB"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9053 $as_echo "$RANLIB" >&6; }
9054 else
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9061 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063 set dummy ${ncn_progname}; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test -n "$RANLIB"; then
9070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079 ac_cv_prog_RANLIB="${ncn_progname}"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9083 done
9084 done
9085 IFS=$as_save_IFS
9089 RANLIB=$ac_cv_prog_RANLIB
9090 if test -n "$RANLIB"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9092 $as_echo "$RANLIB" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9100 test -n "$ac_cv_prog_RANLIB" && break
9101 done
9103 if test -z "$ac_cv_prog_RANLIB" ; then
9104 RANLIB="true"
9109 if test -n "$STRIP"; then
9110 ac_cv_prog_STRIP=$STRIP
9111 elif test -n "$ac_cv_prog_STRIP"; then
9112 STRIP=$ac_cv_prog_STRIP
9115 if test -n "$ac_cv_prog_STRIP"; then
9116 for ncn_progname in strip; do
9117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9118 set dummy ${ncn_progname}; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if test "${ac_cv_prog_STRIP+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 if test -n "$STRIP"; then
9125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9134 ac_cv_prog_STRIP="${ncn_progname}"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9138 done
9139 done
9140 IFS=$as_save_IFS
9144 STRIP=$ac_cv_prog_STRIP
9145 if test -n "$STRIP"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9147 $as_echo "$STRIP" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9154 done
9157 for ncn_progname in strip; do
9158 if test -n "$ncn_tool_prefix"; then
9159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9160 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_STRIP+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$STRIP"; then
9167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9180 done
9181 done
9182 IFS=$as_save_IFS
9186 STRIP=$ac_cv_prog_STRIP
9187 if test -n "$STRIP"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9189 $as_echo "$STRIP" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_STRIP+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$STRIP"; then
9206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_prog_STRIP="${ncn_progname}"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9225 STRIP=$ac_cv_prog_STRIP
9226 if test -n "$STRIP"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9228 $as_echo "$STRIP" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 test -n "$ac_cv_prog_STRIP" && break
9237 done
9239 if test -z "$ac_cv_prog_STRIP" ; then
9240 STRIP="true"
9245 if test -n "$WINDRES"; then
9246 ac_cv_prog_WINDRES=$WINDRES
9247 elif test -n "$ac_cv_prog_WINDRES"; then
9248 WINDRES=$ac_cv_prog_WINDRES
9251 if test -n "$ac_cv_prog_WINDRES"; then
9252 for ncn_progname in windres; do
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_WINDRES+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 if test -n "$WINDRES"; then
9261 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 WINDRES=$ac_cv_prog_WINDRES
9281 if test -n "$WINDRES"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9283 $as_echo "$WINDRES" >&6; }
9284 else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9290 done
9293 for ncn_progname in windres; do
9294 if test -n "$ncn_tool_prefix"; then
9295 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9296 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 $as_echo_n "checking for $ac_word... " >&6; }
9299 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 if test -n "$WINDRES"; then
9303 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9304 else
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 for as_dir in $PATH
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9312 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 break 2
9316 done
9317 done
9318 IFS=$as_save_IFS
9322 WINDRES=$ac_cv_prog_WINDRES
9323 if test -n "$WINDRES"; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9325 $as_echo "$WINDRES" >&6; }
9326 else
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9333 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9335 set dummy ${ncn_progname}; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 if test -n "$WINDRES"; then
9342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9343 else
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_prog_WINDRES="${ncn_progname}"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9361 WINDRES=$ac_cv_prog_WINDRES
9362 if test -n "$WINDRES"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9364 $as_echo "$WINDRES" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 test -n "$ac_cv_prog_WINDRES" && break
9373 done
9375 if test -z "$ac_cv_prog_WINDRES" ; then
9376 set dummy windres
9377 if test $build = $host ; then
9378 WINDRES="$2"
9379 else
9380 WINDRES="${ncn_tool_prefix}$2"
9386 if test -n "$WINDMC"; then
9387 ac_cv_prog_WINDMC=$WINDMC
9388 elif test -n "$ac_cv_prog_WINDMC"; then
9389 WINDMC=$ac_cv_prog_WINDMC
9392 if test -n "$ac_cv_prog_WINDMC"; then
9393 for ncn_progname in windmc; do
9394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9395 set dummy ${ncn_progname}; ac_word=$2
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 $as_echo_n "checking for $ac_word... " >&6; }
9398 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 if test -n "$WINDMC"; then
9402 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9403 else
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_prog_WINDMC="${ncn_progname}"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9421 WINDMC=$ac_cv_prog_WINDMC
9422 if test -n "$WINDMC"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9424 $as_echo "$WINDMC" >&6; }
9425 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9431 done
9434 for ncn_progname in windmc; do
9435 if test -n "$ncn_tool_prefix"; then
9436 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9437 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9439 $as_echo_n "checking for $ac_word... " >&6; }
9440 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 if test -n "$WINDMC"; then
9444 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9445 else
9446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9449 IFS=$as_save_IFS
9450 test -z "$as_dir" && as_dir=.
9451 for ac_exec_ext in '' $ac_executable_extensions; do
9452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9453 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455 break 2
9457 done
9458 done
9459 IFS=$as_save_IFS
9463 WINDMC=$ac_cv_prog_WINDMC
9464 if test -n "$WINDMC"; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9466 $as_echo "$WINDMC" >&6; }
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9474 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9476 set dummy ${ncn_progname}; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 if test -n "$WINDMC"; then
9483 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9492 ac_cv_prog_WINDMC="${ncn_progname}"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9496 done
9497 done
9498 IFS=$as_save_IFS
9502 WINDMC=$ac_cv_prog_WINDMC
9503 if test -n "$WINDMC"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9505 $as_echo "$WINDMC" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9513 test -n "$ac_cv_prog_WINDMC" && break
9514 done
9516 if test -z "$ac_cv_prog_WINDMC" ; then
9517 set dummy windmc
9518 if test $build = $host ; then
9519 WINDMC="$2"
9520 else
9521 WINDMC="${ncn_tool_prefix}$2"
9527 if test -n "$OBJCOPY"; then
9528 ac_cv_prog_OBJCOPY=$OBJCOPY
9529 elif test -n "$ac_cv_prog_OBJCOPY"; then
9530 OBJCOPY=$ac_cv_prog_OBJCOPY
9533 if test -n "$ac_cv_prog_OBJCOPY"; then
9534 for ncn_progname in objcopy; do
9535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9536 set dummy ${ncn_progname}; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 if test -n "$OBJCOPY"; then
9543 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9544 else
9545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546 for as_dir in $PATH
9548 IFS=$as_save_IFS
9549 test -z "$as_dir" && as_dir=.
9550 for ac_exec_ext in '' $ac_executable_extensions; do
9551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9552 ac_cv_prog_OBJCOPY="${ncn_progname}"
9553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9554 break 2
9556 done
9557 done
9558 IFS=$as_save_IFS
9562 OBJCOPY=$ac_cv_prog_OBJCOPY
9563 if test -n "$OBJCOPY"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9565 $as_echo "$OBJCOPY" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9572 done
9575 for ncn_progname in objcopy; do
9576 if test -n "$ncn_tool_prefix"; then
9577 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9578 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580 $as_echo_n "checking for $ac_word... " >&6; }
9581 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 if test -n "$OBJCOPY"; then
9585 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9586 else
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9594 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 break 2
9598 done
9599 done
9600 IFS=$as_save_IFS
9604 OBJCOPY=$ac_cv_prog_OBJCOPY
9605 if test -n "$OBJCOPY"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9607 $as_echo "$OBJCOPY" >&6; }
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9615 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9617 set dummy ${ncn_progname}; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test -n "$OBJCOPY"; then
9624 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_OBJCOPY="${ncn_progname}"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9643 OBJCOPY=$ac_cv_prog_OBJCOPY
9644 if test -n "$OBJCOPY"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9646 $as_echo "$OBJCOPY" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9654 test -n "$ac_cv_prog_OBJCOPY" && break
9655 done
9657 if test -z "$ac_cv_prog_OBJCOPY" ; then
9658 set dummy objcopy
9659 if test $build = $host ; then
9660 OBJCOPY="$2"
9661 else
9662 OBJCOPY="${ncn_tool_prefix}$2"
9668 if test -n "$OBJDUMP"; then
9669 ac_cv_prog_OBJDUMP=$OBJDUMP
9670 elif test -n "$ac_cv_prog_OBJDUMP"; then
9671 OBJDUMP=$ac_cv_prog_OBJDUMP
9674 if test -n "$ac_cv_prog_OBJDUMP"; then
9675 for ncn_progname in objdump; do
9676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9677 set dummy ${ncn_progname}; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 if test -n "$OBJDUMP"; then
9684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_OBJDUMP="${ncn_progname}"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9703 OBJDUMP=$ac_cv_prog_OBJDUMP
9704 if test -n "$OBJDUMP"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9706 $as_echo "$OBJDUMP" >&6; }
9707 else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9713 done
9716 for ncn_progname in objdump; do
9717 if test -n "$ncn_tool_prefix"; then
9718 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9719 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 if test -n "$OBJDUMP"; then
9726 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9745 OBJDUMP=$ac_cv_prog_OBJDUMP
9746 if test -n "$OBJDUMP"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9748 $as_echo "$OBJDUMP" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9756 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9758 set dummy ${ncn_progname}; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 if test -n "$OBJDUMP"; then
9765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9766 else
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_prog_OBJDUMP="${ncn_progname}"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9778 done
9779 done
9780 IFS=$as_save_IFS
9784 OBJDUMP=$ac_cv_prog_OBJDUMP
9785 if test -n "$OBJDUMP"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9787 $as_echo "$OBJDUMP" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9795 test -n "$ac_cv_prog_OBJDUMP" && break
9796 done
9798 if test -z "$ac_cv_prog_OBJDUMP" ; then
9799 set dummy objdump
9800 if test $build = $host ; then
9801 OBJDUMP="$2"
9802 else
9803 OBJDUMP="${ncn_tool_prefix}$2"
9809 if test -n "$READELF"; then
9810 ac_cv_prog_READELF=$READELF
9811 elif test -n "$ac_cv_prog_READELF"; then
9812 READELF=$ac_cv_prog_READELF
9815 if test -n "$ac_cv_prog_READELF"; then
9816 for ncn_progname in readelf; do
9817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9818 set dummy ${ncn_progname}; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if test "${ac_cv_prog_READELF+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 if test -n "$READELF"; then
9825 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9826 else
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9834 ac_cv_prog_READELF="${ncn_progname}"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9840 IFS=$as_save_IFS
9844 READELF=$ac_cv_prog_READELF
9845 if test -n "$READELF"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9847 $as_echo "$READELF" >&6; }
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9854 done
9857 for ncn_progname in readelf; do
9858 if test -n "$ncn_tool_prefix"; then
9859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if test "${ac_cv_prog_READELF+set}" = set; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 if test -n "$READELF"; then
9867 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9886 READELF=$ac_cv_prog_READELF
9887 if test -n "$READELF"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9889 $as_echo "$READELF" >&6; }
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9897 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9899 set dummy ${ncn_progname}; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if test "${ac_cv_prog_READELF+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 if test -n "$READELF"; then
9906 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9907 else
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_prog_READELF="${ncn_progname}"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9919 done
9920 done
9921 IFS=$as_save_IFS
9925 READELF=$ac_cv_prog_READELF
9926 if test -n "$READELF"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9928 $as_echo "$READELF" >&6; }
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9936 test -n "$ac_cv_prog_READELF" && break
9937 done
9939 if test -z "$ac_cv_prog_READELF" ; then
9940 set dummy readelf
9941 if test $build = $host ; then
9942 READELF="$2"
9943 else
9944 READELF="${ncn_tool_prefix}$2"
9953 # Target tools.
9955 # Check whether --with-build-time-tools was given.
9956 if test "${with_build_time_tools+set}" = set; then :
9957 withval=$with_build_time_tools; case x"$withval" in
9958 x/*) ;;
9960 with_build_time_tools=
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9962 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9964 esac
9965 else
9966 with_build_time_tools=
9972 if test -n "$CC_FOR_TARGET"; then
9973 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9974 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9975 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9978 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9979 for ncn_progname in cc gcc; do
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981 set dummy ${ncn_progname}; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 if test -n "$CC_FOR_TARGET"; then
9988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10007 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10008 if test -n "$CC_FOR_TARGET"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10010 $as_echo "$CC_FOR_TARGET" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10017 done
10020 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10021 for ncn_progname in cc gcc; do
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10024 if test -x $with_build_time_tools/${ncn_progname}; then
10025 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027 $as_echo "yes" >&6; }
10028 break
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10033 done
10036 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10037 for ncn_progname in cc gcc; do
10038 if test -n "$ncn_target_tool_prefix"; then
10039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 if test -n "$CC_FOR_TARGET"; then
10047 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10060 done
10061 done
10062 IFS=$as_save_IFS
10066 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10067 if test -n "$CC_FOR_TARGET"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10069 $as_echo "$CC_FOR_TARGET" >&6; }
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10077 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10079 set dummy ${ncn_progname}; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test -n "$CC_FOR_TARGET"; then
10086 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10099 done
10100 done
10101 IFS=$as_save_IFS
10105 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10106 if test -n "$CC_FOR_TARGET"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10108 $as_echo "$CC_FOR_TARGET" >&6; }
10109 else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10117 done
10120 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10121 set dummy cc gcc
10122 if test $build = $target ; then
10123 CC_FOR_TARGET="$2"
10124 else
10125 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10127 else
10128 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10133 if test -n "$CXX_FOR_TARGET"; then
10134 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10135 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10136 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10139 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10140 for ncn_progname in c++ g++ cxx gxx; do
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10142 set dummy ${ncn_progname}; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 if test -n "$CXX_FOR_TARGET"; then
10149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10168 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10169 if test -n "$CXX_FOR_TARGET"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10171 $as_echo "$CXX_FOR_TARGET" >&6; }
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10178 done
10181 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10182 for ncn_progname in c++ g++ cxx gxx; do
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10185 if test -x $with_build_time_tools/${ncn_progname}; then
10186 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10188 $as_echo "yes" >&6; }
10189 break
10190 else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10194 done
10197 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10198 for ncn_progname in c++ g++ cxx gxx; do
10199 if test -n "$ncn_target_tool_prefix"; then
10200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 if test -n "$CXX_FOR_TARGET"; then
10208 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10209 else
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10217 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 break 2
10221 done
10222 done
10223 IFS=$as_save_IFS
10227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10228 if test -n "$CXX_FOR_TARGET"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10230 $as_echo "$CXX_FOR_TARGET" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10238 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10240 set dummy ${ncn_progname}; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 if test -n "$CXX_FOR_TARGET"; then
10247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10248 else
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10256 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10260 done
10261 done
10262 IFS=$as_save_IFS
10266 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10267 if test -n "$CXX_FOR_TARGET"; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10269 $as_echo "$CXX_FOR_TARGET" >&6; }
10270 else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10277 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10278 done
10281 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10282 set dummy c++ g++ cxx gxx
10283 if test $build = $target ; then
10284 CXX_FOR_TARGET="$2"
10285 else
10286 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10288 else
10289 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10294 if test -n "$GCC_FOR_TARGET"; then
10295 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10296 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10300 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10301 for ncn_progname in gcc; do
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303 set dummy ${ncn_progname}; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 if test -n "$GCC_FOR_TARGET"; then
10310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10323 done
10324 done
10325 IFS=$as_save_IFS
10329 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10330 if test -n "$GCC_FOR_TARGET"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10332 $as_echo "$GCC_FOR_TARGET" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10339 done
10342 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10343 for ncn_progname in gcc; do
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10346 if test -x $with_build_time_tools/${ncn_progname}; then
10347 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10349 $as_echo "yes" >&6; }
10350 break
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10355 done
10358 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10359 for ncn_progname in gcc; do
10360 if test -n "$ncn_target_tool_prefix"; then
10361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 if test -n "$GCC_FOR_TARGET"; then
10369 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10370 else
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10378 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10382 done
10383 done
10384 IFS=$as_save_IFS
10388 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10389 if test -n "$GCC_FOR_TARGET"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10391 $as_echo "$GCC_FOR_TARGET" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10399 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401 set dummy ${ncn_progname}; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 if test -n "$GCC_FOR_TARGET"; then
10408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10421 done
10422 done
10423 IFS=$as_save_IFS
10427 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10428 if test -n "$GCC_FOR_TARGET"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10430 $as_echo "$GCC_FOR_TARGET" >&6; }
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10438 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10439 done
10442 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10443 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10444 else
10445 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10450 if test -n "$GCJ_FOR_TARGET"; then
10451 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10452 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10453 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10456 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10457 for ncn_progname in gcj; do
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10459 set dummy ${ncn_progname}; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test -n "$GCJ_FOR_TARGET"; then
10466 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10485 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10486 if test -n "$GCJ_FOR_TARGET"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10488 $as_echo "$GCJ_FOR_TARGET" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10495 done
10498 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10499 for ncn_progname in gcj; do
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10502 if test -x $with_build_time_tools/${ncn_progname}; then
10503 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10505 $as_echo "yes" >&6; }
10506 break
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10511 done
10514 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10515 for ncn_progname in gcj; do
10516 if test -n "$ncn_target_tool_prefix"; then
10517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$GCJ_FOR_TARGET"; then
10525 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10538 done
10539 done
10540 IFS=$as_save_IFS
10544 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10545 if test -n "$GCJ_FOR_TARGET"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10547 $as_echo "$GCJ_FOR_TARGET" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10555 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10557 set dummy ${ncn_progname}; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if test -n "$GCJ_FOR_TARGET"; then
10564 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10565 else
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10577 done
10578 done
10579 IFS=$as_save_IFS
10583 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10584 if test -n "$GCJ_FOR_TARGET"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10586 $as_echo "$GCJ_FOR_TARGET" >&6; }
10587 else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10594 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10595 done
10598 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10599 set dummy gcj
10600 if test $build = $target ; then
10601 GCJ_FOR_TARGET="$2"
10602 else
10603 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10605 else
10606 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10611 if test -n "$GFORTRAN_FOR_TARGET"; then
10612 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10613 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10614 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10617 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10618 for ncn_progname in gfortran; do
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620 set dummy ${ncn_progname}; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 if test -n "$GFORTRAN_FOR_TARGET"; then
10627 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10628 else
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10640 done
10641 done
10642 IFS=$as_save_IFS
10646 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10647 if test -n "$GFORTRAN_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10649 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10656 done
10659 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10660 for ncn_progname in gfortran; do
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10662 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10663 if test -x $with_build_time_tools/${ncn_progname}; then
10664 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10667 break
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10672 done
10675 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10676 for ncn_progname in gfortran; do
10677 if test -n "$ncn_target_tool_prefix"; then
10678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10679 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 if test -n "$GFORTRAN_FOR_TARGET"; then
10686 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10687 else
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10699 done
10700 done
10701 IFS=$as_save_IFS
10705 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10706 if test -n "$GFORTRAN_FOR_TARGET"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10708 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10716 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10718 set dummy ${ncn_progname}; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 if test -n "$GFORTRAN_FOR_TARGET"; then
10725 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10726 else
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10744 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10745 if test -n "$GFORTRAN_FOR_TARGET"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10747 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10756 done
10759 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10760 set dummy gfortran
10761 if test $build = $target ; then
10762 GFORTRAN_FOR_TARGET="$2"
10763 else
10764 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10766 else
10767 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10772 if test -n "$GOC_FOR_TARGET"; then
10773 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10774 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10775 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10778 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10779 for ncn_progname in gccgo; do
10780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10781 set dummy ${ncn_progname}; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 if test -n "$GOC_FOR_TARGET"; then
10788 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10789 else
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10797 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10801 done
10802 done
10803 IFS=$as_save_IFS
10807 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10808 if test -n "$GOC_FOR_TARGET"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10810 $as_echo "$GOC_FOR_TARGET" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10817 done
10820 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10821 for ncn_progname in gccgo; do
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10823 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10824 if test -x $with_build_time_tools/${ncn_progname}; then
10825 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10827 $as_echo "yes" >&6; }
10828 break
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10833 done
10836 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10837 for ncn_progname in gccgo; do
10838 if test -n "$ncn_target_tool_prefix"; then
10839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 if test -n "$GOC_FOR_TARGET"; then
10847 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10860 done
10861 done
10862 IFS=$as_save_IFS
10866 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10867 if test -n "$GOC_FOR_TARGET"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10869 $as_echo "$GOC_FOR_TARGET" >&6; }
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10877 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10879 set dummy ${ncn_progname}; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 if test -n "$GOC_FOR_TARGET"; then
10886 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10887 else
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10899 done
10900 done
10901 IFS=$as_save_IFS
10905 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10906 if test -n "$GOC_FOR_TARGET"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10908 $as_echo "$GOC_FOR_TARGET" >&6; }
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10916 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10917 done
10920 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10921 set dummy gccgo
10922 if test $build = $target ; then
10923 GOC_FOR_TARGET="$2"
10924 else
10925 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10927 else
10928 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10933 cat > conftest.c << \EOF
10934 #ifdef __GNUC__
10935 gcc_yay;
10936 #endif
10938 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10939 have_gcc_for_target=yes
10940 else
10941 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10942 have_gcc_for_target=no
10944 rm conftest.c
10949 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10950 if test -n "$with_build_time_tools"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10952 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10953 if test -x $with_build_time_tools/ar; then
10954 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10955 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10957 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10962 elif test $build != $host && test $have_gcc_for_target = yes; then
10963 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10964 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10965 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10968 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10969 # Extract the first word of "ar", so it can be a program name with args.
10970 set dummy ar; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 case $AR_FOR_TARGET in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $gcc_cv_tool_dirs
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10992 done
10993 done
10994 IFS=$as_save_IFS
10997 esac
10999 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11000 if test -n "$AR_FOR_TARGET"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11002 $as_echo "$AR_FOR_TARGET" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11010 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11013 if test -n "$AR_FOR_TARGET"; then
11014 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11015 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11016 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11019 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11020 for ncn_progname in ar; do
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test -n "$AR_FOR_TARGET"; then
11029 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11042 done
11043 done
11044 IFS=$as_save_IFS
11048 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11049 if test -n "$AR_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11051 $as_echo "$AR_FOR_TARGET" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11058 done
11061 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11062 for ncn_progname in ar; do
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11064 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11065 if test -x $with_build_time_tools/${ncn_progname}; then
11066 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069 break
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11074 done
11077 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11078 for ncn_progname in ar; do
11079 if test -n "$ncn_target_tool_prefix"; then
11080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 if test -n "$AR_FOR_TARGET"; then
11088 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11089 else
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11101 done
11102 done
11103 IFS=$as_save_IFS
11107 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11108 if test -n "$AR_FOR_TARGET"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11110 $as_echo "$AR_FOR_TARGET" >&6; }
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11118 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11120 set dummy ${ncn_progname}; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test -n "$AR_FOR_TARGET"; then
11127 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11128 else
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11136 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11140 done
11141 done
11142 IFS=$as_save_IFS
11146 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11147 if test -n "$AR_FOR_TARGET"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11149 $as_echo "$AR_FOR_TARGET" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11157 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11158 done
11161 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11162 set dummy ar
11163 if test $build = $target ; then
11164 AR_FOR_TARGET="$2"
11165 else
11166 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11168 else
11169 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11172 else
11173 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11179 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11180 if test -n "$with_build_time_tools"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11182 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11183 if test -x $with_build_time_tools/as; then
11184 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11185 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11187 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11192 elif test $build != $host && test $have_gcc_for_target = yes; then
11193 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11194 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11195 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11198 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11199 # Extract the first word of "as", so it can be a program name with args.
11200 set dummy as; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 case $AS_FOR_TARGET in
11207 [\\/]* | ?:[\\/]*)
11208 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $gcc_cv_tool_dirs
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11222 done
11223 done
11224 IFS=$as_save_IFS
11227 esac
11229 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11230 if test -n "$AS_FOR_TARGET"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11232 $as_echo "$AS_FOR_TARGET" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11240 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11243 if test -n "$AS_FOR_TARGET"; then
11244 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11245 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11246 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11249 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11250 for ncn_progname in as; do
11251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11252 set dummy ${ncn_progname}; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 if test -n "$AS_FOR_TARGET"; then
11259 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11260 else
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11272 done
11273 done
11274 IFS=$as_save_IFS
11278 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11279 if test -n "$AS_FOR_TARGET"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11281 $as_echo "$AS_FOR_TARGET" >&6; }
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11288 done
11291 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11292 for ncn_progname in as; do
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11295 if test -x $with_build_time_tools/${ncn_progname}; then
11296 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298 $as_echo "yes" >&6; }
11299 break
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11304 done
11307 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11308 for ncn_progname in as; do
11309 if test -n "$ncn_target_tool_prefix"; then
11310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test -n "$AS_FOR_TARGET"; then
11318 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11319 else
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11337 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11338 if test -n "$AS_FOR_TARGET"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11340 $as_echo "$AS_FOR_TARGET" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11348 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11350 set dummy ${ncn_progname}; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 if test -n "$AS_FOR_TARGET"; then
11357 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11358 else
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11366 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11370 done
11371 done
11372 IFS=$as_save_IFS
11376 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11377 if test -n "$AS_FOR_TARGET"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11379 $as_echo "$AS_FOR_TARGET" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11387 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11388 done
11391 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11392 set dummy as
11393 if test $build = $target ; then
11394 AS_FOR_TARGET="$2"
11395 else
11396 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11398 else
11399 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11402 else
11403 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11410 if test -n "$with_build_time_tools"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11412 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11413 if test -x $with_build_time_tools/dlltool; then
11414 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11415 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11417 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11422 elif test $build != $host && test $have_gcc_for_target = yes; then
11423 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11424 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11425 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11428 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11429 # Extract the first word of "dlltool", so it can be a program name with args.
11430 set dummy dlltool; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 case $DLLTOOL_FOR_TARGET in
11437 [\\/]* | ?:[\\/]*)
11438 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $gcc_cv_tool_dirs
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11448 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11452 done
11453 done
11454 IFS=$as_save_IFS
11457 esac
11459 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11460 if test -n "$DLLTOOL_FOR_TARGET"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11462 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11473 if test -n "$DLLTOOL_FOR_TARGET"; then
11474 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11475 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11476 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11479 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11480 for ncn_progname in dlltool; do
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test -n "$DLLTOOL_FOR_TARGET"; then
11489 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11502 done
11503 done
11504 IFS=$as_save_IFS
11508 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11509 if test -n "$DLLTOOL_FOR_TARGET"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11511 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11518 done
11521 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11522 for ncn_progname in dlltool; do
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11525 if test -x $with_build_time_tools/${ncn_progname}; then
11526 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11529 break
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11534 done
11537 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11538 for ncn_progname in dlltool; do
11539 if test -n "$ncn_target_tool_prefix"; then
11540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 if test -n "$DLLTOOL_FOR_TARGET"; then
11548 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11557 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11561 done
11562 done
11563 IFS=$as_save_IFS
11567 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11568 if test -n "$DLLTOOL_FOR_TARGET"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11570 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11578 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11580 set dummy ${ncn_progname}; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test -n "$DLLTOOL_FOR_TARGET"; then
11587 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11588 else
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11600 done
11601 done
11602 IFS=$as_save_IFS
11606 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11607 if test -n "$DLLTOOL_FOR_TARGET"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11609 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11618 done
11621 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11622 set dummy dlltool
11623 if test $build = $target ; then
11624 DLLTOOL_FOR_TARGET="$2"
11625 else
11626 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11628 else
11629 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11632 else
11633 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11639 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11640 if test -n "$with_build_time_tools"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11642 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11643 if test -x $with_build_time_tools/ld; then
11644 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11645 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11647 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11652 elif test $build != $host && test $have_gcc_for_target = yes; then
11653 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11654 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11655 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11658 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11659 # Extract the first word of "ld", so it can be a program name with args.
11660 set dummy ld; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $LD_FOR_TARGET in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $gcc_cv_tool_dirs
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11687 esac
11689 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11690 if test -n "$LD_FOR_TARGET"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11692 $as_echo "$LD_FOR_TARGET" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11700 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11703 if test -n "$LD_FOR_TARGET"; then
11704 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11705 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11706 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11709 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11710 for ncn_progname in ld; do
11711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11712 set dummy ${ncn_progname}; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test -n "$LD_FOR_TARGET"; then
11719 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11720 else
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11738 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11739 if test -n "$LD_FOR_TARGET"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11741 $as_echo "$LD_FOR_TARGET" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11748 done
11751 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11752 for ncn_progname in ld; do
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11755 if test -x $with_build_time_tools/${ncn_progname}; then
11756 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759 break
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11764 done
11767 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11768 for ncn_progname in ld; do
11769 if test -n "$ncn_target_tool_prefix"; then
11770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 if test -n "$LD_FOR_TARGET"; then
11778 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11779 else
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11787 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11791 done
11792 done
11793 IFS=$as_save_IFS
11797 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11798 if test -n "$LD_FOR_TARGET"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11800 $as_echo "$LD_FOR_TARGET" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11808 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$LD_FOR_TARGET"; then
11817 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11830 done
11831 done
11832 IFS=$as_save_IFS
11836 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11837 if test -n "$LD_FOR_TARGET"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11839 $as_echo "$LD_FOR_TARGET" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11848 done
11851 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11852 set dummy ld
11853 if test $build = $target ; then
11854 LD_FOR_TARGET="$2"
11855 else
11856 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11858 else
11859 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11862 else
11863 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11869 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11870 if test -n "$with_build_time_tools"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11872 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11873 if test -x $with_build_time_tools/lipo; then
11874 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11875 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11877 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11882 elif test $build != $host && test $have_gcc_for_target = yes; then
11883 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11884 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11885 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11888 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11889 # Extract the first word of "lipo", so it can be a program name with args.
11890 set dummy lipo; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 case $LIPO_FOR_TARGET in
11897 [\\/]* | ?:[\\/]*)
11898 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $gcc_cv_tool_dirs
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11912 done
11913 done
11914 IFS=$as_save_IFS
11917 esac
11919 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11920 if test -n "$LIPO_FOR_TARGET"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11922 $as_echo "$LIPO_FOR_TARGET" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11933 if test -n "$LIPO_FOR_TARGET"; then
11934 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11935 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11936 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11939 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11940 for ncn_progname in lipo; do
11941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$LIPO_FOR_TARGET"; then
11949 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11968 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11969 if test -n "$LIPO_FOR_TARGET"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11971 $as_echo "$LIPO_FOR_TARGET" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11978 done
11981 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11982 for ncn_progname in lipo; do
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11985 if test -x $with_build_time_tools/${ncn_progname}; then
11986 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11989 break
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11994 done
11997 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11998 for ncn_progname in lipo; do
11999 if test -n "$ncn_target_tool_prefix"; then
12000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test -n "$LIPO_FOR_TARGET"; then
12008 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12009 else
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12017 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12021 done
12022 done
12023 IFS=$as_save_IFS
12027 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12028 if test -n "$LIPO_FOR_TARGET"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12030 $as_echo "$LIPO_FOR_TARGET" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12038 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12040 set dummy ${ncn_progname}; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 if test -n "$LIPO_FOR_TARGET"; then
12047 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12048 else
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 break 2
12060 done
12061 done
12062 IFS=$as_save_IFS
12066 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12067 if test -n "$LIPO_FOR_TARGET"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12069 $as_echo "$LIPO_FOR_TARGET" >&6; }
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12077 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12078 done
12081 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12082 set dummy lipo
12083 if test $build = $target ; then
12084 LIPO_FOR_TARGET="$2"
12085 else
12086 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12088 else
12089 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12092 else
12093 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12099 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12100 if test -n "$with_build_time_tools"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12102 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12103 if test -x $with_build_time_tools/nm; then
12104 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12105 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12107 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12112 elif test $build != $host && test $have_gcc_for_target = yes; then
12113 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12114 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12115 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12118 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12119 # Extract the first word of "nm", so it can be a program name with args.
12120 set dummy nm; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 case $NM_FOR_TARGET in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $gcc_cv_tool_dirs
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12142 done
12143 done
12144 IFS=$as_save_IFS
12147 esac
12149 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12150 if test -n "$NM_FOR_TARGET"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12152 $as_echo "$NM_FOR_TARGET" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12163 if test -n "$NM_FOR_TARGET"; then
12164 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12165 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12166 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12169 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12170 for ncn_progname in nm; do
12171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12172 set dummy ${ncn_progname}; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -n "$NM_FOR_TARGET"; then
12179 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 break 2
12192 done
12193 done
12194 IFS=$as_save_IFS
12198 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12199 if test -n "$NM_FOR_TARGET"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12201 $as_echo "$NM_FOR_TARGET" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12208 done
12211 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12212 for ncn_progname in nm; do
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12215 if test -x $with_build_time_tools/${ncn_progname}; then
12216 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12218 $as_echo "yes" >&6; }
12219 break
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12224 done
12227 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12228 for ncn_progname in nm; do
12229 if test -n "$ncn_target_tool_prefix"; then
12230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$NM_FOR_TARGET"; then
12238 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12251 done
12252 done
12253 IFS=$as_save_IFS
12257 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12258 if test -n "$NM_FOR_TARGET"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12260 $as_echo "$NM_FOR_TARGET" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12270 set dummy ${ncn_progname}; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 if test -n "$NM_FOR_TARGET"; then
12277 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12290 done
12291 done
12292 IFS=$as_save_IFS
12296 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12297 if test -n "$NM_FOR_TARGET"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12299 $as_echo "$NM_FOR_TARGET" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12307 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12308 done
12311 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12312 set dummy nm
12313 if test $build = $target ; then
12314 NM_FOR_TARGET="$2"
12315 else
12316 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12318 else
12319 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12322 else
12323 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12329 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12330 if test -n "$with_build_time_tools"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12332 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12333 if test -x $with_build_time_tools/objdump; then
12334 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12335 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12337 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12342 elif test $build != $host && test $have_gcc_for_target = yes; then
12343 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12344 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12345 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12348 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12349 # Extract the first word of "objdump", so it can be a program name with args.
12350 set dummy objdump; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 case $OBJDUMP_FOR_TARGET in
12357 [\\/]* | ?:[\\/]*)
12358 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $gcc_cv_tool_dirs
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12372 done
12373 done
12374 IFS=$as_save_IFS
12377 esac
12379 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12380 if test -n "$OBJDUMP_FOR_TARGET"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12382 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12390 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12393 if test -n "$OBJDUMP_FOR_TARGET"; then
12394 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12395 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12396 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12399 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12400 for ncn_progname in objdump; do
12401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12402 set dummy ${ncn_progname}; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 if test -n "$OBJDUMP_FOR_TARGET"; then
12409 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 break 2
12422 done
12423 done
12424 IFS=$as_save_IFS
12428 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12429 if test -n "$OBJDUMP_FOR_TARGET"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12431 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12438 done
12441 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12442 for ncn_progname in objdump; do
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12445 if test -x $with_build_time_tools/${ncn_progname}; then
12446 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12449 break
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12454 done
12457 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12458 for ncn_progname in objdump; do
12459 if test -n "$ncn_target_tool_prefix"; then
12460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if test -n "$OBJDUMP_FOR_TARGET"; then
12468 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12481 done
12482 done
12483 IFS=$as_save_IFS
12487 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12488 if test -n "$OBJDUMP_FOR_TARGET"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12490 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12498 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12500 set dummy ${ncn_progname}; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 if test -n "$OBJDUMP_FOR_TARGET"; then
12507 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12520 done
12521 done
12522 IFS=$as_save_IFS
12526 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12527 if test -n "$OBJDUMP_FOR_TARGET"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12529 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12537 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12538 done
12541 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12542 set dummy objdump
12543 if test $build = $target ; then
12544 OBJDUMP_FOR_TARGET="$2"
12545 else
12546 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12548 else
12549 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12552 else
12553 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12559 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12560 if test -n "$with_build_time_tools"; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12562 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12563 if test -x $with_build_time_tools/ranlib; then
12564 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12565 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12567 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12572 elif test $build != $host && test $have_gcc_for_target = yes; then
12573 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12574 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12575 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12578 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12579 # Extract the first word of "ranlib", so it can be a program name with args.
12580 set dummy ranlib; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 case $RANLIB_FOR_TARGET in
12587 [\\/]* | ?:[\\/]*)
12588 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $gcc_cv_tool_dirs
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12602 done
12603 done
12604 IFS=$as_save_IFS
12607 esac
12609 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12610 if test -n "$RANLIB_FOR_TARGET"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12612 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12620 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12623 if test -n "$RANLIB_FOR_TARGET"; then
12624 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12625 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12626 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12629 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12630 for ncn_progname in ranlib; do
12631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12632 set dummy ${ncn_progname}; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test -n "$RANLIB_FOR_TARGET"; then
12639 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12640 else
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 break 2
12652 done
12653 done
12654 IFS=$as_save_IFS
12658 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12659 if test -n "$RANLIB_FOR_TARGET"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12661 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12668 done
12671 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12672 for ncn_progname in ranlib; do
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12674 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12675 if test -x $with_build_time_tools/${ncn_progname}; then
12676 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; }
12679 break
12680 else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12684 done
12687 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12688 for ncn_progname in ranlib; do
12689 if test -n "$ncn_target_tool_prefix"; then
12690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$RANLIB_FOR_TARGET"; then
12698 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12717 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12718 if test -n "$RANLIB_FOR_TARGET"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12720 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12728 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12730 set dummy ${ncn_progname}; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 if test -n "$RANLIB_FOR_TARGET"; then
12737 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12738 else
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12750 done
12751 done
12752 IFS=$as_save_IFS
12756 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12757 if test -n "$RANLIB_FOR_TARGET"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12759 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12767 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12768 done
12771 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12772 set dummy ranlib
12773 if test $build = $target ; then
12774 RANLIB_FOR_TARGET="$2"
12775 else
12776 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12778 else
12779 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12782 else
12783 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12789 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12790 if test -n "$with_build_time_tools"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12792 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12793 if test -x $with_build_time_tools/readelf; then
12794 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12795 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12797 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12802 elif test $build != $host && test $have_gcc_for_target = yes; then
12803 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12804 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12805 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12808 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12809 # Extract the first word of "readelf", so it can be a program name with args.
12810 set dummy readelf; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 case $READELF_FOR_TARGET in
12817 [\\/]* | ?:[\\/]*)
12818 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $gcc_cv_tool_dirs
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12832 done
12833 done
12834 IFS=$as_save_IFS
12837 esac
12839 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12840 if test -n "$READELF_FOR_TARGET"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12842 $as_echo "$READELF_FOR_TARGET" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12850 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12853 if test -n "$READELF_FOR_TARGET"; then
12854 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12855 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12856 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12859 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12860 for ncn_progname in readelf; do
12861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12862 set dummy ${ncn_progname}; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 if test -n "$READELF_FOR_TARGET"; then
12869 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12882 done
12883 done
12884 IFS=$as_save_IFS
12888 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12889 if test -n "$READELF_FOR_TARGET"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12891 $as_echo "$READELF_FOR_TARGET" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12898 done
12901 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12902 for ncn_progname in readelf; do
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12904 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12905 if test -x $with_build_time_tools/${ncn_progname}; then
12906 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909 break
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12914 done
12917 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12918 for ncn_progname in readelf; do
12919 if test -n "$ncn_target_tool_prefix"; then
12920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 if test -n "$READELF_FOR_TARGET"; then
12928 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12941 done
12942 done
12943 IFS=$as_save_IFS
12947 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12948 if test -n "$READELF_FOR_TARGET"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12950 $as_echo "$READELF_FOR_TARGET" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12958 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12960 set dummy ${ncn_progname}; ac_word=$2
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962 $as_echo_n "checking for $ac_word... " >&6; }
12963 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 if test -n "$READELF_FOR_TARGET"; then
12967 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12968 else
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12980 done
12981 done
12982 IFS=$as_save_IFS
12986 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12987 if test -n "$READELF_FOR_TARGET"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12989 $as_echo "$READELF_FOR_TARGET" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12997 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12998 done
13001 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13002 set dummy readelf
13003 if test $build = $target ; then
13004 READELF_FOR_TARGET="$2"
13005 else
13006 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13008 else
13009 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13012 else
13013 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13019 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13020 if test -n "$with_build_time_tools"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13022 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13023 if test -x $with_build_time_tools/strip; then
13024 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13025 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13027 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13032 elif test $build != $host && test $have_gcc_for_target = yes; then
13033 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13034 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13035 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13038 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13039 # Extract the first word of "strip", so it can be a program name with args.
13040 set dummy strip; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 case $STRIP_FOR_TARGET in
13047 [\\/]* | ?:[\\/]*)
13048 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $gcc_cv_tool_dirs
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13062 done
13063 done
13064 IFS=$as_save_IFS
13067 esac
13069 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13070 if test -n "$STRIP_FOR_TARGET"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13072 $as_echo "$STRIP_FOR_TARGET" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13080 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13083 if test -n "$STRIP_FOR_TARGET"; then
13084 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13085 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13086 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13089 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13090 for ncn_progname in strip; do
13091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13092 set dummy ${ncn_progname}; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$STRIP_FOR_TARGET"; then
13099 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13112 done
13113 done
13114 IFS=$as_save_IFS
13118 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13119 if test -n "$STRIP_FOR_TARGET"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13121 $as_echo "$STRIP_FOR_TARGET" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13128 done
13131 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13132 for ncn_progname in strip; do
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13135 if test -x $with_build_time_tools/${ncn_progname}; then
13136 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139 break
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13144 done
13147 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13148 for ncn_progname in strip; do
13149 if test -n "$ncn_target_tool_prefix"; then
13150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$STRIP_FOR_TARGET"; then
13158 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13178 if test -n "$STRIP_FOR_TARGET"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13180 $as_echo "$STRIP_FOR_TARGET" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13188 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13190 set dummy ${ncn_progname}; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$STRIP_FOR_TARGET"; then
13197 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13210 done
13211 done
13212 IFS=$as_save_IFS
13216 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13217 if test -n "$STRIP_FOR_TARGET"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13219 $as_echo "$STRIP_FOR_TARGET" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13227 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13228 done
13231 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13232 set dummy strip
13233 if test $build = $target ; then
13234 STRIP_FOR_TARGET="$2"
13235 else
13236 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13238 else
13239 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13242 else
13243 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13249 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13250 if test -n "$with_build_time_tools"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13252 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13253 if test -x $with_build_time_tools/windres; then
13254 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13255 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13257 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13262 elif test $build != $host && test $have_gcc_for_target = yes; then
13263 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13264 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13265 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13268 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13269 # Extract the first word of "windres", so it can be a program name with args.
13270 set dummy windres; ac_word=$2
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272 $as_echo_n "checking for $ac_word... " >&6; }
13273 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 case $WINDRES_FOR_TARGET in
13277 [\\/]* | ?:[\\/]*)
13278 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $gcc_cv_tool_dirs
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13292 done
13293 done
13294 IFS=$as_save_IFS
13297 esac
13299 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13300 if test -n "$WINDRES_FOR_TARGET"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13302 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13310 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13313 if test -n "$WINDRES_FOR_TARGET"; then
13314 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13315 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13316 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13319 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13320 for ncn_progname in windres; do
13321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13322 set dummy ${ncn_progname}; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$WINDRES_FOR_TARGET"; then
13329 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13342 done
13343 done
13344 IFS=$as_save_IFS
13348 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13349 if test -n "$WINDRES_FOR_TARGET"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13351 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13358 done
13361 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13362 for ncn_progname in windres; do
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13364 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13365 if test -x $with_build_time_tools/${ncn_progname}; then
13366 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368 $as_echo "yes" >&6; }
13369 break
13370 else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13374 done
13377 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13378 for ncn_progname in windres; do
13379 if test -n "$ncn_target_tool_prefix"; then
13380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 if test -n "$WINDRES_FOR_TARGET"; then
13388 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13401 done
13402 done
13403 IFS=$as_save_IFS
13407 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13408 if test -n "$WINDRES_FOR_TARGET"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13410 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13411 else
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13418 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13420 set dummy ${ncn_progname}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 if test -n "$WINDRES_FOR_TARGET"; then
13427 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13428 else
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13436 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13438 break 2
13440 done
13441 done
13442 IFS=$as_save_IFS
13446 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13447 if test -n "$WINDRES_FOR_TARGET"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13449 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13457 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13458 done
13461 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13462 set dummy windres
13463 if test $build = $target ; then
13464 WINDRES_FOR_TARGET="$2"
13465 else
13466 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13468 else
13469 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13472 else
13473 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13479 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13480 if test -n "$with_build_time_tools"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13482 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13483 if test -x $with_build_time_tools/windmc; then
13484 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13485 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13487 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13488 else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13492 elif test $build != $host && test $have_gcc_for_target = yes; then
13493 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13494 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13495 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13498 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13499 # Extract the first word of "windmc", so it can be a program name with args.
13500 set dummy windmc; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 case $WINDMC_FOR_TARGET in
13507 [\\/]* | ?:[\\/]*)
13508 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $gcc_cv_tool_dirs
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13522 done
13523 done
13524 IFS=$as_save_IFS
13527 esac
13529 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13530 if test -n "$WINDMC_FOR_TARGET"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13532 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13540 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13543 if test -n "$WINDMC_FOR_TARGET"; then
13544 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13545 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13546 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13550 for ncn_progname in windmc; do
13551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13552 set dummy ${ncn_progname}; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$WINDMC_FOR_TARGET"; then
13559 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13572 done
13573 done
13574 IFS=$as_save_IFS
13578 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13579 if test -n "$WINDMC_FOR_TARGET"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13581 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13588 done
13591 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13592 for ncn_progname in windmc; do
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13594 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13595 if test -x $with_build_time_tools/${ncn_progname}; then
13596 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13598 $as_echo "yes" >&6; }
13599 break
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13604 done
13607 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13608 for ncn_progname in windmc; do
13609 if test -n "$ncn_target_tool_prefix"; then
13610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 if test -n "$WINDMC_FOR_TARGET"; then
13618 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13619 else
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13623 IFS=$as_save_IFS
13624 test -z "$as_dir" && as_dir=.
13625 for ac_exec_ext in '' $ac_executable_extensions; do
13626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13627 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629 break 2
13631 done
13632 done
13633 IFS=$as_save_IFS
13637 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13638 if test -n "$WINDMC_FOR_TARGET"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13640 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13648 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13650 set dummy ${ncn_progname}; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 if test -n "$WINDMC_FOR_TARGET"; then
13657 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13670 done
13671 done
13672 IFS=$as_save_IFS
13676 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13677 if test -n "$WINDMC_FOR_TARGET"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13679 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13687 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13688 done
13691 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13692 set dummy windmc
13693 if test $build = $target ; then
13694 WINDMC_FOR_TARGET="$2"
13695 else
13696 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13698 else
13699 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13702 else
13703 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13707 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13710 $as_echo_n "checking where to find the target ar... " >&6; }
13711 if test "x${build}" != "x${host}" ; then
13712 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13713 # We already found the complete path
13714 ac_dir=`dirname $AR_FOR_TARGET`
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13716 $as_echo "pre-installed in $ac_dir" >&6; }
13717 else
13718 # Canadian cross, just use what we found
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720 $as_echo "pre-installed" >&6; }
13722 else
13723 ok=yes
13724 case " ${configdirs} " in
13725 *" binutils "*) ;;
13726 *) ok=no ;;
13727 esac
13729 if test $ok = yes; then
13730 # An in-tree tool is available and we can use it
13731 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13733 $as_echo "just compiled" >&6; }
13734 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $AR_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739 elif test "x$target" = "x$host"; then
13740 # We can use an host tool
13741 AR_FOR_TARGET='$(AR)'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13743 $as_echo "host tool" >&6; }
13744 else
13745 # We need a cross tool
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747 $as_echo "pre-installed" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13752 $as_echo_n "checking where to find the target as... " >&6; }
13753 if test "x${build}" != "x${host}" ; then
13754 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13755 # We already found the complete path
13756 ac_dir=`dirname $AS_FOR_TARGET`
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13758 $as_echo "pre-installed in $ac_dir" >&6; }
13759 else
13760 # Canadian cross, just use what we found
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762 $as_echo "pre-installed" >&6; }
13764 else
13765 ok=yes
13766 case " ${configdirs} " in
13767 *" gas "*) ;;
13768 *) ok=no ;;
13769 esac
13771 if test $ok = yes; then
13772 # An in-tree tool is available and we can use it
13773 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13775 $as_echo "just compiled" >&6; }
13776 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
13778 ac_dir=`dirname $AS_FOR_TARGET`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780 $as_echo "pre-installed in $ac_dir" >&6; }
13781 elif test "x$target" = "x$host"; then
13782 # We can use an host tool
13783 AS_FOR_TARGET='$(AS)'
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13785 $as_echo "host tool" >&6; }
13786 else
13787 # We need a cross tool
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789 $as_echo "pre-installed" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13794 $as_echo_n "checking where to find the target cc... " >&6; }
13795 if test "x${build}" != "x${host}" ; then
13796 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
13798 ac_dir=`dirname $CC_FOR_TARGET`
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800 $as_echo "pre-installed in $ac_dir" >&6; }
13801 else
13802 # Canadian cross, just use what we found
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804 $as_echo "pre-installed" >&6; }
13806 else
13807 ok=yes
13808 case " ${configdirs} " in
13809 *" gcc "*) ;;
13810 *) ok=no ;;
13811 esac
13813 if test $ok = yes; then
13814 # An in-tree tool is available and we can use it
13815 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13817 $as_echo "just compiled" >&6; }
13818 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
13820 ac_dir=`dirname $CC_FOR_TARGET`
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822 $as_echo "pre-installed in $ac_dir" >&6; }
13823 elif test "x$target" = "x$host"; then
13824 # We can use an host tool
13825 CC_FOR_TARGET='$(CC)'
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13827 $as_echo "host tool" >&6; }
13828 else
13829 # We need a cross tool
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831 $as_echo "pre-installed" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13836 $as_echo_n "checking where to find the target c++... " >&6; }
13837 if test "x${build}" != "x${host}" ; then
13838 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13839 # We already found the complete path
13840 ac_dir=`dirname $CXX_FOR_TARGET`
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13842 $as_echo "pre-installed in $ac_dir" >&6; }
13843 else
13844 # Canadian cross, just use what we found
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846 $as_echo "pre-installed" >&6; }
13848 else
13849 ok=yes
13850 case " ${configdirs} " in
13851 *" gcc "*) ;;
13852 *) ok=no ;;
13853 esac
13854 case ,${enable_languages}, in
13855 *,c++,*) ;;
13856 *) ok=no ;;
13857 esac
13858 if test $ok = yes; then
13859 # An in-tree tool is available and we can use it
13860 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13862 $as_echo "just compiled" >&6; }
13863 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
13865 ac_dir=`dirname $CXX_FOR_TARGET`
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867 $as_echo "pre-installed in $ac_dir" >&6; }
13868 elif test "x$target" = "x$host"; then
13869 # We can use an host tool
13870 CXX_FOR_TARGET='$(CXX)'
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13872 $as_echo "host tool" >&6; }
13873 else
13874 # We need a cross tool
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13876 $as_echo "pre-installed" >&6; }
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13881 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13882 if test "x${build}" != "x${host}" ; then
13883 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
13885 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887 $as_echo "pre-installed in $ac_dir" >&6; }
13888 else
13889 # Canadian cross, just use what we found
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13893 else
13894 ok=yes
13895 case " ${configdirs} " in
13896 *" gcc "*) ;;
13897 *) ok=no ;;
13898 esac
13899 case ,${enable_languages}, in
13900 *,c++,*) ;;
13901 *) ok=no ;;
13902 esac
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907 $as_echo "just compiled" >&6; }
13908 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 RAW_CXX_FOR_TARGET='$(CXX)'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917 $as_echo "host tool" >&6; }
13918 else
13919 # We need a cross tool
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13926 $as_echo_n "checking where to find the target dlltool... " >&6; }
13927 if test "x${build}" != "x${host}" ; then
13928 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
13930 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932 $as_echo "pre-installed in $ac_dir" >&6; }
13933 else
13934 # Canadian cross, just use what we found
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936 $as_echo "pre-installed" >&6; }
13938 else
13939 ok=yes
13940 case " ${configdirs} " in
13941 *" binutils "*) ;;
13942 *) ok=no ;;
13943 esac
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949 $as_echo "just compiled" >&6; }
13950 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959 $as_echo "host tool" >&6; }
13960 else
13961 # We need a cross tool
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13968 $as_echo_n "checking where to find the target gcc... " >&6; }
13969 if test "x${build}" != "x${host}" ; then
13970 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $GCC_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974 $as_echo "pre-installed in $ac_dir" >&6; }
13975 else
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13980 else
13981 ok=yes
13982 case " ${configdirs} " in
13983 *" gcc "*) ;;
13984 *) ok=no ;;
13985 esac
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991 $as_echo "just compiled" >&6; }
13992 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $GCC_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 GCC_FOR_TARGET='$()'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001 $as_echo "host tool" >&6; }
14002 else
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14010 $as_echo_n "checking where to find the target gcj... " >&6; }
14011 if test "x${build}" != "x${host}" ; then
14012 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
14014 ac_dir=`dirname $GCJ_FOR_TARGET`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016 $as_echo "pre-installed in $ac_dir" >&6; }
14017 else
14018 # Canadian cross, just use what we found
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14022 else
14023 ok=yes
14024 case " ${configdirs} " in
14025 *" gcc "*) ;;
14026 *) ok=no ;;
14027 esac
14028 case ,${enable_languages}, in
14029 *,java,*) ;;
14030 *) ok=no ;;
14031 esac
14032 if test $ok = yes; then
14033 # An in-tree tool is available and we can use it
14034 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14036 $as_echo "just compiled" >&6; }
14037 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14038 # We already found the complete path
14039 ac_dir=`dirname $GCJ_FOR_TARGET`
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14041 $as_echo "pre-installed in $ac_dir" >&6; }
14042 elif test "x$target" = "x$host"; then
14043 # We can use an host tool
14044 GCJ_FOR_TARGET='$(GCJ)'
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14046 $as_echo "host tool" >&6; }
14047 else
14048 # We need a cross tool
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14050 $as_echo "pre-installed" >&6; }
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14055 $as_echo_n "checking where to find the target gfortran... " >&6; }
14056 if test "x${build}" != "x${host}" ; then
14057 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14058 # We already found the complete path
14059 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14061 $as_echo "pre-installed in $ac_dir" >&6; }
14062 else
14063 # Canadian cross, just use what we found
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14067 else
14068 ok=yes
14069 case " ${configdirs} " in
14070 *" gcc "*) ;;
14071 *) ok=no ;;
14072 esac
14073 case ,${enable_languages}, in
14074 *,fortran,*) ;;
14075 *) ok=no ;;
14076 esac
14077 if test $ok = yes; then
14078 # An in-tree tool is available and we can use it
14079 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14081 $as_echo "just compiled" >&6; }
14082 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14083 # We already found the complete path
14084 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14086 $as_echo "pre-installed in $ac_dir" >&6; }
14087 elif test "x$target" = "x$host"; then
14088 # We can use an host tool
14089 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14091 $as_echo "host tool" >&6; }
14092 else
14093 # We need a cross tool
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095 $as_echo "pre-installed" >&6; }
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14100 $as_echo_n "checking where to find the target gccgo... " >&6; }
14101 if test "x${build}" != "x${host}" ; then
14102 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14103 # We already found the complete path
14104 ac_dir=`dirname $GOC_FOR_TARGET`
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14106 $as_echo "pre-installed in $ac_dir" >&6; }
14107 else
14108 # Canadian cross, just use what we found
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110 $as_echo "pre-installed" >&6; }
14112 else
14113 ok=yes
14114 case " ${configdirs} " in
14115 *" gcc "*) ;;
14116 *) ok=no ;;
14117 esac
14118 case ,${enable_languages}, in
14119 *,go,*) ;;
14120 *) ok=no ;;
14121 esac
14122 if test $ok = yes; then
14123 # An in-tree tool is available and we can use it
14124 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14126 $as_echo "just compiled" >&6; }
14127 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14128 # We already found the complete path
14129 ac_dir=`dirname $GOC_FOR_TARGET`
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14131 $as_echo "pre-installed in $ac_dir" >&6; }
14132 elif test "x$target" = "x$host"; then
14133 # We can use an host tool
14134 GOC_FOR_TARGET='$(GOC)'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14136 $as_echo "host tool" >&6; }
14137 else
14138 # We need a cross tool
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14140 $as_echo "pre-installed" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14145 $as_echo_n "checking where to find the target ld... " >&6; }
14146 if test "x${build}" != "x${host}" ; then
14147 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14148 # We already found the complete path
14149 ac_dir=`dirname $LD_FOR_TARGET`
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14151 $as_echo "pre-installed in $ac_dir" >&6; }
14152 else
14153 # Canadian cross, just use what we found
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14155 $as_echo "pre-installed" >&6; }
14157 else
14158 ok=yes
14159 case " ${configdirs} " in
14160 *" ld "*) ;;
14161 *) ok=no ;;
14162 esac
14164 if test $ok = yes; then
14165 # An in-tree tool is available and we can use it
14166 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14168 $as_echo "just compiled" >&6; }
14169 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
14171 ac_dir=`dirname $LD_FOR_TARGET`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173 $as_echo "pre-installed in $ac_dir" >&6; }
14174 elif test "x$target" = "x$host"; then
14175 # We can use an host tool
14176 LD_FOR_TARGET='$(LD)'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14178 $as_echo "host tool" >&6; }
14179 else
14180 # We need a cross tool
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14187 $as_echo_n "checking where to find the target lipo... " >&6; }
14188 if test "x${build}" != "x${host}" ; then
14189 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14190 # We already found the complete path
14191 ac_dir=`dirname $LIPO_FOR_TARGET`
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14193 $as_echo "pre-installed in $ac_dir" >&6; }
14194 else
14195 # Canadian cross, just use what we found
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14199 else
14200 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
14202 ac_dir=`dirname $LIPO_FOR_TARGET`
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205 elif test "x$target" = "x$host"; then
14206 # We can use an host tool
14207 LIPO_FOR_TARGET='$(LIPO)'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14209 $as_echo "host tool" >&6; }
14210 else
14211 # We need a cross tool
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14213 $as_echo "pre-installed" >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14218 $as_echo_n "checking where to find the target nm... " >&6; }
14219 if test "x${build}" != "x${host}" ; then
14220 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14221 # We already found the complete path
14222 ac_dir=`dirname $NM_FOR_TARGET`
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14224 $as_echo "pre-installed in $ac_dir" >&6; }
14225 else
14226 # Canadian cross, just use what we found
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14228 $as_echo "pre-installed" >&6; }
14230 else
14231 ok=yes
14232 case " ${configdirs} " in
14233 *" binutils "*) ;;
14234 *) ok=no ;;
14235 esac
14237 if test $ok = yes; then
14238 # An in-tree tool is available and we can use it
14239 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14241 $as_echo "just compiled" >&6; }
14242 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14243 # We already found the complete path
14244 ac_dir=`dirname $NM_FOR_TARGET`
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246 $as_echo "pre-installed in $ac_dir" >&6; }
14247 elif test "x$target" = "x$host"; then
14248 # We can use an host tool
14249 NM_FOR_TARGET='$(NM)'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14251 $as_echo "host tool" >&6; }
14252 else
14253 # We need a cross tool
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14255 $as_echo "pre-installed" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14260 $as_echo_n "checking where to find the target objdump... " >&6; }
14261 if test "x${build}" != "x${host}" ; then
14262 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14263 # We already found the complete path
14264 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14266 $as_echo "pre-installed in $ac_dir" >&6; }
14267 else
14268 # Canadian cross, just use what we found
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14270 $as_echo "pre-installed" >&6; }
14272 else
14273 ok=yes
14274 case " ${configdirs} " in
14275 *" binutils "*) ;;
14276 *) ok=no ;;
14277 esac
14279 if test $ok = yes; then
14280 # An in-tree tool is available and we can use it
14281 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14283 $as_echo "just compiled" >&6; }
14284 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14285 # We already found the complete path
14286 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14288 $as_echo "pre-installed in $ac_dir" >&6; }
14289 elif test "x$target" = "x$host"; then
14290 # We can use an host tool
14291 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14293 $as_echo "host tool" >&6; }
14294 else
14295 # We need a cross tool
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14297 $as_echo "pre-installed" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14302 $as_echo_n "checking where to find the target ranlib... " >&6; }
14303 if test "x${build}" != "x${host}" ; then
14304 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14305 # We already found the complete path
14306 ac_dir=`dirname $RANLIB_FOR_TARGET`
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14308 $as_echo "pre-installed in $ac_dir" >&6; }
14309 else
14310 # Canadian cross, just use what we found
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14312 $as_echo "pre-installed" >&6; }
14314 else
14315 ok=yes
14316 case " ${configdirs} " in
14317 *" binutils "*) ;;
14318 *) ok=no ;;
14319 esac
14321 if test $ok = yes; then
14322 # An in-tree tool is available and we can use it
14323 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14325 $as_echo "just compiled" >&6; }
14326 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $RANLIB_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331 elif test "x$target" = "x$host"; then
14332 # We can use an host tool
14333 RANLIB_FOR_TARGET='$(RANLIB)'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14335 $as_echo "host tool" >&6; }
14336 else
14337 # We need a cross tool
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14339 $as_echo "pre-installed" >&6; }
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14344 $as_echo_n "checking where to find the target readelf... " >&6; }
14345 if test "x${build}" != "x${host}" ; then
14346 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14347 # We already found the complete path
14348 ac_dir=`dirname $READELF_FOR_TARGET`
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14350 $as_echo "pre-installed in $ac_dir" >&6; }
14351 else
14352 # Canadian cross, just use what we found
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14354 $as_echo "pre-installed" >&6; }
14356 else
14357 ok=yes
14358 case " ${configdirs} " in
14359 *" binutils "*) ;;
14360 *) ok=no ;;
14361 esac
14363 if test $ok = yes; then
14364 # An in-tree tool is available and we can use it
14365 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14367 $as_echo "just compiled" >&6; }
14368 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
14370 ac_dir=`dirname $READELF_FOR_TARGET`
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372 $as_echo "pre-installed in $ac_dir" >&6; }
14373 elif test "x$target" = "x$host"; then
14374 # We can use an host tool
14375 READELF_FOR_TARGET='$(READELF)'
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14377 $as_echo "host tool" >&6; }
14378 else
14379 # We need a cross tool
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14381 $as_echo "pre-installed" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14386 $as_echo_n "checking where to find the target strip... " >&6; }
14387 if test "x${build}" != "x${host}" ; then
14388 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14389 # We already found the complete path
14390 ac_dir=`dirname $STRIP_FOR_TARGET`
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14392 $as_echo "pre-installed in $ac_dir" >&6; }
14393 else
14394 # Canadian cross, just use what we found
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14396 $as_echo "pre-installed" >&6; }
14398 else
14399 ok=yes
14400 case " ${configdirs} " in
14401 *" binutils "*) ;;
14402 *) ok=no ;;
14403 esac
14405 if test $ok = yes; then
14406 # An in-tree tool is available and we can use it
14407 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14409 $as_echo "just compiled" >&6; }
14410 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
14412 ac_dir=`dirname $STRIP_FOR_TARGET`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414 $as_echo "pre-installed in $ac_dir" >&6; }
14415 elif test "x$target" = "x$host"; then
14416 # We can use an host tool
14417 STRIP_FOR_TARGET='$(STRIP)'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14419 $as_echo "host tool" >&6; }
14420 else
14421 # We need a cross tool
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14423 $as_echo "pre-installed" >&6; }
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14428 $as_echo_n "checking where to find the target windres... " >&6; }
14429 if test "x${build}" != "x${host}" ; then
14430 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14431 # We already found the complete path
14432 ac_dir=`dirname $WINDRES_FOR_TARGET`
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14434 $as_echo "pre-installed in $ac_dir" >&6; }
14435 else
14436 # Canadian cross, just use what we found
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438 $as_echo "pre-installed" >&6; }
14440 else
14441 ok=yes
14442 case " ${configdirs} " in
14443 *" binutils "*) ;;
14444 *) ok=no ;;
14445 esac
14447 if test $ok = yes; then
14448 # An in-tree tool is available and we can use it
14449 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14451 $as_echo "just compiled" >&6; }
14452 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $WINDRES_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456 $as_echo "pre-installed in $ac_dir" >&6; }
14457 elif test "x$target" = "x$host"; then
14458 # We can use an host tool
14459 WINDRES_FOR_TARGET='$(WINDRES)'
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14461 $as_echo "host tool" >&6; }
14462 else
14463 # We need a cross tool
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14465 $as_echo "pre-installed" >&6; }
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14470 $as_echo_n "checking where to find the target windmc... " >&6; }
14471 if test "x${build}" != "x${host}" ; then
14472 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14473 # We already found the complete path
14474 ac_dir=`dirname $WINDMC_FOR_TARGET`
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14476 $as_echo "pre-installed in $ac_dir" >&6; }
14477 else
14478 # Canadian cross, just use what we found
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480 $as_echo "pre-installed" >&6; }
14482 else
14483 ok=yes
14484 case " ${configdirs} " in
14485 *" binutils "*) ;;
14486 *) ok=no ;;
14487 esac
14489 if test $ok = yes; then
14490 # An in-tree tool is available and we can use it
14491 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14493 $as_echo "just compiled" >&6; }
14494 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
14496 ac_dir=`dirname $WINDMC_FOR_TARGET`
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498 $as_echo "pre-installed in $ac_dir" >&6; }
14499 elif test "x$target" = "x$host"; then
14500 # We can use an host tool
14501 WINDMC_FOR_TARGET='$(WINDMC)'
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14503 $as_echo "host tool" >&6; }
14504 else
14505 # We need a cross tool
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14507 $as_echo "pre-installed" >&6; }
14515 # Certain tools may need extra flags.
14516 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14517 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14518 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14520 # When building target libraries, except in a Canadian cross, we use
14521 # the same toolchain as the compiler we just built.
14522 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14523 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14524 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14525 if test $host = $build; then
14526 case " $configdirs " in
14527 *" gcc "*)
14528 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14529 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14530 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14532 esac
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14540 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14541 # Check whether --enable-maintainer-mode was given.
14542 if test "${enable_maintainer_mode+set}" = set; then :
14543 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14544 else
14545 USE_MAINTAINER_MODE=no
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14549 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14552 if test "$USE_MAINTAINER_MODE" = yes; then
14553 MAINTAINER_MODE_TRUE=
14554 MAINTAINER_MODE_FALSE='#'
14555 else
14556 MAINTAINER_MODE_TRUE='#'
14557 MAINTAINER_MODE_FALSE=
14559 MAINT=$MAINTAINER_MODE_TRUE
14561 # ---------------------
14562 # GCC bootstrap support
14563 # ---------------------
14565 # Stage specific cflags for build.
14566 stage1_cflags="-g"
14567 case $build in
14568 vax-*-*)
14569 case ${GCC} in
14570 yes) stage1_cflags="-g -Wa,-J" ;;
14571 *) stage1_cflags="-g -J" ;;
14572 esac ;;
14573 esac
14577 # Enable --enable-checking in stage1 of the compiler.
14578 # Check whether --enable-stage1-checking was given.
14579 if test "${enable_stage1_checking+set}" = set; then :
14580 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14581 else
14582 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14583 stage1_checking=--enable-checking=yes,types
14584 else
14585 stage1_checking=--enable-checking=$enable_checking,types
14591 # Enable -Werror in bootstrap stage2 and later.
14592 # Check whether --enable-werror was given.
14593 if test "${enable_werror+set}" = set; then :
14594 enableval=$enable_werror;
14595 else
14596 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14597 enable_werror=yes
14598 else
14599 enable_werror=no
14603 case ${enable_werror} in
14604 yes) stage2_werror_flag="--enable-werror-always" ;;
14605 *) stage2_werror_flag="" ;;
14606 esac
14609 # Enable --enable-host-shared.
14610 # Check whether --enable-host-shared was given.
14611 if test "${enable_host_shared+set}" = set; then :
14612 enableval=$enable_host_shared; host_shared=$enableval
14613 else
14614 host_shared=no
14619 # Specify what files to not compare during bootstrap.
14621 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14622 case "$target" in
14623 hppa*64*-*-hpux*) ;;
14624 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14625 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14626 esac
14629 ac_config_files="$ac_config_files Makefile"
14631 cat >confcache <<\_ACEOF
14632 # This file is a shell script that caches the results of configure
14633 # tests run on this system so they can be shared between configure
14634 # scripts and configure runs, see configure's option --config-cache.
14635 # It is not useful on other systems. If it contains results you don't
14636 # want to keep, you may remove or edit it.
14638 # config.status only pays attention to the cache file if you give it
14639 # the --recheck option to rerun configure.
14641 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14642 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14643 # following values.
14645 _ACEOF
14647 # The following way of writing the cache mishandles newlines in values,
14648 # but we know of no workaround that is simple, portable, and efficient.
14649 # So, we kill variables containing newlines.
14650 # Ultrix sh set writes to stderr and can't be redirected directly,
14651 # and sets the high bit in the cache file unless we assign to the vars.
14653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14654 eval ac_val=\$$ac_var
14655 case $ac_val in #(
14656 *${as_nl}*)
14657 case $ac_var in #(
14658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14660 esac
14661 case $ac_var in #(
14662 _ | IFS | as_nl) ;; #(
14663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14664 *) { eval $ac_var=; unset $ac_var;} ;;
14665 esac ;;
14666 esac
14667 done
14669 (set) 2>&1 |
14670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14671 *${as_nl}ac_space=\ *)
14672 # `set' does not quote correctly, so add quotes: double-quote
14673 # substitution turns \\\\ into \\, and sed turns \\ into \.
14674 sed -n \
14675 "s/'/'\\\\''/g;
14676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14677 ;; #(
14679 # `set' quotes correctly as required by POSIX, so do not add quotes.
14680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14682 esac |
14683 sort
14685 sed '
14686 /^ac_cv_env_/b end
14687 t clear
14688 :clear
14689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14690 t end
14691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14692 :end' >>confcache
14693 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14694 if test -w "$cache_file"; then
14695 test "x$cache_file" != "x/dev/null" &&
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14697 $as_echo "$as_me: updating cache $cache_file" >&6;}
14698 cat confcache >$cache_file
14699 else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14701 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14704 rm -f confcache
14706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14707 # Let make expand exec_prefix.
14708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14710 # Transform confdefs.h into DEFS.
14711 # Protect against shell expansion while executing Makefile rules.
14712 # Protect against Makefile macro expansion.
14714 # If the first sed substitution is executed (which looks for macros that
14715 # take arguments), then branch to the quote section. Otherwise,
14716 # look for a macro that doesn't take arguments.
14717 ac_script='
14718 :mline
14719 /\\$/{
14721 s,\\\n,,
14722 b mline
14724 t clear
14725 :clear
14726 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14727 t quote
14728 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14729 t quote
14730 b any
14731 :quote
14732 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14733 s/\[/\\&/g
14734 s/\]/\\&/g
14735 s/\$/$$/g
14737 :any
14740 s/^\n//
14741 s/\n/ /g
14745 DEFS=`sed -n "$ac_script" confdefs.h`
14748 ac_libobjs=
14749 ac_ltlibobjs=
14750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14751 # 1. Remove the extension, and $U if already installed.
14752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14755 # will be set to the directory where LIBOBJS objects are built.
14756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14758 done
14759 LIBOBJS=$ac_libobjs
14761 LTLIBOBJS=$ac_ltlibobjs
14765 : ${CONFIG_STATUS=./config.status}
14766 ac_write_fail=0
14767 ac_clean_files_save=$ac_clean_files
14768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14771 as_write_fail=0
14772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14773 #! $SHELL
14774 # Generated by $as_me.
14775 # Run this file to recreate the current configuration.
14776 # Compiler output produced by configure, useful for debugging
14777 # configure, is in config.log if it exists.
14779 debug=false
14780 ac_cs_recheck=false
14781 ac_cs_silent=false
14783 SHELL=\${CONFIG_SHELL-$SHELL}
14784 export SHELL
14785 _ASEOF
14786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14787 ## -------------------- ##
14788 ## M4sh Initialization. ##
14789 ## -------------------- ##
14791 # Be more Bourne compatible
14792 DUALCASE=1; export DUALCASE # for MKS sh
14793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14794 emulate sh
14795 NULLCMD=:
14796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14797 # is contrary to our usage. Disable this feature.
14798 alias -g '${1+"$@"}'='"$@"'
14799 setopt NO_GLOB_SUBST
14800 else
14801 case `(set -o) 2>/dev/null` in #(
14802 *posix*) :
14803 set -o posix ;; #(
14804 *) :
14806 esac
14810 as_nl='
14812 export as_nl
14813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14817 # Prefer a ksh shell builtin over an external printf program on Solaris,
14818 # but without wasting forks for bash or zsh.
14819 if test -z "$BASH_VERSION$ZSH_VERSION" \
14820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14821 as_echo='print -r --'
14822 as_echo_n='print -rn --'
14823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14824 as_echo='printf %s\n'
14825 as_echo_n='printf %s'
14826 else
14827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14829 as_echo_n='/usr/ucb/echo -n'
14830 else
14831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14832 as_echo_n_body='eval
14833 arg=$1;
14834 case $arg in #(
14835 *"$as_nl"*)
14836 expr "X$arg" : "X\\(.*\\)$as_nl";
14837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14838 esac;
14839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14841 export as_echo_n_body
14842 as_echo_n='sh -c $as_echo_n_body as_echo'
14844 export as_echo_body
14845 as_echo='sh -c $as_echo_body as_echo'
14848 # The user is always right.
14849 if test "${PATH_SEPARATOR+set}" != set; then
14850 PATH_SEPARATOR=:
14851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14853 PATH_SEPARATOR=';'
14858 # IFS
14859 # We need space, tab and new line, in precisely that order. Quoting is
14860 # there to prevent editors from complaining about space-tab.
14861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14862 # splitting by setting IFS to empty value.)
14863 IFS=" "" $as_nl"
14865 # Find who we are. Look in the path if we contain no directory separator.
14866 case $0 in #((
14867 *[\\/]* ) as_myself=$0 ;;
14868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869 for as_dir in $PATH
14871 IFS=$as_save_IFS
14872 test -z "$as_dir" && as_dir=.
14873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14874 done
14875 IFS=$as_save_IFS
14878 esac
14879 # We did not find ourselves, most probably we were run as `sh COMMAND'
14880 # in which case we are not to be found in the path.
14881 if test "x$as_myself" = x; then
14882 as_myself=$0
14884 if test ! -f "$as_myself"; then
14885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14886 exit 1
14889 # Unset variables that we do not need and which cause bugs (e.g. in
14890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14891 # suppresses any "Segmentation fault" message there. '((' could
14892 # trigger a bug in pdksh 5.2.14.
14893 for as_var in BASH_ENV ENV MAIL MAILPATH
14894 do eval test x\${$as_var+set} = xset \
14895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14896 done
14897 PS1='$ '
14898 PS2='> '
14899 PS4='+ '
14901 # NLS nuisances.
14902 LC_ALL=C
14903 export LC_ALL
14904 LANGUAGE=C
14905 export LANGUAGE
14907 # CDPATH.
14908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14911 # as_fn_error ERROR [LINENO LOG_FD]
14912 # ---------------------------------
14913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14915 # script with status $?, using 1 if that was 0.
14916 as_fn_error ()
14918 as_status=$?; test $as_status -eq 0 && as_status=1
14919 if test "$3"; then
14920 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14923 $as_echo "$as_me: error: $1" >&2
14924 as_fn_exit $as_status
14925 } # as_fn_error
14928 # as_fn_set_status STATUS
14929 # -----------------------
14930 # Set $? to STATUS, without forking.
14931 as_fn_set_status ()
14933 return $1
14934 } # as_fn_set_status
14936 # as_fn_exit STATUS
14937 # -----------------
14938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14939 as_fn_exit ()
14941 set +e
14942 as_fn_set_status $1
14943 exit $1
14944 } # as_fn_exit
14946 # as_fn_unset VAR
14947 # ---------------
14948 # Portably unset VAR.
14949 as_fn_unset ()
14951 { eval $1=; unset $1;}
14953 as_unset=as_fn_unset
14954 # as_fn_append VAR VALUE
14955 # ----------------------
14956 # Append the text in VALUE to the end of the definition contained in VAR. Take
14957 # advantage of any shell optimizations that allow amortized linear growth over
14958 # repeated appends, instead of the typical quadratic growth present in naive
14959 # implementations.
14960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14961 eval 'as_fn_append ()
14963 eval $1+=\$2
14965 else
14966 as_fn_append ()
14968 eval $1=\$$1\$2
14970 fi # as_fn_append
14972 # as_fn_arith ARG...
14973 # ------------------
14974 # Perform arithmetic evaluation on the ARGs, and store the result in the
14975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14976 # must be portable across $(()) and expr.
14977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14978 eval 'as_fn_arith ()
14980 as_val=$(( $* ))
14982 else
14983 as_fn_arith ()
14985 as_val=`expr "$@" || test $? -eq 1`
14987 fi # as_fn_arith
14990 if expr a : '\(a\)' >/dev/null 2>&1 &&
14991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14992 as_expr=expr
14993 else
14994 as_expr=false
14997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14998 as_basename=basename
14999 else
15000 as_basename=false
15003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15004 as_dirname=dirname
15005 else
15006 as_dirname=false
15009 as_me=`$as_basename -- "$0" ||
15010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15011 X"$0" : 'X\(//\)$' \| \
15012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15013 $as_echo X/"$0" |
15014 sed '/^.*\/\([^/][^/]*\)\/*$/{
15015 s//\1/
15018 /^X\/\(\/\/\)$/{
15019 s//\1/
15022 /^X\/\(\/\).*/{
15023 s//\1/
15026 s/.*/./; q'`
15028 # Avoid depending upon Character Ranges.
15029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15032 as_cr_digits='0123456789'
15033 as_cr_alnum=$as_cr_Letters$as_cr_digits
15035 ECHO_C= ECHO_N= ECHO_T=
15036 case `echo -n x` in #(((((
15037 -n*)
15038 case `echo 'xy\c'` in
15039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15040 xy) ECHO_C='\c';;
15041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15042 ECHO_T=' ';;
15043 esac;;
15045 ECHO_N='-n';;
15046 esac
15048 rm -f conf$$ conf$$.exe conf$$.file
15049 if test -d conf$$.dir; then
15050 rm -f conf$$.dir/conf$$.file
15051 else
15052 rm -f conf$$.dir
15053 mkdir conf$$.dir 2>/dev/null
15055 if (echo >conf$$.file) 2>/dev/null; then
15056 if ln -s conf$$.file conf$$ 2>/dev/null; then
15057 as_ln_s='ln -s'
15058 # ... but there are two gotchas:
15059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15061 # In both cases, we have to default to `cp -p'.
15062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15063 as_ln_s='cp -p'
15064 elif ln conf$$.file conf$$ 2>/dev/null; then
15065 as_ln_s=ln
15066 else
15067 as_ln_s='cp -p'
15069 else
15070 as_ln_s='cp -p'
15072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15073 rmdir conf$$.dir 2>/dev/null
15076 # as_fn_mkdir_p
15077 # -------------
15078 # Create "$as_dir" as a directory, including parents if necessary.
15079 as_fn_mkdir_p ()
15082 case $as_dir in #(
15083 -*) as_dir=./$as_dir;;
15084 esac
15085 test -d "$as_dir" || eval $as_mkdir_p || {
15086 as_dirs=
15087 while :; do
15088 case $as_dir in #(
15089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15090 *) as_qdir=$as_dir;;
15091 esac
15092 as_dirs="'$as_qdir' $as_dirs"
15093 as_dir=`$as_dirname -- "$as_dir" ||
15094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095 X"$as_dir" : 'X\(//\)[^/]' \| \
15096 X"$as_dir" : 'X\(//\)$' \| \
15097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X"$as_dir" |
15099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100 s//\1/
15103 /^X\(\/\/\)[^/].*/{
15104 s//\1/
15107 /^X\(\/\/\)$/{
15108 s//\1/
15111 /^X\(\/\).*/{
15112 s//\1/
15115 s/.*/./; q'`
15116 test -d "$as_dir" && break
15117 done
15118 test -z "$as_dirs" || eval "mkdir $as_dirs"
15119 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15122 } # as_fn_mkdir_p
15123 if mkdir -p . 2>/dev/null; then
15124 as_mkdir_p='mkdir -p "$as_dir"'
15125 else
15126 test -d ./-p && rmdir ./-p
15127 as_mkdir_p=false
15130 if test -x / >/dev/null 2>&1; then
15131 as_test_x='test -x'
15132 else
15133 if ls -dL / >/dev/null 2>&1; then
15134 as_ls_L_option=L
15135 else
15136 as_ls_L_option=
15138 as_test_x='
15139 eval sh -c '\''
15140 if test -d "$1"; then
15141 test -d "$1/.";
15142 else
15143 case $1 in #(
15144 -*)set "./$1";;
15145 esac;
15146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15147 ???[sx]*):;;*)false;;esac;fi
15148 '\'' sh
15151 as_executable_p=$as_test_x
15153 # Sed expression to map a string onto a valid CPP name.
15154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15156 # Sed expression to map a string onto a valid variable name.
15157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15160 exec 6>&1
15161 ## ----------------------------------- ##
15162 ## Main body of $CONFIG_STATUS script. ##
15163 ## ----------------------------------- ##
15164 _ASEOF
15165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # Save the log message, to keep $0 and so on meaningful, and to
15169 # report actual input values of CONFIG_FILES etc. instead of their
15170 # values after options handling.
15171 ac_log="
15172 This file was extended by $as_me, which was
15173 generated by GNU Autoconf 2.64. Invocation command line was
15175 CONFIG_FILES = $CONFIG_FILES
15176 CONFIG_HEADERS = $CONFIG_HEADERS
15177 CONFIG_LINKS = $CONFIG_LINKS
15178 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 $ $0 $@
15181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15184 _ACEOF
15186 case $ac_config_files in *"
15187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15188 esac
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 # Files that config.status was made for.
15194 config_files="$ac_config_files"
15196 _ACEOF
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 ac_cs_usage="\
15200 \`$as_me' instantiates files and other configuration actions
15201 from templates according to the current configuration. Unless the files
15202 and actions are specified as TAGs, all are instantiated by default.
15204 Usage: $0 [OPTION]... [TAG]...
15206 -h, --help print this help, then exit
15207 -V, --version print version number and configuration settings, then exit
15208 -q, --quiet, --silent
15209 do not print progress messages
15210 -d, --debug don't remove temporary files
15211 --recheck update $as_me by reconfiguring in the same conditions
15212 --file=FILE[:TEMPLATE]
15213 instantiate the configuration file FILE
15215 Configuration files:
15216 $config_files
15218 Report bugs to the package provider."
15220 _ACEOF
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 ac_cs_version="\\
15223 config.status
15224 configured by $0, generated by GNU Autoconf 2.64,
15225 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15227 Copyright (C) 2009 Free Software Foundation, Inc.
15228 This config.status script is free software; the Free Software Foundation
15229 gives unlimited permission to copy, distribute and modify it."
15231 ac_pwd='$ac_pwd'
15232 srcdir='$srcdir'
15233 INSTALL='$INSTALL'
15234 AWK='$AWK'
15235 test -n "\$AWK" || AWK=awk
15236 _ACEOF
15238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15239 # The default lists apply if the user does not specify any file.
15240 ac_need_defaults=:
15241 while test $# != 0
15243 case $1 in
15244 --*=*)
15245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15246 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15247 ac_shift=:
15250 ac_option=$1
15251 ac_optarg=$2
15252 ac_shift=shift
15254 esac
15256 case $ac_option in
15257 # Handling of the options.
15258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15259 ac_cs_recheck=: ;;
15260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15261 $as_echo "$ac_cs_version"; exit ;;
15262 --debug | --debu | --deb | --de | --d | -d )
15263 debug=: ;;
15264 --file | --fil | --fi | --f )
15265 $ac_shift
15266 case $ac_optarg in
15267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15268 esac
15269 as_fn_append CONFIG_FILES " '$ac_optarg'"
15270 ac_need_defaults=false;;
15271 --he | --h | --help | --hel | -h )
15272 $as_echo "$ac_cs_usage"; exit ;;
15273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15275 ac_cs_silent=: ;;
15277 # This is an error.
15278 -*) as_fn_error "unrecognized option: \`$1'
15279 Try \`$0 --help' for more information." ;;
15281 *) as_fn_append ac_config_targets " $1"
15282 ac_need_defaults=false ;;
15284 esac
15285 shift
15286 done
15288 ac_configure_extra_args=
15290 if $ac_cs_silent; then
15291 exec 6>/dev/null
15292 ac_configure_extra_args="$ac_configure_extra_args --silent"
15295 _ACEOF
15296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15297 if \$ac_cs_recheck; then
15298 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15299 shift
15300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15301 CONFIG_SHELL='$SHELL'
15302 export CONFIG_SHELL
15303 exec "\$@"
15306 _ACEOF
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308 exec 5>>config.log
15310 echo
15311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15312 ## Running $as_me. ##
15313 _ASBOX
15314 $as_echo "$ac_log"
15315 } >&5
15317 _ACEOF
15318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15320 # INIT-COMMANDS
15322 extrasub_build="$extrasub_build"
15323 extrasub_host="$extrasub_host"
15324 extrasub_target="$extrasub_target"
15326 _ACEOF
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330 # Handling of arguments.
15331 for ac_config_target in $ac_config_targets
15333 case $ac_config_target in
15334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15336 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15337 esac
15338 done
15341 # If the user did not use the arguments to specify the items to instantiate,
15342 # then the envvar interface is used. Set only those that are not.
15343 # We use the long form for the default assignment because of an extremely
15344 # bizarre bug on SunOS 4.1.3.
15345 if $ac_need_defaults; then
15346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15349 # Have a temporary directory for convenience. Make it in the build tree
15350 # simply because there is no reason against having it here, and in addition,
15351 # creating and moving files from /tmp can sometimes cause problems.
15352 # Hook for its removal unless debugging.
15353 # Note that there is a small window in which the directory will not be cleaned:
15354 # after its creation but before its name has been assigned to `$tmp'.
15355 $debug ||
15357 tmp=
15358 trap 'exit_status=$?
15359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15361 trap 'as_fn_exit 1' 1 2 13 15
15363 # Create a (secure) tmp directory for tmp files.
15366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15367 test -n "$tmp" && test -d "$tmp"
15368 } ||
15370 tmp=./conf$$-$RANDOM
15371 (umask 077 && mkdir "$tmp")
15372 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15374 # Set up the scripts for CONFIG_FILES section.
15375 # No need to generate them if there are no CONFIG_FILES.
15376 # This happens for instance with `./config.status config.h'.
15377 if test -n "$CONFIG_FILES"; then
15379 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15380 ac_cs_awk_getline=:
15381 ac_cs_awk_pipe_init=
15382 ac_cs_awk_read_file='
15383 while ((getline aline < (F[key])) > 0)
15384 print(aline)
15385 close(F[key])'
15386 ac_cs_awk_pipe_fini=
15387 else
15388 ac_cs_awk_getline=false
15389 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15390 ac_cs_awk_read_file='
15391 print "|#_!!_#|"
15392 print "cat " F[key] " &&"
15393 '$ac_cs_awk_pipe_init
15394 # The final `:' finishes the AND list.
15395 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15397 ac_cr=`echo X | tr X '\015'`
15398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15399 # But we know of no other shell where ac_cr would be empty at this
15400 # point, so we can use a bashism as a fallback.
15401 if test "x$ac_cr" = x; then
15402 eval ac_cr=\$\'\\r\'
15404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15406 ac_cs_awk_cr='\r'
15407 else
15408 ac_cs_awk_cr=$ac_cr
15411 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15412 _ACEOF
15414 # Create commands to substitute file output variables.
15416 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15417 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15418 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15419 echo "_ACAWK" &&
15420 echo "_ACEOF"
15421 } >conf$$files.sh &&
15422 . ./conf$$files.sh ||
15423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15424 rm -f conf$$files.sh
15427 echo "cat >conf$$subs.awk <<_ACEOF" &&
15428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15429 echo "_ACEOF"
15430 } >conf$$subs.sh ||
15431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15433 ac_delim='%!_!# '
15434 for ac_last_try in false false false false false :; do
15435 . ./conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15439 if test $ac_delim_n = $ac_delim_num; then
15440 break
15441 elif $ac_last_try; then
15442 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15443 else
15444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15446 done
15447 rm -f conf$$subs.sh
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15451 _ACEOF
15452 sed -n '
15454 s/^/S["/; s/!.*/"]=/
15457 s/^[^!]*!//
15458 :repl
15459 t repl
15460 s/'"$ac_delim"'$//
15461 t delim
15464 s/\(.\{148\}\).*/\1/
15465 t more1
15466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15469 b repl
15470 :more1
15471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15474 s/.\{148\}//
15475 t nl
15476 :delim
15478 s/\(.\{148\}\).*/\1/
15479 t more2
15480 s/["\\]/\\&/g; s/^/"/; s/$/"/
15483 :more2
15484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15487 s/.\{148\}//
15488 t delim
15489 ' <conf$$subs.awk | sed '
15490 /^[^""]/{
15492 s/\n//
15494 ' >>$CONFIG_STATUS || ac_write_fail=1
15495 rm -f conf$$subs.awk
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 _ACAWK
15498 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15499 for (key in S) S_is_set[key] = 1
15500 FS = "\a"
15501 \$ac_cs_awk_pipe_init
15504 line = $ 0
15505 nfields = split(line, field, "@")
15506 substed = 0
15507 len = length(field[1])
15508 for (i = 2; i < nfields; i++) {
15509 key = field[i]
15510 keylen = length(key)
15511 if (S_is_set[key]) {
15512 value = S[key]
15513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15514 len += length(value) + length(field[++i])
15515 substed = 1
15516 } else
15517 len += 1 + keylen
15519 if (nfields == 3 && !substed) {
15520 key = field[2]
15521 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15522 \$ac_cs_awk_read_file
15523 next
15526 print line
15528 \$ac_cs_awk_pipe_fini
15529 _ACAWK
15530 _ACEOF
15531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15532 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15534 else
15536 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15537 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15538 _ACEOF
15540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15542 # trailing colons and then remove the whole line if VPATH becomes empty
15543 # (actually we leave an empty line to preserve line numbers).
15544 if test "x$srcdir" = x.; then
15545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15546 s/:*\$(srcdir):*/:/
15547 s/:*\${srcdir}:*/:/
15548 s/:*@srcdir@:*/:/
15549 s/^\([^=]*=[ ]*\):*/\1/
15550 s/:*$//
15551 s/^[^=]*=[ ]*$//
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 fi # test -n "$CONFIG_FILES"
15559 eval set X " :F $CONFIG_FILES "
15560 shift
15561 for ac_tag
15563 case $ac_tag in
15564 :[FHLC]) ac_mode=$ac_tag; continue;;
15565 esac
15566 case $ac_mode$ac_tag in
15567 :[FHL]*:*);;
15568 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569 :[FH]-) ac_tag=-:-;;
15570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15571 esac
15572 ac_save_IFS=$IFS
15573 IFS=:
15574 set x $ac_tag
15575 IFS=$ac_save_IFS
15576 shift
15577 ac_file=$1
15578 shift
15580 case $ac_mode in
15581 :L) ac_source=$1;;
15582 :[FH])
15583 ac_file_inputs=
15584 for ac_f
15586 case $ac_f in
15587 -) ac_f="$tmp/stdin";;
15588 *) # Look for the file first in the build tree, then in the source tree
15589 # (if the path is not absolute). The absolute path cannot be DOS-style,
15590 # because $ac_f cannot contain `:'.
15591 test -f "$ac_f" ||
15592 case $ac_f in
15593 [\\/$]*) false;;
15594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15595 esac ||
15596 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15597 esac
15598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599 as_fn_append ac_file_inputs " '$ac_f'"
15600 done
15602 # Let's still pretend it is `configure' which instantiates (i.e., don't
15603 # use $as_me), people would be surprised to read:
15604 # /* config.h. Generated by config.status. */
15605 configure_input='Generated from '`
15606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15607 `' by configure.'
15608 if test x"$ac_file" != x-; then
15609 configure_input="$ac_file. $configure_input"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611 $as_echo "$as_me: creating $ac_file" >&6;}
15613 # Neutralize special characters interpreted by sed in replacement strings.
15614 case $configure_input in #(
15615 *\&* | *\|* | *\\* )
15616 ac_sed_conf_input=`$as_echo "$configure_input" |
15617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618 *) ac_sed_conf_input=$configure_input;;
15619 esac
15621 case $ac_tag in
15622 *:-:* | *:-) cat >"$tmp/stdin" \
15623 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15624 esac
15626 esac
15628 ac_dir=`$as_dirname -- "$ac_file" ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
15632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X"$ac_file" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635 s//\1/
15638 /^X\(\/\/\)[^/].*/{
15639 s//\1/
15642 /^X\(\/\/\)$/{
15643 s//\1/
15646 /^X\(\/\).*/{
15647 s//\1/
15650 s/.*/./; q'`
15651 as_dir="$ac_dir"; as_fn_mkdir_p
15652 ac_builddir=.
15654 case "$ac_dir" in
15655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658 # A ".." for each directory in $ac_dir_suffix.
15659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660 case $ac_top_builddir_sub in
15661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663 esac ;;
15664 esac
15665 ac_abs_top_builddir=$ac_pwd
15666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667 # for backward compatibility:
15668 ac_top_builddir=$ac_top_build_prefix
15670 case $srcdir in
15671 .) # We are building in place.
15672 ac_srcdir=.
15673 ac_top_srcdir=$ac_top_builddir_sub
15674 ac_abs_top_srcdir=$ac_pwd ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute name.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir
15678 ac_abs_top_srcdir=$srcdir ;;
15679 *) # Relative name.
15680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_build_prefix$srcdir
15682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15683 esac
15684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15687 case $ac_mode in
15690 # CONFIG_FILE
15693 case $INSTALL in
15694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15696 esac
15697 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700 # If the template does not know about datarootdir, expand it.
15701 # FIXME: This hack should be removed a few years after 2.60.
15702 ac_datarootdir_hack=; ac_datarootdir_seen=
15703 ac_sed_dataroot='
15704 /datarootdir/ {
15708 /@datadir@/p
15709 /@docdir@/p
15710 /@infodir@/p
15711 /@localedir@/p
15712 /@mandir@/p'
15713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15714 *datarootdir*) ac_datarootdir_seen=yes;;
15715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 ac_datarootdir_hack='
15721 s&@datadir@&$datadir&g
15722 s&@docdir@&$docdir&g
15723 s&@infodir@&$infodir&g
15724 s&@localedir@&$localedir&g
15725 s&@mandir@&$mandir&g
15726 s&\\\${datarootdir}&$datarootdir&g' ;;
15727 esac
15728 _ACEOF
15730 # Neutralize VPATH when `$srcdir' = `.'.
15731 # Shell code in configure.ac might set extrasub.
15732 # FIXME: do we really want to maintain this feature?
15733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734 ac_sed_extra="$ac_vpsub
15735 $extrasub
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15740 s|@configure_input@|$ac_sed_conf_input|;t t
15741 s&@top_builddir@&$ac_top_builddir_sub&;t t
15742 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15743 s&@srcdir@&$ac_srcdir&;t t
15744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15745 s&@top_srcdir@&$ac_top_srcdir&;t t
15746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15747 s&@builddir@&$ac_builddir&;t t
15748 s&@abs_builddir@&$ac_abs_builddir&;t t
15749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15750 s&@INSTALL@&$ac_INSTALL&;t t
15751 $ac_datarootdir_hack
15753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15754 if $ac_cs_awk_getline; then
15755 $AWK -f "$tmp/subs.awk"
15756 else
15757 $AWK -f "$tmp/subs.awk" | $SHELL
15758 fi >$tmp/out \
15759 || as_fn_error "could not create $ac_file" "$LINENO" 5
15761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765 which seems to be undefined. Please make sure it is defined." >&5
15766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15767 which seems to be undefined. Please make sure it is defined." >&2;}
15769 rm -f "$tmp/stdin"
15770 case $ac_file in
15771 -) cat "$tmp/out" && rm -f "$tmp/out";;
15772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15773 esac \
15774 || as_fn_error "could not create $ac_file" "$LINENO" 5
15779 esac
15782 case $ac_file$ac_mode in
15783 "Makefile":F) sed "$extrasub_build" Makefile |
15784 sed "$extrasub_host" |
15785 sed "$extrasub_target" > mf$$
15786 mv -f mf$$ Makefile ;;
15788 esac
15789 done # for ac_tag
15792 as_fn_exit 0
15793 _ACEOF
15794 ac_clean_files=$ac_clean_files_save
15796 test $ac_write_fail = 0 ||
15797 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15800 # configure is writing to config.log, and then calls config.status.
15801 # config.status does its own redirection, appending to config.log.
15802 # Unfortunately, on DOS this fails, as config.log is still kept open
15803 # by configure, so config.status won't be able to write to it; its
15804 # output is simply discarded. So we exec the FD to /dev/null,
15805 # effectively closing config.log, so it can be properly (re)opened and
15806 # appended to by config.status. When coming back to configure, we
15807 # need to make the FD available again.
15808 if test "$no_create" != yes; then
15809 ac_cs_success=:
15810 ac_config_status_args=
15811 test "$silent" = yes &&
15812 ac_config_status_args="$ac_config_status_args --quiet"
15813 exec 5>/dev/null
15814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15815 exec 5>>config.log
15816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15817 # would make configure fail if this is the last instruction.
15818 $ac_cs_success || as_fn_exit $?
15820 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15822 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}