PR target/62011
[official-gcc.git] / configure
blob6e24b556d85ed335b145e01a1711fd1f172d1057
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 EXTRA_CONFIGARGS_LIBJAVA
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
683 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 enable_gold
751 enable_ld
752 enable_libquadmath
753 enable_libquadmath_support
754 enable_libada
755 enable_libssp
756 enable_libstdcxx
757 enable_static_libjava
758 enable_bootstrap
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_libs
772 with_stage1_ldflags
773 with_boot_libs
774 with_boot_ldflags
775 with_cloog
776 with_isl
777 with_isl_include
778 with_isl_lib
779 enable_isl_version_check
780 with_cloog_include
781 with_cloog_lib
782 enable_cloog_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
808 CXXFLAGS
810 build_configargs
811 host_configargs
812 target_configargs
815 DLLTOOL
817 LIPO
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1337 /^X\(\/\/\)$/{
1338 s//\1/
1341 /^X\(\/\).*/{
1342 s//\1/
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1350 else
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1470 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1471 --disable-libquadmath do not build libquadmath directory
1472 --disable-libquadmath-support
1473 disable libquadmath support for Fortran
1474 --enable-libada build libada directory
1475 --enable-libssp build libssp directory
1476 --disable-libstdcxx do not build libstdc++-v3 directory
1477 --enable-static-libjava[=ARG]
1478 build static libjava [default=no]
1479 --enable-bootstrap enable bootstrapping [yes if native build]
1480 --disable-isl-version-check
1481 disable check for ISL version
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-linker-plugin-configure-flags=FLAGS
1486 additional flags for configuring linker plugins
1487 [none]
1488 --enable-linker-plugin-flags=FLAGS
1489 additional flags for configuring and building linker
1490 plugins [none]
1491 --enable-stage1-languages[=all]
1492 choose additional languages to build during stage1.
1493 Mostly useful for compiler development
1494 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1495 Objective-C runtime
1496 --enable-vtable-verify Enable vtable verification feature
1497 --enable-serial-[{host,target,build}-]configure
1498 force sequential configuration of sub-packages for
1499 the host, target or build machine, or all
1500 sub-packages
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all]
1505 choose additional checking for stage1 of the
1506 compiler
1507 --enable-werror enable -Werror in bootstrap stage2 and later
1508 --enable-host-shared build host code as shared libraries
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-build-libsubdir=DIR Directory where to find libraries for build system
1514 --with-mpc=PATH specify prefix directory for installed MPC package.
1515 Equivalent to --with-mpc-include=PATH/include plus
1516 --with-mpc-lib=PATH/lib
1517 --with-mpc-include=PATH specify directory for installed MPC include files
1518 --with-mpc-lib=PATH specify directory for the installed MPC library
1519 --with-mpfr-dir=PATH this option has been REMOVED
1520 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1521 Equivalent to --with-mpfr-include=PATH/include plus
1522 --with-mpfr-lib=PATH/lib
1523 --with-mpfr-include=PATH
1524 specify directory for installed MPFR include files
1525 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1526 --with-gmp-dir=PATH this option has been REMOVED
1527 --with-gmp=PATH specify prefix directory for the installed GMP
1528 package. Equivalent to
1529 --with-gmp-include=PATH/include plus
1530 --with-gmp-lib=PATH/lib
1531 --with-gmp-include=PATH specify directory for installed GMP include files
1532 --with-gmp-lib=PATH specify directory for the installed GMP library
1533 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534 linking with PPL
1535 --with-stage1-libs=LIBS libraries for stage1
1536 --with-stage1-ldflags=FLAGS
1537 linker flags for stage1
1538 --with-boot-libs=LIBS libraries for stage2 and later
1539 --with-boot-ldflags=FLAGS
1540 linker flags for stage2 and later
1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1542 package. Equivalent to
1543 --with-cloog-include=PATH/include plus
1544 --with-cloog-lib=PATH/lib
1545 --with-isl=PATH Specify prefix directory for the installed ISL
1546 package. Equivalent to
1547 --with-isl-include=PATH/include plus
1548 --with-isl-lib=PATH/lib
1549 --with-isl-include=PATH Specify directory for installed ISL include files
1550 --with-isl-lib=PATH Specify the directory for the installed ISL library
1551 --with-cloog-include=PATH
1552 Specify directory for installed CLooG include files
1553 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1554 library
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJDUMP_FOR_TARGET
1618 OBJDUMP for the target
1619 RANLIB_FOR_TARGET
1620 RANLIB for the target
1621 READELF_FOR_TARGET
1622 READELF for the target
1623 STRIP_FOR_TARGET
1624 STRIP for the target
1625 WINDRES_FOR_TARGET
1626 WINDRES for the target
1627 WINDMC_FOR_TARGET
1628 WINDMC for the target
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.64
1699 Copyright (C) 2009 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_cxx_try_link LINENO
1787 # -------------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1830 } # ac_fn_cxx_try_link
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_try_run LINENO
1879 # ----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881 # that executables *can* be run.
1882 ac_fn_c_try_run ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=$ac_status
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1918 } # ac_fn_c_try_run
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1923 It was created by $as_me, which was
1924 generated by GNU Autoconf 2.64. Invocation command line was
1926 $ $0 $@
1928 _ACEOF
1929 exec 5>>config.log
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953 _ASUNAME
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1964 } >&5
1966 cat >&5 <<_ACEOF
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1973 _ACEOF
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1987 for ac_arg
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2016 as_fn_append ac_configure_args " '$ac_arg'"
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2032 echo
2034 cat <<\_ASBOX
2035 ## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##
2038 _ASBOX
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 esac |
2068 sort
2070 echo
2072 cat <<\_ASBOX
2073 ## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##
2076 _ASBOX
2077 echo
2078 for ac_var in $ac_subst_vars
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2088 if test -n "$ac_subst_files"; then
2089 cat <<\_ASBOX
2090 ## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##
2093 _ASBOX
2094 echo
2095 for ac_var in $ac_subst_files
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
2102 done | sort
2103 echo
2106 if test -s confdefs.h; then
2107 cat <<\_ASBOX
2108 ## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##
2111 _ASBOX
2112 echo
2113 cat confdefs.h
2114 echo
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_file1=$CONFIG_SITE
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 test "x$ac_site_file" = xNONE && continue
2177 if test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file"
2183 done
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special
2187 # files actually), so we avoid doing that.
2188 if test -f "$cache_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191 case $cache_file in
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2194 esac
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 >$cache_file
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2211 set,)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,set)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,);;
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 esac
2251 done
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 progname=$0
2278 # if PWD already has a value, it is probably wrong.
2279 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2281 # Export original configure arguments for use by sub-configures.
2282 # Quote arguments with shell meta charatcers.
2283 TOPLEVEL_CONFIGURE_ARGUMENTS=
2284 set -- "$progname" "$@"
2285 for ac_arg
2287 case "$ac_arg" in
2288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2290 # if the argument is of the form -foo=baz, quote the baz part only
2291 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2292 *) ;;
2293 esac
2294 # Add the quoted argument to the list.
2295 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2296 done
2297 if test "$silent" = yes; then
2298 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2300 # Remove the initial space we just introduced and, as these will be
2301 # expanded by make, quote '$'.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2305 # Find the build, host, and target systems.
2306 ac_aux_dir=
2307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 for ac_t in install-sh install.sh shtool; do
2309 if test -f "$ac_dir/$ac_t"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/$ac_t -c"
2312 break 2
2314 done
2315 done
2316 if test -z "$ac_aux_dir"; then
2317 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 # These three variables are undocumented and unsupported,
2321 # and are intended to be withdrawn in a future Autoconf release.
2322 # They can cause serious problems if a builder's source tree is in a directory
2323 # whose full name contains unusual characters.
2324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329 # Make sure we can run config.sub.
2330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2331 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2334 $as_echo_n "checking build system type... " >&6; }
2335 if test "${ac_cv_build+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 ac_build_alias=$build_alias
2339 test "x$ac_build_alias" = x &&
2340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2341 test "x$ac_build_alias" = x &&
2342 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2348 $as_echo "$ac_cv_build" >&6; }
2349 case $ac_cv_build in
2350 *-*-*) ;;
2351 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2352 esac
2353 build=$ac_cv_build
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_build
2356 shift
2357 build_cpu=$1
2358 build_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 build_os=$*
2363 IFS=$ac_save_IFS
2364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2367 case ${build_alias} in
2368 "") build_noncanonical=${build} ;;
2369 *) build_noncanonical=${build_alias} ;;
2370 esac
2374 case ${host_alias} in
2375 "") host_noncanonical=${build_noncanonical} ;;
2376 *) host_noncanonical=${host_alias} ;;
2377 esac
2381 case ${target_alias} in
2382 "") target_noncanonical=${host_noncanonical} ;;
2383 *) target_noncanonical=${target_alias} ;;
2384 esac
2389 test "$host_noncanonical" = "$target_noncanonical" &&
2390 test "$program_prefix$program_suffix$program_transform_name" = \
2391 NONENONEs,x,x, &&
2392 program_transform_name=s,y,y,
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472 # Double any \ or $.
2473 # By default was `s,x,x', remove it if useless.
2474 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2479 # Get 'install' or 'install-sh' and its variants.
2480 # Find a good install program. We prefer a C program (faster),
2481 # so one script is as good as another. But avoid the broken or
2482 # incompatible versions:
2483 # SysV /etc/install, /usr/sbin/install
2484 # SunOS /usr/etc/install
2485 # IRIX /sbin/install
2486 # AIX /bin/install
2487 # AmigaOS /C/install, which installs bootblocks on floppy discs
2488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2491 # OS/2's system install, which has a completely different semantic
2492 # ./install, which can be erroneously created by make from ./install.sh.
2493 # Reject install programs that cannot install multiple files.
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2495 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in #((
2507 ./ | .// | /[cC]/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2510 /usr/ucb/* ) ;;
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2526 else
2527 rm -rf conftest.one conftest.two conftest.dir
2528 echo one > conftest.one
2529 echo two > conftest.two
2530 mkdir conftest.dir
2531 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2532 test -s conftest.one && test -s conftest.two &&
2533 test -s conftest.dir/conftest.one &&
2534 test -s conftest.dir/conftest.two
2535 then
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2541 done
2542 done
2544 esac
2546 done
2547 IFS=$as_save_IFS
2549 rm -rf conftest.one conftest.two conftest.dir
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 INSTALL=$ac_install_sh
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2563 $as_echo "$INSTALL" >&6; }
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2574 $as_echo_n "checking whether ln works... " >&6; }
2575 if test "${acx_cv_prog_LN+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 rm -f conftestdata_t
2579 echo >conftestdata_f
2580 if ln conftestdata_f conftestdata_t 2>/dev/null
2581 then
2582 acx_cv_prog_LN=ln
2583 else
2584 acx_cv_prog_LN=no
2586 rm -f conftestdata_f conftestdata_t
2589 if test $acx_cv_prog_LN = no; then
2590 LN="cp"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2592 $as_echo "no, using $LN" >&6; }
2593 else
2594 LN="$acx_cv_prog_LN"
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2596 $as_echo "yes" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2600 $as_echo_n "checking whether ln -s works... " >&6; }
2601 LN_S=$as_ln_s
2602 if test "$LN_S" = "ln -s"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2607 $as_echo "no, using $LN_S" >&6; }
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2611 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2612 if test "${ac_cv_path_SED+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2616 for ac_i in 1 2 3 4 5 6 7; do
2617 ac_script="$ac_script$as_nl$ac_script"
2618 done
2619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2620 { ac_script=; unset ac_script;}
2621 if test -z "$SED"; then
2622 ac_path_SED_found=false
2623 # Loop through the user's path and test for each of PROGNAME-LIST
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_prog in sed gsed; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2632 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2633 # Check for GNU ac_path_SED and select it if it is found.
2634 # Check for GNU $ac_path_SED
2635 case `"$ac_path_SED" --version 2>&1` in
2636 *GNU*)
2637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2639 ac_count=0
2640 $as_echo_n 0123456789 >"conftest.in"
2641 while :
2643 cat "conftest.in" "conftest.in" >"conftest.tmp"
2644 mv "conftest.tmp" "conftest.in"
2645 cp "conftest.in" "conftest.nl"
2646 $as_echo '' >> "conftest.nl"
2647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2649 as_fn_arith $ac_count + 1 && ac_count=$as_val
2650 if test $ac_count -gt ${ac_path_SED_max-0}; then
2651 # Best one so far, save it but keep looking for a better one
2652 ac_cv_path_SED="$ac_path_SED"
2653 ac_path_SED_max=$ac_count
2655 # 10*(2^10) chars as input seems more than enough
2656 test $ac_count -gt 10 && break
2657 done
2658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2659 esac
2661 $ac_path_SED_found && break 3
2662 done
2663 done
2664 done
2665 IFS=$as_save_IFS
2666 if test -z "$ac_cv_path_SED"; then
2667 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2669 else
2670 ac_cv_path_SED=$SED
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2675 $as_echo "$ac_cv_path_SED" >&6; }
2676 SED="$ac_cv_path_SED"
2677 rm -f conftest.sed
2679 for ac_prog in gawk mawk nawk awk
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_AWK+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 AWK=$ac_cv_prog_AWK
2709 if test -n "$AWK"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2711 $as_echo "$AWK" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$AWK" && break
2719 done
2722 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2724 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2725 # a relative path.
2726 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2727 INSTALL="${srcpwd}/install-sh -c"
2730 # Set srcdir to "." if that's what it is.
2731 # This is important for multilib support.
2732 pwd=`${PWDCMD-pwd}`
2733 if test "${pwd}" = "${srcpwd}" ; then
2734 srcdir=.
2737 topsrcdir=$srcpwd
2739 extra_host_args=
2741 ### To add a new directory to the tree, first choose whether it is a target
2742 ### or a host dependent tool. Then put it into the appropriate list
2743 ### (library or tools, host or target), doing a dependency sort.
2745 # Subdirs will be configured in the order listed in build_configdirs,
2746 # configdirs, or target_configdirs; see the serialization section below.
2748 # Dependency sorting is only needed when *configuration* must be done in
2749 # a particular order. In all cases a dependency should be specified in
2750 # the Makefile, whether or not it's implicitly specified here.
2752 # Double entries in build_configdirs, configdirs, or target_configdirs may
2753 # cause circular dependencies and break everything horribly.
2755 # these library is used by various programs built for the build
2756 # environment
2758 build_libs="build-libiberty"
2760 # these tools are built for the build environment
2761 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2763 # these libraries are used by various programs built for the host environment
2765 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2767 # these tools are built for the host environment
2768 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2769 # know that we are building the simulator.
2770 # binutils, gas and ld appear in that order because it makes sense to run
2771 # "make check" in that particular order.
2772 # If --enable-gold is used, "gold" may replace "ld".
2773 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2775 # libgcj represents the runtime libraries only used by gcj.
2776 libgcj="target-libffi \
2777 target-zlib \
2778 target-libjava"
2780 # these libraries are built for the target environment, and are built after
2781 # the host libraries and the host tools (which may be a cross compiler)
2782 # Note that libiberty is not a target library.
2783 target_libraries="target-libgcc \
2784 target-libbacktrace \
2785 target-libgloss \
2786 target-newlib \
2787 target-libgomp \
2788 target-libcilkrts \
2789 target-libatomic \
2790 target-libitm \
2791 target-libstdc++-v3 \
2792 target-libsanitizer \
2793 target-libvtv \
2794 target-libssp \
2795 target-libquadmath \
2796 target-libgfortran \
2797 target-boehm-gc \
2798 ${libgcj} \
2799 target-libobjc \
2800 target-libada \
2801 target-libgo"
2803 # these tools are built using the target libraries, and are intended to
2804 # run only in the target environment
2806 # note: any program that *uses* libraries that are in the "target_libraries"
2807 # list belongs in this list.
2809 target_tools="target-rda"
2811 ################################################################################
2813 ## All tools belong in one of the four categories, and are assigned above
2814 ## We assign ${configdirs} this way to remove all embedded newlines. This
2815 ## is important because configure will choke if they ever get through.
2816 ## ${configdirs} is directories we build using the host tools.
2817 ## ${target_configdirs} is directories we build using the target tools.
2818 configdirs=`echo ${host_libs} ${host_tools}`
2819 target_configdirs=`echo ${target_libraries} ${target_tools}`
2820 build_configdirs=`echo ${build_libs} ${build_tools}`
2824 ################################################################################
2826 srcname="gnu development package"
2828 # This gets set non-empty for some net releases of packages.
2829 appdirs=""
2831 # Define is_cross_compiler to save on calls to 'test'.
2832 is_cross_compiler=
2833 if test x"${host}" = x"${target}" ; then
2834 is_cross_compiler=no
2835 else
2836 is_cross_compiler=yes
2839 # Find the build and target subdir names.
2841 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2842 # have matching libraries, they should use host libraries: Makefile.tpl
2843 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2844 # However, they still use the build modules, because the corresponding
2845 # host modules (e.g. bison) are only built for the host when bootstrap
2846 # finishes. So:
2847 # - build_subdir is where we find build modules, and never changes.
2848 # - build_libsubdir is where we find build libraries, and can be overridden.
2850 # Prefix 'build-' so this never conflicts with target_subdir.
2851 build_subdir="build-${build_noncanonical}"
2853 # Check whether --with-build-libsubdir was given.
2854 if test "${with_build_libsubdir+set}" = set; then :
2855 withval=$with_build_libsubdir; build_libsubdir="$withval"
2856 else
2857 build_libsubdir="$build_subdir"
2860 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2861 if ( test $srcdir = . && test -d gcc ) \
2862 || test -d $srcdir/../host-${host_noncanonical}; then
2863 host_subdir="host-${host_noncanonical}"
2864 else
2865 host_subdir=.
2867 # No prefix.
2868 target_subdir=${target_noncanonical}
2870 # Be sure to cover against remnants of an in-tree build.
2871 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2872 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2873 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2876 # Skipdirs are removed silently.
2877 skipdirs=
2878 # Noconfigdirs are removed loudly.
2879 noconfigdirs=""
2881 use_gnu_ld=
2882 # Make sure we don't let GNU ld be added if we didn't want it.
2883 if test x$with_gnu_ld = xno ; then
2884 use_gnu_ld=no
2885 noconfigdirs="$noconfigdirs ld gold"
2888 use_gnu_as=
2889 # Make sure we don't let GNU as be added if we didn't want it.
2890 if test x$with_gnu_as = xno ; then
2891 use_gnu_as=no
2892 noconfigdirs="$noconfigdirs gas"
2895 use_included_zlib=
2896 # Make sure we don't let ZLIB be added if we didn't want it.
2897 if test x$with_system_zlib = xyes ; then
2898 use_included_zlib=no
2899 noconfigdirs="$noconfigdirs zlib"
2902 # some tools are so dependent upon X11 that if we're not building with X,
2903 # it's not even worth trying to configure, much less build, that tool.
2905 case ${with_x} in
2906 yes | "") ;; # the default value for this tree is that X11 is available
2908 skipdirs="${skipdirs} tk itcl libgui"
2909 # We won't be able to build gdbtk without X.
2910 enable_gdbtk=no
2912 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2913 esac
2915 # Some are only suitable for cross toolchains.
2916 # Remove these if host=target.
2917 cross_only="target-libgloss target-newlib target-opcodes"
2919 case $is_cross_compiler in
2920 no) skipdirs="${skipdirs} ${cross_only}" ;;
2921 esac
2923 # If both --with-headers and --with-libs are specified, default to
2924 # --without-newlib.
2925 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2926 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2927 if test x"${with_newlib}" = x ; then
2928 with_newlib=no
2932 # Recognize --with-newlib/--without-newlib.
2933 case ${with_newlib} in
2934 no) skipdirs="${skipdirs} target-newlib" ;;
2935 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2936 esac
2938 # Handle --enable-gold, --enable-ld.
2939 # --disable-gold [--enable-ld]
2940 # Build only ld. Default option.
2941 # --enable-gold [--enable-ld]
2942 # Build both gold and ld. Install gold as "ld.gold", install ld
2943 # as "ld.bfd" and "ld".
2944 # --enable-gold=default [--enable-ld]
2945 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2946 # install ld as "ld.bfd".
2947 # --enable-gold[=default] --disable-ld
2948 # Build only gold, which is then installed as both "ld.gold" and "ld".
2949 # --enable-gold --enable-ld=default
2950 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2951 # and ld.bfd).
2952 # In other words, ld is default
2953 # --enable-gold=default --enable-ld=default
2954 # Error.
2956 default_ld=
2957 # Check whether --enable-gold was given.
2958 if test "${enable_gold+set}" = set; then :
2959 enableval=$enable_gold; ENABLE_GOLD=$enableval
2960 else
2961 ENABLE_GOLD=no
2964 case "${ENABLE_GOLD}" in
2965 yes|default)
2966 # Check for ELF target.
2967 is_elf=no
2968 case "${target}" in
2969 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2970 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2971 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2972 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2973 case "${target}" in
2974 *-*-linux*aout* | *-*-linux*oldld*)
2977 is_elf=yes
2979 esac
2980 esac
2982 if test "$is_elf" = "yes"; then
2983 # Check for target supported by gold.
2984 case "${target}" in
2985 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2986 configdirs="$configdirs gold"
2987 if test x${ENABLE_GOLD} = xdefault; then
2988 default_ld=gold
2990 ENABLE_GOLD=yes
2992 esac
2998 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3000 esac
3002 # Check whether --enable-ld was given.
3003 if test "${enable_ld+set}" = set; then :
3004 enableval=$enable_ld; ENABLE_LD=$enableval
3005 else
3006 ENABLE_LD=yes
3010 case "${ENABLE_LD}" in
3011 default)
3012 if test x${default_ld} != x; then
3013 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3016 yes)
3019 if test x${ENABLE_GOLD} != xyes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3021 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3023 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3026 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3028 esac
3030 # Configure extra directories which are host specific
3032 case "${host}" in
3033 *-cygwin*)
3034 configdirs="$configdirs libtermcap" ;;
3035 esac
3037 # A target can indicate whether a language isn't supported for some reason.
3038 # Only spaces may be used in this macro; not newlines or tabs.
3039 unsupported_languages=
3041 # Remove more programs from consideration, based on the host or
3042 # target this usually means that a port of the program doesn't
3043 # exist yet.
3045 case "${host}" in
3046 i[3456789]86-*-msdosdjgpp*)
3047 noconfigdirs="$noconfigdirs tcl tk itcl"
3049 esac
3052 # Check whether --enable-libquadmath was given.
3053 if test "${enable_libquadmath+set}" = set; then :
3054 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3055 else
3056 ENABLE_LIBQUADMATH=yes
3059 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3060 noconfigdirs="$noconfigdirs target-libquadmath"
3064 # Check whether --enable-libquadmath-support was given.
3065 if test "${enable_libquadmath_support+set}" = set; then :
3066 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3067 else
3068 ENABLE_LIBQUADMATH_SUPPORT=yes
3071 enable_libquadmath_support=
3072 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3073 enable_libquadmath_support=no
3077 # Check whether --enable-libada was given.
3078 if test "${enable_libada+set}" = set; then :
3079 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3080 else
3081 ENABLE_LIBADA=yes
3084 if test "${ENABLE_LIBADA}" != "yes" ; then
3085 noconfigdirs="$noconfigdirs gnattools"
3088 # Check whether --enable-libssp was given.
3089 if test "${enable_libssp+set}" = set; then :
3090 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3091 else
3092 ENABLE_LIBSSP=yes
3096 # Check whether --enable-libstdcxx was given.
3097 if test "${enable_libstdcxx+set}" = set; then :
3098 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3099 else
3100 ENABLE_LIBSTDCXX=default
3103 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3104 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3107 # Save it here so that, even in case of --enable-libgcj, if the Java
3108 # front-end isn't enabled, we still get libgcj disabled.
3109 libgcj_saved=$libgcj
3110 case $enable_libgcj in
3111 yes)
3112 # If we reset it here, it won't get added to noconfigdirs in the
3113 # target-specific build rules, so it will be forcibly enabled
3114 # (unless the Java language itself isn't enabled).
3115 libgcj=
3118 # Make sure we get it printed in the list of not supported target libs.
3119 # Don't disable libffi, though, other languages use it.
3120 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3121 # Clear libgcj_saved so that even if java is enabled libffi won't be
3122 # built.
3123 libgcj_saved=
3125 esac
3127 # Check whether --enable-static-libjava was given.
3128 if test "${enable_static_libjava+set}" = set; then :
3129 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3130 else
3131 ENABLE_STATIC_LIBJAVA=no
3134 enable_static_libjava=
3135 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3136 enable_static_libjava=yes
3139 if test x$enable_static_libjava != xyes ; then
3140 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3144 # Disable libgomp on non POSIX hosted systems.
3145 if test x$enable_libgomp = x ; then
3146 # Enable libgomp by default on hosted POSIX systems.
3147 case "${target}" in
3148 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3150 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3152 *-*-solaris2* | *-*-hpux11*)
3154 *-*-darwin* | *-*-aix*)
3157 noconfigdirs="$noconfigdirs target-libgomp"
3159 esac
3162 # Disable libatomic on unsupported systems.
3163 if test -d ${srcdir}/libatomic; then
3164 if test x$enable_libatomic = x; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3166 $as_echo_n "checking for libatomic support... " >&6; }
3167 if (srcdir=${srcdir}/libatomic; \
3168 . ${srcdir}/configure.tgt; \
3169 test -n "$UNSUPPORTED")
3170 then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 noconfigdirs="$noconfigdirs target-libatomic"
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 $as_echo "yes" >&6; }
3181 # Disable libcilkrts on unsupported systems.
3182 if test -d ${srcdir}/libcilkrts; then
3183 if test x$enable_libcilkrts = x; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3185 $as_echo_n "checking for libcilkrts support... " >&6; }
3186 if (srcdir=${srcdir}/libcilkrts; \
3187 . ${srcdir}/configure.tgt; \
3188 test -n "$UNSUPPORTED")
3189 then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 noconfigdirs="$noconfigdirs target-libcilkrts"
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3200 # Disable libitm on unsupported systems.
3201 if test -d ${srcdir}/libitm; then
3202 if test x$enable_libitm = x; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3204 $as_echo_n "checking for libitm support... " >&6; }
3205 if (srcdir=${srcdir}/libitm; \
3206 . ${srcdir}/configure.tgt; \
3207 test -n "$UNSUPPORTED")
3208 then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 noconfigdirs="$noconfigdirs target-libitm"
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3219 # Disable libsanitizer on unsupported systems.
3220 if test -d ${srcdir}/libsanitizer; then
3221 if test x$enable_libsanitizer = x; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3223 $as_echo_n "checking for libsanitizer support... " >&6; }
3224 if (srcdir=${srcdir}/libsanitizer; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-libsanitizer"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3238 # Disable libvtv on unsupported systems.
3239 if test -d ${srcdir}/libvtv; then
3240 if test x$enable_libvtv = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3242 $as_echo_n "checking for libvtv support... " >&6; }
3243 if (srcdir=${srcdir}/libvtv; \
3244 . ${srcdir}/configure.tgt; \
3245 test "$VTV_SUPPORTED" != "yes")
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-libvtv"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3257 # Disable libquadmath for some systems.
3258 case "${target}" in
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libquadmath"
3262 # libquadmath is unused on AIX and libquadmath build process use of
3263 # LD_LIBRARY_PATH can break AIX bootstrap.
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libquadmath"
3267 esac
3269 # Disable libssp for some systems.
3270 case "${target}" in
3271 avr-*-*)
3272 # No hosted I/O support.
3273 noconfigdirs="$noconfigdirs target-libssp"
3275 powerpc-*-aix* | rs6000-*-aix*)
3276 noconfigdirs="$noconfigdirs target-libssp"
3278 rl78-*-*)
3279 # libssp uses a misaligned load to trigger a fault, but the RL78
3280 # doesn't fault for those - instead, it gives a build-time error
3281 # for explicit misaligned loads.
3282 noconfigdirs="$noconfigdirs target-libssp"
3284 esac
3286 # Disable libstdc++-v3 for some systems.
3287 # Allow user to override this if they pass --enable-libstdc++-v3
3288 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3289 case "${target}" in
3290 *-*-vxworks*)
3291 # VxWorks uses the Dinkumware C++ library.
3292 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3294 arm*-wince-pe*)
3295 # the C++ libraries don't build on top of CE's C libraries
3296 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3298 avr-*-*)
3299 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3301 esac
3304 # Disable Fortran for some systems.
3305 case "${target}" in
3306 mmix-*-*)
3307 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3308 unsupported_languages="$unsupported_languages fortran"
3310 esac
3312 # Disable Java if libffi is not supported.
3313 case "${target}" in
3314 aarch64-*-*)
3316 alpha*-*-*)
3318 arm*-*-*)
3320 cris-*-*)
3322 frv-*-*)
3324 hppa*-*-linux*)
3326 hppa*-*-hpux*)
3328 i?86-*-*)
3330 ia64*-*-*)
3332 m32r*-*-*)
3334 m68k-*-*)
3336 mips*-*-rtems*)
3338 mips*-*-linux*)
3340 powerpc*-*-linux*)
3342 powerpc-*-darwin*)
3344 powerpc-*-aix* | rs6000-*-aix*)
3346 powerpc-*-freebsd*)
3348 powerpc64-*-freebsd*)
3350 powerpc*-*-rtems*)
3352 s390-*-* | s390x-*-*)
3354 sh-*-* | sh[34]*-*-*)
3356 sh64-*-* | sh5*-*-*)
3358 sparc*-*-*)
3360 x86_64-*-*)
3362 *-*-*)
3363 unsupported_languages="$unsupported_languages java"
3365 esac
3367 # Disable Java, libgcj or related libraries for some systems.
3368 case "${target}" in
3369 powerpc-*-darwin*)
3371 i[3456789]86-*-darwin*)
3373 x86_64-*-darwin[912]*)
3375 *-*-darwin*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3378 *-*-netware*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3381 *-*-rtems*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3384 *-*-tpf*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3387 *-*-uclinux*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 *-*-vxworks*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3393 alpha*-*-*vms*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3396 arm-wince-pe)
3397 noconfigdirs="$noconfigdirs ${libgcj}"
3399 arm*-*-symbianelf*)
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3402 bfin-*-*)
3403 noconfigdirs="$noconfigdirs target-boehm-gc"
3405 cris-*-* | crisv32-*-*)
3406 unsupported_languages="$unsupported_languages java"
3407 case "${target}" in
3408 *-*-linux*)
3410 *) # See PR46792 regarding target-libffi.
3411 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3412 esac
3414 hppa*64*-*-linux*)
3415 # In this case, it's because the hppa64-linux target is for
3416 # the kernel only at this point and has no libc, and thus no
3417 # headers, crt*.o, etc., all of which are needed by these.
3418 unsupported_languages="$unsupported_languages java"
3420 hppa*64*-*-hpux*)
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3423 hppa*-hp-hpux11*)
3425 hppa*-*-hpux*)
3426 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3427 # build on HP-UX 10.20.
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ia64*-*-*vms*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3433 i[3456789]86-w64-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 i[3456789]86-*-mingw*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3439 x86_64-*-mingw*)
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3442 mmix-*-*)
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3445 powerpc-*-aix*)
3446 # copied from rs6000-*-* entry
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3449 rs6000-*-aix*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3452 *-*-lynxos*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3455 esac
3457 # Disable libgo for some systems where it is known to not work.
3458 # For testing, you can easily override this with --enable-libgo.
3459 if test x$enable_libgo = x; then
3460 case "${target}" in
3461 *-*-darwin*)
3462 # PR 46986
3463 noconfigdirs="$noconfigdirs target-libgo"
3465 *-*-cygwin* | *-*-mingw*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3468 *-*-aix*)
3469 noconfigdirs="$noconfigdirs target-libgo"
3471 esac
3474 # Default libgloss CPU subdirectory.
3475 libgloss_dir="$target_cpu"
3477 case "${target}" in
3478 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3479 libgloss_dir=wince
3481 aarch64*-*-* )
3482 libgloss_dir=aarch64
3484 arm*-*-*)
3485 libgloss_dir=arm
3487 cris-*-* | crisv32-*-*)
3488 libgloss_dir=cris
3490 hppa*-*-*)
3491 libgloss_dir=pa
3493 i[3456789]86-*-*)
3494 libgloss_dir=i386
3496 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3497 libgloss_dir=m68hc11
3499 m68*-*-* | fido-*-*)
3500 libgloss_dir=m68k
3502 mips*-*-*)
3503 libgloss_dir=mips
3505 powerpc*-*-*)
3506 libgloss_dir=rs6000
3508 sparc*-*-*)
3509 libgloss_dir=sparc
3511 esac
3513 # Disable newlib and libgloss for various target OSes.
3514 case "${target}" in
3515 alpha*-dec-osf*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 i[3456789]86-*-linux*)
3519 # This section makes it possible to build newlib natively on linux.
3520 # If we are using a cross compiler then don't configure newlib.
3521 if test x${is_cross_compiler} != xno ; then
3522 noconfigdirs="$noconfigdirs target-newlib"
3524 noconfigdirs="$noconfigdirs target-libgloss"
3525 # If we are not using a cross compiler, do configure newlib.
3526 # Note however, that newlib will only be configured in this situation
3527 # if the --with-newlib option has been given, because otherwise
3528 # 'target-newlib' will appear in skipdirs.
3530 i[3456789]86-*-rdos*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 sparc-*-sunos4*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-aix*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-beos*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-chorusos)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-dragonfly*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-freebsd*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-lynxos*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-netbsd*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-netware*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-tpf*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-uclinux*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 *-*-vxworks*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 esac
3580 case "${target}" in
3581 *-*-chorusos)
3583 powerpc-*-darwin*)
3584 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3585 noconfigdirs="$noconfigdirs sim target-rda"
3587 i[3456789]86-*-darwin*)
3588 noconfigdirs="$noconfigdirs ld gprof"
3589 noconfigdirs="$noconfigdirs sim target-rda"
3591 x86_64-*-darwin[912]*)
3592 noconfigdirs="$noconfigdirs ld gas gprof"
3593 noconfigdirs="$noconfigdirs sim target-rda"
3595 *-*-darwin*)
3596 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3597 noconfigdirs="$noconfigdirs sim target-rda"
3599 *-*-dragonfly*)
3601 *-*-freebsd*)
3602 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3603 && test -f /usr/local/include/gmp.h; then
3604 with_gmp=/usr/local
3607 *-*-kaos*)
3608 # Remove unsupported stuff on all kaOS configurations.
3609 noconfigdirs="$noconfigdirs target-libgloss"
3611 *-*-netbsd*)
3613 *-*-netware*)
3615 *-*-rtems*)
3616 noconfigdirs="$noconfigdirs target-libgloss"
3618 # The tpf target doesn't support gdb yet.
3619 *-*-tpf*)
3620 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3622 *-*-uclinux*)
3623 noconfigdirs="$noconfigdirs target-rda"
3625 *-*-vxworks*)
3627 alpha*-dec-osf*)
3628 # ld works, but does not support shared libraries.
3629 # gas doesn't generate exception information.
3630 noconfigdirs="$noconfigdirs gas ld"
3632 alpha*-*-*vms*)
3633 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3635 alpha*-*-*)
3636 # newlib is not 64 bit ready
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3640 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3642 arc-*-*|arceb-*-*)
3643 noconfigdirs="$noconfigdirs target-libgloss"
3645 arm-*-pe*)
3646 noconfigdirs="$noconfigdirs target-libgloss"
3648 arm-*-riscix*)
3649 noconfigdirs="$noconfigdirs ld target-libgloss"
3651 avr-*-rtems*)
3653 avr-*-*)
3654 if test x${with_avrlibc} != xno; then
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 c4x-*-* | tic4x-*-*)
3659 noconfigdirs="$noconfigdirs target-libgloss"
3661 tic54x-*-*)
3662 noconfigdirs="$noconfigdirs target-libgloss gdb"
3664 d10v-*-*)
3665 noconfigdirs="$noconfigdirs target-libgloss"
3667 d30v-*-*)
3668 noconfigdirs="$noconfigdirs gdb"
3670 fr30-*-elf*)
3671 noconfigdirs="$noconfigdirs gdb"
3673 moxie-*-*)
3674 noconfigdirs="$noconfigdirs gprof"
3676 h8300*-*-*)
3677 noconfigdirs="$noconfigdirs target-libgloss"
3679 h8500-*-*)
3680 noconfigdirs="$noconfigdirs target-libgloss"
3682 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3684 hppa*64*-*-linux*)
3686 hppa*-*-linux*)
3688 hppa*-*-*elf* | \
3689 hppa*-*-lites* | \
3690 hppa*-*-openbsd* | \
3691 hppa*64*-*-*)
3693 hppa*-hp-hpux11*)
3694 noconfigdirs="$noconfigdirs ld"
3696 hppa*-*-pro*)
3698 hppa*-*-*)
3699 noconfigdirs="$noconfigdirs ld"
3701 i960-*-*)
3702 noconfigdirs="$noconfigdirs gdb"
3704 ia64*-*-elf*)
3705 # No gdb support yet.
3706 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3708 ia64*-**-hpux*)
3709 # No ld support yet.
3710 noconfigdirs="$noconfigdirs libgui itcl ld"
3712 ia64*-*-*vms*)
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
3716 i[3456789]86-w64-mingw*)
3718 i[3456789]86-*-mingw*)
3719 target_configdirs="$target_configdirs target-winsup"
3721 *-*-cygwin*)
3722 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 # always build newlib if winsup directory is present.
3725 if test -d "$srcdir/winsup/cygwin"; then
3726 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3727 elif test -d "$srcdir/newlib"; then
3728 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3731 i[3456789]86-*-pe)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3734 i[3456789]86-*-sco3.2v5*)
3735 # The linker does not yet know about weak symbols in COFF,
3736 # and is not configured to handle mixed ELF and COFF.
3737 noconfigdirs="$noconfigdirs ld target-libgloss"
3739 i[3456789]86-*-sco*)
3740 noconfigdirs="$noconfigdirs gprof target-libgloss"
3742 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3745 i[3456789]86-*-sysv4*)
3746 noconfigdirs="$noconfigdirs target-libgloss"
3748 i[3456789]86-*-beos*)
3749 noconfigdirs="$noconfigdirs gdb"
3751 i[3456789]86-*-rdos*)
3752 noconfigdirs="$noconfigdirs gdb"
3754 mmix-*-*)
3755 noconfigdirs="$noconfigdirs gdb"
3757 mt-*-*)
3758 noconfigdirs="$noconfigdirs sim"
3760 powerpc-*-aix*)
3761 # copied from rs6000-*-* entry
3762 noconfigdirs="$noconfigdirs gprof"
3764 powerpc*-*-winnt* | powerpc*-*-pe*)
3765 target_configdirs="$target_configdirs target-winsup"
3766 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3767 # always build newlib.
3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3770 # This is temporary until we can link against shared libraries
3771 powerpcle-*-solaris*)
3772 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3774 powerpc-*-beos*)
3775 noconfigdirs="$noconfigdirs gdb"
3777 rs6000-*-lynxos*)
3778 noconfigdirs="$noconfigdirs gprof"
3780 rs6000-*-aix*)
3781 noconfigdirs="$noconfigdirs gprof"
3783 rs6000-*-*)
3784 noconfigdirs="$noconfigdirs gprof"
3786 m68k-apollo-*)
3787 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3789 microblaze*)
3790 noconfigdirs="$noconfigdirs gprof"
3792 mips*-sde-elf* | mips*-mti-elf*)
3793 if test x$with_newlib = xyes; then
3794 noconfigdirs="$noconfigdirs gprof"
3797 mips*-*-irix5*)
3798 noconfigdirs="$noconfigdirs gprof target-libgloss"
3800 mips*-*-irix6*)
3801 noconfigdirs="$noconfigdirs gprof target-libgloss"
3803 mips*-*-bsd*)
3804 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3806 mips*-*-linux*)
3808 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3809 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3810 noconfigdirs="$noconfigdirs ld gas gprof"
3812 mips*-*-*)
3813 noconfigdirs="$noconfigdirs gprof"
3815 sh-*-* | sh64-*-*)
3816 case "${target}" in
3817 sh*-*-elf)
3820 noconfigdirs="$noconfigdirs target-libgloss" ;;
3821 esac
3823 sparc-*-sunos4*)
3824 if test x${is_cross_compiler} = xno ; then
3825 use_gnu_ld=no
3828 tic6x-*-*)
3829 noconfigdirs="$noconfigdirs sim"
3831 tilepro*-*-* | tilegx*-*-*)
3832 noconfigdirs="$noconfigdirs sim"
3834 v810-*-*)
3835 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3837 vax-*-*)
3838 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 esac
3842 # If we aren't building newlib, then don't build libgloss, since libgloss
3843 # depends upon some newlib header files.
3844 case "${noconfigdirs}" in
3845 *target-libgloss*) ;;
3846 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3847 esac
3849 # Work in distributions that contain no compiler tools, like Autoconf.
3850 host_makefile_frag=/dev/null
3851 if test -d ${srcdir}/config ; then
3852 case "${host}" in
3853 i[3456789]86-*-msdosdjgpp*)
3854 host_makefile_frag="config/mh-djgpp"
3856 *-cygwin*)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3859 $as_echo_n "checking to see if cat works as expected... " >&6; }
3860 echo a >cygwin-cat-check
3861 if test `cat cygwin-cat-check` = a ; then
3862 rm cygwin-cat-check
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3864 $as_echo "yes" >&6; }
3865 else
3866 rm cygwin-cat-check
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 as_fn_error "The cat command does not ignore carriage return characters.
3870 Please either mount the build directory in binary mode or run the following
3871 commands before running any configure script:
3872 set -o igncr
3873 export SHELLOPTS
3874 " "$LINENO" 5
3877 host_makefile_frag="config/mh-cygwin"
3879 *-mingw*)
3880 host_makefile_frag="config/mh-mingw"
3882 alpha*-*-linux*)
3883 host_makefile_frag="config/mh-alpha-linux"
3885 hppa*-hp-hpux10*)
3886 host_makefile_frag="config/mh-pa-hpux10"
3888 hppa*-hp-hpux*)
3889 host_makefile_frag="config/mh-pa"
3891 hppa*-*)
3892 host_makefile_frag="config/mh-pa"
3894 *-*-darwin*)
3895 host_makefile_frag="config/mh-darwin"
3897 powerpc-*-aix*)
3898 host_makefile_frag="config/mh-ppc-aix"
3900 rs6000-*-aix*)
3901 host_makefile_frag="config/mh-ppc-aix"
3903 esac
3906 if test "${build}" != "${host}" ; then
3907 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3908 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3909 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3910 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3911 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3912 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3913 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3914 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3915 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3916 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3917 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3918 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3919 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3920 else
3921 AR_FOR_BUILD="\$(AR)"
3922 AS_FOR_BUILD="\$(AS)"
3923 CC_FOR_BUILD="\$(CC)"
3924 CXX_FOR_BUILD="\$(CXX)"
3925 GCJ_FOR_BUILD="\$(GCJ)"
3926 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3927 GOC_FOR_BUILD="\$(GOC)"
3928 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3929 LD_FOR_BUILD="\$(LD)"
3930 NM_FOR_BUILD="\$(NM)"
3931 RANLIB_FOR_BUILD="\$(RANLIB)"
3932 WINDRES_FOR_BUILD="\$(WINDRES)"
3933 WINDMC_FOR_BUILD="\$(WINDMC)"
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3963 done
3964 done
3965 IFS=$as_save_IFS
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$ac_cv_prog_CC"; then
3981 ac_ct_CC=$CC
3982 # Extract the first word of "gcc", so it can be a program name with args.
3983 set dummy gcc; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_ac_ct_CC="gcc"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4003 done
4004 done
4005 IFS=$as_save_IFS
4009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4010 if test -n "$ac_ct_CC"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4012 $as_echo "$ac_ct_CC" >&6; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4026 esac
4027 CC=$ac_ct_CC
4029 else
4030 CC="$ac_cv_prog_CC"
4033 if test -z "$CC"; then
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}cc; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_CC="${ac_tool_prefix}cc"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4074 if test -z "$CC"; then
4075 # Extract the first word of "cc", so it can be a program name with args.
4076 set dummy cc; ac_word=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 ac_prog_rejected=no
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4094 ac_prog_rejected=yes
4095 continue
4097 ac_cv_prog_CC="cc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4105 if test $ac_prog_rejected = yes; then
4106 # We found a bogon in the path, so make sure we never use it.
4107 set dummy $ac_cv_prog_CC
4108 shift
4109 if test $# != 0; then
4110 # We chose a different compiler from the bogus one.
4111 # However, it has the same basename, so the bogon will be chosen
4112 # first if we set CC to just the basename; use the full file name.
4113 shift
4114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 $as_echo "$CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4130 if test -z "$CC"; then
4131 if test -n "$ac_tool_prefix"; then
4132 for ac_prog in cl.exe
4134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if test "${ac_cv_prog_CC+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4157 IFS=$as_save_IFS
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4171 test -n "$CC" && break
4172 done
4174 if test -z "$CC"; then
4175 ac_ct_CC=$CC
4176 for ac_prog in cl.exe
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 ac_cv_prog_ac_ct_CC="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$ac_ct_CC" && break
4216 done
4218 if test "x$ac_ct_CC" = x; then
4219 CC=""
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222 yes:)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 CC=$ac_ct_CC
4234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error "no acceptable C compiler found in \$PATH
4237 See \`config.log' for more details." "$LINENO" 5; }
4239 # Provide some information about the compiler.
4240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4241 set X $ac_compile
4242 ac_compiler=$2
4243 for ac_option in --version -v -V -qversion; do
4244 { { ac_try="$ac_compiler $ac_option >&5"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4252 ac_status=$?
4253 if test -s conftest.err; then
4254 sed '10a\
4255 ... rest of stderr output deleted ...
4256 10q' conftest.err >conftest.er1
4257 cat conftest.er1 >&5
4258 rm -f conftest.er1 conftest.err
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262 done
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4268 main ()
4272 return 0;
4274 _ACEOF
4275 ac_clean_files_save=$ac_clean_files
4276 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4277 # Try to create an executable without -o first, disregard a.out.
4278 # It will help us diagnose broken compilers, and finding out an intuition
4279 # of exeext.
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4281 $as_echo_n "checking for C compiler default output file name... " >&6; }
4282 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4284 # The possible output files:
4285 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4287 ac_rmfiles=
4288 for ac_file in $ac_files
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4293 esac
4294 done
4295 rm -f $ac_rmfiles
4297 if { { ac_try="$ac_link_default"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_link_default") 2>&5
4305 ac_status=$?
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }; then :
4308 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4309 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4310 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4311 # so that the user can short-circuit this test for compilers unknown to
4312 # Autoconf.
4313 for ac_file in $ac_files ''
4315 test -f "$ac_file" || continue
4316 case $ac_file in
4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4319 [ab].out )
4320 # We found the default executable, but exeext='' is most
4321 # certainly right.
4322 break;;
4323 *.* )
4324 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4325 then :; else
4326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4328 # We set ac_cv_exeext here because the later test for it is not
4329 # safe: cross compilers may not add the suffix if given an `-o'
4330 # argument, so we may need to know it at that point already.
4331 # Even if this section looks crufty: it has the advantage of
4332 # actually working.
4333 break;;
4335 break;;
4336 esac
4337 done
4338 test "$ac_cv_exeext" = no && ac_cv_exeext=
4340 else
4341 ac_file=''
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4344 $as_echo "$ac_file" >&6; }
4345 if test -z "$ac_file"; then :
4346 $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4351 { as_fn_set_status 77
4352 as_fn_error "C compiler cannot create executables
4353 See \`config.log' for more details." "$LINENO" 5; }; }
4355 ac_exeext=$ac_cv_exeext
4357 # Check that the compiler produces executables we can run. If not, either
4358 # the compiler is broken, or we cross compile.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4360 $as_echo_n "checking whether the C compiler works... " >&6; }
4361 # If not cross compiling, check that we can run a simple program.
4362 if test "$cross_compiling" != yes; then
4363 if { ac_try='./$ac_file'
4364 { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; }; }; then
4374 cross_compiling=no
4375 else
4376 if test "$cross_compiling" = maybe; then
4377 cross_compiling=yes
4378 else
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 as_fn_error "cannot run C compiled programs.
4382 If you meant to cross compile, use \`--host'.
4383 See \`config.log' for more details." "$LINENO" 5; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388 $as_echo "yes" >&6; }
4390 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4391 ac_clean_files=$ac_clean_files_save
4392 # Check that the compiler produces executables we can run. If not, either
4393 # the compiler is broken, or we cross compile.
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4395 $as_echo_n "checking whether we are cross compiling... " >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397 $as_echo "$cross_compiling" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4400 $as_echo_n "checking for suffix of executables... " >&6; }
4401 if { { ac_try="$ac_link"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link") 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4414 # work properly (i.e., refer to `conftest.exe'), while it won't with
4415 # `rm'.
4416 for ac_file in conftest.exe conftest conftest.*; do
4417 test -f "$ac_file" || continue
4418 case $ac_file in
4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4421 break;;
4422 * ) break;;
4423 esac
4424 done
4425 else
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error "cannot compute suffix of executables: cannot compile and link
4429 See \`config.log' for more details." "$LINENO" 5; }
4431 rm -f conftest$ac_cv_exeext
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4433 $as_echo "$ac_cv_exeext" >&6; }
4435 rm -f conftest.$ac_ext
4436 EXEEXT=$ac_cv_exeext
4437 ac_exeext=$EXEEXT
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4439 $as_echo_n "checking for suffix of object files... " >&6; }
4440 if test "${ac_cv_objext+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4447 main ()
4451 return 0;
4453 _ACEOF
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 for ac_file in conftest.o conftest.obj conftest.*; do
4467 test -f "$ac_file" || continue;
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4471 break;;
4472 esac
4473 done
4474 else
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error "cannot compute suffix of object files: cannot compile
4481 See \`config.log' for more details." "$LINENO" 5; }
4483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486 $as_echo "$ac_cv_objext" >&6; }
4487 OBJEXT=$ac_cv_objext
4488 ac_objext=$OBJEXT
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4498 main ()
4500 #ifndef __GNUC__
4501 choke me
4502 #endif
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_compiler_gnu=yes
4510 else
4511 ac_compiler_gnu=no
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4519 if test $ac_compiler_gnu = yes; then
4520 GCC=yes
4521 else
4522 GCC=
4524 ac_test_CFLAGS=${CFLAGS+set}
4525 ac_save_CFLAGS=$CFLAGS
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4528 if test "${ac_cv_prog_cc_g+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 ac_save_c_werror_flag=$ac_c_werror_flag
4532 ac_c_werror_flag=yes
4533 ac_cv_prog_cc_g=no
4534 CFLAGS="-g"
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_prog_cc_g=yes
4548 else
4549 CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4554 main ()
4558 return 0;
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4563 else
4564 ac_c_werror_flag=$ac_save_c_werror_flag
4565 CFLAGS="-g"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4570 main ()
4574 return 0;
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_prog_cc_g=yes
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_c_werror_flag=$ac_save_c_werror_flag
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4588 $as_echo "$ac_cv_prog_cc_g" >&6; }
4589 if test "$ac_test_CFLAGS" = set; then
4590 CFLAGS=$ac_save_CFLAGS
4591 elif test $ac_cv_prog_cc_g = yes; then
4592 if test "$GCC" = yes; then
4593 CFLAGS="-g -O2"
4594 else
4595 CFLAGS="-g"
4597 else
4598 if test "$GCC" = yes; then
4599 CFLAGS="-O2"
4600 else
4601 CFLAGS=
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4605 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4606 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 ac_cv_prog_cc_c89=no
4610 ac_save_CC=$CC
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdarg.h>
4614 #include <stdio.h>
4615 #include <sys/types.h>
4616 #include <sys/stat.h>
4617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4618 struct buf { int x; };
4619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4620 static char *e (p, i)
4621 char **p;
4622 int i;
4624 return p[i];
4626 static char *f (char * (*g) (char **, int), char **p, ...)
4628 char *s;
4629 va_list v;
4630 va_start (v,p);
4631 s = g (p, va_arg (v,int));
4632 va_end (v);
4633 return s;
4636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4637 function prototypes and stuff, but not '\xHH' hex character constants.
4638 These don't provoke an error unfortunately, instead are silently treated
4639 as 'x'. The following induces an error, until -std is added to get
4640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4641 array size at least. It's necessary to write '\x00'==0 to get something
4642 that's true only with -std. */
4643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4646 inside strings and character constants. */
4647 #define FOO(x) 'x'
4648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4650 int test (int i, double x);
4651 struct s1 {int (*f) (int a);};
4652 struct s2 {int (*f) (double a);};
4653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654 int argc;
4655 char **argv;
4657 main ()
4659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 return 0;
4663 _ACEOF
4664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4667 CC="$ac_save_CC $ac_arg"
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_prog_cc_c89=$ac_arg
4671 rm -f core conftest.err conftest.$ac_objext
4672 test "x$ac_cv_prog_cc_c89" != "xno" && break
4673 done
4674 rm -f conftest.$ac_ext
4675 CC=$ac_save_CC
4678 # AC_CACHE_VAL
4679 case "x$ac_cv_prog_cc_c89" in
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4682 $as_echo "none needed" >&6; } ;;
4683 xno)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685 $as_echo "unsupported" >&6; } ;;
4687 CC="$CC $ac_cv_prog_cc_c89"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4689 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4690 esac
4691 if test "x$ac_cv_prog_cc_c89" != xno; then :
4695 ac_ext=c
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 ac_ext=cpp
4702 ac_cpp='$CXXCPP $CPPFLAGS'
4703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4706 if test -z "$CXX"; then
4707 if test -n "$CCC"; then
4708 CXX=$CCC
4709 else
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CXX+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$CXX"; then
4721 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 CXX=$ac_cv_prog_CXX
4741 if test -n "$CXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4743 $as_echo "$CXX" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4750 test -n "$CXX" && break
4751 done
4753 if test -z "$CXX"; then
4754 ac_ct_CXX=$CXX
4755 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$ac_ct_CXX"; then
4765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_ac_ct_CXX="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4785 if test -n "$ac_ct_CXX"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4787 $as_echo "$ac_ct_CXX" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4794 test -n "$ac_ct_CXX" && break
4795 done
4797 if test "x$ac_ct_CXX" = x; then
4798 CXX="g++"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 CXX=$ac_ct_CXX
4812 # Provide some information about the compiler.
4813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4814 set X $ac_compile
4815 ac_compiler=$2
4816 for ac_option in --version -v -V -qversion; do
4817 { { ac_try="$ac_compiler $ac_option >&5"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4823 $as_echo "$ac_try_echo"; } >&5
4824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4825 ac_status=$?
4826 if test -s conftest.err; then
4827 sed '10a\
4828 ... rest of stderr output deleted ...
4829 10q' conftest.err >conftest.er1
4830 cat conftest.er1 >&5
4831 rm -f conftest.er1 conftest.err
4833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4834 test $ac_status = 0; }
4835 done
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4838 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4846 main ()
4848 #ifndef __GNUC__
4849 choke me
4850 #endif
4853 return 0;
4855 _ACEOF
4856 if ac_fn_cxx_try_compile "$LINENO"; then :
4857 ac_compiler_gnu=yes
4858 else
4859 ac_compiler_gnu=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4866 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4867 if test $ac_compiler_gnu = yes; then
4868 GXX=yes
4869 else
4870 GXX=
4872 ac_test_CXXFLAGS=${CXXFLAGS+set}
4873 ac_save_CXXFLAGS=$CXXFLAGS
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4875 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4876 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4880 ac_cxx_werror_flag=yes
4881 ac_cv_prog_cxx_g=no
4882 CXXFLAGS="-g"
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4887 main ()
4891 return 0;
4893 _ACEOF
4894 if ac_fn_cxx_try_compile "$LINENO"; then :
4895 ac_cv_prog_cxx_g=yes
4896 else
4897 CXXFLAGS=""
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4902 main ()
4906 return 0;
4908 _ACEOF
4909 if ac_fn_cxx_try_compile "$LINENO"; then :
4911 else
4912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4913 CXXFLAGS="-g"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4918 main ()
4922 return 0;
4924 _ACEOF
4925 if ac_fn_cxx_try_compile "$LINENO"; then :
4926 ac_cv_prog_cxx_g=yes
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4936 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4937 if test "$ac_test_CXXFLAGS" = set; then
4938 CXXFLAGS=$ac_save_CXXFLAGS
4939 elif test $ac_cv_prog_cxx_g = yes; then
4940 if test "$GXX" = yes; then
4941 CXXFLAGS="-g -O2"
4942 else
4943 CXXFLAGS="-g"
4945 else
4946 if test "$GXX" = yes; then
4947 CXXFLAGS="-O2"
4948 else
4949 CXXFLAGS=
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 # We must set the default linker to the linker used by gcc for the correct
4960 # operation of libtool. If LD is not defined and we are using gcc, try to
4961 # set the LD default to the ld used by gcc.
4962 if test -z "$LD"; then
4963 if test "$GCC" = yes; then
4964 case $build in
4965 *-*-mingw*)
4966 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4968 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4969 esac
4970 case $gcc_prog_ld in
4971 # Accept absolute paths.
4972 [\\/]* | [A-Za-z]:[\\/]*)
4973 LD="$gcc_prog_ld" ;;
4974 esac
4978 # Check whether -static-libstdc++ -static-libgcc is supported.
4979 have_static_libs=no
4980 if test "$GCC" = yes; then
4981 saved_LDFLAGS="$LDFLAGS"
4983 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4985 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4986 ac_ext=cpp
4987 ac_cpp='$CXXCPP $CPPFLAGS'
4988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4997 #error -static-libstdc++ not implemented
4998 #endif
4999 int main() {}
5000 _ACEOF
5001 if ac_fn_cxx_try_link "$LINENO"; then :
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003 $as_echo "yes" >&6; }; have_static_libs=yes
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 LDFLAGS="$saved_LDFLAGS"
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$GNATBIND"; then
5032 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5045 done
5046 done
5047 IFS=$as_save_IFS
5051 GNATBIND=$ac_cv_prog_GNATBIND
5052 if test -n "$GNATBIND"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5054 $as_echo "$GNATBIND" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5062 if test -z "$ac_cv_prog_GNATBIND"; then
5063 ac_ct_GNATBIND=$GNATBIND
5064 # Extract the first word of "gnatbind", so it can be a program name with args.
5065 set dummy gnatbind; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$ac_ct_GNATBIND"; then
5072 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5092 if test -n "$ac_ct_GNATBIND"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5094 $as_echo "$ac_ct_GNATBIND" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5100 if test "x$ac_ct_GNATBIND" = x; then
5101 GNATBIND="no"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109 GNATBIND=$ac_ct_GNATBIND
5111 else
5112 GNATBIND="$ac_cv_prog_GNATBIND"
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$GNATMAKE"; then
5124 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5139 IFS=$as_save_IFS
5143 GNATMAKE=$ac_cv_prog_GNATMAKE
5144 if test -n "$GNATMAKE"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5146 $as_echo "$GNATMAKE" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5154 if test -z "$ac_cv_prog_GNATMAKE"; then
5155 ac_ct_GNATMAKE=$GNATMAKE
5156 # Extract the first word of "gnatmake", so it can be a program name with args.
5157 set dummy gnatmake; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ac_ct_GNATMAKE"; then
5164 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5184 if test -n "$ac_ct_GNATMAKE"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5186 $as_echo "$ac_ct_GNATMAKE" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5192 if test "x$ac_ct_GNATMAKE" = x; then
5193 GNATMAKE="no"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 GNATMAKE=$ac_ct_GNATMAKE
5203 else
5204 GNATMAKE="$ac_cv_prog_GNATMAKE"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5208 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5209 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat >conftest.adb <<EOF
5213 procedure conftest is begin null; end conftest;
5215 acx_cv_cc_gcc_supports_ada=no
5216 # There is a bug in old released versions of GCC which causes the
5217 # driver to exit successfully when the appropriate language module
5218 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5219 # Therefore we must check for the error message as well as an
5220 # unsuccessful exit.
5221 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5222 # given a .adb file, but produce no object file. So we must check
5223 # if an object file was really produced to guard against this.
5224 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5225 if test x"$errors" = x && test -f conftest.$ac_objext; then
5226 acx_cv_cc_gcc_supports_ada=yes
5228 rm -f conftest.*
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5231 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5233 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5234 have_gnat=yes
5235 else
5236 have_gnat=no
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5240 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5241 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 echo abfoo >t1
5245 echo cdfoo >t2
5246 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5247 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5248 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5250 else
5251 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5254 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5255 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5257 else
5258 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5261 rm t1 t2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5265 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5266 do_compare="$gcc_cv_prog_cmp_skip"
5270 # Check whether --enable-bootstrap was given.
5271 if test "${enable_bootstrap+set}" = set; then :
5272 enableval=$enable_bootstrap;
5273 else
5274 enable_bootstrap=default
5278 # Issue errors and warnings for invalid/strange bootstrap combinations.
5279 if test -r $srcdir/gcc/configure; then
5280 have_compiler=yes
5281 else
5282 have_compiler=no
5285 case "$have_compiler:$host:$target:$enable_bootstrap" in
5286 *:*:*:no) ;;
5288 # Default behavior. Enable bootstrap if we have a compiler
5289 # and we are in a native configuration.
5290 yes:$build:$build:default)
5291 enable_bootstrap=yes ;;
5293 *:*:*:default)
5294 enable_bootstrap=no ;;
5296 # We have a compiler and we are in a native configuration, bootstrap is ok
5297 yes:$build:$build:yes)
5300 # Other configurations, but we have a compiler. Assume the user knows
5301 # what he's doing.
5302 yes:*:*:yes)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5304 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5307 # No compiler: if they passed --enable-bootstrap explicitly, fail
5308 no:*:*:yes)
5309 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5311 # Fail if wrong command line
5313 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5315 esac
5317 # Used for setting $lt_cv_objdir
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5319 $as_echo_n "checking for objdir... " >&6; }
5320 if test "${lt_cv_objdir+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 rm -f .libs 2>/dev/null
5324 mkdir .libs 2>/dev/null
5325 if test -d .libs; then
5326 lt_cv_objdir=.libs
5327 else
5328 # MS-DOS does not allow filenames that begin with a dot.
5329 lt_cv_objdir=_libs
5331 rmdir .libs 2>/dev/null
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5334 $as_echo "$lt_cv_objdir" >&6; }
5335 objdir=$lt_cv_objdir
5341 cat >>confdefs.h <<_ACEOF
5342 #define LT_OBJDIR "$lt_cv_objdir/"
5343 _ACEOF
5347 # Check for GMP, MPFR and MPC
5348 gmplibs="-lmpc -lmpfr -lgmp"
5349 gmpinc=
5350 have_gmp=no
5352 # Specify a location for mpc
5353 # check for this first so it ends up on the link line before mpfr.
5355 # Check whether --with-mpc was given.
5356 if test "${with_mpc+set}" = set; then :
5357 withval=$with_mpc;
5361 # Check whether --with-mpc-include was given.
5362 if test "${with_mpc_include+set}" = set; then :
5363 withval=$with_mpc_include;
5367 # Check whether --with-mpc-lib was given.
5368 if test "${with_mpc_lib+set}" = set; then :
5369 withval=$with_mpc_lib;
5373 if test "x$with_mpc" != x; then
5374 gmplibs="-L$with_mpc/lib $gmplibs"
5375 gmpinc="-I$with_mpc/include $gmpinc"
5377 if test "x$with_mpc_include" != x; then
5378 gmpinc="-I$with_mpc_include $gmpinc"
5380 if test "x$with_mpc_lib" != x; then
5381 gmplibs="-L$with_mpc_lib $gmplibs"
5383 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5385 gmpinc='-I$$s/mpc/src '"$gmpinc"
5386 # Do not test the mpc version. Assume that it is sufficient, since
5387 # it is in the source tree, and the library has not been built yet
5388 # but it would be included on the link line in the version check below
5389 # hence making the test fail.
5390 have_gmp=yes
5393 # Specify a location for mpfr
5394 # check for this first so it ends up on the link line before gmp.
5396 # Check whether --with-mpfr-dir was given.
5397 if test "${with_mpfr_dir+set}" = set; then :
5398 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5399 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5404 # Check whether --with-mpfr was given.
5405 if test "${with_mpfr+set}" = set; then :
5406 withval=$with_mpfr;
5410 # Check whether --with-mpfr-include was given.
5411 if test "${with_mpfr_include+set}" = set; then :
5412 withval=$with_mpfr_include;
5416 # Check whether --with-mpfr-lib was given.
5417 if test "${with_mpfr_lib+set}" = set; then :
5418 withval=$with_mpfr_lib;
5422 if test "x$with_mpfr" != x; then
5423 gmplibs="-L$with_mpfr/lib $gmplibs"
5424 gmpinc="-I$with_mpfr/include $gmpinc"
5426 if test "x$with_mpfr_include" != x; then
5427 gmpinc="-I$with_mpfr_include $gmpinc"
5429 if test "x$with_mpfr_lib" != x; then
5430 gmplibs="-L$with_mpfr_lib $gmplibs"
5432 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5433 # MPFR v3.1.0 moved the sources into a src sub-directory.
5434 if test -d ${srcdir}/mpfr/src; then
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5438 else
5439 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5440 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5441 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5443 # Do not test the mpfr version. Assume that it is sufficient, since
5444 # it is in the source tree, and the library has not been built yet
5445 # but it would be included on the link line in the version check below
5446 # hence making the test fail.
5447 have_gmp=yes
5450 # Specify a location for gmp
5452 # Check whether --with-gmp-dir was given.
5453 if test "${with_gmp_dir+set}" = set; then :
5454 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5455 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5460 # Check whether --with-gmp was given.
5461 if test "${with_gmp+set}" = set; then :
5462 withval=$with_gmp;
5466 # Check whether --with-gmp-include was given.
5467 if test "${with_gmp_include+set}" = set; then :
5468 withval=$with_gmp_include;
5472 # Check whether --with-gmp-lib was given.
5473 if test "${with_gmp_lib+set}" = set; then :
5474 withval=$with_gmp_lib;
5479 if test "x$with_gmp" != x; then
5480 gmplibs="-L$with_gmp/lib $gmplibs"
5481 gmpinc="-I$with_gmp/include $gmpinc"
5483 if test "x$with_gmp_include" != x; then
5484 gmpinc="-I$with_gmp_include $gmpinc"
5486 if test "x$with_gmp_lib" != x; then
5487 gmplibs="-L$with_gmp_lib $gmplibs"
5489 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5490 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5491 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5492 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5493 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5494 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5495 # Do not test the gmp version. Assume that it is sufficient, since
5496 # it is in the source tree, and the library has not been built yet
5497 # but it would be included on the link line in the version check below
5498 # hence making the test fail.
5499 have_gmp=yes
5502 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5503 have_gmp=yes
5504 saved_CFLAGS="$CFLAGS"
5505 CFLAGS="$CFLAGS $gmpinc"
5506 # Check for the recommended and required versions of GMP.
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5508 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include "gmp.h"
5514 main ()
5517 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5518 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5519 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5520 choke me
5521 #endif
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <gmp.h>
5532 main ()
5535 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5536 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5537 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5538 choke me
5539 #endif
5542 return 0;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5550 $as_echo "buggy but acceptable" >&6; }
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }; have_gmp=no
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 # If we have GMP, check the MPFR version.
5560 if test x"$have_gmp" = xyes; then
5561 # Check for the recommended and required versions of MPFR.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5563 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <gmp.h>
5567 #include <mpfr.h>
5569 main ()
5572 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5573 choke me
5574 #endif
5577 return 0;
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <gmp.h>
5584 #include <mpfr.h>
5586 main ()
5589 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5590 choke me
5591 #endif
5594 return 0;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599 $as_echo "yes" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602 $as_echo "buggy but acceptable" >&6; }
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }; have_gmp=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 # Check for the MPC header version.
5613 if test x"$have_gmp" = xyes ; then
5614 # Check for the recommended and required versions of MPC.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5616 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <mpc.h>
5621 main ()
5624 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5625 choke me
5626 #endif
5629 return 0;
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <mpc.h>
5637 main ()
5640 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5641 choke me
5642 #endif
5645 return 0;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653 $as_echo "buggy but acceptable" >&6; }
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }; have_gmp=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 # Now check the MPFR library.
5664 if test x"$have_gmp" = xyes; then
5665 saved_LIBS="$LIBS"
5666 LIBS="$LIBS $gmplibs"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5668 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <mpc.h>
5673 main ()
5676 mpfr_t n;
5677 mpfr_t x;
5678 mpc_t c;
5679 int t;
5680 mpfr_init (n);
5681 mpfr_init (x);
5682 mpfr_atan2 (n, n, x, GMP_RNDN);
5683 mpfr_erfc (n, x, GMP_RNDN);
5684 mpfr_subnormalize (x, t, GMP_RNDN);
5685 mpfr_clear(n);
5686 mpfr_clear(x);
5687 mpc_init2 (c, 53);
5688 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5689 mpc_cosh (c, c, MPC_RNDNN);
5690 mpc_pow (c, c, c, MPC_RNDNN);
5691 mpc_acosh (c, c, MPC_RNDNN);
5692 mpc_clear (c);
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }; have_gmp=no
5705 rm -f core conftest.err conftest.$ac_objext \
5706 conftest$ac_exeext conftest.$ac_ext
5707 LIBS="$saved_LIBS"
5710 CFLAGS="$saved_CFLAGS"
5712 # The library versions listed in the error message below should match
5713 # the HARD-minimums enforced above.
5714 if test x$have_gmp != xyes; then
5715 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5716 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5717 their locations. Source code for these libraries can be found at
5718 their respective hosting sites as well as at
5719 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5720 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5721 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5722 make sure that you have installed both the libraries and the header
5723 files. They may be located in separate packages." "$LINENO" 5
5727 # Flags needed for both GMP, MPFR and/or MPC.
5735 # Allow host libstdc++ to be specified for static linking with PPL.
5737 # Check whether --with-host-libstdcxx was given.
5738 if test "${with_host_libstdcxx+set}" = set; then :
5739 withval=$with_host_libstdcxx;
5743 case $with_host_libstdcxx in
5744 no|yes)
5745 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5747 esac
5749 # Libraries to use for stage1 or when not bootstrapping.
5751 # Check whether --with-stage1-libs was given.
5752 if test "${with_stage1_libs+set}" = set; then :
5753 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5754 stage1_libs=
5755 else
5756 stage1_libs=$withval
5758 else
5759 stage1_libs=$with_host_libstdcxx
5764 # Linker flags to use for stage1 or when not bootstrapping.
5766 # Check whether --with-stage1-ldflags was given.
5767 if test "${with_stage1_ldflags+set}" = set; then :
5768 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5769 stage1_ldflags=
5770 else
5771 stage1_ldflags=$withval
5773 else
5774 stage1_ldflags=
5775 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5776 # if supported. But if the user explicitly specified the libraries to use,
5777 # trust that they are doing what they want.
5778 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5779 stage1_ldflags="-static-libstdc++ -static-libgcc"
5785 # Libraries to use for stage2 and later builds. This defaults to the
5786 # argument passed to --with-host-libstdcxx.
5788 # Check whether --with-boot-libs was given.
5789 if test "${with_boot_libs+set}" = set; then :
5790 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5791 poststage1_libs=
5792 else
5793 poststage1_libs=$withval
5795 else
5796 poststage1_libs=$with_host_libstdcxx
5801 # Linker flags to use for stage2 and later builds.
5803 # Check whether --with-boot-ldflags was given.
5804 if test "${with_boot_ldflags+set}" = set; then :
5805 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5806 poststage1_ldflags=
5807 else
5808 poststage1_ldflags=$withval
5810 else
5811 poststage1_ldflags=
5812 # In stages 2 and 3, default to linking libstdc++ and libgcc
5813 # statically. But if the user explicitly specified the libraries to
5814 # use, trust that they are doing what they want.
5815 if test "$poststage1_libs" = ""; then
5816 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5822 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5823 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5824 # config/isl.m4
5827 # Check whether --with-cloog was given.
5828 if test "${with_cloog+set}" = set; then :
5829 withval=$with_cloog;
5833 # Check whether --with-isl was given.
5834 if test "${with_isl+set}" = set; then :
5835 withval=$with_isl;
5839 # Treat --without-isl as a request to disable
5840 # GRAPHITE support and skip all following checks.
5841 if test "x$with_isl" != "xno"; then
5842 # Check for ISL
5845 # Check whether --with-isl-include was given.
5846 if test "${with_isl_include+set}" = set; then :
5847 withval=$with_isl_include;
5851 # Check whether --with-isl-lib was given.
5852 if test "${with_isl_lib+set}" = set; then :
5853 withval=$with_isl_lib;
5857 # Check whether --enable-isl-version-check was given.
5858 if test "${enable_isl_version_check+set}" = set; then :
5859 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5860 else
5861 ENABLE_ISL_CHECK=yes
5865 # Initialize isllibs and islinc.
5866 case $with_isl in
5868 isllibs=
5869 islinc=
5871 "" | yes)
5874 isllibs="-L$with_isl/lib"
5875 islinc="-I$with_isl/include"
5877 esac
5878 if test "x${with_isl_include}" != x ; then
5879 islinc="-I$with_isl_include"
5881 if test "x${with_isl_lib}" != x; then
5882 isllibs="-L$with_isl_lib"
5884 if test "x${islinc}" = x && test "x${isllibs}" = x \
5885 && test -d ${srcdir}/isl; then
5886 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5887 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5888 ENABLE_ISL_CHECK=no
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5890 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5893 islinc="-DCLOOG_INT_GMP ${islinc}"
5894 isllibs="${isllibs} -lisl"
5898 if test "${ENABLE_ISL_CHECK}" = yes ; then
5899 _isl_saved_CFLAGS=$CFLAGS
5900 _isl_saved_LDFLAGS=$LDFLAGS
5901 _isl_saved_LIBS=$LIBS
5903 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5904 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5905 LIBS="${_isl_saved_LIBS} -lisl"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5908 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5909 if test "$cross_compiling" = yes; then :
5910 gcc_cv_isl=yes
5911 else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <isl/version.h>
5915 #include <string.h>
5917 main ()
5919 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5920 return 1;
5923 return 0;
5925 _ACEOF
5926 if ac_fn_c_try_run "$LINENO"; then :
5927 gcc_cv_isl=yes
5928 else
5929 gcc_cv_isl=no
5931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5932 conftest.$ac_objext conftest.beam conftest.$ac_ext
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5936 $as_echo "$gcc_cv_isl" >&6; }
5938 CFLAGS=$_isl_saved_CFLAGS
5939 LDFLAGS=$_isl_saved_LDFLAGS
5940 LIBS=$_isl_saved_LIBS
5948 if test "x${with_isl}" = xno; then
5949 graphite_requested=no
5950 elif test "x${with_isl}" != x \
5951 || test "x${with_isl_include}" != x \
5952 || test "x${with_isl_lib}" != x ; then
5953 graphite_requested=yes
5954 else
5955 graphite_requested=no
5960 if test "${gcc_cv_isl}" = no ; then
5961 isllibs=
5962 islinc=
5965 if test "${graphite_requested}" = yes \
5966 && test "x${isllibs}" = x \
5967 && test "x${islinc}" = x ; then
5969 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5974 if test "x$gcc_cv_isl" != "xno"; then
5975 # Check for CLOOG
5978 # Check whether --with-cloog-include was given.
5979 if test "${with_cloog_include+set}" = set; then :
5980 withval=$with_cloog_include;
5984 # Check whether --with-cloog-lib was given.
5985 if test "${with_cloog_lib+set}" = set; then :
5986 withval=$with_cloog_lib;
5990 # Check whether --enable-cloog-version-check was given.
5991 if test "${enable_cloog_version_check+set}" = set; then :
5992 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5993 else
5994 ENABLE_CLOOG_CHECK=yes
5998 # Initialize clooglibs and clooginc.
5999 case $with_cloog in
6001 clooglibs=
6002 clooginc=
6004 "" | yes)
6007 clooglibs="-L$with_cloog/lib"
6008 clooginc="-I$with_cloog/include"
6010 esac
6011 if test "x${with_cloog_include}" != x ; then
6012 clooginc="-I$with_cloog_include"
6014 if test "x${with_cloog_lib}" != x; then
6015 clooglibs="-L$with_cloog_lib"
6017 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6018 && test -d ${srcdir}/cloog; then
6019 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6020 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
6021 ENABLE_CLOOG_CHECK=no
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6023 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6026 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6027 clooglibs="${clooglibs} -lcloog-isl"
6033 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6034 _cloog_saved_CFLAGS=$CFLAGS
6035 _cloog_saved_LDFLAGS=$LDFLAGS
6037 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6038 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6041 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include "cloog/version.h"
6046 main ()
6048 #if CLOOG_VERSION_MAJOR != 0 \
6049 || CLOOG_VERSION_MINOR != 18 \
6050 || CLOOG_VERSION_REVISION < 1
6051 choke me
6052 #endif
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 gcc_cv_cloog=yes
6059 else
6060 gcc_cv_cloog=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6064 $as_echo "$gcc_cv_cloog" >&6; }
6066 CFLAGS=$_cloog_saved_CFLAGS
6067 LDFLAGS=$_cloog_saved_LDFLAGS
6076 if test "x${with_cloog}" = xno; then
6077 graphite_requested=no
6078 elif test "x${with_cloog}" != x \
6079 || test "x${with_cloog_include}" != x \
6080 || test "x${with_cloog_lib}" != x ; then
6081 graphite_requested=yes
6082 else
6083 graphite_requested=no
6088 if test "${gcc_cv_cloog}" = no ; then
6089 clooglibs=
6090 clooginc=
6093 if test "${graphite_requested}" = yes \
6094 && test "x${clooglibs}" = x \
6095 && test "x${clooginc}" = x ; then
6097 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6104 # If the ISL check failed, disable builds of in-tree
6105 # variants of both ISL and CLooG
6106 if test "x$with_isl" = xno ||
6107 test "x$gcc_cv_isl" = xno; then
6108 noconfigdirs="$noconfigdirs cloog isl"
6109 islinc=
6110 clooginc=
6111 clooglibs=
6114 # If the CLooG check failed, disable builds of in-tree
6115 # variants of CLooG
6116 if test "x$with_cloog" = xno ||
6117 test "x$gcc_cv_cloog" = xno; then
6118 noconfigdirs="$noconfigdirs cloog isl"
6119 clooginc=
6120 clooglibs=
6128 # Check for LTO support.
6129 # Check whether --enable-lto was given.
6130 if test "${enable_lto+set}" = set; then :
6131 enableval=$enable_lto; enable_lto=$enableval
6132 else
6133 enable_lto=yes; default_enable_lto=yes
6140 target_elf=no
6141 case $target in
6142 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6143 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6144 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6145 target_elf=no
6148 target_elf=yes
6150 esac
6152 if test $target_elf = yes; then :
6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
6156 else
6157 if test x"$default_enable_lto" = x"yes" ; then
6158 case $target in
6159 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6160 # On other non-ELF platforms, LTO has yet to be validated.
6161 *) enable_lto=no ;;
6162 esac
6163 else
6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6169 case $target in
6170 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6175 esac
6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6178 # Build it unless LTO was explicitly disabled.
6179 case $target in
6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6181 *) ;;
6182 esac
6187 # Check whether --enable-linker-plugin-configure-flags was given.
6188 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6190 else
6191 extra_linker_plugin_configure_flags=
6195 # Check whether --enable-linker-plugin-flags was given.
6196 if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6198 else
6199 extra_linker_plugin_flags=
6205 # By default, C and C++ are the only stage 1 languages.
6206 stage1_languages=,c,
6208 # Target libraries that we bootstrap.
6209 bootstrap_target_libs=,target-libgcc,
6211 # Figure out what language subdirectories are present.
6212 # Look if the user specified --enable-languages="..."; if not, use
6213 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6214 # go away some day.
6215 # NB: embedded tabs in this IF block -- do not untabify
6216 if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
6220 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6221 else
6222 enable_languages=all
6224 else
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6227 then
6228 echo configure.in: --enable-languages needs at least one language argument 1>&2
6229 exit 1
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6237 *,f95,*)
6238 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6241 esac
6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6245 *,c++,*:*) ;;
6246 *:yes)
6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6249 else
6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6253 esac
6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
6267 language=
6268 lang_requires=
6269 lang_requires_boot_languages=
6270 . ${lang_frag}
6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6272 case ,${enable_languages}, in
6273 *,$other,*) ;;
6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6279 esac
6280 done
6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
6285 *,all,*) ;;
6287 case ,${enable_languages}, in
6288 *,$language,*)
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6292 esac
6294 esac
6296 done
6298 esac
6299 done
6301 new_enable_languages=,c,
6303 # If LTO is enabled, add the LTO front end.
6304 extra_host_libiberty_configure_flags=
6305 if test "$enable_lto" = "yes" ; then
6306 case ,${enable_languages}, in
6307 *,lto,*) ;;
6308 *) enable_languages="${enable_languages},lto" ;;
6309 esac
6310 if test "${build_lto_plugin}" = "yes" ; then
6311 configdirs="$configdirs lto-plugin"
6312 extra_host_libiberty_configure_flags=--enable-shared
6317 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6318 potential_languages=,c,
6320 enabled_target_libs=
6321 disabled_target_libs=
6323 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6324 case ${lang_frag} in
6325 ..) ;;
6326 # The odd quoting in the next line works around
6327 # an apparent bug in bash 1.12 on linux.
6328 ${srcdir}/gcc/[*]/config-lang.in) ;;
6330 # From the config-lang.in, get $language, $target_libs,
6331 # $lang_dirs, $boot_language, and $build_by_default
6332 language=
6333 target_libs=
6334 lang_dirs=
6335 subdir_requires=
6336 boot_language=no
6337 build_by_default=yes
6338 . ${lang_frag}
6339 if test x${language} = x; then
6340 echo "${lang_frag} doesn't set \$language." 1>&2
6341 exit 1
6344 if test "$language" = "c++"; then
6345 boot_language=yes
6348 add_this_lang=no
6349 case ,${enable_languages}, in
6350 *,${language},*)
6351 # Language was explicitly selected; include it
6352 # unless it is C, which is enabled by default.
6353 if test "$language" != "c"; then
6354 add_this_lang=yes
6357 *,all,*)
6358 # 'all' was selected, select it if it is a default language
6359 if test "$language" != "c"; then
6360 add_this_lang=${build_by_default}
6363 esac
6365 # Disable languages that need other directories if these aren't available.
6366 for i in $subdir_requires; do
6367 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6368 case ,${enable_languages}, in
6369 *,${language},*)
6370 # Specifically requested language; tell them.
6371 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6374 # Silently disable.
6375 add_this_lang=unsupported
6377 esac
6378 done
6380 # Disable Ada if no preexisting GNAT is available.
6381 case ,${enable_languages},:${language}:${have_gnat} in
6382 *,${language},*:ada:no)
6383 # Specifically requested language; tell them.
6384 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6386 *:ada:no)
6387 # Silently disable.
6388 add_this_lang=unsupported
6390 esac
6392 # Disable a language that is unsupported by the target.
6393 case " $unsupported_languages " in
6394 *" $language "*)
6395 add_this_lang=unsupported
6397 esac
6399 case $add_this_lang in
6400 unsupported)
6401 # Remove language-dependent dirs.
6402 disabled_target_libs="$disabled_target_libs $target_libs"
6403 noconfigdirs="$noconfigdirs $lang_dirs"
6406 # Remove language-dependent dirs; still show language as supported.
6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
6409 potential_languages="${potential_languages}${language},"
6411 yes)
6412 new_enable_languages="${new_enable_languages}${language},"
6413 potential_languages="${potential_languages}${language},"
6414 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6415 enabled_target_libs="$enabled_target_libs $target_libs"
6416 case "${boot_language}:,$enable_stage1_languages," in
6417 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6418 # Add to (comma-separated) list of stage 1 languages.
6419 case ",$stage1_languages," in
6420 *,$language,* | ,yes, | ,all,) ;;
6421 *) stage1_languages="${stage1_languages}${language}," ;;
6422 esac
6423 # We need to bootstrap any supporting libraries.
6424 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6426 esac
6428 esac
6430 esac
6431 done
6433 # Add target libraries which are only needed for disabled languages
6434 # to noconfigdirs.
6435 if test -n "$disabled_target_libs"; then
6436 for dir in $disabled_target_libs; do
6437 case " $enabled_target_libs " in
6438 *" ${dir} "*) ;;
6439 *) noconfigdirs="$noconfigdirs $dir" ;;
6440 esac
6441 done
6444 # Check whether --enable-stage1-languages was given.
6445 if test "${enable_stage1_languages+set}" = set; then :
6446 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6447 ,no,|,,)
6448 # Set it to something that will have no effect in the loop below
6449 enable_stage1_languages=c ;;
6450 ,yes,)
6451 enable_stage1_languages=`echo $new_enable_languages | \
6452 sed -e "s/^,//" -e "s/,$//" ` ;;
6453 *,all,*)
6454 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6455 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6456 esac
6458 # Add "good" languages from enable_stage1_languages to stage1_languages,
6459 # while "bad" languages go in missing_languages. Leave no duplicates.
6460 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6461 case $potential_languages in
6462 *,$i,*)
6463 case $stage1_languages in
6464 *,$i,*) ;;
6465 *) stage1_languages="$stage1_languages$i," ;;
6466 esac ;;
6468 case $missing_languages in
6469 *,$i,*) ;;
6470 *) missing_languages="$missing_languages$i," ;;
6471 esac ;;
6472 esac
6473 done
6477 # Remove leading/trailing commas that were added for simplicity
6478 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6479 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6480 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6481 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6483 if test "x$missing_languages" != x; then
6484 as_fn_error "
6485 The following requested languages could not be built: ${missing_languages}
6486 Supported languages are: ${potential_languages}" "$LINENO" 5
6488 if test "x$new_enable_languages" != "x$enable_languages"; then
6489 echo The following languages will be built: ${new_enable_languages}
6490 enable_languages="$new_enable_languages"
6494 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6497 # Handle --disable-<component> generically.
6498 for dir in $configdirs $build_configdirs $target_configdirs ; do
6499 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6500 varname=`echo $dirname | sed -e s/+/_/g`
6501 if eval test x\${enable_${varname}} "=" xno ; then
6502 noconfigdirs="$noconfigdirs $dir"
6504 done
6506 # Check for Boehm's garbage collector
6507 # Check whether --enable-objc-gc was given.
6508 if test "${enable_objc_gc+set}" = set; then :
6509 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6510 *,objc,*:*:yes:*target-boehm-gc*)
6511 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6513 esac
6517 # Make sure we only build Boehm's garbage collector if required.
6518 case ,${enable_languages},:${enable_objc_gc} in
6519 *,objc,*:yes)
6520 # Keep target-boehm-gc if requested for Objective-C.
6523 # Otherwise remove target-boehm-gc depending on target-libjava.
6524 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6525 noconfigdirs="$noconfigdirs target-boehm-gc"
6528 esac
6530 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6531 case ,${enable_languages}, in
6532 *,c++,*)
6533 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6534 case "${noconfigdirs}" in
6535 *target-libstdc++-v3*)
6536 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6538 *) ;;
6539 esac
6542 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6544 esac
6546 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6547 # $build_configdirs and $target_configdirs.
6548 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6550 notsupp=""
6551 for dir in . $skipdirs $noconfigdirs ; do
6552 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6553 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6554 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6555 if test -r $srcdir/$dirname/configure ; then
6556 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 true
6558 else
6559 notsupp="$notsupp $dir"
6563 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6565 if test -r $srcdir/$dirname/configure ; then
6566 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 true
6568 else
6569 notsupp="$notsupp $dir"
6573 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6575 if test -r $srcdir/$dirname/configure ; then
6576 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6577 true
6578 else
6579 notsupp="$notsupp $dir"
6583 done
6585 # Quietly strip out all directories which aren't configurable in this tree.
6586 # This relies on all configurable subdirectories being autoconfiscated, which
6587 # is now the case.
6588 build_configdirs_all="$build_configdirs"
6589 build_configdirs=
6590 for i in ${build_configdirs_all} ; do
6591 j=`echo $i | sed -e s/build-//g`
6592 if test -f ${srcdir}/$j/configure ; then
6593 build_configdirs="${build_configdirs} $i"
6595 done
6597 configdirs_all="$configdirs"
6598 configdirs=
6599 for i in ${configdirs_all} ; do
6600 if test -f ${srcdir}/$i/configure ; then
6601 configdirs="${configdirs} $i"
6603 done
6605 target_configdirs_all="$target_configdirs"
6606 target_configdirs=
6607 for i in ${target_configdirs_all} ; do
6608 j=`echo $i | sed -e s/target-//g`
6609 if test -f ${srcdir}/$j/configure ; then
6610 target_configdirs="${target_configdirs} $i"
6612 done
6614 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6615 # so we have to add it after the preceding checks.
6616 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6617 then
6618 case " $configdirs " in
6619 *" libiberty "*)
6620 # If we can build libiberty, we can also build libiberty-linker-plugin.
6621 configdirs="$configdirs libiberty-linker-plugin"
6622 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6623 --with-libiberty=../libiberty-linker-plugin";;
6625 as_fn_error "libiberty missing" "$LINENO" 5;;
6626 esac
6629 # Produce a warning message for the subdirs we can't configure.
6630 # This isn't especially interesting in the Cygnus tree, but in the individual
6631 # FSF releases, it's important to let people know when their machine isn't
6632 # supported by the one or two programs in a package.
6634 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6635 # If $appdirs is non-empty, at least one of those directories must still
6636 # be configured, or we error out. (E.g., if the gas release supports a
6637 # specified target in some subdirs but not the gas subdir, we shouldn't
6638 # pretend that all is well.)
6639 if test -n "$appdirs" ; then
6640 for dir in $appdirs ; do
6641 if test -r $dir/Makefile.in ; then
6642 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6643 appdirs=""
6644 break
6646 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6647 appdirs=""
6648 break
6651 done
6652 if test -n "$appdirs" ; then
6653 echo "*** This configuration is not supported by this package." 1>&2
6654 exit 1
6657 # Okay, some application will build, or we don't care to check. Still
6658 # notify of subdirs not getting built.
6659 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6660 echo " ${notsupp}" 1>&2
6661 echo " (Any other directories should still work fine.)" 1>&2
6664 case "$host" in
6665 *msdosdjgpp*)
6666 enable_gdbtk=no ;;
6667 esac
6669 # To find our prefix, in gcc_cv_tool_prefix.
6671 # The user is always right.
6672 if test "${PATH_SEPARATOR+set}" != set; then
6673 echo "#! /bin/sh" >conf$$.sh
6674 echo "exit 0" >>conf$$.sh
6675 chmod +x conf$$.sh
6676 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6677 PATH_SEPARATOR=';'
6678 else
6679 PATH_SEPARATOR=:
6681 rm -f conf$$.sh
6686 if test "x$exec_prefix" = xNONE; then
6687 if test "x$prefix" = xNONE; then
6688 gcc_cv_tool_prefix=$ac_default_prefix
6689 else
6690 gcc_cv_tool_prefix=$prefix
6692 else
6693 gcc_cv_tool_prefix=$exec_prefix
6696 # If there is no compiler in the tree, use the PATH only. In any
6697 # case, if there is no compiler in the tree nobody should use
6698 # AS_FOR_TARGET and LD_FOR_TARGET.
6699 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6700 gcc_version=`cat $srcdir/gcc/BASE-VER`
6701 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6702 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6703 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6705 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6706 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6707 else
6708 gcc_cv_tool_dirs=
6711 if test x$build = x$target && test -n "$md_exec_prefix"; then
6712 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6717 copy_dirs=
6720 # Check whether --with-build-sysroot was given.
6721 if test "${with_build_sysroot+set}" = set; then :
6722 withval=$with_build_sysroot; if test x"$withval" != x ; then
6723 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6725 else
6726 SYSROOT_CFLAGS_FOR_TARGET=
6732 # Check whether --with-debug-prefix-map was given.
6733 if test "${with_debug_prefix_map+set}" = set; then :
6734 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6735 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6736 for debug_map in $withval; do
6737 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6738 done
6740 else
6741 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6746 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6747 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6748 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6749 # We want to ensure that TARGET libraries (which we know are built with
6750 # gcc) are built with "-O2 -g", so include those options when setting
6751 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6752 if test "x$CFLAGS_FOR_TARGET" = x; then
6753 CFLAGS_FOR_TARGET=$CFLAGS
6754 case " $CFLAGS " in
6755 *" -O2 "*) ;;
6756 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6757 esac
6758 case " $CFLAGS " in
6759 *" -g "* | *" -g3 "*) ;;
6760 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6761 esac
6765 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6766 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6767 case " $CXXFLAGS " in
6768 *" -O2 "*) ;;
6769 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6770 esac
6771 case " $CXXFLAGS " in
6772 *" -g "* | *" -g3 "*) ;;
6773 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6774 esac
6780 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6781 # the named directory are copied to $(tooldir)/sys-include.
6782 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6783 if test x${is_cross_compiler} = xno ; then
6784 echo 1>&2 '***' --with-headers is only supported when cross compiling
6785 exit 1
6787 if test x"${with_headers}" != xyes ; then
6788 x=${gcc_cv_tool_prefix}
6789 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6793 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6794 # the name directories are copied to $(tooldir)/lib. Multiple directories
6795 # are permitted.
6796 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6797 if test x${is_cross_compiler} = xno ; then
6798 echo 1>&2 '***' --with-libs is only supported when cross compiling
6799 exit 1
6801 if test x"${with_libs}" != xyes ; then
6802 # Copy the libraries in reverse order, so that files in the first named
6803 # library override files in subsequent libraries.
6804 x=${gcc_cv_tool_prefix}
6805 for l in ${with_libs}; do
6806 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6807 done
6811 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6813 # This is done by determining whether or not the appropriate directory
6814 # is available, and by checking whether or not specific configurations
6815 # have requested that this magic not happen.
6817 # The command line options always override the explicit settings in
6818 # configure.in, and the settings in configure.in override this magic.
6820 # If the default for a toolchain is to use GNU as and ld, and you don't
6821 # want to do that, then you should use the --without-gnu-as and
6822 # --without-gnu-ld options for the configure script. Similarly, if
6823 # the default is to use the included zlib and you don't want to do that,
6824 # you should use the --with-system-zlib option for the configure script.
6826 if test x${use_gnu_as} = x &&
6827 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6828 with_gnu_as=yes
6829 extra_host_args="$extra_host_args --with-gnu-as"
6832 if test x${use_gnu_ld} = x &&
6833 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6834 with_gnu_ld=yes
6835 extra_host_args="$extra_host_args --with-gnu-ld"
6838 if test x${use_included_zlib} = x &&
6839 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6841 else
6842 with_system_zlib=yes
6843 extra_host_args="$extra_host_args --with-system-zlib"
6846 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6847 # can detect this case.
6849 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6850 with_newlib=yes
6851 extra_host_args="$extra_host_args --with-newlib"
6854 # Handle ${copy_dirs}
6855 set fnord ${copy_dirs}
6856 shift
6857 while test $# != 0 ; do
6858 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6860 else
6861 echo Copying $1 to $2
6863 # Use the install script to create the directory and all required
6864 # parent directories.
6865 if test -d $2 ; then
6867 else
6868 echo >config.temp
6869 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6872 # Copy the directory, assuming we have tar.
6873 # FIXME: Should we use B in the second tar? Not all systems support it.
6874 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6876 # It is the responsibility of the user to correctly adjust all
6877 # symlinks. If somebody can figure out how to handle them correctly
6878 # here, feel free to add the code.
6880 echo $1 > $2/COPIED
6882 shift; shift
6883 done
6885 # Determine a target-dependent exec_prefix that the installed
6886 # gcc will search in. Keep this list sorted by triplet, with
6887 # the *-*-osname triplets last.
6888 md_exec_prefix=
6889 case "${target}" in
6890 i[34567]86-pc-msdosdjgpp*)
6891 md_exec_prefix=/dev/env/DJDIR/bin
6893 *-*-hpux* | \
6894 *-*-nto-qnx* | \
6895 *-*-solaris2*)
6896 md_exec_prefix=/usr/ccs/bin
6898 esac
6900 extra_arflags_for_target=
6901 extra_nmflags_for_target=
6902 extra_ranlibflags_for_target=
6903 target_makefile_frag=/dev/null
6904 case "${target}" in
6905 spu-*-*)
6906 target_makefile_frag="config/mt-spu"
6908 mips*-sde-elf* | mips*-mti-elf*)
6909 target_makefile_frag="config/mt-sde"
6911 mipsisa*-*-elfoabi*)
6912 target_makefile_frag="config/mt-mips-elfoabi"
6914 mips*-*-*linux* | mips*-*-gnu*)
6915 target_makefile_frag="config/mt-mips-gnu"
6917 nios2-*-elf*)
6918 target_makefile_frag="config/mt-nios2-elf"
6920 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6921 target_makefile_frag="config/mt-gnu"
6923 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6924 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6925 # commands to handle both 32-bit and 64-bit objects. These flags are
6926 # harmless if we're using GNU nm or ar.
6927 extra_arflags_for_target=" -X32_64"
6928 extra_nmflags_for_target=" -B -X32_64"
6930 esac
6932 alphaieee_frag=/dev/null
6933 case $target in
6934 alpha*-*-*)
6935 # This just makes sure to use the -mieee option to build target libs.
6936 # This should probably be set individually by each library.
6937 alphaieee_frag="config/mt-alphaieee"
6939 esac
6941 # If --enable-target-optspace always use -Os instead of -O2 to build
6942 # the target libraries, similarly if it is not specified, use -Os
6943 # on selected platforms.
6944 ospace_frag=/dev/null
6945 case "${enable_target_optspace}:${target}" in
6946 yes:*)
6947 ospace_frag="config/mt-ospace"
6949 :d30v-*)
6950 ospace_frag="config/mt-d30v"
6952 :m32r-* | :d10v-* | :fr30-*)
6953 ospace_frag="config/mt-ospace"
6955 no:* | :*)
6958 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6960 esac
6962 # Some systems (e.g., one of the i386-aix systems the gas testers are
6963 # using) don't handle "\$" correctly, so don't use it here.
6964 tooldir='${exec_prefix}'/${target_noncanonical}
6965 build_tooldir=${tooldir}
6967 # Create a .gdbinit file which runs the one in srcdir
6968 # and tells GDB to look there for source files.
6970 if test -r ${srcdir}/.gdbinit ; then
6971 case ${srcdir} in
6972 .) ;;
6973 *) cat > ./.gdbinit <<EOF
6974 # ${NO_EDIT}
6975 dir ${srcdir}
6976 dir .
6977 source ${srcdir}/.gdbinit
6980 esac
6983 # Make sure that the compiler is able to generate an executable. If it
6984 # can't, we are probably in trouble. We don't care whether we can run the
6985 # executable--we might be using a cross compiler--we only care whether it
6986 # can be created. At this point the main configure script has set CC.
6987 we_are_ok=no
6988 echo "int main () { return 0; }" > conftest.c
6989 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6990 if test $? = 0 ; then
6991 if test -s conftest || test -s conftest.exe ; then
6992 we_are_ok=yes
6995 case $we_are_ok in
6997 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6998 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6999 rm -f conftest*
7000 exit 1
7002 esac
7003 rm -f conftest*
7005 # Decide which environment variable is used to find dynamic libraries.
7006 case "${host}" in
7007 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7008 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7009 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7010 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7011 esac
7013 # On systems where the dynamic library environment variable is PATH,
7014 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7015 # built executables to PATH.
7016 if test "$RPATH_ENVVAR" = PATH; then
7017 GCC_SHLIB_SUBDIR=/shlib
7018 else
7019 GCC_SHLIB_SUBDIR=
7022 # Adjust the toplevel makefile according to whether bootstrap was selected.
7023 case $enable_bootstrap in
7024 yes)
7025 bootstrap_suffix=bootstrap
7026 BUILD_CONFIG=bootstrap-debug
7029 bootstrap_suffix=no-bootstrap
7030 BUILD_CONFIG=
7032 esac
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7035 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7038 # Check whether --with-build-config was given.
7039 if test "${with_build_config+set}" = set; then :
7040 withval=$with_build_config; case $with_build_config in
7041 yes) with_build_config= ;;
7042 no) with_build_config= BUILD_CONFIG= ;;
7043 esac
7047 if test "x${with_build_config}" != x; then
7048 BUILD_CONFIG=$with_build_config
7049 else
7050 case $BUILD_CONFIG in
7051 bootstrap-debug)
7052 if echo "int f (void) { return 0; }" > conftest.c &&
7053 ${CC} -c conftest.c &&
7054 mv conftest.o conftest.o.g0 &&
7055 ${CC} -c -g conftest.c &&
7056 mv conftest.o conftest.o.g &&
7057 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7059 else
7060 BUILD_CONFIG=
7062 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7064 esac
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7067 $as_echo "$BUILD_CONFIG" >&6; }
7070 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7072 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7073 # Check whether --enable-vtable-verify was given.
7074 if test "${enable_vtable_verify+set}" = set; then :
7075 enableval=$enable_vtable_verify; case "$enableval" in
7076 yes) enable_vtable_verify=yes ;;
7077 no) enable_vtable_verify=no ;;
7078 *) enable_vtable_verify=no;;
7079 esac
7080 else
7081 enable_vtable_verify=no
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7085 $as_echo "$enable_vtable_verify" >&6; }
7087 # Record target_configdirs and the configure arguments for target and
7088 # build configuration in Makefile.
7089 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7090 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7091 bootstrap_fixincludes=no
7093 # If we are building libgomp, bootstrap it.
7094 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7095 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7098 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7099 # or bootstrap-ubsan, bootstrap it.
7100 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7101 case "$BUILD_CONFIG" in
7102 *bootstrap-asan* | *bootstrap-ubsan* )
7103 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7104 bootstrap_fixincludes=yes
7106 esac
7109 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7110 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7111 test "$enable_vtable_verify" != no; then
7112 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7115 # Determine whether gdb needs tk/tcl or not.
7116 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7117 # and in that case we want gdb to be built without tk. Ugh!
7118 # In fact I believe gdb is the *only* package directly dependent on tk,
7119 # so we should be able to put the 'maybe's in unconditionally and
7120 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7121 # 100% sure that that's safe though.
7123 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7124 case "$enable_gdbtk" in
7126 GDB_TK="" ;;
7127 yes)
7128 GDB_TK="${gdb_tk}" ;;
7130 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7131 # distro. Eventually someone will fix this and move Insight, nee
7132 # gdbtk to a separate directory.
7133 if test -d ${srcdir}/gdb/gdbtk ; then
7134 GDB_TK="${gdb_tk}"
7135 else
7136 GDB_TK=""
7139 esac
7140 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7141 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7143 # Strip out unwanted targets.
7145 # While at that, we remove Makefiles if we were started for recursive
7146 # configuration, so that the top-level Makefile reconfigures them,
7147 # like we used to do when configure itself was recursive.
7149 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7150 # but now we're fixing up the Makefile ourselves with the additional
7151 # commands passed to AC_CONFIG_FILES. Use separate variables
7152 # extrasub-{build,host,target} not because there is any reason to split
7153 # the substitutions up that way, but only to remain below the limit of
7154 # 99 commands in a script, for HP-UX sed.
7155 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7157 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7158 yes:yes:*\ gold\ *:*,c++,*) ;;
7159 yes:yes:*\ gold\ *:*)
7160 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7162 esac
7164 extrasub_build=
7165 for module in ${build_configdirs} ; do
7166 if test -z "${no_recursion}" \
7167 && test -f ${build_subdir}/${module}/Makefile; then
7168 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7169 rm -f ${build_subdir}/${module}/Makefile
7171 extrasub_build="$extrasub_build
7172 /^@if build-$module\$/d
7173 /^@endif build-$module\$/d
7174 /^@if build-$module-$bootstrap_suffix\$/d
7175 /^@endif build-$module-$bootstrap_suffix\$/d"
7176 done
7177 extrasub_host=
7178 for module in ${configdirs} ; do
7179 if test -z "${no_recursion}"; then
7180 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7181 if test -f ${file}; then
7182 echo 1>&2 "*** removing ${file} to force reconfigure"
7183 rm -f ${file}
7185 done
7187 case ${module},${bootstrap_fixincludes} in
7188 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7189 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7190 esac
7191 extrasub_host="$extrasub_host
7192 /^@if $module\$/d
7193 /^@endif $module\$/d
7194 /^@if $module-$host_bootstrap_suffix\$/d
7195 /^@endif $module-$host_bootstrap_suffix\$/d"
7196 done
7197 extrasub_target=
7198 for module in ${target_configdirs} ; do
7199 if test -z "${no_recursion}" \
7200 && test -f ${target_subdir}/${module}/Makefile; then
7201 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7202 rm -f ${target_subdir}/${module}/Makefile
7205 # We only bootstrap target libraries listed in bootstrap_target_libs.
7206 case $bootstrap_target_libs in
7207 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7208 *) target_bootstrap_suffix=no-bootstrap ;;
7209 esac
7211 extrasub_target="$extrasub_target
7212 /^@if target-$module\$/d
7213 /^@endif target-$module\$/d
7214 /^@if target-$module-$target_bootstrap_suffix\$/d
7215 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7216 done
7218 # Do the final fixup along with target modules.
7219 extrasub_target="$extrasub_target
7220 /^@if /,/^@endif /d"
7222 # Create the serialization dependencies. This uses a temporary file.
7224 # Check whether --enable-serial-configure was given.
7225 if test "${enable_serial_configure+set}" = set; then :
7226 enableval=$enable_serial_configure;
7230 case ${enable_serial_configure} in
7231 yes)
7232 enable_serial_build_configure=yes
7233 enable_serial_host_configure=yes
7234 enable_serial_target_configure=yes
7236 esac
7238 # These force 'configure's to be done one at a time, to avoid problems
7239 # with contention over a shared config.cache.
7240 rm -f serdep.tmp
7241 echo '# serdep.tmp' > serdep.tmp
7242 olditem=
7243 test "x${enable_serial_build_configure}" = xyes &&
7244 for item in ${build_configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
7247 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7248 esac
7249 olditem=${item}
7250 done
7251 olditem=
7252 test "x${enable_serial_host_configure}" = xyes &&
7253 for item in ${configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
7256 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7257 esac
7258 olditem=${item}
7259 done
7260 olditem=
7261 test "x${enable_serial_target_configure}" = xyes &&
7262 for item in ${target_configdirs} ; do
7263 case ${olditem} in
7264 "") ;;
7265 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7266 esac
7267 olditem=${item}
7268 done
7269 serialization_dependencies=serdep.tmp
7272 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7273 # target, nonopt, and variable assignments. These are the ones we
7274 # might not want to pass down to subconfigures. The exception being
7275 # --cache-file=/dev/null, which is used to turn off the use of cache
7276 # files altogether, and which should be passed on to subconfigures.
7277 # Also strip program-prefix, program-suffix, and program-transform-name,
7278 # so that we can pass down a consistent program-transform-name.
7279 baseargs=
7280 tbaseargs=
7281 keep_next=no
7282 skip_next=no
7283 eval "set -- $ac_configure_args"
7284 for ac_arg
7286 if test X"$skip_next" = X"yes"; then
7287 skip_next=no
7288 continue
7290 if test X"$keep_next" = X"yes"; then
7291 case $ac_arg in
7292 *\'*)
7293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7294 esac
7295 baseargs="$baseargs '$ac_arg'"
7296 tbaseargs="$tbaseargs '$ac_arg'"
7297 keep_next=no
7298 continue
7301 # Handle separated arguments. Based on the logic generated by
7302 # autoconf 2.59.
7303 case $ac_arg in
7304 *=* | --config-cache | -C | -disable-* | --disable-* \
7305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7307 | -with-* | --with-* | -without-* | --without-* | --x)
7308 separate_arg=no
7311 separate_arg=yes
7314 separate_arg=no
7316 esac
7318 skip_targ=no
7319 case $ac_arg in
7321 --with-* | --without-*)
7322 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7324 case $libopt in
7325 *[-_]include)
7326 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7328 *[-_]lib)
7329 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7332 lib=$libopt
7334 esac
7337 case $lib in
7338 mpc | mpfr | gmp | isl | cloog)
7339 # If we're processing --with-$lib, --with-$lib-include or
7340 # --with-$lib-lib, for one of the libs above, and target is
7341 # different from host, don't pass the current argument to any
7342 # target library's configure.
7343 if test x$is_cross_compiler = xyes; then
7344 skip_targ=yes
7347 esac
7349 esac
7351 case "$ac_arg" in
7352 --cache-file=/dev/null | \
7353 -cache-file=/dev/null )
7354 # Handled here to avoid the test to skip args below.
7355 baseargs="$baseargs '$ac_arg'"
7356 tbaseargs="$tbaseargs '$ac_arg'"
7357 # Assert: $separate_arg should always be no.
7358 keep_next=$separate_arg
7360 --no*)
7361 continue
7363 --c* | \
7364 --sr* | \
7365 --ho* | \
7366 --bu* | \
7367 --t* | \
7368 --program-* | \
7369 -cache_file* | \
7370 -srcdir* | \
7371 -host* | \
7372 -build* | \
7373 -target* | \
7374 -program-prefix* | \
7375 -program-suffix* | \
7376 -program-transform-name* )
7377 skip_next=$separate_arg
7378 continue
7381 # An option. Add it.
7382 case $ac_arg in
7383 *\'*)
7384 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7385 esac
7386 baseargs="$baseargs '$ac_arg'"
7387 if test X"$skip_targ" = Xno; then
7388 tbaseargs="$tbaseargs '$ac_arg'"
7390 keep_next=$separate_arg
7393 # Either a variable assignment, or a nonopt (triplet). Don't
7394 # pass it down; let the Makefile handle this.
7395 continue
7397 esac
7398 done
7399 # Remove the initial space we just introduced and, as these will be
7400 # expanded by make, quote '$'.
7401 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7403 # Add in --program-transform-name, after --program-prefix and
7404 # --program-suffix have been applied to it. Autoconf has already
7405 # doubled dollar signs and backslashes in program_transform_name; we want
7406 # the backslashes un-doubled, and then the entire thing wrapped in single
7407 # quotes, because this will be expanded first by make and then by the shell.
7408 # Also, because we want to override the logic in subdir configure scripts to
7409 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7410 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7411 ${program_transform_name}
7412 EOF_SED
7413 gcc_transform_name=`cat conftestsed.out`
7414 rm -f conftestsed.out
7415 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7416 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7417 if test "$silent" = yes; then
7418 baseargs="$baseargs --silent"
7419 tbaseargs="$tbaseargs --silent"
7421 baseargs="$baseargs --disable-option-checking"
7422 tbaseargs="$tbaseargs --disable-option-checking"
7424 # Record and document user additions to sub configure arguments.
7429 # For the build-side libraries, we just need to pretend we're native,
7430 # and not use the same cache file. Multilibs are neither needed nor
7431 # desired.
7432 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7434 # For host modules, accept cache file option, or specification as blank.
7435 case "${cache_file}" in
7436 "") # empty
7437 cache_file_option="" ;;
7438 /* | [A-Za-z]:[\\/]* ) # absolute path
7439 cache_file_option="--cache-file=${cache_file}" ;;
7440 *) # relative path
7441 cache_file_option="--cache-file=../${cache_file}" ;;
7442 esac
7444 # Host dirs don't like to share a cache file either, horribly enough.
7445 # This seems to be due to autoconf 2.5x stupidity.
7446 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7448 target_configargs="$target_configargs ${tbaseargs}"
7450 # Passing a --with-cross-host argument lets the target libraries know
7451 # whether they are being built with a cross-compiler or being built
7452 # native. However, it would be better to use other mechanisms to make the
7453 # sorts of decisions they want to make on this basis. Please consider
7454 # this option to be deprecated. FIXME.
7455 if test x${is_cross_compiler} = xyes ; then
7456 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7459 # Special user-friendly check for native x86_64-linux build, if
7460 # multilib is not explicitly enabled.
7461 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7462 x86_64-*linux*:yes:$build:$build:)
7463 # Make sure we have a developement environment that handles 32-bit
7464 dev64=no
7465 echo "int main () { return 0; }" > conftest.c
7466 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7467 if test $? = 0 ; then
7468 if test -s conftest || test -s conftest.exe ; then
7469 dev64=yes
7472 rm -f conftest*
7473 if test x${dev64} != xyes ; then
7474 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
7477 esac
7479 # Default to --enable-multilib.
7480 if test x${enable_multilib} = x ; then
7481 target_configargs="--enable-multilib ${target_configargs}"
7484 # Pass --with-newlib if appropriate. Note that target_configdirs has
7485 # changed from the earlier setting of with_newlib.
7486 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7487 target_configargs="--with-newlib ${target_configargs}"
7490 # Different target subdirs use different values of certain variables
7491 # (notably CXX). Worse, multilibs use *lots* of different values.
7492 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7493 # it doesn't automatically accept command-line overrides of them.
7494 # This means it's not safe for target subdirs to share a cache file,
7495 # which is disgusting, but there you have it. Hopefully this can be
7496 # fixed in future. It's still worthwhile to use a cache file for each
7497 # directory. I think.
7499 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7500 # We need to pass --target, as newer autoconf's requires consistency
7501 # for target_alias and gcc doesn't manage it consistently.
7502 target_configargs="--cache-file=./config.cache ${target_configargs}"
7504 FLAGS_FOR_TARGET=
7505 case " $target_configdirs " in
7506 *" newlib "*)
7507 case " $target_configargs " in
7508 *" --with-newlib "*)
7509 case "$target" in
7510 *-cygwin*)
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7513 esac
7515 # If we're not building GCC, don't discard standard headers.
7516 if test -d ${srcdir}/gcc; then
7517 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7519 if test "${build}" != "${host}"; then
7520 # On Canadian crosses, CC_FOR_TARGET will have already been set
7521 # by `configure', so we won't have an opportunity to add -Bgcc/
7522 # to it. This is right: we don't want to search that directory
7523 # for binaries, but we want the header files in there, so add
7524 # them explicitly.
7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7527 # Someone might think of using the pre-installed headers on
7528 # Canadian crosses, in case the installed compiler is not fully
7529 # compatible with the compiler being built. In this case, it
7530 # would be better to flag an error than risking having
7531 # incompatible object files being constructed. We can't
7532 # guarantee that an error will be flagged, but let's hope the
7533 # compiler will do it, when presented with incompatible header
7534 # files.
7538 case "${target}-${is_cross_compiler}" in
7539 i[3456789]86-*-linux*-no)
7540 # Here host == target, so we don't need to build gcc,
7541 # so we don't want to discard standard headers.
7542 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7545 # If we're building newlib, use its generic headers last, but search
7546 # for any libc-related directories first (so make it the last -B
7547 # switch).
7548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7550 # If we're building libgloss, find the startup file, simulator library
7551 # and linker script.
7552 case " $target_configdirs " in
7553 *" libgloss "*)
7554 # Look for startup file, simulator library and maybe linker script.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7556 # Look for libnosys.a in case the target needs it.
7557 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7558 # Most targets have the linker script in the source directory.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7561 esac
7563 esac
7565 esac
7567 esac
7569 case "$target" in
7570 x86_64-*mingw* | *-w64-mingw*)
7571 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7572 # however, use a symlink named 'mingw' in ${prefix} .
7573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7575 *-mingw*)
7576 # MinGW can't be handled as Cygwin above since it does not use newlib.
7577 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'
7579 esac
7581 # Allow the user to override the flags for
7582 # our build compiler if desired.
7583 if test x"${build}" = x"${host}" ; then
7584 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7585 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7586 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7589 # On Canadian crosses, we'll be searching the right directories for
7590 # the previously-installed cross compiler, so don't bother to add
7591 # flags for directories within the install tree of the compiler
7592 # being built; programs in there won't even run.
7593 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7594 # Search for pre-installed headers if nothing else fits.
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7598 if test "x${use_gnu_ld}" = x &&
7599 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7600 # Arrange for us to find uninstalled linker scripts.
7601 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7604 # Search for other target-specific linker scripts and such.
7605 case "${target}" in
7606 mep*)
7607 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7609 esac
7611 # Makefile fragments.
7612 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7614 eval fragval=\$$frag
7615 if test $fragval != /dev/null; then
7616 eval $frag=${srcdir}/$fragval
7618 done
7624 # Miscellanea: directories, flags, etc.
7633 # Build module lists & subconfigure args.
7637 # Host module lists & subconfigure args.
7642 # Target module lists & subconfigure args.
7646 # Build tools.
7664 # Generate default definitions for YACC, M4, LEX and other programs that run
7665 # on the build machine. These are used if the Makefile can't locate these
7666 # programs in objdir.
7667 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7669 for ac_prog in 'bison -y' byacc yacc
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_YACC+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$YACC"; then
7679 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_YACC="$ac_prog"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7692 done
7693 done
7694 IFS=$as_save_IFS
7698 YACC=$ac_cv_prog_YACC
7699 if test -n "$YACC"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7701 $as_echo "$YACC" >&6; }
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7708 test -n "$YACC" && break
7709 done
7710 test -n "$YACC" || YACC="$MISSING bison -y"
7712 case " $build_configdirs " in
7713 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7714 esac
7716 for ac_prog in bison
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_BISON+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$BISON"; then
7726 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_BISON="$ac_prog"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7739 done
7740 done
7741 IFS=$as_save_IFS
7745 BISON=$ac_cv_prog_BISON
7746 if test -n "$BISON"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7748 $as_echo "$BISON" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7755 test -n "$BISON" && break
7756 done
7757 test -n "$BISON" || BISON="$MISSING bison"
7759 case " $build_configdirs " in
7760 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7761 esac
7763 for ac_prog in gm4 gnum4 m4
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_M4+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$M4"; then
7773 ac_cv_prog_M4="$M4" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_M4="$ac_prog"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7792 M4=$ac_cv_prog_M4
7793 if test -n "$M4"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7795 $as_echo "$M4" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7802 test -n "$M4" && break
7803 done
7804 test -n "$M4" || M4="$MISSING m4"
7806 case " $build_configdirs " in
7807 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7808 esac
7810 for ac_prog in flex lex
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_LEX+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$LEX"; then
7820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_LEX="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7833 done
7834 done
7835 IFS=$as_save_IFS
7839 LEX=$ac_cv_prog_LEX
7840 if test -n "$LEX"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7842 $as_echo "$LEX" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$LEX" && break
7850 done
7851 test -n "$LEX" || LEX="$MISSING flex"
7853 case " $build_configdirs " in
7854 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7855 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7856 esac
7858 for ac_prog in flex
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861 set dummy $ac_prog; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_FLEX+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 if test -n "$FLEX"; then
7868 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_FLEX="$ac_prog"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7881 done
7882 done
7883 IFS=$as_save_IFS
7887 FLEX=$ac_cv_prog_FLEX
7888 if test -n "$FLEX"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7890 $as_echo "$FLEX" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7897 test -n "$FLEX" && break
7898 done
7899 test -n "$FLEX" || FLEX="$MISSING flex"
7901 case " $build_configdirs " in
7902 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7903 esac
7905 for ac_prog in makeinfo
7907 # Extract the first word of "$ac_prog", so it can be a program name with args.
7908 set dummy $ac_prog; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test -n "$MAKEINFO"; then
7915 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_prog_MAKEINFO="$ac_prog"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7928 done
7929 done
7930 IFS=$as_save_IFS
7934 MAKEINFO=$ac_cv_prog_MAKEINFO
7935 if test -n "$MAKEINFO"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7937 $as_echo "$MAKEINFO" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7944 test -n "$MAKEINFO" && break
7945 done
7946 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7948 case " $build_configdirs " in
7949 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7952 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7953 # higher, else we use the "missing" dummy.
7954 if ${MAKEINFO} --version \
7955 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7957 else
7958 MAKEINFO="$MISSING makeinfo"
7962 esac
7964 # FIXME: expect and dejagnu may become build tools?
7966 for ac_prog in expect
7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$EXPECT"; then
7976 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_EXPECT="$ac_prog"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 EXPECT=$ac_cv_prog_EXPECT
7996 if test -n "$EXPECT"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7998 $as_echo "$EXPECT" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 test -n "$EXPECT" && break
8006 done
8007 test -n "$EXPECT" || EXPECT="expect"
8009 case " $configdirs " in
8010 *" expect "*)
8011 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8013 esac
8015 for ac_prog in runtest
8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
8018 set dummy $ac_prog; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$RUNTEST"; then
8025 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_prog_RUNTEST="$ac_prog"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8038 done
8039 done
8040 IFS=$as_save_IFS
8044 RUNTEST=$ac_cv_prog_RUNTEST
8045 if test -n "$RUNTEST"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8047 $as_echo "$RUNTEST" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8054 test -n "$RUNTEST" && break
8055 done
8056 test -n "$RUNTEST" || RUNTEST="runtest"
8058 case " $configdirs " in
8059 *" dejagnu "*)
8060 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8062 esac
8065 # Host tools.
8066 ncn_tool_prefix=
8067 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8068 ncn_target_tool_prefix=
8069 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8073 if test -n "$AR"; then
8074 ac_cv_prog_AR=$AR
8075 elif test -n "$ac_cv_prog_AR"; then
8076 AR=$ac_cv_prog_AR
8079 if test -n "$ac_cv_prog_AR"; then
8080 for ncn_progname in ar; do
8081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8082 set dummy ${ncn_progname}; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_AR+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$AR"; then
8089 ac_cv_prog_AR="$AR" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_AR="${ncn_progname}"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 AR=$ac_cv_prog_AR
8109 if test -n "$AR"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8111 $as_echo "$AR" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8118 done
8121 for ncn_progname in ar; do
8122 if test -n "$ncn_tool_prefix"; then
8123 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8124 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_AR+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$AR"; then
8131 ac_cv_prog_AR="$AR" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8144 done
8145 done
8146 IFS=$as_save_IFS
8150 AR=$ac_cv_prog_AR
8151 if test -n "$AR"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8153 $as_echo "$AR" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8163 set dummy ${ncn_progname}; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_AR+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 if test -n "$AR"; then
8170 ac_cv_prog_AR="$AR" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_AR="${ncn_progname}"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8183 done
8184 done
8185 IFS=$as_save_IFS
8189 AR=$ac_cv_prog_AR
8190 if test -n "$AR"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8192 $as_echo "$AR" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8200 test -n "$ac_cv_prog_AR" && break
8201 done
8203 if test -z "$ac_cv_prog_AR" ; then
8204 set dummy ar
8205 if test $build = $host ; then
8206 AR="$2"
8207 else
8208 AR="${ncn_tool_prefix}$2"
8214 if test -n "$AS"; then
8215 ac_cv_prog_AS=$AS
8216 elif test -n "$ac_cv_prog_AS"; then
8217 AS=$ac_cv_prog_AS
8220 if test -n "$ac_cv_prog_AS"; then
8221 for ncn_progname in as; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223 set dummy ${ncn_progname}; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_AS+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$AS"; then
8230 ac_cv_prog_AS="$AS" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_AS="${ncn_progname}"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 AS=$ac_cv_prog_AS
8250 if test -n "$AS"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8252 $as_echo "$AS" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8259 done
8262 for ncn_progname in as; do
8263 if test -n "$ncn_tool_prefix"; then
8264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if test "${ac_cv_prog_AS+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$AS"; then
8272 ac_cv_prog_AS="$AS" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8285 done
8286 done
8287 IFS=$as_save_IFS
8291 AS=$ac_cv_prog_AS
8292 if test -n "$AS"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8294 $as_echo "$AS" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304 set dummy ${ncn_progname}; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if test "${ac_cv_prog_AS+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 if test -n "$AS"; then
8311 ac_cv_prog_AS="$AS" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_prog_AS="${ncn_progname}"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8324 done
8325 done
8326 IFS=$as_save_IFS
8330 AS=$ac_cv_prog_AS
8331 if test -n "$AS"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8333 $as_echo "$AS" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8341 test -n "$ac_cv_prog_AS" && break
8342 done
8344 if test -z "$ac_cv_prog_AS" ; then
8345 set dummy as
8346 if test $build = $host ; then
8347 AS="$2"
8348 else
8349 AS="${ncn_tool_prefix}$2"
8355 if test -n "$DLLTOOL"; then
8356 ac_cv_prog_DLLTOOL=$DLLTOOL
8357 elif test -n "$ac_cv_prog_DLLTOOL"; then
8358 DLLTOOL=$ac_cv_prog_DLLTOOL
8361 if test -n "$ac_cv_prog_DLLTOOL"; then
8362 for ncn_progname in dlltool; do
8363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8364 set dummy ${ncn_progname}; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$DLLTOOL"; then
8371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380 ac_cv_prog_DLLTOOL="${ncn_progname}"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8384 done
8385 done
8386 IFS=$as_save_IFS
8390 DLLTOOL=$ac_cv_prog_DLLTOOL
8391 if test -n "$DLLTOOL"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8393 $as_echo "$DLLTOOL" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 done
8403 for ncn_progname in dlltool; do
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$DLLTOOL"; then
8413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8432 DLLTOOL=$ac_cv_prog_DLLTOOL
8433 if test -n "$DLLTOOL"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8435 $as_echo "$DLLTOOL" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8445 set dummy ${ncn_progname}; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$DLLTOOL"; then
8452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_prog_DLLTOOL="${ncn_progname}"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8465 done
8466 done
8467 IFS=$as_save_IFS
8471 DLLTOOL=$ac_cv_prog_DLLTOOL
8472 if test -n "$DLLTOOL"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8474 $as_echo "$DLLTOOL" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8482 test -n "$ac_cv_prog_DLLTOOL" && break
8483 done
8485 if test -z "$ac_cv_prog_DLLTOOL" ; then
8486 set dummy dlltool
8487 if test $build = $host ; then
8488 DLLTOOL="$2"
8489 else
8490 DLLTOOL="${ncn_tool_prefix}$2"
8496 if test -n "$LD"; then
8497 ac_cv_prog_LD=$LD
8498 elif test -n "$ac_cv_prog_LD"; then
8499 LD=$ac_cv_prog_LD
8502 if test -n "$ac_cv_prog_LD"; then
8503 for ncn_progname in ld; do
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505 set dummy ${ncn_progname}; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if test "${ac_cv_prog_LD+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$LD"; then
8512 ac_cv_prog_LD="$LD" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_prog_LD="${ncn_progname}"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8531 LD=$ac_cv_prog_LD
8532 if test -n "$LD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8534 $as_echo "$LD" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8541 done
8544 for ncn_progname in ld; do
8545 if test -n "$ncn_tool_prefix"; then
8546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if test "${ac_cv_prog_LD+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$LD"; then
8554 ac_cv_prog_LD="$LD" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8573 LD=$ac_cv_prog_LD
8574 if test -n "$LD"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8576 $as_echo "$LD" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8584 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8586 set dummy ${ncn_progname}; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if test "${ac_cv_prog_LD+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$LD"; then
8593 ac_cv_prog_LD="$LD" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_prog_LD="${ncn_progname}"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8612 LD=$ac_cv_prog_LD
8613 if test -n "$LD"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8615 $as_echo "$LD" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8623 test -n "$ac_cv_prog_LD" && break
8624 done
8626 if test -z "$ac_cv_prog_LD" ; then
8627 set dummy ld
8628 if test $build = $host ; then
8629 LD="$2"
8630 else
8631 LD="${ncn_tool_prefix}$2"
8637 if test -n "$LIPO"; then
8638 ac_cv_prog_LIPO=$LIPO
8639 elif test -n "$ac_cv_prog_LIPO"; then
8640 LIPO=$ac_cv_prog_LIPO
8643 if test -n "$ac_cv_prog_LIPO"; then
8644 for ncn_progname in lipo; do
8645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8646 set dummy ${ncn_progname}; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if test "${ac_cv_prog_LIPO+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 if test -n "$LIPO"; then
8653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_prog_LIPO="${ncn_progname}"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8672 LIPO=$ac_cv_prog_LIPO
8673 if test -n "$LIPO"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8675 $as_echo "$LIPO" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 done
8685 for ncn_progname in lipo; do
8686 if test -n "$ncn_tool_prefix"; then
8687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8688 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_LIPO+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test -n "$LIPO"; then
8695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8714 LIPO=$ac_cv_prog_LIPO
8715 if test -n "$LIPO"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717 $as_echo "$LIPO" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8727 set dummy ${ncn_progname}; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_prog_LIPO+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$LIPO"; then
8734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_prog_LIPO="${ncn_progname}"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8753 LIPO=$ac_cv_prog_LIPO
8754 if test -n "$LIPO"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8756 $as_echo "$LIPO" >&6; }
8757 else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8764 test -n "$ac_cv_prog_LIPO" && break
8765 done
8767 if test -z "$ac_cv_prog_LIPO" ; then
8768 set dummy lipo
8769 if test $build = $host ; then
8770 LIPO="$2"
8771 else
8772 LIPO="${ncn_tool_prefix}$2"
8778 if test -n "$NM"; then
8779 ac_cv_prog_NM=$NM
8780 elif test -n "$ac_cv_prog_NM"; then
8781 NM=$ac_cv_prog_NM
8784 if test -n "$ac_cv_prog_NM"; then
8785 for ncn_progname in nm; do
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8787 set dummy ${ncn_progname}; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if test "${ac_cv_prog_NM+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -n "$NM"; then
8794 ac_cv_prog_NM="$NM" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_NM="${ncn_progname}"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8813 NM=$ac_cv_prog_NM
8814 if test -n "$NM"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8816 $as_echo "$NM" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8823 done
8826 for ncn_progname in nm; do
8827 if test -n "$ncn_tool_prefix"; then
8828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8829 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if test "${ac_cv_prog_NM+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$NM"; then
8836 ac_cv_prog_NM="$NM" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8855 NM=$ac_cv_prog_NM
8856 if test -n "$NM"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8858 $as_echo "$NM" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8868 set dummy ${ncn_progname}; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if test "${ac_cv_prog_NM+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 if test -n "$NM"; then
8875 ac_cv_prog_NM="$NM" # Let the user override the test.
8876 else
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_prog_NM="${ncn_progname}"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8888 done
8889 done
8890 IFS=$as_save_IFS
8894 NM=$ac_cv_prog_NM
8895 if test -n "$NM"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8897 $as_echo "$NM" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8905 test -n "$ac_cv_prog_NM" && break
8906 done
8908 if test -z "$ac_cv_prog_NM" ; then
8909 set dummy nm
8910 if test $build = $host ; then
8911 NM="$2"
8912 else
8913 NM="${ncn_tool_prefix}$2"
8919 if test -n "$RANLIB"; then
8920 ac_cv_prog_RANLIB=$RANLIB
8921 elif test -n "$ac_cv_prog_RANLIB"; then
8922 RANLIB=$ac_cv_prog_RANLIB
8925 if test -n "$ac_cv_prog_RANLIB"; then
8926 for ncn_progname in ranlib; do
8927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8928 set dummy ${ncn_progname}; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$RANLIB"; then
8935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944 ac_cv_prog_RANLIB="${ncn_progname}"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8954 RANLIB=$ac_cv_prog_RANLIB
8955 if test -n "$RANLIB"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8957 $as_echo "$RANLIB" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8964 done
8967 for ncn_progname in ranlib; do
8968 if test -n "$ncn_tool_prefix"; then
8969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8970 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$RANLIB"; then
8977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8990 done
8991 done
8992 IFS=$as_save_IFS
8996 RANLIB=$ac_cv_prog_RANLIB
8997 if test -n "$RANLIB"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8999 $as_echo "$RANLIB" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9007 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9009 set dummy ${ncn_progname}; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 if test -n "$RANLIB"; then
9016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_prog_RANLIB="${ncn_progname}"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9035 RANLIB=$ac_cv_prog_RANLIB
9036 if test -n "$RANLIB"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9038 $as_echo "$RANLIB" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9046 test -n "$ac_cv_prog_RANLIB" && break
9047 done
9049 if test -z "$ac_cv_prog_RANLIB" ; then
9050 RANLIB="true"
9055 if test -n "$STRIP"; then
9056 ac_cv_prog_STRIP=$STRIP
9057 elif test -n "$ac_cv_prog_STRIP"; then
9058 STRIP=$ac_cv_prog_STRIP
9061 if test -n "$ac_cv_prog_STRIP"; then
9062 for ncn_progname in strip; do
9063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9064 set dummy ${ncn_progname}; ac_word=$2
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_prog_STRIP+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 if test -n "$STRIP"; then
9071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9072 else
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_prog_STRIP="${ncn_progname}"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9090 STRIP=$ac_cv_prog_STRIP
9091 if test -n "$STRIP"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9093 $as_echo "$STRIP" >&6; }
9094 else
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9100 done
9103 for ncn_progname in strip; do
9104 if test -n "$ncn_tool_prefix"; then
9105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 $as_echo_n "checking for $ac_word... " >&6; }
9109 if test "${ac_cv_prog_STRIP+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 if test -n "$STRIP"; then
9113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9114 else
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9122 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9132 STRIP=$ac_cv_prog_STRIP
9133 if test -n "$STRIP"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9135 $as_echo "$STRIP" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9143 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9145 set dummy ${ncn_progname}; ac_word=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_prog_STRIP+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 if test -n "$STRIP"; then
9152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9153 else
9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 for as_dir in $PATH
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9161 ac_cv_prog_STRIP="${ncn_progname}"
9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9165 done
9166 done
9167 IFS=$as_save_IFS
9171 STRIP=$ac_cv_prog_STRIP
9172 if test -n "$STRIP"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9174 $as_echo "$STRIP" >&6; }
9175 else
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9182 test -n "$ac_cv_prog_STRIP" && break
9183 done
9185 if test -z "$ac_cv_prog_STRIP" ; then
9186 STRIP="true"
9191 if test -n "$WINDRES"; then
9192 ac_cv_prog_WINDRES=$WINDRES
9193 elif test -n "$ac_cv_prog_WINDRES"; then
9194 WINDRES=$ac_cv_prog_WINDRES
9197 if test -n "$ac_cv_prog_WINDRES"; then
9198 for ncn_progname in windres; do
9199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9200 set dummy ${ncn_progname}; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 if test -n "$WINDRES"; then
9207 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_prog_WINDRES="${ncn_progname}"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9220 done
9221 done
9222 IFS=$as_save_IFS
9226 WINDRES=$ac_cv_prog_WINDRES
9227 if test -n "$WINDRES"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9229 $as_echo "$WINDRES" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9236 done
9239 for ncn_progname in windres; do
9240 if test -n "$ncn_tool_prefix"; then
9241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 if test -n "$WINDRES"; then
9249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9258 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 break 2
9262 done
9263 done
9264 IFS=$as_save_IFS
9268 WINDRES=$ac_cv_prog_WINDRES
9269 if test -n "$WINDRES"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9271 $as_echo "$WINDRES" >&6; }
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9279 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9281 set dummy ${ncn_progname}; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 if test -n "$WINDRES"; then
9288 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297 ac_cv_prog_WINDRES="${ncn_progname}"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 break 2
9301 done
9302 done
9303 IFS=$as_save_IFS
9307 WINDRES=$ac_cv_prog_WINDRES
9308 if test -n "$WINDRES"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9310 $as_echo "$WINDRES" >&6; }
9311 else
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9318 test -n "$ac_cv_prog_WINDRES" && break
9319 done
9321 if test -z "$ac_cv_prog_WINDRES" ; then
9322 set dummy windres
9323 if test $build = $host ; then
9324 WINDRES="$2"
9325 else
9326 WINDRES="${ncn_tool_prefix}$2"
9332 if test -n "$WINDMC"; then
9333 ac_cv_prog_WINDMC=$WINDMC
9334 elif test -n "$ac_cv_prog_WINDMC"; then
9335 WINDMC=$ac_cv_prog_WINDMC
9338 if test -n "$ac_cv_prog_WINDMC"; then
9339 for ncn_progname in windmc; do
9340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9341 set dummy ${ncn_progname}; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 if test -n "$WINDMC"; then
9348 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357 ac_cv_prog_WINDMC="${ncn_progname}"
9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 break 2
9361 done
9362 done
9363 IFS=$as_save_IFS
9367 WINDMC=$ac_cv_prog_WINDMC
9368 if test -n "$WINDMC"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9370 $as_echo "$WINDMC" >&6; }
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9377 done
9380 for ncn_progname in windmc; do
9381 if test -n "$ncn_tool_prefix"; then
9382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$WINDMC"; then
9390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9409 WINDMC=$ac_cv_prog_WINDMC
9410 if test -n "$WINDMC"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9412 $as_echo "$WINDMC" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9422 set dummy ${ncn_progname}; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 if test -n "$WINDMC"; then
9429 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_prog_WINDMC="${ncn_progname}"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9448 WINDMC=$ac_cv_prog_WINDMC
9449 if test -n "$WINDMC"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9451 $as_echo "$WINDMC" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9459 test -n "$ac_cv_prog_WINDMC" && break
9460 done
9462 if test -z "$ac_cv_prog_WINDMC" ; then
9463 set dummy windmc
9464 if test $build = $host ; then
9465 WINDMC="$2"
9466 else
9467 WINDMC="${ncn_tool_prefix}$2"
9473 if test -n "$OBJCOPY"; then
9474 ac_cv_prog_OBJCOPY=$OBJCOPY
9475 elif test -n "$ac_cv_prog_OBJCOPY"; then
9476 OBJCOPY=$ac_cv_prog_OBJCOPY
9479 if test -n "$ac_cv_prog_OBJCOPY"; then
9480 for ncn_progname in objcopy; do
9481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482 set dummy ${ncn_progname}; ac_word=$2
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484 $as_echo_n "checking for $ac_word... " >&6; }
9485 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 if test -n "$OBJCOPY"; then
9489 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9490 else
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9498 ac_cv_prog_OBJCOPY="${ncn_progname}"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9502 done
9503 done
9504 IFS=$as_save_IFS
9508 OBJCOPY=$ac_cv_prog_OBJCOPY
9509 if test -n "$OBJCOPY"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9511 $as_echo "$OBJCOPY" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9518 done
9521 for ncn_progname in objcopy; do
9522 if test -n "$ncn_tool_prefix"; then
9523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 if test -n "$OBJCOPY"; then
9531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9544 done
9545 done
9546 IFS=$as_save_IFS
9550 OBJCOPY=$ac_cv_prog_OBJCOPY
9551 if test -n "$OBJCOPY"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9553 $as_echo "$OBJCOPY" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563 set dummy ${ncn_progname}; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 if test -n "$OBJCOPY"; then
9570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9571 else
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9579 ac_cv_prog_OBJCOPY="${ncn_progname}"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9583 done
9584 done
9585 IFS=$as_save_IFS
9589 OBJCOPY=$ac_cv_prog_OBJCOPY
9590 if test -n "$OBJCOPY"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9592 $as_echo "$OBJCOPY" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9600 test -n "$ac_cv_prog_OBJCOPY" && break
9601 done
9603 if test -z "$ac_cv_prog_OBJCOPY" ; then
9604 set dummy objcopy
9605 if test $build = $host ; then
9606 OBJCOPY="$2"
9607 else
9608 OBJCOPY="${ncn_tool_prefix}$2"
9614 if test -n "$OBJDUMP"; then
9615 ac_cv_prog_OBJDUMP=$OBJDUMP
9616 elif test -n "$ac_cv_prog_OBJDUMP"; then
9617 OBJDUMP=$ac_cv_prog_OBJDUMP
9620 if test -n "$ac_cv_prog_OBJDUMP"; then
9621 for ncn_progname in objdump; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623 set dummy ${ncn_progname}; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 if test -n "$OBJDUMP"; then
9630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_prog_OBJDUMP="${ncn_progname}"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9649 OBJDUMP=$ac_cv_prog_OBJDUMP
9650 if test -n "$OBJDUMP"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9652 $as_echo "$OBJDUMP" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9659 done
9662 for ncn_progname in objdump; do
9663 if test -n "$ncn_tool_prefix"; then
9664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 if test -n "$OBJDUMP"; then
9672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9673 else
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9681 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9685 done
9686 done
9687 IFS=$as_save_IFS
9691 OBJDUMP=$ac_cv_prog_OBJDUMP
9692 if test -n "$OBJDUMP"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9694 $as_echo "$OBJDUMP" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9702 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704 set dummy ${ncn_progname}; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test -n "$OBJDUMP"; then
9711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_OBJDUMP="${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9730 OBJDUMP=$ac_cv_prog_OBJDUMP
9731 if test -n "$OBJDUMP"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9733 $as_echo "$OBJDUMP" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9741 test -n "$ac_cv_prog_OBJDUMP" && break
9742 done
9744 if test -z "$ac_cv_prog_OBJDUMP" ; then
9745 set dummy objdump
9746 if test $build = $host ; then
9747 OBJDUMP="$2"
9748 else
9749 OBJDUMP="${ncn_tool_prefix}$2"
9755 if test -n "$READELF"; then
9756 ac_cv_prog_READELF=$READELF
9757 elif test -n "$ac_cv_prog_READELF"; then
9758 READELF=$ac_cv_prog_READELF
9761 if test -n "$ac_cv_prog_READELF"; then
9762 for ncn_progname in readelf; do
9763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9764 set dummy ${ncn_progname}; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if test "${ac_cv_prog_READELF+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 if test -n "$READELF"; then
9771 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_prog_READELF="${ncn_progname}"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9790 READELF=$ac_cv_prog_READELF
9791 if test -n "$READELF"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9793 $as_echo "$READELF" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9800 done
9803 for ncn_progname in readelf; do
9804 if test -n "$ncn_tool_prefix"; then
9805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if test "${ac_cv_prog_READELF+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 if test -n "$READELF"; then
9813 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9814 else
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9826 done
9827 done
9828 IFS=$as_save_IFS
9832 READELF=$ac_cv_prog_READELF
9833 if test -n "$READELF"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9835 $as_echo "$READELF" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9843 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845 set dummy ${ncn_progname}; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if test "${ac_cv_prog_READELF+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 if test -n "$READELF"; then
9852 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9853 else
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9861 ac_cv_prog_READELF="${ncn_progname}"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9871 READELF=$ac_cv_prog_READELF
9872 if test -n "$READELF"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9874 $as_echo "$READELF" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9882 test -n "$ac_cv_prog_READELF" && break
9883 done
9885 if test -z "$ac_cv_prog_READELF" ; then
9886 set dummy readelf
9887 if test $build = $host ; then
9888 READELF="$2"
9889 else
9890 READELF="${ncn_tool_prefix}$2"
9899 # Target tools.
9901 # Check whether --with-build-time-tools was given.
9902 if test "${with_build_time_tools+set}" = set; then :
9903 withval=$with_build_time_tools; case x"$withval" in
9904 x/*) ;;
9906 with_build_time_tools=
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9908 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9910 esac
9911 else
9912 with_build_time_tools=
9918 if test -n "$CC_FOR_TARGET"; then
9919 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9920 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9921 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9924 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 for ncn_progname in cc gcc; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927 set dummy ${ncn_progname}; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 if test -n "$CC_FOR_TARGET"; then
9934 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9947 done
9948 done
9949 IFS=$as_save_IFS
9953 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9954 if test -n "$CC_FOR_TARGET"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9956 $as_echo "$CC_FOR_TARGET" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9963 done
9966 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9967 for ncn_progname in cc gcc; do
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9969 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9970 if test -x $with_build_time_tools/${ncn_progname}; then
9971 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9974 break
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9979 done
9982 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9983 for ncn_progname in cc gcc; do
9984 if test -n "$ncn_target_tool_prefix"; then
9985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 if test -n "$CC_FOR_TARGET"; then
9993 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9994 else
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10006 done
10007 done
10008 IFS=$as_save_IFS
10012 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10013 if test -n "$CC_FOR_TARGET"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10015 $as_echo "$CC_FOR_TARGET" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10023 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10025 set dummy ${ncn_progname}; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 if test -n "$CC_FOR_TARGET"; then
10032 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10033 else
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10041 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10045 done
10046 done
10047 IFS=$as_save_IFS
10051 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10052 if test -n "$CC_FOR_TARGET"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10054 $as_echo "$CC_FOR_TARGET" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10063 done
10066 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10067 set dummy cc gcc
10068 if test $build = $target ; then
10069 CC_FOR_TARGET="$2"
10070 else
10071 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10073 else
10074 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10079 if test -n "$CXX_FOR_TARGET"; then
10080 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10081 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10082 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10085 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 for ncn_progname in c++ g++ cxx gxx; do
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088 set dummy ${ncn_progname}; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 if test -n "$CXX_FOR_TARGET"; then
10095 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10108 done
10109 done
10110 IFS=$as_save_IFS
10114 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10115 if test -n "$CXX_FOR_TARGET"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10117 $as_echo "$CXX_FOR_TARGET" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10124 done
10127 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10128 for ncn_progname in c++ g++ cxx gxx; do
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10130 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10131 if test -x $with_build_time_tools/${ncn_progname}; then
10132 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134 $as_echo "yes" >&6; }
10135 break
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10140 done
10143 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10144 for ncn_progname in c++ g++ cxx gxx; do
10145 if test -n "$ncn_target_tool_prefix"; then
10146 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10147 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 if test -n "$CXX_FOR_TARGET"; then
10154 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10155 else
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10167 done
10168 done
10169 IFS=$as_save_IFS
10173 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10174 if test -n "$CXX_FOR_TARGET"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10176 $as_echo "$CXX_FOR_TARGET" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10184 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10186 set dummy ${ncn_progname}; ac_word=$2
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 if test -n "$CXX_FOR_TARGET"; then
10193 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10194 else
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10206 done
10207 done
10208 IFS=$as_save_IFS
10212 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10213 if test -n "$CXX_FOR_TARGET"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10215 $as_echo "$CXX_FOR_TARGET" >&6; }
10216 else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10223 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10224 done
10227 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10228 set dummy c++ g++ cxx gxx
10229 if test $build = $target ; then
10230 CXX_FOR_TARGET="$2"
10231 else
10232 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10234 else
10235 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10240 if test -n "$GCC_FOR_TARGET"; then
10241 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10242 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10243 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10246 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 for ncn_progname in gcc; do
10248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10249 set dummy ${ncn_progname}; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 if test -n "$GCC_FOR_TARGET"; then
10256 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10265 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10269 done
10270 done
10271 IFS=$as_save_IFS
10275 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10276 if test -n "$GCC_FOR_TARGET"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10278 $as_echo "$GCC_FOR_TARGET" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10285 done
10288 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10289 for ncn_progname in gcc; do
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10291 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10292 if test -x $with_build_time_tools/${ncn_progname}; then
10293 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10295 $as_echo "yes" >&6; }
10296 break
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10301 done
10304 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10305 for ncn_progname in gcc; do
10306 if test -n "$ncn_target_tool_prefix"; then
10307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10308 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 if test -n "$GCC_FOR_TARGET"; then
10315 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10334 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10335 if test -n "$GCC_FOR_TARGET"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10337 $as_echo "$GCC_FOR_TARGET" >&6; }
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10347 set dummy ${ncn_progname}; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 if test -n "$GCC_FOR_TARGET"; then
10354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10355 else
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10367 done
10368 done
10369 IFS=$as_save_IFS
10373 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10374 if test -n "$GCC_FOR_TARGET"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10376 $as_echo "$GCC_FOR_TARGET" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10384 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10385 done
10388 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10389 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10390 else
10391 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10396 if test -n "$GCJ_FOR_TARGET"; then
10397 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10398 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10399 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10402 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 for ncn_progname in gcj; do
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405 set dummy ${ncn_progname}; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 if test -n "$GCJ_FOR_TARGET"; then
10412 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10427 IFS=$as_save_IFS
10431 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10432 if test -n "$GCJ_FOR_TARGET"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10434 $as_echo "$GCJ_FOR_TARGET" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10441 done
10444 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10445 for ncn_progname in gcj; do
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; }
10452 break
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10457 done
10460 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10461 for ncn_progname in gcj; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 if test -n "$GCJ_FOR_TARGET"; then
10471 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10490 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10491 if test -n "$GCJ_FOR_TARGET"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10493 $as_echo "$GCJ_FOR_TARGET" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 if test -n "$GCJ_FOR_TARGET"; then
10510 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10523 done
10524 done
10525 IFS=$as_save_IFS
10529 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10530 if test -n "$GCJ_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10532 $as_echo "$GCJ_FOR_TARGET" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10540 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10541 done
10544 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10545 set dummy gcj
10546 if test $build = $target ; then
10547 GCJ_FOR_TARGET="$2"
10548 else
10549 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10551 else
10552 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10557 if test -n "$GFORTRAN_FOR_TARGET"; then
10558 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10559 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10563 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 for ncn_progname in gfortran; do
10565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10566 set dummy ${ncn_progname}; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if test -n "$GFORTRAN_FOR_TARGET"; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10574 else
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10586 done
10587 done
10588 IFS=$as_save_IFS
10592 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10593 if test -n "$GFORTRAN_FOR_TARGET"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10595 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10602 done
10605 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10606 for ncn_progname in gfortran; do
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10609 if test -x $with_build_time_tools/${ncn_progname}; then
10610 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10612 $as_echo "yes" >&6; }
10613 break
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10618 done
10621 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10622 for ncn_progname in gfortran; do
10623 if test -n "$ncn_target_tool_prefix"; then
10624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 if test -n "$GFORTRAN_FOR_TARGET"; then
10632 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10647 IFS=$as_save_IFS
10651 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10652 if test -n "$GFORTRAN_FOR_TARGET"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10654 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10664 set dummy ${ncn_progname}; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 if test -n "$GFORTRAN_FOR_TARGET"; then
10671 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10672 else
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10690 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10691 if test -n "$GFORTRAN_FOR_TARGET"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10693 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10701 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10702 done
10705 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10706 set dummy gfortran
10707 if test $build = $target ; then
10708 GFORTRAN_FOR_TARGET="$2"
10709 else
10710 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10712 else
10713 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10718 if test -n "$GOC_FOR_TARGET"; then
10719 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10720 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10721 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10724 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 for ncn_progname in gccgo; do
10726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10727 set dummy ${ncn_progname}; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 if test -n "$GOC_FOR_TARGET"; then
10734 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10735 else
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10753 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10754 if test -n "$GOC_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10756 $as_echo "$GOC_FOR_TARGET" >&6; }
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10763 done
10766 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10767 for ncn_progname in gccgo; do
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10769 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10770 if test -x $with_build_time_tools/${ncn_progname}; then
10771 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; }
10774 break
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10779 done
10782 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10783 for ncn_progname in gccgo; do
10784 if test -n "$ncn_target_tool_prefix"; then
10785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10786 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788 $as_echo_n "checking for $ac_word... " >&6; }
10789 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 if test -n "$GOC_FOR_TARGET"; then
10793 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10794 else
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10812 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10813 if test -n "$GOC_FOR_TARGET"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10815 $as_echo "$GOC_FOR_TARGET" >&6; }
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10823 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10825 set dummy ${ncn_progname}; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 if test -n "$GOC_FOR_TARGET"; then
10832 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10833 else
10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $PATH
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10841 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10845 done
10846 done
10847 IFS=$as_save_IFS
10851 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10852 if test -n "$GOC_FOR_TARGET"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10854 $as_echo "$GOC_FOR_TARGET" >&6; }
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10862 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10863 done
10866 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10867 set dummy gccgo
10868 if test $build = $target ; then
10869 GOC_FOR_TARGET="$2"
10870 else
10871 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10873 else
10874 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10879 cat > conftest.c << \EOF
10880 #ifdef __GNUC__
10881 gcc_yay;
10882 #endif
10884 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10885 have_gcc_for_target=yes
10886 else
10887 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10888 have_gcc_for_target=no
10890 rm conftest.c
10895 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10896 if test -n "$with_build_time_tools"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10898 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10899 if test -x $with_build_time_tools/ar; then
10900 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10901 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10903 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10908 elif test $build != $host && test $have_gcc_for_target = yes; then
10909 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10910 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10911 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10914 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10915 # Extract the first word of "ar", so it can be a program name with args.
10916 set dummy ar; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $AR_FOR_TARGET in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $gcc_cv_tool_dirs
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10946 if test -n "$AR_FOR_TARGET"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10948 $as_echo "$AR_FOR_TARGET" >&6; }
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10956 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10959 if test -n "$AR_FOR_TARGET"; then
10960 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10961 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10962 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10965 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 for ncn_progname in ar; do
10967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10968 set dummy ${ncn_progname}; ac_word=$2
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970 $as_echo_n "checking for $ac_word... " >&6; }
10971 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 if test -n "$AR_FOR_TARGET"; then
10975 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10976 else
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10994 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10995 if test -n "$AR_FOR_TARGET"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997 $as_echo "$AR_FOR_TARGET" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11004 done
11007 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11008 for ncn_progname in ar; do
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11010 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11011 if test -x $with_build_time_tools/${ncn_progname}; then
11012 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014 $as_echo "yes" >&6; }
11015 break
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11020 done
11023 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11024 for ncn_progname in ar; do
11025 if test -n "$ncn_target_tool_prefix"; then
11026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test -n "$AR_FOR_TARGET"; then
11034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11047 done
11048 done
11049 IFS=$as_save_IFS
11053 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11054 if test -n "$AR_FOR_TARGET"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11056 $as_echo "$AR_FOR_TARGET" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11064 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066 set dummy ${ncn_progname}; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test -n "$AR_FOR_TARGET"; then
11073 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11092 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11093 if test -n "$AR_FOR_TARGET"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11095 $as_echo "$AR_FOR_TARGET" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11103 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11104 done
11107 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11108 set dummy ar
11109 if test $build = $target ; then
11110 AR_FOR_TARGET="$2"
11111 else
11112 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11114 else
11115 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11118 else
11119 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11125 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11126 if test -n "$with_build_time_tools"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11128 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11129 if test -x $with_build_time_tools/as; then
11130 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11131 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11133 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11138 elif test $build != $host && test $have_gcc_for_target = yes; then
11139 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11140 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11141 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11144 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11145 # Extract the first word of "as", so it can be a program name with args.
11146 set dummy as; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 case $AS_FOR_TARGET in
11153 [\\/]* | ?:[\\/]*)
11154 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $gcc_cv_tool_dirs
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11168 done
11169 done
11170 IFS=$as_save_IFS
11173 esac
11175 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11176 if test -n "$AS_FOR_TARGET"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11178 $as_echo "$AS_FOR_TARGET" >&6; }
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11186 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11189 if test -n "$AS_FOR_TARGET"; then
11190 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11191 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11192 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11195 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 for ncn_progname in as; do
11197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198 set dummy ${ncn_progname}; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test -n "$AS_FOR_TARGET"; then
11205 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11218 done
11219 done
11220 IFS=$as_save_IFS
11224 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11225 if test -n "$AS_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227 $as_echo "$AS_FOR_TARGET" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11234 done
11237 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11238 for ncn_progname in as; do
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11241 if test -x $with_build_time_tools/${ncn_progname}; then
11242 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244 $as_echo "yes" >&6; }
11245 break
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11250 done
11253 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11254 for ncn_progname in as; do
11255 if test -n "$ncn_target_tool_prefix"; then
11256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259 $as_echo_n "checking for $ac_word... " >&6; }
11260 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 if test -n "$AS_FOR_TARGET"; then
11264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11277 done
11278 done
11279 IFS=$as_save_IFS
11283 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11284 if test -n "$AS_FOR_TARGET"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11286 $as_echo "$AS_FOR_TARGET" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11294 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11296 set dummy ${ncn_progname}; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 if test -n "$AS_FOR_TARGET"; then
11303 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11308 IFS=$as_save_IFS
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11312 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 break 2
11316 done
11317 done
11318 IFS=$as_save_IFS
11322 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11323 if test -n "$AS_FOR_TARGET"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11325 $as_echo "$AS_FOR_TARGET" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11333 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11334 done
11337 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11338 set dummy as
11339 if test $build = $target ; then
11340 AS_FOR_TARGET="$2"
11341 else
11342 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11344 else
11345 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11348 else
11349 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11355 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11356 if test -n "$with_build_time_tools"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11358 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11359 if test -x $with_build_time_tools/dlltool; then
11360 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11361 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11363 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11364 else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11368 elif test $build != $host && test $have_gcc_for_target = yes; then
11369 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11370 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11371 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11374 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11375 # Extract the first word of "dlltool", so it can be a program name with args.
11376 set dummy dlltool; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $DLLTOOL_FOR_TARGET in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $gcc_cv_tool_dirs
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11403 esac
11405 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11406 if test -n "$DLLTOOL_FOR_TARGET"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11408 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11416 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11419 if test -n "$DLLTOOL_FOR_TARGET"; then
11420 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11421 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11422 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11425 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 for ncn_progname in dlltool; do
11427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11428 set dummy ${ncn_progname}; ac_word=$2
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430 $as_echo_n "checking for $ac_word... " >&6; }
11431 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 if test -n "$DLLTOOL_FOR_TARGET"; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11448 done
11449 done
11450 IFS=$as_save_IFS
11454 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11455 if test -n "$DLLTOOL_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11464 done
11467 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11468 for ncn_progname in dlltool; do
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11471 if test -x $with_build_time_tools/${ncn_progname}; then
11472 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474 $as_echo "yes" >&6; }
11475 break
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11480 done
11483 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11484 for ncn_progname in dlltool; do
11485 if test -n "$ncn_target_tool_prefix"; then
11486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 if test -n "$DLLTOOL_FOR_TARGET"; then
11494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11495 else
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11507 done
11508 done
11509 IFS=$as_save_IFS
11513 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11514 if test -n "$DLLTOOL_FOR_TARGET"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11516 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11524 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11526 set dummy ${ncn_progname}; ac_word=$2
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528 $as_echo_n "checking for $ac_word... " >&6; }
11529 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test -n "$DLLTOOL_FOR_TARGET"; then
11533 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11534 else
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11546 done
11547 done
11548 IFS=$as_save_IFS
11552 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11553 if test -n "$DLLTOOL_FOR_TARGET"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11555 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11563 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11564 done
11567 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11568 set dummy dlltool
11569 if test $build = $target ; then
11570 DLLTOOL_FOR_TARGET="$2"
11571 else
11572 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11574 else
11575 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11578 else
11579 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11585 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11586 if test -n "$with_build_time_tools"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11588 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11589 if test -x $with_build_time_tools/ld; then
11590 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11591 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11593 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11598 elif test $build != $host && test $have_gcc_for_target = yes; then
11599 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11600 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11601 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11604 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11605 # Extract the first word of "ld", so it can be a program name with args.
11606 set dummy ld; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 case $LD_FOR_TARGET in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $gcc_cv_tool_dirs
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11633 esac
11635 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11636 if test -n "$LD_FOR_TARGET"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11638 $as_echo "$LD_FOR_TARGET" >&6; }
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11646 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11649 if test -n "$LD_FOR_TARGET"; then
11650 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11651 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11652 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11655 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 for ncn_progname in ld; do
11657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11658 set dummy ${ncn_progname}; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 if test -n "$LD_FOR_TARGET"; then
11665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11666 else
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11678 done
11679 done
11680 IFS=$as_save_IFS
11684 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11685 if test -n "$LD_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687 $as_echo "$LD_FOR_TARGET" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11694 done
11697 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11698 for ncn_progname in ld; do
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11701 if test -x $with_build_time_tools/${ncn_progname}; then
11702 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704 $as_echo "yes" >&6; }
11705 break
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11710 done
11713 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11714 for ncn_progname in ld; do
11715 if test -n "$ncn_target_tool_prefix"; then
11716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 if test -n "$LD_FOR_TARGET"; then
11724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11725 else
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11737 done
11738 done
11739 IFS=$as_save_IFS
11743 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11744 if test -n "$LD_FOR_TARGET"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11746 $as_echo "$LD_FOR_TARGET" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11754 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11756 set dummy ${ncn_progname}; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test -n "$LD_FOR_TARGET"; then
11763 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11776 done
11777 done
11778 IFS=$as_save_IFS
11782 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11783 if test -n "$LD_FOR_TARGET"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11785 $as_echo "$LD_FOR_TARGET" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11793 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11794 done
11797 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11798 set dummy ld
11799 if test $build = $target ; then
11800 LD_FOR_TARGET="$2"
11801 else
11802 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11804 else
11805 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11808 else
11809 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11815 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11816 if test -n "$with_build_time_tools"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11818 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11819 if test -x $with_build_time_tools/lipo; then
11820 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11821 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11823 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11828 elif test $build != $host && test $have_gcc_for_target = yes; then
11829 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11830 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11831 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11834 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11835 # Extract the first word of "lipo", so it can be a program name with args.
11836 set dummy lipo; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 case $LIPO_FOR_TARGET in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $gcc_cv_tool_dirs
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11863 esac
11865 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11866 if test -n "$LIPO_FOR_TARGET"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11868 $as_echo "$LIPO_FOR_TARGET" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11876 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11879 if test -n "$LIPO_FOR_TARGET"; then
11880 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11881 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11882 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11885 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 for ncn_progname in lipo; do
11887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11888 set dummy ${ncn_progname}; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 if test -n "$LIPO_FOR_TARGET"; then
11895 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11896 else
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11908 done
11909 done
11910 IFS=$as_save_IFS
11914 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11915 if test -n "$LIPO_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917 $as_echo "$LIPO_FOR_TARGET" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11924 done
11927 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11928 for ncn_progname in lipo; do
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11931 if test -x $with_build_time_tools/${ncn_progname}; then
11932 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 break
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11940 done
11943 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11944 for ncn_progname in lipo; do
11945 if test -n "$ncn_target_tool_prefix"; then
11946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$LIPO_FOR_TARGET"; then
11954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11967 done
11968 done
11969 IFS=$as_save_IFS
11973 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11974 if test -n "$LIPO_FOR_TARGET"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11976 $as_echo "$LIPO_FOR_TARGET" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11984 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11986 set dummy ${ncn_progname}; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test -n "$LIPO_FOR_TARGET"; then
11993 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11994 else
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12006 done
12007 done
12008 IFS=$as_save_IFS
12012 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12013 if test -n "$LIPO_FOR_TARGET"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12015 $as_echo "$LIPO_FOR_TARGET" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12023 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12024 done
12027 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12028 set dummy lipo
12029 if test $build = $target ; then
12030 LIPO_FOR_TARGET="$2"
12031 else
12032 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12034 else
12035 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12038 else
12039 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12045 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12046 if test -n "$with_build_time_tools"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12048 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12049 if test -x $with_build_time_tools/nm; then
12050 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12051 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12053 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12054 else
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12058 elif test $build != $host && test $have_gcc_for_target = yes; then
12059 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12060 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12061 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12064 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12065 # Extract the first word of "nm", so it can be a program name with args.
12066 set dummy nm; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 case $NM_FOR_TARGET in
12073 [\\/]* | ?:[\\/]*)
12074 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $gcc_cv_tool_dirs
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12088 done
12089 done
12090 IFS=$as_save_IFS
12093 esac
12095 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12096 if test -n "$NM_FOR_TARGET"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12098 $as_echo "$NM_FOR_TARGET" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12106 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12109 if test -n "$NM_FOR_TARGET"; then
12110 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12111 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12112 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12115 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 for ncn_progname in nm; do
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118 set dummy ${ncn_progname}; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test -n "$NM_FOR_TARGET"; then
12125 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12138 done
12139 done
12140 IFS=$as_save_IFS
12144 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12145 if test -n "$NM_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147 $as_echo "$NM_FOR_TARGET" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12154 done
12157 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12158 for ncn_progname in nm; do
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12160 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12161 if test -x $with_build_time_tools/${ncn_progname}; then
12162 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164 $as_echo "yes" >&6; }
12165 break
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12170 done
12173 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12174 for ncn_progname in nm; do
12175 if test -n "$ncn_target_tool_prefix"; then
12176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12177 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 if test -n "$NM_FOR_TARGET"; then
12184 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12193 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12197 done
12198 done
12199 IFS=$as_save_IFS
12203 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12204 if test -n "$NM_FOR_TARGET"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12206 $as_echo "$NM_FOR_TARGET" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12214 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12216 set dummy ${ncn_progname}; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 if test -n "$NM_FOR_TARGET"; then
12223 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12232 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12242 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12243 if test -n "$NM_FOR_TARGET"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12245 $as_echo "$NM_FOR_TARGET" >&6; }
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12253 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12254 done
12257 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12258 set dummy nm
12259 if test $build = $target ; then
12260 NM_FOR_TARGET="$2"
12261 else
12262 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12264 else
12265 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12268 else
12269 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12275 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12276 if test -n "$with_build_time_tools"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12278 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12279 if test -x $with_build_time_tools/objdump; then
12280 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12281 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12283 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12288 elif test $build != $host && test $have_gcc_for_target = yes; then
12289 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12290 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12291 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12294 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12295 # Extract the first word of "objdump", so it can be a program name with args.
12296 set dummy objdump; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 case $OBJDUMP_FOR_TARGET in
12303 [\\/]* | ?:[\\/]*)
12304 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $gcc_cv_tool_dirs
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12318 done
12319 done
12320 IFS=$as_save_IFS
12323 esac
12325 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12326 if test -n "$OBJDUMP_FOR_TARGET"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12328 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12336 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12339 if test -n "$OBJDUMP_FOR_TARGET"; then
12340 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12341 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12342 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12345 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 for ncn_progname in objdump; do
12347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12348 set dummy ${ncn_progname}; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -n "$OBJDUMP_FOR_TARGET"; then
12355 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12356 else
12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358 for as_dir in $PATH
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12368 done
12369 done
12370 IFS=$as_save_IFS
12374 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12375 if test -n "$OBJDUMP_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12377 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12384 done
12387 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12388 for ncn_progname in objdump; do
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12390 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12391 if test -x $with_build_time_tools/${ncn_progname}; then
12392 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12395 break
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12400 done
12403 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12404 for ncn_progname in objdump; do
12405 if test -n "$ncn_target_tool_prefix"; then
12406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12407 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 if test -n "$OBJDUMP_FOR_TARGET"; then
12414 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12423 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12427 done
12428 done
12429 IFS=$as_save_IFS
12433 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12434 if test -n "$OBJDUMP_FOR_TARGET"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12436 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12444 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12446 set dummy ${ncn_progname}; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if test -n "$OBJDUMP_FOR_TARGET"; then
12453 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12466 done
12467 done
12468 IFS=$as_save_IFS
12472 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12473 if test -n "$OBJDUMP_FOR_TARGET"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12475 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12483 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12484 done
12487 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12488 set dummy objdump
12489 if test $build = $target ; then
12490 OBJDUMP_FOR_TARGET="$2"
12491 else
12492 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12494 else
12495 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12498 else
12499 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12505 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12506 if test -n "$with_build_time_tools"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12508 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12509 if test -x $with_build_time_tools/ranlib; then
12510 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12511 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12513 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12518 elif test $build != $host && test $have_gcc_for_target = yes; then
12519 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12520 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12521 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12524 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12525 # Extract the first word of "ranlib", so it can be a program name with args.
12526 set dummy ranlib; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 case $RANLIB_FOR_TARGET in
12533 [\\/]* | ?:[\\/]*)
12534 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $gcc_cv_tool_dirs
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12544 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12548 done
12549 done
12550 IFS=$as_save_IFS
12553 esac
12555 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12556 if test -n "$RANLIB_FOR_TARGET"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12558 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12566 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12569 if test -n "$RANLIB_FOR_TARGET"; then
12570 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12571 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12572 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12575 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 for ncn_progname in ranlib; do
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578 set dummy ${ncn_progname}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$RANLIB_FOR_TARGET"; then
12585 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12598 done
12599 done
12600 IFS=$as_save_IFS
12604 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12605 if test -n "$RANLIB_FOR_TARGET"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12607 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12614 done
12617 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12618 for ncn_progname in ranlib; do
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12620 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12621 if test -x $with_build_time_tools/${ncn_progname}; then
12622 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625 break
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12630 done
12633 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12634 for ncn_progname in ranlib; do
12635 if test -n "$ncn_target_tool_prefix"; then
12636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12637 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639 $as_echo_n "checking for $ac_word... " >&6; }
12640 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 if test -n "$RANLIB_FOR_TARGET"; then
12644 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12645 else
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12653 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12657 done
12658 done
12659 IFS=$as_save_IFS
12663 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12664 if test -n "$RANLIB_FOR_TARGET"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12666 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12674 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678 $as_echo_n "checking for $ac_word... " >&6; }
12679 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -n "$RANLIB_FOR_TARGET"; then
12683 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12684 else
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12702 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12703 if test -n "$RANLIB_FOR_TARGET"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12705 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12713 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12714 done
12717 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12718 set dummy ranlib
12719 if test $build = $target ; then
12720 RANLIB_FOR_TARGET="$2"
12721 else
12722 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12724 else
12725 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12728 else
12729 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12735 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12736 if test -n "$with_build_time_tools"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12738 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12739 if test -x $with_build_time_tools/readelf; then
12740 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12741 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12743 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12748 elif test $build != $host && test $have_gcc_for_target = yes; then
12749 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12750 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12751 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12754 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12755 # Extract the first word of "readelf", so it can be a program name with args.
12756 set dummy readelf; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 case $READELF_FOR_TARGET in
12763 [\\/]* | ?:[\\/]*)
12764 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $gcc_cv_tool_dirs
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12774 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12783 esac
12785 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12786 if test -n "$READELF_FOR_TARGET"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12788 $as_echo "$READELF_FOR_TARGET" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12796 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12799 if test -n "$READELF_FOR_TARGET"; then
12800 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12801 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12802 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12805 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 for ncn_progname in readelf; do
12807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808 set dummy ${ncn_progname}; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$READELF_FOR_TARGET"; then
12815 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12828 done
12829 done
12830 IFS=$as_save_IFS
12834 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12835 if test -n "$READELF_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12837 $as_echo "$READELF_FOR_TARGET" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12844 done
12847 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12848 for ncn_progname in readelf; do
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12850 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12851 if test -x $with_build_time_tools/${ncn_progname}; then
12852 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854 $as_echo "yes" >&6; }
12855 break
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12860 done
12863 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12864 for ncn_progname in readelf; do
12865 if test -n "$ncn_target_tool_prefix"; then
12866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12867 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$READELF_FOR_TARGET"; then
12874 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12875 else
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12887 done
12888 done
12889 IFS=$as_save_IFS
12893 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12894 if test -n "$READELF_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12896 $as_echo "$READELF_FOR_TARGET" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12904 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test -n "$READELF_FOR_TARGET"; then
12913 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12914 else
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12926 done
12927 done
12928 IFS=$as_save_IFS
12932 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12933 if test -n "$READELF_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12935 $as_echo "$READELF_FOR_TARGET" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12943 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12944 done
12947 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12948 set dummy readelf
12949 if test $build = $target ; then
12950 READELF_FOR_TARGET="$2"
12951 else
12952 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12954 else
12955 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12958 else
12959 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12965 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12966 if test -n "$with_build_time_tools"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12968 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12969 if test -x $with_build_time_tools/strip; then
12970 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12971 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12973 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12978 elif test $build != $host && test $have_gcc_for_target = yes; then
12979 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12980 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12981 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12984 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12985 # Extract the first word of "strip", so it can be a program name with args.
12986 set dummy strip; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 case $STRIP_FOR_TARGET in
12993 [\\/]* | ?:[\\/]*)
12994 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $gcc_cv_tool_dirs
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13008 done
13009 done
13010 IFS=$as_save_IFS
13013 esac
13015 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13016 if test -n "$STRIP_FOR_TARGET"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13018 $as_echo "$STRIP_FOR_TARGET" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13026 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13029 if test -n "$STRIP_FOR_TARGET"; then
13030 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13031 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13032 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13035 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 for ncn_progname in strip; do
13037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$STRIP_FOR_TARGET"; then
13045 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13064 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13065 if test -n "$STRIP_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13067 $as_echo "$STRIP_FOR_TARGET" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13074 done
13077 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13078 for ncn_progname in strip; do
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13080 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13081 if test -x $with_build_time_tools/${ncn_progname}; then
13082 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 break
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13090 done
13093 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13094 for ncn_progname in strip; do
13095 if test -n "$ncn_target_tool_prefix"; then
13096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13097 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099 $as_echo_n "checking for $ac_word... " >&6; }
13100 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 if test -n "$STRIP_FOR_TARGET"; then
13104 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13105 else
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13113 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13117 done
13118 done
13119 IFS=$as_save_IFS
13123 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13124 if test -n "$STRIP_FOR_TARGET"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13126 $as_echo "$STRIP_FOR_TARGET" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13134 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13136 set dummy ${ncn_progname}; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 if test -n "$STRIP_FOR_TARGET"; then
13143 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13144 else
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13156 done
13157 done
13158 IFS=$as_save_IFS
13162 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13163 if test -n "$STRIP_FOR_TARGET"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13165 $as_echo "$STRIP_FOR_TARGET" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13173 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13174 done
13177 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13178 set dummy strip
13179 if test $build = $target ; then
13180 STRIP_FOR_TARGET="$2"
13181 else
13182 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13184 else
13185 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13188 else
13189 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13195 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13196 if test -n "$with_build_time_tools"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13198 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13199 if test -x $with_build_time_tools/windres; then
13200 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13201 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13203 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13208 elif test $build != $host && test $have_gcc_for_target = yes; then
13209 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13210 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13211 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13214 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13215 # Extract the first word of "windres", so it can be a program name with args.
13216 set dummy windres; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222 case $WINDRES_FOR_TARGET in
13223 [\\/]* | ?:[\\/]*)
13224 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $gcc_cv_tool_dirs
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13240 IFS=$as_save_IFS
13243 esac
13245 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13246 if test -n "$WINDRES_FOR_TARGET"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13248 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13256 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13259 if test -n "$WINDRES_FOR_TARGET"; then
13260 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13261 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13262 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13265 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 for ncn_progname in windres; do
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 if test -n "$WINDRES_FOR_TARGET"; then
13275 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13276 else
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13284 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13288 done
13289 done
13290 IFS=$as_save_IFS
13294 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13295 if test -n "$WINDRES_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13297 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13304 done
13307 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13308 for ncn_progname in windres; do
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13310 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13311 if test -x $with_build_time_tools/${ncn_progname}; then
13312 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13314 $as_echo "yes" >&6; }
13315 break
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13320 done
13323 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13324 for ncn_progname in windres; do
13325 if test -n "$ncn_target_tool_prefix"; then
13326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13327 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 if test -n "$WINDRES_FOR_TARGET"; then
13334 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13347 done
13348 done
13349 IFS=$as_save_IFS
13353 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13354 if test -n "$WINDRES_FOR_TARGET"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13356 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13357 else
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13364 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13366 set dummy ${ncn_progname}; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$WINDRES_FOR_TARGET"; then
13373 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13386 done
13387 done
13388 IFS=$as_save_IFS
13392 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13393 if test -n "$WINDRES_FOR_TARGET"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13395 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13403 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13404 done
13407 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13408 set dummy windres
13409 if test $build = $target ; then
13410 WINDRES_FOR_TARGET="$2"
13411 else
13412 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13414 else
13415 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13418 else
13419 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13425 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13426 if test -n "$with_build_time_tools"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13428 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13429 if test -x $with_build_time_tools/windmc; then
13430 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13431 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13433 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13438 elif test $build != $host && test $have_gcc_for_target = yes; then
13439 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13440 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13441 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13444 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13445 # Extract the first word of "windmc", so it can be a program name with args.
13446 set dummy windmc; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 case $WINDMC_FOR_TARGET in
13453 [\\/]* | ?:[\\/]*)
13454 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $gcc_cv_tool_dirs
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13464 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13468 done
13469 done
13470 IFS=$as_save_IFS
13473 esac
13475 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13476 if test -n "$WINDMC_FOR_TARGET"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13478 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13486 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13489 if test -n "$WINDMC_FOR_TARGET"; then
13490 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13491 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13492 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13495 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 for ncn_progname in windmc; do
13497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13498 set dummy ${ncn_progname}; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 if test -n "$WINDMC_FOR_TARGET"; then
13505 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13518 done
13519 done
13520 IFS=$as_save_IFS
13524 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13525 if test -n "$WINDMC_FOR_TARGET"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13527 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13534 done
13537 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13538 for ncn_progname in windmc; do
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13540 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13541 if test -x $with_build_time_tools/${ncn_progname}; then
13542 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13544 $as_echo "yes" >&6; }
13545 break
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13550 done
13553 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13554 for ncn_progname in windmc; do
13555 if test -n "$ncn_target_tool_prefix"; then
13556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13557 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 if test -n "$WINDMC_FOR_TARGET"; then
13564 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13565 else
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13573 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 break 2
13577 done
13578 done
13579 IFS=$as_save_IFS
13583 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13584 if test -n "$WINDMC_FOR_TARGET"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13586 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13587 else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13594 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13596 set dummy ${ncn_progname}; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 if test -n "$WINDMC_FOR_TARGET"; then
13603 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13604 else
13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606 for as_dir in $PATH
13608 IFS=$as_save_IFS
13609 test -z "$as_dir" && as_dir=.
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13612 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13614 break 2
13616 done
13617 done
13618 IFS=$as_save_IFS
13622 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13623 if test -n "$WINDMC_FOR_TARGET"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13625 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13626 else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13633 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13634 done
13637 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13638 set dummy windmc
13639 if test $build = $target ; then
13640 WINDMC_FOR_TARGET="$2"
13641 else
13642 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13644 else
13645 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13648 else
13649 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13653 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13656 $as_echo_n "checking where to find the target ar... " >&6; }
13657 if test "x${build}" != "x${host}" ; then
13658 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13659 # We already found the complete path
13660 ac_dir=`dirname $AR_FOR_TARGET`
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13662 $as_echo "pre-installed in $ac_dir" >&6; }
13663 else
13664 # Canadian cross, just use what we found
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13666 $as_echo "pre-installed" >&6; }
13668 else
13669 ok=yes
13670 case " ${configdirs} " in
13671 *" binutils "*) ;;
13672 *) ok=no ;;
13673 esac
13675 if test $ok = yes; then
13676 # An in-tree tool is available and we can use it
13677 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13679 $as_echo "just compiled" >&6; }
13680 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13681 # We already found the complete path
13682 ac_dir=`dirname $AR_FOR_TARGET`
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13684 $as_echo "pre-installed in $ac_dir" >&6; }
13685 elif test "x$target" = "x$host"; then
13686 # We can use an host tool
13687 AR_FOR_TARGET='$(AR)'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13689 $as_echo "host tool" >&6; }
13690 else
13691 # We need a cross tool
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693 $as_echo "pre-installed" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13698 $as_echo_n "checking where to find the target as... " >&6; }
13699 if test "x${build}" != "x${host}" ; then
13700 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
13702 ac_dir=`dirname $AS_FOR_TARGET`
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704 $as_echo "pre-installed in $ac_dir" >&6; }
13705 else
13706 # Canadian cross, just use what we found
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708 $as_echo "pre-installed" >&6; }
13710 else
13711 ok=yes
13712 case " ${configdirs} " in
13713 *" gas "*) ;;
13714 *) ok=no ;;
13715 esac
13717 if test $ok = yes; then
13718 # An in-tree tool is available and we can use it
13719 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13721 $as_echo "just compiled" >&6; }
13722 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
13724 ac_dir=`dirname $AS_FOR_TARGET`
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727 elif test "x$target" = "x$host"; then
13728 # We can use an host tool
13729 AS_FOR_TARGET='$(AS)'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13731 $as_echo "host tool" >&6; }
13732 else
13733 # We need a cross tool
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13740 $as_echo_n "checking where to find the target cc... " >&6; }
13741 if test "x${build}" != "x${host}" ; then
13742 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $CC_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746 $as_echo "pre-installed in $ac_dir" >&6; }
13747 else
13748 # Canadian cross, just use what we found
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750 $as_echo "pre-installed" >&6; }
13752 else
13753 ok=yes
13754 case " ${configdirs} " in
13755 *" gcc "*) ;;
13756 *) ok=no ;;
13757 esac
13759 if test $ok = yes; then
13760 # An in-tree tool is available and we can use it
13761 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13763 $as_echo "just compiled" >&6; }
13764 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $CC_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 elif test "x$target" = "x$host"; then
13770 # We can use an host tool
13771 CC_FOR_TARGET='$(CC)'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13773 $as_echo "host tool" >&6; }
13774 else
13775 # We need a cross tool
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777 $as_echo "pre-installed" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13782 $as_echo_n "checking where to find the target c++... " >&6; }
13783 if test "x${build}" != "x${host}" ; then
13784 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
13786 ac_dir=`dirname $CXX_FOR_TARGET`
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788 $as_echo "pre-installed in $ac_dir" >&6; }
13789 else
13790 # Canadian cross, just use what we found
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792 $as_echo "pre-installed" >&6; }
13794 else
13795 ok=yes
13796 case " ${configdirs} " in
13797 *" gcc "*) ;;
13798 *) ok=no ;;
13799 esac
13800 case ,${enable_languages}, in
13801 *,c++,*) ;;
13802 *) ok=no ;;
13803 esac
13804 if test $ok = yes; then
13805 # An in-tree tool is available and we can use it
13806 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'
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13808 $as_echo "just compiled" >&6; }
13809 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
13811 ac_dir=`dirname $CXX_FOR_TARGET`
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813 $as_echo "pre-installed in $ac_dir" >&6; }
13814 elif test "x$target" = "x$host"; then
13815 # We can use an host tool
13816 CXX_FOR_TARGET='$(CXX)'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13818 $as_echo "host tool" >&6; }
13819 else
13820 # We need a cross tool
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13827 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13828 if test "x${build}" != "x${host}" ; then
13829 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
13831 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833 $as_echo "pre-installed in $ac_dir" >&6; }
13834 else
13835 # Canadian cross, just use what we found
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13839 else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" gcc "*) ;;
13843 *) ok=no ;;
13844 esac
13845 case ,${enable_languages}, in
13846 *,c++,*) ;;
13847 *) ok=no ;;
13848 esac
13849 if test $ok = yes; then
13850 # An in-tree tool is available and we can use it
13851 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'
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13853 $as_echo "just compiled" >&6; }
13854 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858 $as_echo "pre-installed in $ac_dir" >&6; }
13859 elif test "x$target" = "x$host"; then
13860 # We can use an host tool
13861 RAW_CXX_FOR_TARGET='$(CXX)'
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13863 $as_echo "host tool" >&6; }
13864 else
13865 # We need a cross tool
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13867 $as_echo "pre-installed" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13872 $as_echo_n "checking where to find the target dlltool... " >&6; }
13873 if test "x${build}" != "x${host}" ; then
13874 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878 $as_echo "pre-installed in $ac_dir" >&6; }
13879 else
13880 # Canadian cross, just use what we found
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882 $as_echo "pre-installed" >&6; }
13884 else
13885 ok=yes
13886 case " ${configdirs} " in
13887 *" binutils "*) ;;
13888 *) ok=no ;;
13889 esac
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895 $as_echo "just compiled" >&6; }
13896 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900 $as_echo "pre-installed in $ac_dir" >&6; }
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905 $as_echo "host tool" >&6; }
13906 else
13907 # We need a cross tool
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909 $as_echo "pre-installed" >&6; }
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13914 $as_echo_n "checking where to find the target gcc... " >&6; }
13915 if test "x${build}" != "x${host}" ; then
13916 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $GCC_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920 $as_echo "pre-installed in $ac_dir" >&6; }
13921 else
13922 # Canadian cross, just use what we found
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924 $as_echo "pre-installed" >&6; }
13926 else
13927 ok=yes
13928 case " ${configdirs} " in
13929 *" gcc "*) ;;
13930 *) ok=no ;;
13931 esac
13933 if test $ok = yes; then
13934 # An in-tree tool is available and we can use it
13935 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13937 $as_echo "just compiled" >&6; }
13938 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
13940 ac_dir=`dirname $GCC_FOR_TARGET`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943 elif test "x$target" = "x$host"; then
13944 # We can use an host tool
13945 GCC_FOR_TARGET='$()'
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13947 $as_echo "host tool" >&6; }
13948 else
13949 # We need a cross tool
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13951 $as_echo "pre-installed" >&6; }
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13956 $as_echo_n "checking where to find the target gcj... " >&6; }
13957 if test "x${build}" != "x${host}" ; then
13958 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $GCJ_FOR_TARGET`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962 $as_echo "pre-installed in $ac_dir" >&6; }
13963 else
13964 # Canadian cross, just use what we found
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13966 $as_echo "pre-installed" >&6; }
13968 else
13969 ok=yes
13970 case " ${configdirs} " in
13971 *" gcc "*) ;;
13972 *) ok=no ;;
13973 esac
13974 case ,${enable_languages}, in
13975 *,java,*) ;;
13976 *) ok=no ;;
13977 esac
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982 $as_echo "just compiled" >&6; }
13983 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $GCJ_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 GCJ_FOR_TARGET='$(GCJ)'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992 $as_echo "host tool" >&6; }
13993 else
13994 # We need a cross tool
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996 $as_echo "pre-installed" >&6; }
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14001 $as_echo_n "checking where to find the target gfortran... " >&6; }
14002 if test "x${build}" != "x${host}" ; then
14003 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 else
14009 # Canadian cross, just use what we found
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011 $as_echo "pre-installed" >&6; }
14013 else
14014 ok=yes
14015 case " ${configdirs} " in
14016 *" gcc "*) ;;
14017 *) ok=no ;;
14018 esac
14019 case ,${enable_languages}, in
14020 *,fortran,*) ;;
14021 *) ok=no ;;
14022 esac
14023 if test $ok = yes; then
14024 # An in-tree tool is available and we can use it
14025 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14027 $as_echo "just compiled" >&6; }
14028 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032 $as_echo "pre-installed in $ac_dir" >&6; }
14033 elif test "x$target" = "x$host"; then
14034 # We can use an host tool
14035 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14037 $as_echo "host tool" >&6; }
14038 else
14039 # We need a cross tool
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041 $as_echo "pre-installed" >&6; }
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14046 $as_echo_n "checking where to find the target gccgo... " >&6; }
14047 if test "x${build}" != "x${host}" ; then
14048 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $GOC_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052 $as_echo "pre-installed in $ac_dir" >&6; }
14053 else
14054 # Canadian cross, just use what we found
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056 $as_echo "pre-installed" >&6; }
14058 else
14059 ok=yes
14060 case " ${configdirs} " in
14061 *" gcc "*) ;;
14062 *) ok=no ;;
14063 esac
14064 case ,${enable_languages}, in
14065 *,go,*) ;;
14066 *) ok=no ;;
14067 esac
14068 if test $ok = yes; then
14069 # An in-tree tool is available and we can use it
14070 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14072 $as_echo "just compiled" >&6; }
14073 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $GOC_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078 elif test "x$target" = "x$host"; then
14079 # We can use an host tool
14080 GOC_FOR_TARGET='$(GOC)'
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14082 $as_echo "host tool" >&6; }
14083 else
14084 # We need a cross tool
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086 $as_echo "pre-installed" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14091 $as_echo_n "checking where to find the target ld... " >&6; }
14092 if test "x${build}" != "x${host}" ; then
14093 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $LD_FOR_TARGET`
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097 $as_echo "pre-installed in $ac_dir" >&6; }
14098 else
14099 # Canadian cross, just use what we found
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101 $as_echo "pre-installed" >&6; }
14103 else
14104 ok=yes
14105 case " ${configdirs} " in
14106 *" ld "*) ;;
14107 *) ok=no ;;
14108 esac
14110 if test $ok = yes; then
14111 # An in-tree tool is available and we can use it
14112 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14114 $as_echo "just compiled" >&6; }
14115 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $LD_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 elif test "x$target" = "x$host"; then
14121 # We can use an host tool
14122 LD_FOR_TARGET='$(LD)'
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14124 $as_echo "host tool" >&6; }
14125 else
14126 # We need a cross tool
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14128 $as_echo "pre-installed" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14133 $as_echo_n "checking where to find the target lipo... " >&6; }
14134 if test "x${build}" != "x${host}" ; then
14135 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
14137 ac_dir=`dirname $LIPO_FOR_TARGET`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139 $as_echo "pre-installed in $ac_dir" >&6; }
14140 else
14141 # Canadian cross, just use what we found
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143 $as_echo "pre-installed" >&6; }
14145 else
14146 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
14148 ac_dir=`dirname $LIPO_FOR_TARGET`
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150 $as_echo "pre-installed in $ac_dir" >&6; }
14151 elif test "x$target" = "x$host"; then
14152 # We can use an host tool
14153 LIPO_FOR_TARGET='$(LIPO)'
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14155 $as_echo "host tool" >&6; }
14156 else
14157 # We need a cross tool
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14164 $as_echo_n "checking where to find the target nm... " >&6; }
14165 if test "x${build}" != "x${host}" ; then
14166 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14167 # We already found the complete path
14168 ac_dir=`dirname $NM_FOR_TARGET`
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14170 $as_echo "pre-installed in $ac_dir" >&6; }
14171 else
14172 # Canadian cross, just use what we found
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14176 else
14177 ok=yes
14178 case " ${configdirs} " in
14179 *" binutils "*) ;;
14180 *) ok=no ;;
14181 esac
14183 if test $ok = yes; then
14184 # An in-tree tool is available and we can use it
14185 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14187 $as_echo "just compiled" >&6; }
14188 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $NM_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192 $as_echo "pre-installed in $ac_dir" >&6; }
14193 elif test "x$target" = "x$host"; then
14194 # We can use an host tool
14195 NM_FOR_TARGET='$(NM)'
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14197 $as_echo "host tool" >&6; }
14198 else
14199 # We need a cross tool
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201 $as_echo "pre-installed" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14206 $as_echo_n "checking where to find the target objdump... " >&6; }
14207 if test "x${build}" != "x${host}" ; then
14208 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14209 # We already found the complete path
14210 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14212 $as_echo "pre-installed in $ac_dir" >&6; }
14213 else
14214 # Canadian cross, just use what we found
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14218 else
14219 ok=yes
14220 case " ${configdirs} " in
14221 *" binutils "*) ;;
14222 *) ok=no ;;
14223 esac
14225 if test $ok = yes; then
14226 # An in-tree tool is available and we can use it
14227 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14229 $as_echo "just compiled" >&6; }
14230 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 elif test "x$target" = "x$host"; then
14236 # We can use an host tool
14237 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14239 $as_echo "host tool" >&6; }
14240 else
14241 # We need a cross tool
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14243 $as_echo "pre-installed" >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14248 $as_echo_n "checking where to find the target ranlib... " >&6; }
14249 if test "x${build}" != "x${host}" ; then
14250 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14251 # We already found the complete path
14252 ac_dir=`dirname $RANLIB_FOR_TARGET`
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254 $as_echo "pre-installed in $ac_dir" >&6; }
14255 else
14256 # Canadian cross, just use what we found
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14260 else
14261 ok=yes
14262 case " ${configdirs} " in
14263 *" binutils "*) ;;
14264 *) ok=no ;;
14265 esac
14267 if test $ok = yes; then
14268 # An in-tree tool is available and we can use it
14269 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14271 $as_echo "just compiled" >&6; }
14272 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 elif test "x$target" = "x$host"; then
14278 # We can use an host tool
14279 RANLIB_FOR_TARGET='$(RANLIB)'
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14281 $as_echo "host tool" >&6; }
14282 else
14283 # We need a cross tool
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285 $as_echo "pre-installed" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14290 $as_echo_n "checking where to find the target readelf... " >&6; }
14291 if test "x${build}" != "x${host}" ; then
14292 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $READELF_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296 $as_echo "pre-installed in $ac_dir" >&6; }
14297 else
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14302 else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" binutils "*) ;;
14306 *) ok=no ;;
14307 esac
14309 if test $ok = yes; then
14310 # An in-tree tool is available and we can use it
14311 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14313 $as_echo "just compiled" >&6; }
14314 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 elif test "x$target" = "x$host"; then
14320 # We can use an host tool
14321 READELF_FOR_TARGET='$(READELF)'
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14323 $as_echo "host tool" >&6; }
14324 else
14325 # We need a cross tool
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327 $as_echo "pre-installed" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14332 $as_echo_n "checking where to find the target strip... " >&6; }
14333 if test "x${build}" != "x${host}" ; then
14334 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
14336 ac_dir=`dirname $STRIP_FOR_TARGET`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338 $as_echo "pre-installed in $ac_dir" >&6; }
14339 else
14340 # Canadian cross, just use what we found
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14344 else
14345 ok=yes
14346 case " ${configdirs} " in
14347 *" binutils "*) ;;
14348 *) ok=no ;;
14349 esac
14351 if test $ok = yes; then
14352 # An in-tree tool is available and we can use it
14353 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14355 $as_echo "just compiled" >&6; }
14356 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $STRIP_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360 $as_echo "pre-installed in $ac_dir" >&6; }
14361 elif test "x$target" = "x$host"; then
14362 # We can use an host tool
14363 STRIP_FOR_TARGET='$(STRIP)'
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14365 $as_echo "host tool" >&6; }
14366 else
14367 # We need a cross tool
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369 $as_echo "pre-installed" >&6; }
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14374 $as_echo_n "checking where to find the target windres... " >&6; }
14375 if test "x${build}" != "x${host}" ; then
14376 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14377 # We already found the complete path
14378 ac_dir=`dirname $WINDRES_FOR_TARGET`
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14380 $as_echo "pre-installed in $ac_dir" >&6; }
14381 else
14382 # Canadian cross, just use what we found
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384 $as_echo "pre-installed" >&6; }
14386 else
14387 ok=yes
14388 case " ${configdirs} " in
14389 *" binutils "*) ;;
14390 *) ok=no ;;
14391 esac
14393 if test $ok = yes; then
14394 # An in-tree tool is available and we can use it
14395 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14397 $as_echo "just compiled" >&6; }
14398 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402 $as_echo "pre-installed in $ac_dir" >&6; }
14403 elif test "x$target" = "x$host"; then
14404 # We can use an host tool
14405 WINDRES_FOR_TARGET='$(WINDRES)'
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14407 $as_echo "host tool" >&6; }
14408 else
14409 # We need a cross tool
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411 $as_echo "pre-installed" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14416 $as_echo_n "checking where to find the target windmc... " >&6; }
14417 if test "x${build}" != "x${host}" ; then
14418 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
14420 ac_dir=`dirname $WINDMC_FOR_TARGET`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422 $as_echo "pre-installed in $ac_dir" >&6; }
14423 else
14424 # Canadian cross, just use what we found
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426 $as_echo "pre-installed" >&6; }
14428 else
14429 ok=yes
14430 case " ${configdirs} " in
14431 *" binutils "*) ;;
14432 *) ok=no ;;
14433 esac
14435 if test $ok = yes; then
14436 # An in-tree tool is available and we can use it
14437 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14439 $as_echo "just compiled" >&6; }
14440 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 WINDMC_FOR_TARGET='$(WINDMC)'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449 $as_echo "host tool" >&6; }
14450 else
14451 # We need a cross tool
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14461 # Certain tools may need extra flags.
14462 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14463 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14464 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14466 # When building target libraries, except in a Canadian cross, we use
14467 # the same toolchain as the compiler we just built.
14468 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14469 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14470 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14471 if test $host = $build; then
14472 case " $configdirs " in
14473 *" gcc "*)
14474 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14475 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14476 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14478 esac
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14486 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14487 # Check whether --enable-maintainer-mode was given.
14488 if test "${enable_maintainer_mode+set}" = set; then :
14489 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14490 else
14491 USE_MAINTAINER_MODE=no
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14495 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14498 if test "$USE_MAINTAINER_MODE" = yes; then
14499 MAINTAINER_MODE_TRUE=
14500 MAINTAINER_MODE_FALSE='#'
14501 else
14502 MAINTAINER_MODE_TRUE='#'
14503 MAINTAINER_MODE_FALSE=
14505 MAINT=$MAINTAINER_MODE_TRUE
14507 # ---------------------
14508 # GCC bootstrap support
14509 # ---------------------
14511 # Stage specific cflags for build.
14512 stage1_cflags="-g"
14513 case $build in
14514 vax-*-*)
14515 case ${GCC} in
14516 yes) stage1_cflags="-g -Wa,-J" ;;
14517 *) stage1_cflags="-g -J" ;;
14518 esac ;;
14519 esac
14523 # Enable --enable-checking in stage1 of the compiler.
14524 # Check whether --enable-stage1-checking was given.
14525 if test "${enable_stage1_checking+set}" = set; then :
14526 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14527 else
14528 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14529 stage1_checking=--enable-checking=yes,types
14530 else
14531 stage1_checking=--enable-checking=$enable_checking,types
14537 # Enable -Werror in bootstrap stage2 and later.
14538 # Check whether --enable-werror was given.
14539 if test "${enable_werror+set}" = set; then :
14540 enableval=$enable_werror;
14541 else
14542 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14543 enable_werror=yes
14544 else
14545 enable_werror=no
14549 case ${enable_werror} in
14550 yes) stage2_werror_flag="--enable-werror-always" ;;
14551 *) stage2_werror_flag="" ;;
14552 esac
14555 # Enable --enable-host-shared.
14556 # Check whether --enable-host-shared was given.
14557 if test "${enable_host_shared+set}" = set; then :
14558 enableval=$enable_host_shared; host_shared=$enableval
14559 else
14560 host_shared=no
14565 # Specify what files to not compare during bootstrap.
14567 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14568 case "$target" in
14569 hppa*64*-*-hpux*) ;;
14570 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14571 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14572 esac
14575 ac_config_files="$ac_config_files Makefile"
14577 cat >confcache <<\_ACEOF
14578 # This file is a shell script that caches the results of configure
14579 # tests run on this system so they can be shared between configure
14580 # scripts and configure runs, see configure's option --config-cache.
14581 # It is not useful on other systems. If it contains results you don't
14582 # want to keep, you may remove or edit it.
14584 # config.status only pays attention to the cache file if you give it
14585 # the --recheck option to rerun configure.
14587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14589 # following values.
14591 _ACEOF
14593 # The following way of writing the cache mishandles newlines in values,
14594 # but we know of no workaround that is simple, portable, and efficient.
14595 # So, we kill variables containing newlines.
14596 # Ultrix sh set writes to stderr and can't be redirected directly,
14597 # and sets the high bit in the cache file unless we assign to the vars.
14599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14600 eval ac_val=\$$ac_var
14601 case $ac_val in #(
14602 *${as_nl}*)
14603 case $ac_var in #(
14604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14606 esac
14607 case $ac_var in #(
14608 _ | IFS | as_nl) ;; #(
14609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14610 *) { eval $ac_var=; unset $ac_var;} ;;
14611 esac ;;
14612 esac
14613 done
14615 (set) 2>&1 |
14616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14617 *${as_nl}ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes: double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \.
14620 sed -n \
14621 "s/'/'\\\\''/g;
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14623 ;; #(
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
14626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14628 esac |
14629 sort
14631 sed '
14632 /^ac_cv_env_/b end
14633 t clear
14634 :clear
14635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14636 t end
14637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14638 :end' >>confcache
14639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14640 if test -w "$cache_file"; then
14641 test "x$cache_file" != "x/dev/null" &&
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14643 $as_echo "$as_me: updating cache $cache_file" >&6;}
14644 cat confcache >$cache_file
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14650 rm -f confcache
14652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14653 # Let make expand exec_prefix.
14654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14656 # Transform confdefs.h into DEFS.
14657 # Protect against shell expansion while executing Makefile rules.
14658 # Protect against Makefile macro expansion.
14660 # If the first sed substitution is executed (which looks for macros that
14661 # take arguments), then branch to the quote section. Otherwise,
14662 # look for a macro that doesn't take arguments.
14663 ac_script='
14664 :mline
14665 /\\$/{
14667 s,\\\n,,
14668 b mline
14670 t clear
14671 :clear
14672 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14673 t quote
14674 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14675 t quote
14676 b any
14677 :quote
14678 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14679 s/\[/\\&/g
14680 s/\]/\\&/g
14681 s/\$/$$/g
14683 :any
14686 s/^\n//
14687 s/\n/ /g
14691 DEFS=`sed -n "$ac_script" confdefs.h`
14694 ac_libobjs=
14695 ac_ltlibobjs=
14696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14697 # 1. Remove the extension, and $U if already installed.
14698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14699 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14701 # will be set to the directory where LIBOBJS objects are built.
14702 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14703 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14704 done
14705 LIBOBJS=$ac_libobjs
14707 LTLIBOBJS=$ac_ltlibobjs
14711 : ${CONFIG_STATUS=./config.status}
14712 ac_write_fail=0
14713 ac_clean_files_save=$ac_clean_files
14714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14716 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14717 as_write_fail=0
14718 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14719 #! $SHELL
14720 # Generated by $as_me.
14721 # Run this file to recreate the current configuration.
14722 # Compiler output produced by configure, useful for debugging
14723 # configure, is in config.log if it exists.
14725 debug=false
14726 ac_cs_recheck=false
14727 ac_cs_silent=false
14729 SHELL=\${CONFIG_SHELL-$SHELL}
14730 export SHELL
14731 _ASEOF
14732 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14733 ## -------------------- ##
14734 ## M4sh Initialization. ##
14735 ## -------------------- ##
14737 # Be more Bourne compatible
14738 DUALCASE=1; export DUALCASE # for MKS sh
14739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14740 emulate sh
14741 NULLCMD=:
14742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14743 # is contrary to our usage. Disable this feature.
14744 alias -g '${1+"$@"}'='"$@"'
14745 setopt NO_GLOB_SUBST
14746 else
14747 case `(set -o) 2>/dev/null` in #(
14748 *posix*) :
14749 set -o posix ;; #(
14750 *) :
14752 esac
14756 as_nl='
14758 export as_nl
14759 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14760 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14763 # Prefer a ksh shell builtin over an external printf program on Solaris,
14764 # but without wasting forks for bash or zsh.
14765 if test -z "$BASH_VERSION$ZSH_VERSION" \
14766 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14767 as_echo='print -r --'
14768 as_echo_n='print -rn --'
14769 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14770 as_echo='printf %s\n'
14771 as_echo_n='printf %s'
14772 else
14773 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14774 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14775 as_echo_n='/usr/ucb/echo -n'
14776 else
14777 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14778 as_echo_n_body='eval
14779 arg=$1;
14780 case $arg in #(
14781 *"$as_nl"*)
14782 expr "X$arg" : "X\\(.*\\)$as_nl";
14783 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14784 esac;
14785 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14787 export as_echo_n_body
14788 as_echo_n='sh -c $as_echo_n_body as_echo'
14790 export as_echo_body
14791 as_echo='sh -c $as_echo_body as_echo'
14794 # The user is always right.
14795 if test "${PATH_SEPARATOR+set}" != set; then
14796 PATH_SEPARATOR=:
14797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14799 PATH_SEPARATOR=';'
14804 # IFS
14805 # We need space, tab and new line, in precisely that order. Quoting is
14806 # there to prevent editors from complaining about space-tab.
14807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14808 # splitting by setting IFS to empty value.)
14809 IFS=" "" $as_nl"
14811 # Find who we are. Look in the path if we contain no directory separator.
14812 case $0 in #((
14813 *[\\/]* ) as_myself=$0 ;;
14814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815 for as_dir in $PATH
14817 IFS=$as_save_IFS
14818 test -z "$as_dir" && as_dir=.
14819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14820 done
14821 IFS=$as_save_IFS
14824 esac
14825 # We did not find ourselves, most probably we were run as `sh COMMAND'
14826 # in which case we are not to be found in the path.
14827 if test "x$as_myself" = x; then
14828 as_myself=$0
14830 if test ! -f "$as_myself"; then
14831 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14832 exit 1
14835 # Unset variables that we do not need and which cause bugs (e.g. in
14836 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14837 # suppresses any "Segmentation fault" message there. '((' could
14838 # trigger a bug in pdksh 5.2.14.
14839 for as_var in BASH_ENV ENV MAIL MAILPATH
14840 do eval test x\${$as_var+set} = xset \
14841 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14842 done
14843 PS1='$ '
14844 PS2='> '
14845 PS4='+ '
14847 # NLS nuisances.
14848 LC_ALL=C
14849 export LC_ALL
14850 LANGUAGE=C
14851 export LANGUAGE
14853 # CDPATH.
14854 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14857 # as_fn_error ERROR [LINENO LOG_FD]
14858 # ---------------------------------
14859 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14860 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14861 # script with status $?, using 1 if that was 0.
14862 as_fn_error ()
14864 as_status=$?; test $as_status -eq 0 && as_status=1
14865 if test "$3"; then
14866 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14867 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14869 $as_echo "$as_me: error: $1" >&2
14870 as_fn_exit $as_status
14871 } # as_fn_error
14874 # as_fn_set_status STATUS
14875 # -----------------------
14876 # Set $? to STATUS, without forking.
14877 as_fn_set_status ()
14879 return $1
14880 } # as_fn_set_status
14882 # as_fn_exit STATUS
14883 # -----------------
14884 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14885 as_fn_exit ()
14887 set +e
14888 as_fn_set_status $1
14889 exit $1
14890 } # as_fn_exit
14892 # as_fn_unset VAR
14893 # ---------------
14894 # Portably unset VAR.
14895 as_fn_unset ()
14897 { eval $1=; unset $1;}
14899 as_unset=as_fn_unset
14900 # as_fn_append VAR VALUE
14901 # ----------------------
14902 # Append the text in VALUE to the end of the definition contained in VAR. Take
14903 # advantage of any shell optimizations that allow amortized linear growth over
14904 # repeated appends, instead of the typical quadratic growth present in naive
14905 # implementations.
14906 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14907 eval 'as_fn_append ()
14909 eval $1+=\$2
14911 else
14912 as_fn_append ()
14914 eval $1=\$$1\$2
14916 fi # as_fn_append
14918 # as_fn_arith ARG...
14919 # ------------------
14920 # Perform arithmetic evaluation on the ARGs, and store the result in the
14921 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14922 # must be portable across $(()) and expr.
14923 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14924 eval 'as_fn_arith ()
14926 as_val=$(( $* ))
14928 else
14929 as_fn_arith ()
14931 as_val=`expr "$@" || test $? -eq 1`
14933 fi # as_fn_arith
14936 if expr a : '\(a\)' >/dev/null 2>&1 &&
14937 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14938 as_expr=expr
14939 else
14940 as_expr=false
14943 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14944 as_basename=basename
14945 else
14946 as_basename=false
14949 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14950 as_dirname=dirname
14951 else
14952 as_dirname=false
14955 as_me=`$as_basename -- "$0" ||
14956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14957 X"$0" : 'X\(//\)$' \| \
14958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14959 $as_echo X/"$0" |
14960 sed '/^.*\/\([^/][^/]*\)\/*$/{
14961 s//\1/
14964 /^X\/\(\/\/\)$/{
14965 s//\1/
14968 /^X\/\(\/\).*/{
14969 s//\1/
14972 s/.*/./; q'`
14974 # Avoid depending upon Character Ranges.
14975 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14976 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14977 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14978 as_cr_digits='0123456789'
14979 as_cr_alnum=$as_cr_Letters$as_cr_digits
14981 ECHO_C= ECHO_N= ECHO_T=
14982 case `echo -n x` in #(((((
14983 -n*)
14984 case `echo 'xy\c'` in
14985 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14986 xy) ECHO_C='\c';;
14987 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14988 ECHO_T=' ';;
14989 esac;;
14991 ECHO_N='-n';;
14992 esac
14994 rm -f conf$$ conf$$.exe conf$$.file
14995 if test -d conf$$.dir; then
14996 rm -f conf$$.dir/conf$$.file
14997 else
14998 rm -f conf$$.dir
14999 mkdir conf$$.dir 2>/dev/null
15001 if (echo >conf$$.file) 2>/dev/null; then
15002 if ln -s conf$$.file conf$$ 2>/dev/null; then
15003 as_ln_s='ln -s'
15004 # ... but there are two gotchas:
15005 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15006 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15007 # In both cases, we have to default to `cp -p'.
15008 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15009 as_ln_s='cp -p'
15010 elif ln conf$$.file conf$$ 2>/dev/null; then
15011 as_ln_s=ln
15012 else
15013 as_ln_s='cp -p'
15015 else
15016 as_ln_s='cp -p'
15018 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15019 rmdir conf$$.dir 2>/dev/null
15022 # as_fn_mkdir_p
15023 # -------------
15024 # Create "$as_dir" as a directory, including parents if necessary.
15025 as_fn_mkdir_p ()
15028 case $as_dir in #(
15029 -*) as_dir=./$as_dir;;
15030 esac
15031 test -d "$as_dir" || eval $as_mkdir_p || {
15032 as_dirs=
15033 while :; do
15034 case $as_dir in #(
15035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15036 *) as_qdir=$as_dir;;
15037 esac
15038 as_dirs="'$as_qdir' $as_dirs"
15039 as_dir=`$as_dirname -- "$as_dir" ||
15040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$as_dir" : 'X\(//\)[^/]' \| \
15042 X"$as_dir" : 'X\(//\)$' \| \
15043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X"$as_dir" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15053 /^X\(\/\/\)$/{
15054 s//\1/
15057 /^X\(\/\).*/{
15058 s//\1/
15061 s/.*/./; q'`
15062 test -d "$as_dir" && break
15063 done
15064 test -z "$as_dirs" || eval "mkdir $as_dirs"
15065 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15068 } # as_fn_mkdir_p
15069 if mkdir -p . 2>/dev/null; then
15070 as_mkdir_p='mkdir -p "$as_dir"'
15071 else
15072 test -d ./-p && rmdir ./-p
15073 as_mkdir_p=false
15076 if test -x / >/dev/null 2>&1; then
15077 as_test_x='test -x'
15078 else
15079 if ls -dL / >/dev/null 2>&1; then
15080 as_ls_L_option=L
15081 else
15082 as_ls_L_option=
15084 as_test_x='
15085 eval sh -c '\''
15086 if test -d "$1"; then
15087 test -d "$1/.";
15088 else
15089 case $1 in #(
15090 -*)set "./$1";;
15091 esac;
15092 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15093 ???[sx]*):;;*)false;;esac;fi
15094 '\'' sh
15097 as_executable_p=$as_test_x
15099 # Sed expression to map a string onto a valid CPP name.
15100 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15102 # Sed expression to map a string onto a valid variable name.
15103 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15106 exec 6>&1
15107 ## ----------------------------------- ##
15108 ## Main body of $CONFIG_STATUS script. ##
15109 ## ----------------------------------- ##
15110 _ASEOF
15111 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15114 # Save the log message, to keep $0 and so on meaningful, and to
15115 # report actual input values of CONFIG_FILES etc. instead of their
15116 # values after options handling.
15117 ac_log="
15118 This file was extended by $as_me, which was
15119 generated by GNU Autoconf 2.64. Invocation command line was
15121 CONFIG_FILES = $CONFIG_FILES
15122 CONFIG_HEADERS = $CONFIG_HEADERS
15123 CONFIG_LINKS = $CONFIG_LINKS
15124 CONFIG_COMMANDS = $CONFIG_COMMANDS
15125 $ $0 $@
15127 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15130 _ACEOF
15132 case $ac_config_files in *"
15133 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15134 esac
15138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15139 # Files that config.status was made for.
15140 config_files="$ac_config_files"
15142 _ACEOF
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 ac_cs_usage="\
15146 \`$as_me' instantiates files and other configuration actions
15147 from templates according to the current configuration. Unless the files
15148 and actions are specified as TAGs, all are instantiated by default.
15150 Usage: $0 [OPTION]... [TAG]...
15152 -h, --help print this help, then exit
15153 -V, --version print version number and configuration settings, then exit
15154 -q, --quiet, --silent
15155 do not print progress messages
15156 -d, --debug don't remove temporary files
15157 --recheck update $as_me by reconfiguring in the same conditions
15158 --file=FILE[:TEMPLATE]
15159 instantiate the configuration file FILE
15161 Configuration files:
15162 $config_files
15164 Report bugs to the package provider."
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 ac_cs_version="\\
15169 config.status
15170 configured by $0, generated by GNU Autoconf 2.64,
15171 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15173 Copyright (C) 2009 Free Software Foundation, Inc.
15174 This config.status script is free software; the Free Software Foundation
15175 gives unlimited permission to copy, distribute and modify it."
15177 ac_pwd='$ac_pwd'
15178 srcdir='$srcdir'
15179 INSTALL='$INSTALL'
15180 AWK='$AWK'
15181 test -n "\$AWK" || AWK=awk
15182 _ACEOF
15184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185 # The default lists apply if the user does not specify any file.
15186 ac_need_defaults=:
15187 while test $# != 0
15189 case $1 in
15190 --*=*)
15191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15193 ac_shift=:
15196 ac_option=$1
15197 ac_optarg=$2
15198 ac_shift=shift
15200 esac
15202 case $ac_option in
15203 # Handling of the options.
15204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15205 ac_cs_recheck=: ;;
15206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15207 $as_echo "$ac_cs_version"; exit ;;
15208 --debug | --debu | --deb | --de | --d | -d )
15209 debug=: ;;
15210 --file | --fil | --fi | --f )
15211 $ac_shift
15212 case $ac_optarg in
15213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15214 esac
15215 as_fn_append CONFIG_FILES " '$ac_optarg'"
15216 ac_need_defaults=false;;
15217 --he | --h | --help | --hel | -h )
15218 $as_echo "$ac_cs_usage"; exit ;;
15219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15221 ac_cs_silent=: ;;
15223 # This is an error.
15224 -*) as_fn_error "unrecognized option: \`$1'
15225 Try \`$0 --help' for more information." ;;
15227 *) as_fn_append ac_config_targets " $1"
15228 ac_need_defaults=false ;;
15230 esac
15231 shift
15232 done
15234 ac_configure_extra_args=
15236 if $ac_cs_silent; then
15237 exec 6>/dev/null
15238 ac_configure_extra_args="$ac_configure_extra_args --silent"
15241 _ACEOF
15242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243 if \$ac_cs_recheck; then
15244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15245 shift
15246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15247 CONFIG_SHELL='$SHELL'
15248 export CONFIG_SHELL
15249 exec "\$@"
15252 _ACEOF
15253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254 exec 5>>config.log
15256 echo
15257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15258 ## Running $as_me. ##
15259 _ASBOX
15260 $as_echo "$ac_log"
15261 } >&5
15263 _ACEOF
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266 # INIT-COMMANDS
15268 extrasub_build="$extrasub_build"
15269 extrasub_host="$extrasub_host"
15270 extrasub_target="$extrasub_target"
15272 _ACEOF
15274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 # Handling of arguments.
15277 for ac_config_target in $ac_config_targets
15279 case $ac_config_target in
15280 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15282 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15283 esac
15284 done
15287 # If the user did not use the arguments to specify the items to instantiate,
15288 # then the envvar interface is used. Set only those that are not.
15289 # We use the long form for the default assignment because of an extremely
15290 # bizarre bug on SunOS 4.1.3.
15291 if $ac_need_defaults; then
15292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15295 # Have a temporary directory for convenience. Make it in the build tree
15296 # simply because there is no reason against having it here, and in addition,
15297 # creating and moving files from /tmp can sometimes cause problems.
15298 # Hook for its removal unless debugging.
15299 # Note that there is a small window in which the directory will not be cleaned:
15300 # after its creation but before its name has been assigned to `$tmp'.
15301 $debug ||
15303 tmp=
15304 trap 'exit_status=$?
15305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15307 trap 'as_fn_exit 1' 1 2 13 15
15309 # Create a (secure) tmp directory for tmp files.
15312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15313 test -n "$tmp" && test -d "$tmp"
15314 } ||
15316 tmp=./conf$$-$RANDOM
15317 (umask 077 && mkdir "$tmp")
15318 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15320 # Set up the scripts for CONFIG_FILES section.
15321 # No need to generate them if there are no CONFIG_FILES.
15322 # This happens for instance with `./config.status config.h'.
15323 if test -n "$CONFIG_FILES"; then
15325 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15326 ac_cs_awk_getline=:
15327 ac_cs_awk_pipe_init=
15328 ac_cs_awk_read_file='
15329 while ((getline aline < (F[key])) > 0)
15330 print(aline)
15331 close(F[key])'
15332 ac_cs_awk_pipe_fini=
15333 else
15334 ac_cs_awk_getline=false
15335 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15336 ac_cs_awk_read_file='
15337 print "|#_!!_#|"
15338 print "cat " F[key] " &&"
15339 '$ac_cs_awk_pipe_init
15340 # The final `:' finishes the AND list.
15341 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15343 ac_cr=`echo X | tr X '\015'`
15344 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15345 # But we know of no other shell where ac_cr would be empty at this
15346 # point, so we can use a bashism as a fallback.
15347 if test "x$ac_cr" = x; then
15348 eval ac_cr=\$\'\\r\'
15350 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15352 ac_cs_awk_cr='\r'
15353 else
15354 ac_cs_awk_cr=$ac_cr
15357 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15358 _ACEOF
15360 # Create commands to substitute file output variables.
15362 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15363 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15364 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15365 echo "_ACAWK" &&
15366 echo "_ACEOF"
15367 } >conf$$files.sh &&
15368 . ./conf$$files.sh ||
15369 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15370 rm -f conf$$files.sh
15373 echo "cat >conf$$subs.awk <<_ACEOF" &&
15374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15375 echo "_ACEOF"
15376 } >conf$$subs.sh ||
15377 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15379 ac_delim='%!_!# '
15380 for ac_last_try in false false false false false :; do
15381 . ./conf$$subs.sh ||
15382 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15385 if test $ac_delim_n = $ac_delim_num; then
15386 break
15387 elif $ac_last_try; then
15388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15389 else
15390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15392 done
15393 rm -f conf$$subs.sh
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15397 _ACEOF
15398 sed -n '
15400 s/^/S["/; s/!.*/"]=/
15403 s/^[^!]*!//
15404 :repl
15405 t repl
15406 s/'"$ac_delim"'$//
15407 t delim
15410 s/\(.\{148\}\).*/\1/
15411 t more1
15412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15415 b repl
15416 :more1
15417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15420 s/.\{148\}//
15421 t nl
15422 :delim
15424 s/\(.\{148\}\).*/\1/
15425 t more2
15426 s/["\\]/\\&/g; s/^/"/; s/$/"/
15429 :more2
15430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15433 s/.\{148\}//
15434 t delim
15435 ' <conf$$subs.awk | sed '
15436 /^[^""]/{
15438 s/\n//
15440 ' >>$CONFIG_STATUS || ac_write_fail=1
15441 rm -f conf$$subs.awk
15442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443 _ACAWK
15444 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15445 for (key in S) S_is_set[key] = 1
15446 FS = "\a"
15447 \$ac_cs_awk_pipe_init
15450 line = $ 0
15451 nfields = split(line, field, "@")
15452 substed = 0
15453 len = length(field[1])
15454 for (i = 2; i < nfields; i++) {
15455 key = field[i]
15456 keylen = length(key)
15457 if (S_is_set[key]) {
15458 value = S[key]
15459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15460 len += length(value) + length(field[++i])
15461 substed = 1
15462 } else
15463 len += 1 + keylen
15465 if (nfields == 3 && !substed) {
15466 key = field[2]
15467 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15468 \$ac_cs_awk_read_file
15469 next
15472 print line
15474 \$ac_cs_awk_pipe_fini
15475 _ACAWK
15476 _ACEOF
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15480 else
15482 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15483 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15484 _ACEOF
15486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15488 # trailing colons and then remove the whole line if VPATH becomes empty
15489 # (actually we leave an empty line to preserve line numbers).
15490 if test "x$srcdir" = x.; then
15491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15492 s/:*\$(srcdir):*/:/
15493 s/:*\${srcdir}:*/:/
15494 s/:*@srcdir@:*/:/
15495 s/^\([^=]*=[ ]*\):*/\1/
15496 s/:*$//
15497 s/^[^=]*=[ ]*$//
15501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15502 fi # test -n "$CONFIG_FILES"
15505 eval set X " :F $CONFIG_FILES "
15506 shift
15507 for ac_tag
15509 case $ac_tag in
15510 :[FHLC]) ac_mode=$ac_tag; continue;;
15511 esac
15512 case $ac_mode$ac_tag in
15513 :[FHL]*:*);;
15514 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15515 :[FH]-) ac_tag=-:-;;
15516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15517 esac
15518 ac_save_IFS=$IFS
15519 IFS=:
15520 set x $ac_tag
15521 IFS=$ac_save_IFS
15522 shift
15523 ac_file=$1
15524 shift
15526 case $ac_mode in
15527 :L) ac_source=$1;;
15528 :[FH])
15529 ac_file_inputs=
15530 for ac_f
15532 case $ac_f in
15533 -) ac_f="$tmp/stdin";;
15534 *) # Look for the file first in the build tree, then in the source tree
15535 # (if the path is not absolute). The absolute path cannot be DOS-style,
15536 # because $ac_f cannot contain `:'.
15537 test -f "$ac_f" ||
15538 case $ac_f in
15539 [\\/$]*) false;;
15540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15541 esac ||
15542 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15543 esac
15544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15545 as_fn_append ac_file_inputs " '$ac_f'"
15546 done
15548 # Let's still pretend it is `configure' which instantiates (i.e., don't
15549 # use $as_me), people would be surprised to read:
15550 # /* config.h. Generated by config.status. */
15551 configure_input='Generated from '`
15552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15553 `' by configure.'
15554 if test x"$ac_file" != x-; then
15555 configure_input="$ac_file. $configure_input"
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15557 $as_echo "$as_me: creating $ac_file" >&6;}
15559 # Neutralize special characters interpreted by sed in replacement strings.
15560 case $configure_input in #(
15561 *\&* | *\|* | *\\* )
15562 ac_sed_conf_input=`$as_echo "$configure_input" |
15563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15564 *) ac_sed_conf_input=$configure_input;;
15565 esac
15567 case $ac_tag in
15568 *:-:* | *:-) cat >"$tmp/stdin" \
15569 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15570 esac
15572 esac
15574 ac_dir=`$as_dirname -- "$ac_file" ||
15575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15576 X"$ac_file" : 'X\(//\)[^/]' \| \
15577 X"$ac_file" : 'X\(//\)$' \| \
15578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15579 $as_echo X"$ac_file" |
15580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15581 s//\1/
15584 /^X\(\/\/\)[^/].*/{
15585 s//\1/
15588 /^X\(\/\/\)$/{
15589 s//\1/
15592 /^X\(\/\).*/{
15593 s//\1/
15596 s/.*/./; q'`
15597 as_dir="$ac_dir"; as_fn_mkdir_p
15598 ac_builddir=.
15600 case "$ac_dir" in
15601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15604 # A ".." for each directory in $ac_dir_suffix.
15605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15606 case $ac_top_builddir_sub in
15607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15609 esac ;;
15610 esac
15611 ac_abs_top_builddir=$ac_pwd
15612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15613 # for backward compatibility:
15614 ac_top_builddir=$ac_top_build_prefix
15616 case $srcdir in
15617 .) # We are building in place.
15618 ac_srcdir=.
15619 ac_top_srcdir=$ac_top_builddir_sub
15620 ac_abs_top_srcdir=$ac_pwd ;;
15621 [\\/]* | ?:[\\/]* ) # Absolute name.
15622 ac_srcdir=$srcdir$ac_dir_suffix;
15623 ac_top_srcdir=$srcdir
15624 ac_abs_top_srcdir=$srcdir ;;
15625 *) # Relative name.
15626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15627 ac_top_srcdir=$ac_top_build_prefix$srcdir
15628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15629 esac
15630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15633 case $ac_mode in
15636 # CONFIG_FILE
15639 case $INSTALL in
15640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15642 esac
15643 _ACEOF
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 # If the template does not know about datarootdir, expand it.
15647 # FIXME: This hack should be removed a few years after 2.60.
15648 ac_datarootdir_hack=; ac_datarootdir_seen=
15649 ac_sed_dataroot='
15650 /datarootdir/ {
15654 /@datadir@/p
15655 /@docdir@/p
15656 /@infodir@/p
15657 /@localedir@/p
15658 /@mandir@/p'
15659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15660 *datarootdir*) ac_datarootdir_seen=yes;;
15661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15664 _ACEOF
15665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 ac_datarootdir_hack='
15667 s&@datadir@&$datadir&g
15668 s&@docdir@&$docdir&g
15669 s&@infodir@&$infodir&g
15670 s&@localedir@&$localedir&g
15671 s&@mandir@&$mandir&g
15672 s&\\\${datarootdir}&$datarootdir&g' ;;
15673 esac
15674 _ACEOF
15676 # Neutralize VPATH when `$srcdir' = `.'.
15677 # Shell code in configure.ac might set extrasub.
15678 # FIXME: do we really want to maintain this feature?
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 ac_sed_extra="$ac_vpsub
15681 $extrasub
15682 _ACEOF
15683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15686 s|@configure_input@|$ac_sed_conf_input|;t t
15687 s&@top_builddir@&$ac_top_builddir_sub&;t t
15688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15689 s&@srcdir@&$ac_srcdir&;t t
15690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15691 s&@top_srcdir@&$ac_top_srcdir&;t t
15692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15693 s&@builddir@&$ac_builddir&;t t
15694 s&@abs_builddir@&$ac_abs_builddir&;t t
15695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15696 s&@INSTALL@&$ac_INSTALL&;t t
15697 $ac_datarootdir_hack
15699 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15700 if $ac_cs_awk_getline; then
15701 $AWK -f "$tmp/subs.awk"
15702 else
15703 $AWK -f "$tmp/subs.awk" | $SHELL
15704 fi >$tmp/out \
15705 || as_fn_error "could not create $ac_file" "$LINENO" 5
15707 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15708 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15711 which seems to be undefined. Please make sure it is defined." >&5
15712 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15713 which seems to be undefined. Please make sure it is defined." >&2;}
15715 rm -f "$tmp/stdin"
15716 case $ac_file in
15717 -) cat "$tmp/out" && rm -f "$tmp/out";;
15718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15719 esac \
15720 || as_fn_error "could not create $ac_file" "$LINENO" 5
15725 esac
15728 case $ac_file$ac_mode in
15729 "Makefile":F) sed "$extrasub_build" Makefile |
15730 sed "$extrasub_host" |
15731 sed "$extrasub_target" > mf$$
15732 mv -f mf$$ Makefile ;;
15734 esac
15735 done # for ac_tag
15738 as_fn_exit 0
15739 _ACEOF
15740 ac_clean_files=$ac_clean_files_save
15742 test $ac_write_fail = 0 ||
15743 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15746 # configure is writing to config.log, and then calls config.status.
15747 # config.status does its own redirection, appending to config.log.
15748 # Unfortunately, on DOS this fails, as config.log is still kept open
15749 # by configure, so config.status won't be able to write to it; its
15750 # output is simply discarded. So we exec the FD to /dev/null,
15751 # effectively closing config.log, so it can be properly (re)opened and
15752 # appended to by config.status. When coming back to configure, we
15753 # need to make the FD available again.
15754 if test "$no_create" != yes; then
15755 ac_cs_success=:
15756 ac_config_status_args=
15757 test "$silent" = yes &&
15758 ac_config_status_args="$ac_config_status_args --quiet"
15759 exec 5>/dev/null
15760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15761 exec 5>>config.log
15762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15763 # would make configure fail if this is the last instruction.
15764 $ac_cs_success || as_fn_exit $?
15766 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15768 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}