PR target/64180
[official-gcc.git] / configure
blob297f38e5195a54cc78e0206694c3c5918c60c3ec
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 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_as_accelerator_for
750 enable_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_liboffloadmic
759 enable_static_libjava
760 enable_bootstrap
761 with_mpc
762 with_mpc_include
763 with_mpc_lib
764 with_mpfr_dir
765 with_mpfr
766 with_mpfr_include
767 with_mpfr_lib
768 with_gmp_dir
769 with_gmp
770 with_gmp_include
771 with_gmp_lib
772 with_host_libstdcxx
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_vtable_verify
790 enable_serial_configure
791 with_build_time_tools
792 enable_maintainer_mode
793 enable_stage1_checking
794 enable_werror
795 enable_host_shared
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
806 CXXFLAGS
808 build_configargs
809 host_configargs
810 target_configargs
813 DLLTOOL
815 LIPO
817 RANLIB
818 STRIP
819 WINDRES
820 WINDMC
821 OBJCOPY
822 OBJDUMP
823 READELF
824 CC_FOR_TARGET
825 CXX_FOR_TARGET
826 GCC_FOR_TARGET
827 GCJ_FOR_TARGET
828 GFORTRAN_FOR_TARGET
829 GOC_FOR_TARGET
830 AR_FOR_TARGET
831 AS_FOR_TARGET
832 DLLTOOL_FOR_TARGET
833 LD_FOR_TARGET
834 LIPO_FOR_TARGET
835 NM_FOR_TARGET
836 OBJDUMP_FOR_TARGET
837 RANLIB_FOR_TARGET
838 READELF_FOR_TARGET
839 STRIP_FOR_TARGET
840 WINDRES_FOR_TARGET
841 WINDMC_FOR_TARGET'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1373 esac
1374 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1445 cat <<\_ACEOF
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1481 --disable-libstdcxx do not build libstdc++-v3 directory
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
1486 --enable-bootstrap enable bootstrapping [yes if native build]
1487 --disable-isl-version-check
1488 disable check for ISL version
1489 --enable-lto enable link time optimization support
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
1501 --enable-vtable-verify Enable vtable verification feature
1502 --enable-serial-[{host,target,build}-]configure
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1512 --enable-werror enable -Werror in bootstrap stage2 and later
1513 --enable-host-shared build host code as shared libraries
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1528 --with-mpfr-include=PATH
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
1540 --with-stage1-libs=LIBS libraries for stage1
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
1546 --with-isl=PATH Specify prefix directory for the installed ISL
1547 package. Equivalent to
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
1586 WINDMC WINDMC for the host
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
1589 READELF READELF for the host
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
1600 GOC_FOR_TARGET
1601 GOC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
1618 READELF_FOR_TARGET
1619 READELF for the target
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.64
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_cxx_try_link LINENO
1784 # -------------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_cxx_try_link ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1827 } # ac_fn_cxx_try_link
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_c_try_link
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1878 It was created by $as_me, which was
1879 generated by GNU Autoconf 2.64. Invocation command line was
1881 $ $0 $@
1883 _ACEOF
1884 exec 5>>config.log
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908 _ASUNAME
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 $as_echo "PATH: $as_dir"
1916 done
1917 IFS=$as_save_IFS
1919 } >&5
1921 cat >&5 <<_ACEOF
1924 ## ----------- ##
1925 ## Core tests. ##
1926 ## ----------- ##
1928 _ACEOF
1931 # Keep a trace of the command line.
1932 # Strip out --no-create and --no-recursion so they do not pile up.
1933 # Strip out --silent because we don't want to record it for future runs.
1934 # Also quote any args containing shell meta-characters.
1935 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_configure_args=
1937 ac_configure_args0=
1938 ac_configure_args1=
1939 ac_must_keep_next=false
1940 for ac_pass in 1 2
1942 for ac_arg
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 esac
1952 case $ac_pass in
1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1971 as_fn_append ac_configure_args " '$ac_arg'"
1973 esac
1974 done
1975 done
1976 { ac_configure_args0=; unset ac_configure_args0;}
1977 { ac_configure_args1=; unset ac_configure_args1;}
1979 # When interrupted or exit'd, cleanup temporary files, and complete
1980 # config.log. We remove comments because anyway the quotes in there
1981 # would cause problems or look ugly.
1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984 trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1987 echo
1989 cat <<\_ASBOX
1990 ## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##
1993 _ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 esac |
2023 sort
2025 echo
2027 cat <<\_ASBOX
2028 ## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##
2031 _ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
2045 ## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063 ## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##
2066 _ASBOX
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 test "x$ac_site_file" = xNONE && continue
2132 if test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file"
2138 done
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 $as_echo "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2157 # Check that the precious variables saved in the cache have kept the same
2158 # value.
2159 ac_cache_corrupted=false
2160 for ac_var in $ac_precious_vars; do
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
2165 case $ac_old_set,$ac_new_set in
2166 set,)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,set)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,);;
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 esac
2206 done
2207 if $ac_cache_corrupted; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214 ## -------------------- ##
2215 ## Main body of script. ##
2216 ## -------------------- ##
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 progname=$0
2233 # if PWD already has a value, it is probably wrong.
2234 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2236 # Export original configure arguments for use by sub-configures.
2237 # Quote arguments with shell meta charatcers.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=
2239 set -- "$progname" "$@"
2240 for ac_arg
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251 done
2252 if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2255 # Remove the initial space we just introduced and, as these will be
2256 # expanded by make, quote '$'.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2260 # Find the build, host, and target systems.
2261 ac_aux_dir=
2262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2269 done
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289 $as_echo_n "checking build system type... " >&6; }
2290 if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 ac_build_alias=$build_alias
2294 test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303 $as_echo "$ac_cv_build" >&6; }
2304 case $ac_cv_build in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307 esac
2308 build=$ac_cv_build
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_build
2311 shift
2312 build_cpu=$1
2313 build_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 build_os=$*
2318 IFS=$ac_save_IFS
2319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
2325 esac
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
2332 esac
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
2339 esac
2344 test "$host_noncanonical" = "$target_noncanonical" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_transform_name=s,y,y,
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2422 test "$program_prefix" != NONE &&
2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424 # Use a double $ so make ignores it.
2425 test "$program_suffix" != NONE &&
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427 # Double any \ or $.
2428 # By default was `s,x,x', remove it if useless.
2429 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434 # Get 'install' or 'install-sh' and its variants.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2465 /usr/ucb/* ) ;;
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2481 else
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2496 done
2497 done
2499 esac
2501 done
2502 IFS=$as_save_IFS
2504 rm -rf conftest.one conftest.two conftest.dir
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2509 else
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529 $as_echo_n "checking whether ln works... " >&6; }
2530 if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 rm -f conftestdata_t
2534 echo >conftestdata_f
2535 if ln conftestdata_f conftestdata_t 2>/dev/null
2536 then
2537 acx_cv_prog_LN=ln
2538 else
2539 acx_cv_prog_LN=no
2541 rm -f conftestdata_f conftestdata_t
2544 if test $acx_cv_prog_LN = no; then
2545 LN="cp"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547 $as_echo "no, using $LN" >&6; }
2548 else
2549 LN="$acx_cv_prog_LN"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551 $as_echo "yes" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555 $as_echo_n "checking whether ln -s works... " >&6; }
2556 LN_S=$as_ln_s
2557 if test "$LN_S" = "ln -s"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562 $as_echo "no, using $LN_S" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567 if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588 # Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590 case `"$ac_path_SED" --version 2>&1` in
2591 *GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614 esac
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620 IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2624 else
2625 ac_cv_path_SED=$SED
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630 $as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2634 for ac_prog in gawk mawk nawk awk
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2657 done
2658 done
2659 IFS=$as_save_IFS
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$AWK" && break
2674 done
2677 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2679 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680 # a relative path.
2681 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2685 # Set srcdir to "." if that's what it is.
2686 # This is important for multilib support.
2687 pwd=`${PWDCMD-pwd}`
2688 if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
2692 topsrcdir=$srcpwd
2694 extra_host_args=
2696 ### To add a new directory to the tree, first choose whether it is a target
2697 ### or a host dependent tool. Then put it into the appropriate list
2698 ### (library or tools, host or target), doing a dependency sort.
2700 # Subdirs will be configured in the order listed in build_configdirs,
2701 # configdirs, or target_configdirs; see the serialization section below.
2703 # Dependency sorting is only needed when *configuration* must be done in
2704 # a particular order. In all cases a dependency should be specified in
2705 # the Makefile, whether or not it's implicitly specified here.
2707 # Double entries in build_configdirs, configdirs, or target_configdirs may
2708 # cause circular dependencies and break everything horribly.
2710 # these library is used by various programs built for the build
2711 # environment
2713 build_libs="build-libiberty build-libcpp"
2715 # these tools are built for the build environment
2716 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2718 # these libraries are used by various programs built for the host environment
2720 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2722 # these tools are built for the host environment
2723 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724 # know that we are building the simulator.
2725 # binutils, gas and ld appear in that order because it makes sense to run
2726 # "make check" in that particular order.
2727 # If --enable-gold is used, "gold" may replace "ld".
2728 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2730 # libgcj represents the runtime libraries only used by gcj.
2731 libgcj="target-libffi \
2732 target-zlib \
2733 target-libjava"
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739 target-libbacktrace \
2740 target-libgloss \
2741 target-newlib \
2742 target-libgomp \
2743 target-libcilkrts \
2744 target-liboffloadmic \
2745 target-libatomic \
2746 target-libitm \
2747 target-libstdc++-v3 \
2748 target-libsanitizer \
2749 target-libvtv \
2750 target-libssp \
2751 target-libquadmath \
2752 target-libgfortran \
2753 target-boehm-gc \
2754 ${libgcj} \
2755 target-libobjc \
2756 target-libada \
2757 target-libgo"
2759 # these tools are built using the target libraries, and are intended to
2760 # run only in the target environment
2762 # note: any program that *uses* libraries that are in the "target_libraries"
2763 # list belongs in this list.
2765 target_tools="target-rda"
2767 ################################################################################
2769 ## All tools belong in one of the four categories, and are assigned above
2770 ## We assign ${configdirs} this way to remove all embedded newlines. This
2771 ## is important because configure will choke if they ever get through.
2772 ## ${configdirs} is directories we build using the host tools.
2773 ## ${target_configdirs} is directories we build using the target tools.
2774 configdirs=`echo ${host_libs} ${host_tools}`
2775 target_configdirs=`echo ${target_libraries} ${target_tools}`
2776 build_configdirs=`echo ${build_libs} ${build_tools}`
2780 ################################################################################
2782 srcname="gnu development package"
2784 # This gets set non-empty for some net releases of packages.
2785 appdirs=""
2787 # Define is_cross_compiler to save on calls to 'test'.
2788 is_cross_compiler=
2789 if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
2791 else
2792 is_cross_compiler=yes
2795 # Find the build and target subdir names.
2797 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798 # have matching libraries, they should use host libraries: Makefile.tpl
2799 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800 # However, they still use the build modules, because the corresponding
2801 # host modules (e.g. bison) are only built for the host when bootstrap
2802 # finishes. So:
2803 # - build_subdir is where we find build modules, and never changes.
2804 # - build_libsubdir is where we find build libraries, and can be overridden.
2806 # Prefix 'build-' so this never conflicts with target_subdir.
2807 build_subdir="build-${build_noncanonical}"
2809 # Check whether --with-build-libsubdir was given.
2810 if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2812 else
2813 build_libsubdir="$build_subdir"
2816 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817 if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820 else
2821 host_subdir=.
2823 # No prefix.
2824 target_subdir=${target_noncanonical}
2826 # Be sure to cover against remnants of an in-tree build.
2827 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2832 # Skipdirs are removed silently.
2833 skipdirs=
2834 # Noconfigdirs are removed loudly.
2835 noconfigdirs=""
2837 use_gnu_ld=
2838 # Make sure we don't let GNU ld be added if we didn't want it.
2839 if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
2841 noconfigdirs="$noconfigdirs ld gold"
2844 use_gnu_as=
2845 # Make sure we don't let GNU as be added if we didn't want it.
2846 if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
2851 use_included_zlib=
2852 # Make sure we don't let ZLIB be added if we didn't want it.
2853 if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2858 # some tools are so dependent upon X11 that if we're not building with X,
2859 # it's not even worth trying to configure, much less build, that tool.
2861 case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2864 skipdirs="${skipdirs} tk itcl libgui"
2865 # We won't be able to build gdbtk without X.
2866 enable_gdbtk=no
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869 esac
2871 # Some are only suitable for cross toolchains.
2872 # Remove these if host=target.
2873 cross_only="target-libgloss target-newlib target-opcodes"
2875 case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
2877 esac
2879 # If both --with-headers and --with-libs are specified, default to
2880 # --without-newlib.
2881 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2888 # Recognize --with-newlib/--without-newlib.
2889 case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892 esac
2894 # Check whether --enable-as-accelerator-for was given.
2895 if test "${enable_as_accelerator_for+set}" = set; then :
2896 enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval
2897 else
2898 ENABLE_AS_ACCELERATOR_FOR=no
2902 # Check whether --enable-offload-targets was given.
2903 if test "${enable_offload_targets+set}" = set; then :
2904 enableval=$enable_offload_targets;
2905 if test x"$enable_offload_targets" = x; then
2906 as_fn_error "no offload targets specified" "$LINENO" 5
2909 else
2910 enable_offload_targets=
2914 # Handle --enable-gold, --enable-ld.
2915 # --disable-gold [--enable-ld]
2916 # Build only ld. Default option.
2917 # --enable-gold [--enable-ld]
2918 # Build both gold and ld. Install gold as "ld.gold", install ld
2919 # as "ld.bfd" and "ld".
2920 # --enable-gold=default [--enable-ld]
2921 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2922 # install ld as "ld.bfd".
2923 # --enable-gold[=default] --disable-ld
2924 # Build only gold, which is then installed as both "ld.gold" and "ld".
2925 # --enable-gold --enable-ld=default
2926 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2927 # and ld.bfd).
2928 # In other words, ld is default
2929 # --enable-gold=default --enable-ld=default
2930 # Error.
2932 default_ld=
2933 # Check whether --enable-gold was given.
2934 if test "${enable_gold+set}" = set; then :
2935 enableval=$enable_gold; ENABLE_GOLD=$enableval
2936 else
2937 ENABLE_GOLD=no
2940 case "${ENABLE_GOLD}" in
2941 yes|default)
2942 # Check for ELF target.
2943 is_elf=no
2944 case "${target}" in
2945 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2946 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2947 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2948 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2949 case "${target}" in
2950 *-*-linux*aout* | *-*-linux*oldld*)
2953 is_elf=yes
2955 esac
2956 esac
2958 if test "$is_elf" = "yes"; then
2959 # Check for target supported by gold.
2960 case "${target}" in
2961 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2962 | aarch64*-*-* | tilegx*-*-*)
2963 configdirs="$configdirs gold"
2964 if test x${ENABLE_GOLD} = xdefault; then
2965 default_ld=gold
2967 ENABLE_GOLD=yes
2969 esac
2975 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2977 esac
2979 # Check whether --enable-ld was given.
2980 if test "${enable_ld+set}" = set; then :
2981 enableval=$enable_ld; ENABLE_LD=$enableval
2982 else
2983 ENABLE_LD=yes
2987 case "${ENABLE_LD}" in
2988 default)
2989 if test x${default_ld} != x; then
2990 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2993 yes)
2996 if test x${ENABLE_GOLD} != xyes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2998 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3000 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3003 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3005 esac
3007 # Configure extra directories which are host specific
3009 case "${host}" in
3010 *-cygwin*)
3011 configdirs="$configdirs libtermcap" ;;
3012 esac
3014 # A target can indicate whether a language isn't supported for some reason.
3015 # Only spaces may be used in this macro; not newlines or tabs.
3016 unsupported_languages=
3018 # Remove more programs from consideration, based on the host or
3019 # target this usually means that a port of the program doesn't
3020 # exist yet.
3022 case "${host}" in
3023 i[3456789]86-*-msdosdjgpp*)
3024 noconfigdirs="$noconfigdirs tcl tk itcl"
3026 esac
3029 # Check whether --enable-libquadmath was given.
3030 if test "${enable_libquadmath+set}" = set; then :
3031 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3032 else
3033 ENABLE_LIBQUADMATH=yes
3036 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3037 noconfigdirs="$noconfigdirs target-libquadmath"
3041 # Check whether --enable-libquadmath-support was given.
3042 if test "${enable_libquadmath_support+set}" = set; then :
3043 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3044 else
3045 ENABLE_LIBQUADMATH_SUPPORT=yes
3048 enable_libquadmath_support=
3049 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3050 enable_libquadmath_support=no
3054 # Check whether --enable-libada was given.
3055 if test "${enable_libada+set}" = set; then :
3056 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3057 else
3058 ENABLE_LIBADA=yes
3061 if test "${ENABLE_LIBADA}" != "yes" ; then
3062 noconfigdirs="$noconfigdirs gnattools"
3065 # Check whether --enable-libssp was given.
3066 if test "${enable_libssp+set}" = set; then :
3067 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3068 else
3069 ENABLE_LIBSSP=yes
3073 # Check whether --enable-libstdcxx was given.
3074 if test "${enable_libstdcxx+set}" = set; then :
3075 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3076 else
3077 ENABLE_LIBSTDCXX=default
3080 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3081 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3084 # If this is accelerator compiler and its target is intelmic we enable
3085 # target liboffloadmic by default. If this is compiler with offloading
3086 # for intelmic we enable host liboffloadmic by default. Otherwise
3087 # liboffloadmic is disabled by default.
3088 # Check whether --enable-liboffloadmic was given.
3089 if test "${enable_liboffloadmic+set}" = set; then :
3090 enableval=$enable_liboffloadmic; case "$enableval" in
3091 no | host | target)
3092 enable_liboffloadmic=$enableval ;;
3094 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3095 esac
3096 else
3097 if test "${ENABLE_AS_ACCELERATOR_FOR}" != "no"; then
3098 case "${target}" in
3099 *-intelmic-* | *-intelmicemul-*)
3100 enable_liboffloadmic=target
3101 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3104 enable_liboffloadmic=no
3106 esac
3107 else
3108 case "${enable_offload_targets}" in
3109 *-intelmic-* | *-intelmicemul-*)
3110 enable_liboffloadmic=host
3111 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3114 enable_liboffloadmic=no
3116 esac
3122 # Save it here so that, even in case of --enable-libgcj, if the Java
3123 # front-end isn't enabled, we still get libgcj disabled.
3124 libgcj_saved=$libgcj
3125 case $enable_libgcj in
3126 yes)
3127 # If we reset it here, it won't get added to noconfigdirs in the
3128 # target-specific build rules, so it will be forcibly enabled
3129 # (unless the Java language itself isn't enabled).
3130 libgcj=
3133 # Make sure we get it printed in the list of not supported target libs.
3134 # Don't disable libffi, though, other languages use it.
3135 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3136 # Clear libgcj_saved so that even if java is enabled libffi won't be
3137 # built.
3138 libgcj_saved=
3140 esac
3142 # Check whether --enable-static-libjava was given.
3143 if test "${enable_static_libjava+set}" = set; then :
3144 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3145 else
3146 ENABLE_STATIC_LIBJAVA=no
3149 enable_static_libjava=
3150 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3151 enable_static_libjava=yes
3154 if test x$enable_static_libjava != xyes ; then
3155 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159 # Disable libgomp on non POSIX hosted systems.
3160 if test x$enable_libgomp = x ; then
3161 # Enable libgomp by default on hosted POSIX systems.
3162 case "${target}" in
3163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3165 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3167 *-*-solaris2* | *-*-hpux11*)
3169 *-*-darwin* | *-*-aix*)
3172 noconfigdirs="$noconfigdirs target-libgomp"
3174 esac
3177 # Disable libatomic on unsupported systems.
3178 if test -d ${srcdir}/libatomic; then
3179 if test x$enable_libatomic = x; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3181 $as_echo_n "checking for libatomic support... " >&6; }
3182 if (srcdir=${srcdir}/libatomic; \
3183 . ${srcdir}/configure.tgt; \
3184 test -n "$UNSUPPORTED")
3185 then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 noconfigdirs="$noconfigdirs target-libatomic"
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3196 # Disable libcilkrts on unsupported systems.
3197 if test -d ${srcdir}/libcilkrts; then
3198 if test x$enable_libcilkrts = x; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3200 $as_echo_n "checking for libcilkrts support... " >&6; }
3201 if (srcdir=${srcdir}/libcilkrts; \
3202 . ${srcdir}/configure.tgt; \
3203 test -n "$UNSUPPORTED")
3204 then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 noconfigdirs="$noconfigdirs target-libcilkrts"
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3215 # Disable liboffloadmic on unsupported systems.
3216 if test -d ${srcdir}/liboffloadmic; then
3217 if test x$enable_liboffloadmic != xno; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3219 $as_echo_n "checking for liboffloadmic support... " >&6; }
3220 if (srcdir=${srcdir}/liboffloadmic; \
3221 . ${srcdir}/configure.tgt; \
3222 test -n "$UNSUPPORTED")
3223 then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 noconfigdirs="$noconfigdirs target-liboffloadmic"
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229 $as_echo "yes" >&6; }
3234 # Disable libitm on unsupported systems.
3235 if test -d ${srcdir}/libitm; then
3236 if test x$enable_libitm = x; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3238 $as_echo_n "checking for libitm support... " >&6; }
3239 if (srcdir=${srcdir}/libitm; \
3240 . ${srcdir}/configure.tgt; \
3241 test -n "$UNSUPPORTED")
3242 then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 noconfigdirs="$noconfigdirs target-libitm"
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3253 # Disable libsanitizer on unsupported systems.
3254 if test -d ${srcdir}/libsanitizer; then
3255 if test x$enable_libsanitizer = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3257 $as_echo_n "checking for libsanitizer support... " >&6; }
3258 if (srcdir=${srcdir}/libsanitizer; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libsanitizer"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3272 # Disable libvtv on unsupported systems.
3273 if test -d ${srcdir}/libvtv; then
3274 if test x$enable_libvtv = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3276 $as_echo_n "checking for libvtv support... " >&6; }
3277 if (srcdir=${srcdir}/libvtv; \
3278 . ${srcdir}/configure.tgt; \
3279 test "$VTV_SUPPORTED" != "yes")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-libvtv"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3291 # Disable libquadmath for some systems.
3292 case "${target}" in
3293 avr-*-*)
3294 noconfigdirs="$noconfigdirs target-libquadmath"
3296 # libquadmath is unused on AIX and libquadmath build process use of
3297 # LD_LIBRARY_PATH can break AIX bootstrap.
3298 powerpc-*-aix* | rs6000-*-aix*)
3299 noconfigdirs="$noconfigdirs target-libquadmath"
3301 esac
3303 # Disable libssp for some systems.
3304 case "${target}" in
3305 avr-*-*)
3306 # No hosted I/O support.
3307 noconfigdirs="$noconfigdirs target-libssp"
3309 powerpc-*-aix* | rs6000-*-aix*)
3310 noconfigdirs="$noconfigdirs target-libssp"
3312 rl78-*-*)
3313 # libssp uses a misaligned load to trigger a fault, but the RL78
3314 # doesn't fault for those - instead, it gives a build-time error
3315 # for explicit misaligned loads.
3316 noconfigdirs="$noconfigdirs target-libssp"
3318 esac
3320 # Disable libstdc++-v3 for some systems.
3321 # Allow user to override this if they pass --enable-libstdc++-v3
3322 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3323 case "${target}" in
3324 *-*-vxworks*)
3325 # VxWorks uses the Dinkumware C++ library.
3326 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3328 arm*-wince-pe*)
3329 # the C++ libraries don't build on top of CE's C libraries
3330 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3335 esac
3338 # Disable Fortran for some systems.
3339 case "${target}" in
3340 mmix-*-*)
3341 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3342 unsupported_languages="$unsupported_languages fortran"
3344 esac
3346 # Disable Java if libffi is not supported.
3347 case "${target}" in
3348 aarch64-*-*)
3350 alpha*-*-*)
3352 arm*-*-*)
3354 cris-*-*)
3356 frv-*-*)
3358 hppa*-*-linux*)
3360 hppa*-*-hpux*)
3362 i?86-*-*)
3364 ia64*-*-*)
3366 m32r*-*-*)
3368 m68k-*-*)
3370 mips*-*-rtems*)
3372 mips*-*-linux*)
3374 powerpc*-*-linux*)
3376 powerpc-*-darwin*)
3378 powerpc-*-aix* | rs6000-*-aix*)
3380 powerpc-*-freebsd*)
3382 powerpc64-*-freebsd*)
3384 powerpc*-*-rtems*)
3386 s390-*-* | s390x-*-*)
3388 sh-*-* | sh[34]*-*-*)
3390 sh64-*-* | sh5*-*-*)
3392 sparc*-*-*)
3394 x86_64-*-*)
3396 *-*-*)
3397 unsupported_languages="$unsupported_languages java"
3399 esac
3401 # Disable Java, libgcj or related libraries for some systems.
3402 case "${target}" in
3403 powerpc-*-darwin*)
3405 i[3456789]86-*-darwin*)
3407 x86_64-*-darwin[912]*)
3409 *-*-darwin*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3412 *-*-netware*)
3413 noconfigdirs="$noconfigdirs ${libgcj}"
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs ${libgcj}"
3418 *-*-tpf*)
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3421 *-*-uclinux*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3424 *-*-vxworks*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3427 alpha*-*-*vms*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 arm-wince-pe)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3433 arm*-*-symbianelf*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 bfin-*-*)
3437 noconfigdirs="$noconfigdirs target-boehm-gc"
3439 cris-*-* | crisv32-*-*)
3440 unsupported_languages="$unsupported_languages java"
3441 case "${target}" in
3442 *-*-linux*)
3444 *) # See PR46792 regarding target-libffi.
3445 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3446 esac
3448 hppa*64*-*-linux*)
3449 # In this case, it's because the hppa64-linux target is for
3450 # the kernel only at this point and has no libc, and thus no
3451 # headers, crt*.o, etc., all of which are needed by these.
3452 unsupported_languages="$unsupported_languages java"
3454 hppa*64*-*-hpux*)
3455 noconfigdirs="$noconfigdirs ${libgcj}"
3457 hppa*-hp-hpux11*)
3459 hppa*-*-hpux*)
3460 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3461 # build on HP-UX 10.20.
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ia64*-*-*vms*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 i[3456789]86-w64-mingw*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 i[3456789]86-*-mingw*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3473 x86_64-*-mingw*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3476 mmix-*-*)
3477 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3479 powerpc-*-aix*)
3480 # copied from rs6000-*-* entry
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3483 rs6000-*-aix*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3486 *-*-lynxos*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3489 esac
3491 # Disable the go frontend on systems where it is known to not work. Please keep
3492 # this in sync with contrib/config-list.mk.
3493 case "${target}" in
3494 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3495 unsupported_languages="$unsupported_languages go"
3497 esac
3499 # Disable libgo for some systems where it is known to not work.
3500 # For testing, you can easily override this with --enable-libgo.
3501 if test x$enable_libgo = x; then
3502 case "${target}" in
3503 *-*-darwin*)
3504 # PR 46986
3505 noconfigdirs="$noconfigdirs target-libgo"
3507 *-*-cygwin* | *-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-libgo"
3510 *-*-aix*)
3511 noconfigdirs="$noconfigdirs target-libgo"
3513 esac
3516 # Default libgloss CPU subdirectory.
3517 libgloss_dir="$target_cpu"
3519 case "${target}" in
3520 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3521 libgloss_dir=wince
3523 aarch64*-*-* )
3524 libgloss_dir=aarch64
3526 arm*-*-*)
3527 libgloss_dir=arm
3529 cris-*-* | crisv32-*-*)
3530 libgloss_dir=cris
3532 hppa*-*-*)
3533 libgloss_dir=pa
3535 i[3456789]86-*-*)
3536 libgloss_dir=i386
3538 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3539 libgloss_dir=m68hc11
3541 m68*-*-* | fido-*-*)
3542 libgloss_dir=m68k
3544 mips*-*-*)
3545 libgloss_dir=mips
3547 powerpc*-*-*)
3548 libgloss_dir=rs6000
3550 sparc*-*-*)
3551 libgloss_dir=sparc
3553 esac
3555 # Disable newlib and libgloss for various target OSes.
3556 case "${target}" in
3557 alpha*-dec-osf*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 i[3456789]86-*-linux*)
3561 # This section makes it possible to build newlib natively on linux.
3562 # If we are using a cross compiler then don't configure newlib.
3563 if test x${is_cross_compiler} != xno ; then
3564 noconfigdirs="$noconfigdirs target-newlib"
3566 noconfigdirs="$noconfigdirs target-libgloss"
3567 # If we are not using a cross compiler, do configure newlib.
3568 # Note however, that newlib will only be configured in this situation
3569 # if the --with-newlib option has been given, because otherwise
3570 # 'target-newlib' will appear in skipdirs.
3572 i[3456789]86-*-rdos*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 sparc-*-sunos4*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 *-*-aix*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 *-*-beos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 *-*-chorusos)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 *-*-dragonfly*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 *-*-freebsd*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 *-*-lynxos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 *-*-mingw*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 *-*-netbsd*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 *-*-netware*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 *-*-tpf*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 *-*-uclinux*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 *-*-vxworks*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 esac
3622 case "${target}" in
3623 *-*-chorusos)
3625 powerpc-*-darwin*)
3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3627 noconfigdirs="$noconfigdirs sim target-rda"
3629 i[3456789]86-*-darwin*)
3630 noconfigdirs="$noconfigdirs ld gprof"
3631 noconfigdirs="$noconfigdirs sim target-rda"
3633 x86_64-*-darwin[912]*)
3634 noconfigdirs="$noconfigdirs ld gas gprof"
3635 noconfigdirs="$noconfigdirs sim target-rda"
3637 *-*-darwin*)
3638 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3639 noconfigdirs="$noconfigdirs sim target-rda"
3641 *-*-dragonfly*)
3643 *-*-freebsd*)
3644 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3645 && test -f /usr/local/include/gmp.h; then
3646 with_gmp=/usr/local
3649 *-*-kaos*)
3650 # Remove unsupported stuff on all kaOS configurations.
3651 noconfigdirs="$noconfigdirs target-libgloss"
3653 *-*-netbsd*)
3655 *-*-netware*)
3657 *-*-rtems*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3659 # this is not caught below because this stanza matches earlier
3660 case $target in
3661 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3662 esac
3664 # The tpf target doesn't support gdb yet.
3665 *-*-tpf*)
3666 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3668 *-*-uclinux*)
3669 noconfigdirs="$noconfigdirs target-rda"
3671 *-*-vxworks*)
3673 alpha*-dec-osf*)
3674 # ld works, but does not support shared libraries.
3675 # gas doesn't generate exception information.
3676 noconfigdirs="$noconfigdirs gas ld"
3678 alpha*-*-*vms*)
3679 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3681 alpha*-*-*)
3682 # newlib is not 64 bit ready
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3686 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3688 arc-*-*|arceb-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3691 arm-*-pe*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3694 arm-*-riscix*)
3695 noconfigdirs="$noconfigdirs ld target-libgloss"
3697 avr-*-rtems*)
3699 avr-*-*)
3700 if test x${with_avrlibc} != xno; then
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 c4x-*-* | tic4x-*-*)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3707 tic54x-*-*)
3708 noconfigdirs="$noconfigdirs target-libgloss gdb"
3710 d10v-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss"
3713 d30v-*-*)
3714 noconfigdirs="$noconfigdirs gdb"
3716 fr30-*-elf*)
3717 noconfigdirs="$noconfigdirs gdb"
3719 moxie-*-*)
3720 noconfigdirs="$noconfigdirs gprof"
3722 h8300*-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3725 h8500-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3728 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3730 hppa*64*-*-linux*)
3732 hppa*-*-linux*)
3734 hppa*-*-*elf* | \
3735 hppa*-*-lites* | \
3736 hppa*-*-openbsd* | \
3737 hppa*64*-*-*)
3739 hppa*-hp-hpux11*)
3740 noconfigdirs="$noconfigdirs ld"
3742 hppa*-*-pro*)
3744 hppa*-*-*)
3745 noconfigdirs="$noconfigdirs ld"
3747 i960-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 ia64*-*-elf*)
3751 # No gdb support yet.
3752 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3754 ia64*-**-hpux*)
3755 # No ld support yet.
3756 noconfigdirs="$noconfigdirs libgui itcl ld"
3758 ia64*-*-*vms*)
3759 # No ld support yet.
3760 noconfigdirs="$noconfigdirs libgui itcl ld"
3762 i[3456789]86-w64-mingw*)
3764 i[3456789]86-*-mingw*)
3765 target_configdirs="$target_configdirs target-winsup"
3767 *-*-cygwin*)
3768 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 # always build newlib if winsup directory is present.
3771 if test -d "$srcdir/winsup/cygwin"; then
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3773 elif test -d "$srcdir/newlib"; then
3774 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3777 i[3456789]86-*-pe)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3780 i[3456789]86-*-sco3.2v5*)
3781 # The linker does not yet know about weak symbols in COFF,
3782 # and is not configured to handle mixed ELF and COFF.
3783 noconfigdirs="$noconfigdirs ld target-libgloss"
3785 i[3456789]86-*-sco*)
3786 noconfigdirs="$noconfigdirs gprof target-libgloss"
3788 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3789 noconfigdirs="$noconfigdirs target-libgloss"
3791 i[3456789]86-*-sysv4*)
3792 noconfigdirs="$noconfigdirs target-libgloss"
3794 i[3456789]86-*-beos*)
3795 noconfigdirs="$noconfigdirs gdb"
3797 i[3456789]86-*-rdos*)
3798 noconfigdirs="$noconfigdirs gdb"
3800 mmix-*-*)
3801 noconfigdirs="$noconfigdirs gdb"
3803 mt-*-*)
3804 noconfigdirs="$noconfigdirs sim"
3806 powerpc-*-aix*)
3807 # copied from rs6000-*-* entry
3808 noconfigdirs="$noconfigdirs gprof"
3810 powerpc*-*-winnt* | powerpc*-*-pe*)
3811 target_configdirs="$target_configdirs target-winsup"
3812 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3813 # always build newlib.
3814 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3816 # This is temporary until we can link against shared libraries
3817 powerpcle-*-solaris*)
3818 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3820 powerpc-*-beos*)
3821 noconfigdirs="$noconfigdirs gdb"
3823 rs6000-*-lynxos*)
3824 noconfigdirs="$noconfigdirs gprof"
3826 rs6000-*-aix*)
3827 noconfigdirs="$noconfigdirs gprof"
3829 rs6000-*-*)
3830 noconfigdirs="$noconfigdirs gprof"
3832 m68k-apollo-*)
3833 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3835 microblaze*)
3836 noconfigdirs="$noconfigdirs gprof"
3838 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3839 if test x$with_newlib = xyes; then
3840 noconfigdirs="$noconfigdirs gprof"
3843 mips*-*-irix5*)
3844 noconfigdirs="$noconfigdirs gprof target-libgloss"
3846 mips*-*-irix6*)
3847 noconfigdirs="$noconfigdirs gprof target-libgloss"
3849 mips*-*-bsd*)
3850 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3852 mips*-*-linux*)
3854 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3855 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3856 noconfigdirs="$noconfigdirs ld gas gprof"
3858 mips*-*-*)
3859 noconfigdirs="$noconfigdirs gprof"
3861 nds32*-*-*)
3862 noconfigdirs="$noconfigdirs gdb"
3864 nvptx*-*-*)
3865 # nvptx is just a compiler
3866 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3868 or1k*-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3871 sh-*-* | sh64-*-*)
3872 case "${target}" in
3873 sh*-*-elf)
3876 noconfigdirs="$noconfigdirs target-libgloss" ;;
3877 esac
3879 sparc-*-sunos4*)
3880 if test x${is_cross_compiler} = xno ; then
3881 use_gnu_ld=no
3884 tic6x-*-*)
3885 noconfigdirs="$noconfigdirs sim"
3887 tilepro*-*-* | tilegx*-*-*)
3888 noconfigdirs="$noconfigdirs sim"
3890 v810-*-*)
3891 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3893 vax-*-*)
3894 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3896 esac
3898 # If we aren't building newlib, then don't build libgloss, since libgloss
3899 # depends upon some newlib header files.
3900 case "${noconfigdirs}" in
3901 *target-libgloss*) ;;
3902 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3903 esac
3905 # Work in distributions that contain no compiler tools, like Autoconf.
3906 host_makefile_frag=/dev/null
3907 if test -d ${srcdir}/config ; then
3908 case "${host}" in
3909 i[3456789]86-*-msdosdjgpp*)
3910 host_makefile_frag="config/mh-djgpp"
3912 *-cygwin*)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3915 $as_echo_n "checking to see if cat works as expected... " >&6; }
3916 echo a >cygwin-cat-check
3917 if test `cat cygwin-cat-check` = a ; then
3918 rm cygwin-cat-check
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3921 else
3922 rm cygwin-cat-check
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 as_fn_error "The cat command does not ignore carriage return characters.
3926 Please either mount the build directory in binary mode or run the following
3927 commands before running any configure script:
3928 set -o igncr
3929 export SHELLOPTS
3930 " "$LINENO" 5
3933 host_makefile_frag="config/mh-cygwin"
3935 *-mingw*)
3936 host_makefile_frag="config/mh-mingw"
3938 alpha*-*-linux*)
3939 host_makefile_frag="config/mh-alpha-linux"
3941 hppa*-hp-hpux10*)
3942 host_makefile_frag="config/mh-pa-hpux10"
3944 hppa*-hp-hpux*)
3945 host_makefile_frag="config/mh-pa"
3947 hppa*-*)
3948 host_makefile_frag="config/mh-pa"
3950 *-*-darwin*)
3951 host_makefile_frag="config/mh-darwin"
3953 powerpc-*-aix*)
3954 host_makefile_frag="config/mh-ppc-aix"
3956 rs6000-*-aix*)
3957 host_makefile_frag="config/mh-ppc-aix"
3959 esac
3962 if test "${build}" != "${host}" ; then
3963 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3964 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3965 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3966 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3967 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3968 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3969 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3970 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3971 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3972 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3973 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3974 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3975 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3976 else
3977 AR_FOR_BUILD="\$(AR)"
3978 AS_FOR_BUILD="\$(AS)"
3979 CC_FOR_BUILD="\$(CC)"
3980 CXX_FOR_BUILD="\$(CXX)"
3981 GCJ_FOR_BUILD="\$(GCJ)"
3982 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3983 GOC_FOR_BUILD="\$(GOC)"
3984 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985 LD_FOR_BUILD="\$(LD)"
3986 NM_FOR_BUILD="\$(NM)"
3987 RANLIB_FOR_BUILD="\$(RANLIB)"
3988 WINDRES_FOR_BUILD="\$(WINDRES)"
3989 WINDMC_FOR_BUILD="\$(WINDMC)"
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4019 done
4020 done
4021 IFS=$as_save_IFS
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028 $as_echo "$CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4036 if test -z "$ac_cv_prog_CC"; then
4037 ac_ct_CC=$CC
4038 # Extract the first word of "gcc", so it can be a program name with args.
4039 set dummy gcc; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -n "$ac_ct_CC"; then
4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 ac_cv_prog_ac_ct_CC="gcc"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4061 IFS=$as_save_IFS
4065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066 if test -n "$ac_ct_CC"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068 $as_echo "$ac_ct_CC" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078 yes:)
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081 ac_tool_warned=yes ;;
4082 esac
4083 CC=$ac_ct_CC
4085 else
4086 CC="$ac_cv_prog_CC"
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}cc; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4114 IFS=$as_save_IFS
4118 CC=$ac_cv_prog_CC
4119 if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4130 if test -z "$CC"; then
4131 # Extract the first word of "cc", so it can be a program name with args.
4132 set dummy cc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 else
4141 ac_prog_rejected=no
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150 ac_prog_rejected=yes
4151 continue
4153 ac_cv_prog_CC="cc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4161 if test $ac_prog_rejected = yes; then
4162 # We found a bogon in the path, so make sure we never use it.
4163 set dummy $ac_cv_prog_CC
4164 shift
4165 if test $# != 0; then
4166 # We chose a different compiler from the bogus one.
4167 # However, it has the same basename, so the bogon will be chosen
4168 # first if we set CC to just the basename; use the full file name.
4169 shift
4170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 $as_echo "$CC" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4186 if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
4188 for ac_prog in cl.exe
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4227 test -n "$CC" && break
4228 done
4230 if test -z "$CC"; then
4231 ac_ct_CC=$CC
4232 for ac_prog in cl.exe
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_ac_ct_CC="$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4271 test -n "$ac_ct_CC" && break
4272 done
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 CC=$ac_ct_CC
4290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." "$LINENO" 5; }
4295 # Provide some information about the compiler.
4296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297 set X $ac_compile
4298 ac_compiler=$2
4299 for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 done
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4324 main ()
4328 return 0;
4330 _ACEOF
4331 ac_clean_files_save=$ac_clean_files
4332 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4333 # Try to create an executable without -o first, disregard a.out.
4334 # It will help us diagnose broken compilers, and finding out an intuition
4335 # of exeext.
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337 $as_echo_n "checking for C compiler default output file name... " >&6; }
4338 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4340 # The possible output files:
4341 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4343 ac_rmfiles=
4344 for ac_file in $ac_files
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349 esac
4350 done
4351 rm -f $ac_rmfiles
4353 if { { ac_try="$ac_link_default"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link_default") 2>&5
4361 ac_status=$?
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4367 # so that the user can short-circuit this test for compilers unknown to
4368 # Autoconf.
4369 for ac_file in $ac_files ''
4371 test -f "$ac_file" || continue
4372 case $ac_file in
4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4375 [ab].out )
4376 # We found the default executable, but exeext='' is most
4377 # certainly right.
4378 break;;
4379 *.* )
4380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381 then :; else
4382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4384 # We set ac_cv_exeext here because the later test for it is not
4385 # safe: cross compilers may not add the suffix if given an `-o'
4386 # argument, so we may need to know it at that point already.
4387 # Even if this section looks crufty: it has the advantage of
4388 # actually working.
4389 break;;
4391 break;;
4392 esac
4393 done
4394 test "$ac_cv_exeext" = no && ac_cv_exeext=
4396 else
4397 ac_file=''
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400 $as_echo "$ac_file" >&6; }
4401 if test -z "$ac_file"; then :
4402 $as_echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 { as_fn_set_status 77
4408 as_fn_error "C compiler cannot create executables
4409 See \`config.log' for more details." "$LINENO" 5; }; }
4411 ac_exeext=$ac_cv_exeext
4413 # Check that the compiler produces executables we can run. If not, either
4414 # the compiler is broken, or we cross compile.
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416 $as_echo_n "checking whether the C compiler works... " >&6; }
4417 # If not cross compiling, check that we can run a simple program.
4418 if test "$cross_compiling" != yes; then
4419 if { ac_try='./$ac_file'
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
4430 cross_compiling=no
4431 else
4432 if test "$cross_compiling" = maybe; then
4433 cross_compiling=yes
4434 else
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error "cannot run C compiled programs.
4438 If you meant to cross compile, use \`--host'.
4439 See \`config.log' for more details." "$LINENO" 5; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4447 ac_clean_files=$ac_clean_files_save
4448 # Check that the compiler produces executables we can run. If not, either
4449 # the compiler is broken, or we cross compile.
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451 $as_echo_n "checking whether we are cross compiling... " >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453 $as_echo "$cross_compiling" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456 $as_echo_n "checking for suffix of executables... " >&6; }
4457 if { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
4468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4470 # work properly (i.e., refer to `conftest.exe'), while it won't with
4471 # `rm'.
4472 for ac_file in conftest.exe conftest conftest.*; do
4473 test -f "$ac_file" || continue
4474 case $ac_file in
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477 break;;
4478 * ) break;;
4479 esac
4480 done
4481 else
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error "cannot compute suffix of executables: cannot compile and link
4485 See \`config.log' for more details." "$LINENO" 5; }
4487 rm -f conftest$ac_cv_exeext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489 $as_echo "$ac_cv_exeext" >&6; }
4491 rm -f conftest.$ac_ext
4492 EXEEXT=$ac_cv_exeext
4493 ac_exeext=$EXEEXT
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495 $as_echo_n "checking for suffix of object files... " >&6; }
4496 if test "${ac_cv_objext+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4503 main ()
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.o conftest.obj
4511 if { { ac_try="$ac_compile"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
4519 ac_status=$?
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }; then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529 done
4530 else
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "cannot compute suffix of object files: cannot compile
4537 See \`config.log' for more details." "$LINENO" 5; }
4539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542 $as_echo "$ac_cv_objext" >&6; }
4543 OBJEXT=$ac_cv_objext
4544 ac_objext=$OBJEXT
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4554 main ()
4556 #ifndef __GNUC__
4557 choke me
4558 #endif
4561 return 0;
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_compiler_gnu=yes
4566 else
4567 ac_compiler_gnu=no
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575 if test $ac_compiler_gnu = yes; then
4576 GCC=yes
4577 else
4578 GCC=
4580 ac_test_CFLAGS=${CFLAGS+set}
4581 ac_save_CFLAGS=$CFLAGS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4584 if test "${ac_cv_prog_cc_g+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4595 main ()
4599 return 0;
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_g=yes
4604 else
4605 CFLAGS=""
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4619 else
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4626 main ()
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644 $as_echo "$ac_cv_prog_cc_g" >&6; }
4645 if test "$ac_test_CFLAGS" = set; then
4646 CFLAGS=$ac_save_CFLAGS
4647 elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4649 CFLAGS="-g -O2"
4650 else
4651 CFLAGS="-g"
4653 else
4654 if test "$GCC" = yes; then
4655 CFLAGS="-O2"
4656 else
4657 CFLAGS=
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_cv_prog_cc_c89=no
4666 ac_save_CC=$CC
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #include <stdarg.h>
4670 #include <stdio.h>
4671 #include <sys/types.h>
4672 #include <sys/stat.h>
4673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674 struct buf { int x; };
4675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676 static char *e (p, i)
4677 char **p;
4678 int i;
4680 return p[i];
4682 static char *f (char * (*g) (char **, int), char **p, ...)
4684 char *s;
4685 va_list v;
4686 va_start (v,p);
4687 s = g (p, va_arg (v,int));
4688 va_end (v);
4689 return s;
4692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
4695 as 'x'. The following induces an error, until -std is added to get
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
4698 that's true only with -std. */
4699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4703 #define FOO(x) 'x'
4704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710 int argc;
4711 char **argv;
4713 main ()
4715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4717 return 0;
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723 CC="$ac_save_CC $ac_arg"
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
4727 rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 done
4730 rm -f conftest.$ac_ext
4731 CC=$ac_save_CC
4734 # AC_CACHE_VAL
4735 case "x$ac_cv_prog_cc_c89" in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 $as_echo "none needed" >&6; } ;;
4739 xno)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 $as_echo "unsupported" >&6; } ;;
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 esac
4747 if test "x$ac_cv_prog_cc_c89" != xno; then :
4751 ac_ext=c
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 ac_ext=cpp
4758 ac_cpp='$CXXCPP $CPPFLAGS'
4759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4762 if test -z "$CXX"; then
4763 if test -n "$CCC"; then
4764 CXX=$CCC
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_CXX+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CXX"; then
4777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 CXX=$ac_cv_prog_CXX
4797 if test -n "$CXX"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799 $as_echo "$CXX" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 test -n "$CXX" && break
4807 done
4809 if test -z "$CXX"; then
4810 ac_ct_CXX=$CXX
4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_CXX"; then
4821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_ac_ct_CXX="$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841 if test -n "$ac_ct_CXX"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843 $as_echo "$ac_ct_CXX" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4850 test -n "$ac_ct_CXX" && break
4851 done
4853 if test "x$ac_ct_CXX" = x; then
4854 CXX="g++"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 CXX=$ac_ct_CXX
4868 # Provide some information about the compiler.
4869 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870 set X $ac_compile
4871 ac_compiler=$2
4872 for ac_option in --version -v -V -qversion; do
4873 { { ac_try="$ac_compiler $ac_option >&5"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 $as_echo "$ac_try_echo"; } >&5
4880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4881 ac_status=$?
4882 if test -s conftest.err; then
4883 sed '10a\
4884 ... rest of stderr output deleted ...
4885 10q' conftest.err >conftest.er1
4886 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }
4891 done
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4902 main ()
4904 #ifndef __GNUC__
4905 choke me
4906 #endif
4909 return 0;
4911 _ACEOF
4912 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_compiler_gnu=yes
4914 else
4915 ac_compiler_gnu=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923 if test $ac_compiler_gnu = yes; then
4924 GXX=yes
4925 else
4926 GXX=
4928 ac_test_CXXFLAGS=${CXXFLAGS+set}
4929 ac_save_CXXFLAGS=$CXXFLAGS
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936 ac_cxx_werror_flag=yes
4937 ac_cv_prog_cxx_g=no
4938 CXXFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4943 main ()
4947 return 0;
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951 ac_cv_prog_cxx_g=yes
4952 else
4953 CXXFLAGS=""
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4958 main ()
4962 return 0;
4964 _ACEOF
4965 if ac_fn_cxx_try_compile "$LINENO"; then :
4967 else
4968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 CXXFLAGS="-g"
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 main ()
4978 return 0;
4980 _ACEOF
4981 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_cv_prog_cxx_g=yes
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4993 if test "$ac_test_CXXFLAGS" = set; then
4994 CXXFLAGS=$ac_save_CXXFLAGS
4995 elif test $ac_cv_prog_cxx_g = yes; then
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-g -O2"
4998 else
4999 CXXFLAGS="-g"
5001 else
5002 if test "$GXX" = yes; then
5003 CXXFLAGS="-O2"
5004 else
5005 CXXFLAGS=
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 # We must set the default linker to the linker used by gcc for the correct
5016 # operation of libtool. If LD is not defined and we are using gcc, try to
5017 # set the LD default to the ld used by gcc.
5018 if test -z "$LD"; then
5019 if test "$GCC" = yes; then
5020 case $build in
5021 *-*-mingw*)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5024 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025 esac
5026 case $gcc_prog_ld in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 LD="$gcc_prog_ld" ;;
5030 esac
5034 # Check whether -static-libstdc++ -static-libgcc is supported.
5035 have_static_libs=no
5036 if test "$GCC" = yes; then
5037 saved_LDFLAGS="$LDFLAGS"
5039 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5041 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5042 ac_ext=cpp
5043 ac_cpp='$CXXCPP $CPPFLAGS'
5044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5053 #error -static-libstdc++ not implemented
5054 #endif
5055 int main() {}
5056 _ACEOF
5057 if ac_fn_cxx_try_link "$LINENO"; then :
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059 $as_echo "yes" >&6; }; have_static_libs=yes
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5064 rm -f core conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 LDFLAGS="$saved_LDFLAGS"
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$GNATBIND"; then
5088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 GNATBIND=$ac_cv_prog_GNATBIND
5108 if test -n "$GNATBIND"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5110 $as_echo "$GNATBIND" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_GNATBIND"; then
5119 ac_ct_GNATBIND=$GNATBIND
5120 # Extract the first word of "gnatbind", so it can be a program name with args.
5121 set dummy gnatbind; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_GNATBIND"; then
5128 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5148 if test -n "$ac_ct_GNATBIND"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5150 $as_echo "$ac_ct_GNATBIND" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_GNATBIND" = x; then
5157 GNATBIND="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 GNATBIND=$ac_ct_GNATBIND
5167 else
5168 GNATBIND="$ac_cv_prog_GNATBIND"
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$GNATMAKE"; then
5180 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 GNATMAKE=$ac_cv_prog_GNATMAKE
5200 if test -n "$GNATMAKE"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5202 $as_echo "$GNATMAKE" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_GNATMAKE"; then
5211 ac_ct_GNATMAKE=$GNATMAKE
5212 # Extract the first word of "gnatmake", so it can be a program name with args.
5213 set dummy gnatmake; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_GNATMAKE"; then
5220 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5240 if test -n "$ac_ct_GNATMAKE"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5242 $as_echo "$ac_ct_GNATMAKE" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_GNATMAKE" = x; then
5249 GNATMAKE="no"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 GNATMAKE=$ac_ct_GNATMAKE
5259 else
5260 GNATMAKE="$ac_cv_prog_GNATMAKE"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5264 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5265 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat >conftest.adb <<EOF
5269 procedure conftest is begin null; end conftest;
5271 acx_cv_cc_gcc_supports_ada=no
5272 # There is a bug in old released versions of GCC which causes the
5273 # driver to exit successfully when the appropriate language module
5274 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5275 # Therefore we must check for the error message as well as an
5276 # unsuccessful exit.
5277 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5278 # given a .adb file, but produce no object file. So we must check
5279 # if an object file was really produced to guard against this.
5280 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5281 if test x"$errors" = x && test -f conftest.$ac_objext; then
5282 acx_cv_cc_gcc_supports_ada=yes
5284 rm -f conftest.*
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5287 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5289 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5290 have_gnat=yes
5291 else
5292 have_gnat=no
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5296 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5297 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 echo abfoo >t1
5301 echo cdfoo >t2
5302 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5303 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5304 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5306 else
5307 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5310 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5311 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5313 else
5314 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5317 rm t1 t2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5321 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5322 do_compare="$gcc_cv_prog_cmp_skip"
5326 # Check whether --enable-bootstrap was given.
5327 if test "${enable_bootstrap+set}" = set; then :
5328 enableval=$enable_bootstrap;
5329 else
5330 enable_bootstrap=default
5334 # Issue errors and warnings for invalid/strange bootstrap combinations.
5335 if test -r $srcdir/gcc/configure; then
5336 have_compiler=yes
5337 else
5338 have_compiler=no
5341 case "$have_compiler:$host:$target:$enable_bootstrap" in
5342 *:*:*:no) ;;
5344 # Default behavior. Enable bootstrap if we have a compiler
5345 # and we are in a native configuration.
5346 yes:$build:$build:default)
5347 enable_bootstrap=yes ;;
5349 *:*:*:default)
5350 enable_bootstrap=no ;;
5352 # We have a compiler and we are in a native configuration, bootstrap is ok
5353 yes:$build:$build:yes)
5356 # Other configurations, but we have a compiler. Assume the user knows
5357 # what he's doing.
5358 yes:*:*:yes)
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5360 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5363 # No compiler: if they passed --enable-bootstrap explicitly, fail
5364 no:*:*:yes)
5365 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5367 # Fail if wrong command line
5369 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5371 esac
5373 # Used for setting $lt_cv_objdir
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5375 $as_echo_n "checking for objdir... " >&6; }
5376 if test "${lt_cv_objdir+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 rm -f .libs 2>/dev/null
5380 mkdir .libs 2>/dev/null
5381 if test -d .libs; then
5382 lt_cv_objdir=.libs
5383 else
5384 # MS-DOS does not allow filenames that begin with a dot.
5385 lt_cv_objdir=_libs
5387 rmdir .libs 2>/dev/null
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5390 $as_echo "$lt_cv_objdir" >&6; }
5391 objdir=$lt_cv_objdir
5397 cat >>confdefs.h <<_ACEOF
5398 #define LT_OBJDIR "$lt_cv_objdir/"
5399 _ACEOF
5403 # Check for GMP, MPFR and MPC
5404 gmplibs="-lmpc -lmpfr -lgmp"
5405 gmpinc=
5406 have_gmp=no
5408 # Specify a location for mpc
5409 # check for this first so it ends up on the link line before mpfr.
5411 # Check whether --with-mpc was given.
5412 if test "${with_mpc+set}" = set; then :
5413 withval=$with_mpc;
5417 # Check whether --with-mpc-include was given.
5418 if test "${with_mpc_include+set}" = set; then :
5419 withval=$with_mpc_include;
5423 # Check whether --with-mpc-lib was given.
5424 if test "${with_mpc_lib+set}" = set; then :
5425 withval=$with_mpc_lib;
5429 if test "x$with_mpc" != x; then
5430 gmplibs="-L$with_mpc/lib $gmplibs"
5431 gmpinc="-I$with_mpc/include $gmpinc"
5433 if test "x$with_mpc_include" != x; then
5434 gmpinc="-I$with_mpc_include $gmpinc"
5436 if test "x$with_mpc_lib" != x; then
5437 gmplibs="-L$with_mpc_lib $gmplibs"
5439 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5440 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5441 gmpinc='-I$$s/mpc/src '"$gmpinc"
5442 # Do not test the mpc version. Assume that it is sufficient, since
5443 # it is in the source tree, and the library has not been built yet
5444 # but it would be included on the link line in the version check below
5445 # hence making the test fail.
5446 have_gmp=yes
5449 # Specify a location for mpfr
5450 # check for this first so it ends up on the link line before gmp.
5452 # Check whether --with-mpfr-dir was given.
5453 if test "${with_mpfr_dir+set}" = set; then :
5454 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5455 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5460 # Check whether --with-mpfr was given.
5461 if test "${with_mpfr+set}" = set; then :
5462 withval=$with_mpfr;
5466 # Check whether --with-mpfr-include was given.
5467 if test "${with_mpfr_include+set}" = set; then :
5468 withval=$with_mpfr_include;
5472 # Check whether --with-mpfr-lib was given.
5473 if test "${with_mpfr_lib+set}" = set; then :
5474 withval=$with_mpfr_lib;
5478 if test "x$with_mpfr" != x; then
5479 gmplibs="-L$with_mpfr/lib $gmplibs"
5480 gmpinc="-I$with_mpfr/include $gmpinc"
5482 if test "x$with_mpfr_include" != x; then
5483 gmpinc="-I$with_mpfr_include $gmpinc"
5485 if test "x$with_mpfr_lib" != x; then
5486 gmplibs="-L$with_mpfr_lib $gmplibs"
5488 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5489 # MPFR v3.1.0 moved the sources into a src sub-directory.
5490 if test -d ${srcdir}/mpfr/src; then
5491 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5492 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5493 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5494 else
5495 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5496 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5497 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5499 # Do not test the mpfr version. Assume that it is sufficient, since
5500 # it is in the source tree, and the library has not been built yet
5501 # but it would be included on the link line in the version check below
5502 # hence making the test fail.
5503 have_gmp=yes
5506 # Specify a location for gmp
5508 # Check whether --with-gmp-dir was given.
5509 if test "${with_gmp_dir+set}" = set; then :
5510 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5511 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5516 # Check whether --with-gmp was given.
5517 if test "${with_gmp+set}" = set; then :
5518 withval=$with_gmp;
5522 # Check whether --with-gmp-include was given.
5523 if test "${with_gmp_include+set}" = set; then :
5524 withval=$with_gmp_include;
5528 # Check whether --with-gmp-lib was given.
5529 if test "${with_gmp_lib+set}" = set; then :
5530 withval=$with_gmp_lib;
5535 if test "x$with_gmp" != x; then
5536 gmplibs="-L$with_gmp/lib $gmplibs"
5537 gmpinc="-I$with_gmp/include $gmpinc"
5539 if test "x$with_gmp_include" != x; then
5540 gmpinc="-I$with_gmp_include $gmpinc"
5542 if test "x$with_gmp_lib" != x; then
5543 gmplibs="-L$with_gmp_lib $gmplibs"
5545 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5546 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5547 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5548 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5549 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5550 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5551 # Do not test the gmp version. Assume that it is sufficient, since
5552 # it is in the source tree, and the library has not been built yet
5553 # but it would be included on the link line in the version check below
5554 # hence making the test fail.
5555 have_gmp=yes
5558 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5559 have_gmp=yes
5560 saved_CFLAGS="$CFLAGS"
5561 CFLAGS="$CFLAGS $gmpinc"
5562 # Check for the recommended and required versions of GMP.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5564 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include "gmp.h"
5570 main ()
5573 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5574 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5575 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5576 choke me
5577 #endif
5580 return 0;
5582 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"; then :
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <gmp.h>
5588 main ()
5591 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5592 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5593 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5594 choke me
5595 #endif
5598 return 0;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5606 $as_echo "buggy but acceptable" >&6; }
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }; have_gmp=no
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 # If we have GMP, check the MPFR version.
5616 if test x"$have_gmp" = xyes; then
5617 # Check for the recommended and required versions of MPFR.
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5619 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <gmp.h>
5623 #include <mpfr.h>
5625 main ()
5628 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5629 choke me
5630 #endif
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <gmp.h>
5640 #include <mpfr.h>
5642 main ()
5645 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5646 choke me
5647 #endif
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5658 $as_echo "buggy but acceptable" >&6; }
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }; have_gmp=no
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 # Check for the MPC header version.
5669 if test x"$have_gmp" = xyes ; then
5670 # Check for the recommended and required versions of MPC.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5672 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <mpc.h>
5677 main ()
5680 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5681 choke me
5682 #endif
5685 return 0;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <mpc.h>
5693 main ()
5696 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5697 choke me
5698 #endif
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5709 $as_echo "buggy but acceptable" >&6; }
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }; have_gmp=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 # Now check the MPFR library.
5720 if test x"$have_gmp" = xyes; then
5721 saved_LIBS="$LIBS"
5722 LIBS="$LIBS $gmplibs"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5724 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <mpc.h>
5729 main ()
5732 mpfr_t n;
5733 mpfr_t x;
5734 mpc_t c;
5735 int t;
5736 mpfr_init (n);
5737 mpfr_init (x);
5738 mpfr_atan2 (n, n, x, GMP_RNDN);
5739 mpfr_erfc (n, x, GMP_RNDN);
5740 mpfr_subnormalize (x, t, GMP_RNDN);
5741 mpfr_clear(n);
5742 mpfr_clear(x);
5743 mpc_init2 (c, 53);
5744 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5745 mpc_cosh (c, c, MPC_RNDNN);
5746 mpc_pow (c, c, c, MPC_RNDNN);
5747 mpc_acosh (c, c, MPC_RNDNN);
5748 mpc_clear (c);
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }; have_gmp=no
5761 rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 LIBS="$saved_LIBS"
5766 CFLAGS="$saved_CFLAGS"
5768 # The library versions listed in the error message below should match
5769 # the HARD-minimums enforced above.
5770 if test x$have_gmp != xyes; then
5771 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5772 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5773 their locations. Source code for these libraries can be found at
5774 their respective hosting sites as well as at
5775 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5776 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5777 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5778 make sure that you have installed both the libraries and the header
5779 files. They may be located in separate packages." "$LINENO" 5
5783 # Flags needed for both GMP, MPFR and/or MPC.
5791 # Allow host libstdc++ to be specified for static linking with PPL.
5793 # Check whether --with-host-libstdcxx was given.
5794 if test "${with_host_libstdcxx+set}" = set; then :
5795 withval=$with_host_libstdcxx;
5799 case $with_host_libstdcxx in
5800 no|yes)
5801 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5803 esac
5805 # Libraries to use for stage1 or when not bootstrapping.
5807 # Check whether --with-stage1-libs was given.
5808 if test "${with_stage1_libs+set}" = set; then :
5809 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5810 stage1_libs=
5811 else
5812 stage1_libs=$withval
5814 else
5815 stage1_libs=$with_host_libstdcxx
5820 # Linker flags to use for stage1 or when not bootstrapping.
5822 # Check whether --with-stage1-ldflags was given.
5823 if test "${with_stage1_ldflags+set}" = set; then :
5824 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5825 stage1_ldflags=
5826 else
5827 stage1_ldflags=$withval
5829 else
5830 stage1_ldflags=
5831 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5832 # if supported. But if the user explicitly specified the libraries to use,
5833 # trust that they are doing what they want.
5834 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5835 stage1_ldflags="-static-libstdc++ -static-libgcc"
5841 # Libraries to use for stage2 and later builds. This defaults to the
5842 # argument passed to --with-host-libstdcxx.
5844 # Check whether --with-boot-libs was given.
5845 if test "${with_boot_libs+set}" = set; then :
5846 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5847 poststage1_libs=
5848 else
5849 poststage1_libs=$withval
5851 else
5852 poststage1_libs=$with_host_libstdcxx
5857 # Linker flags to use for stage2 and later builds.
5859 # Check whether --with-boot-ldflags was given.
5860 if test "${with_boot_ldflags+set}" = set; then :
5861 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5862 poststage1_ldflags=
5863 else
5864 poststage1_ldflags=$withval
5866 else
5867 poststage1_ldflags=
5868 # In stages 2 and 3, default to linking libstdc++ and libgcc
5869 # statically. But if the user explicitly specified the libraries to
5870 # use, trust that they are doing what they want.
5871 if test "$poststage1_libs" = ""; then
5872 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5878 # GCC GRAPHITE dependency ISL.
5879 # Basic setup is inlined here, actual checks are in config/isl.m4
5882 # Check whether --with-isl was given.
5883 if test "${with_isl+set}" = set; then :
5884 withval=$with_isl;
5888 # Treat --without-isl as a request to disable
5889 # GRAPHITE support and skip all following checks.
5890 if test "x$with_isl" != "xno"; then
5891 # Check for ISL
5894 # Check whether --with-isl-include was given.
5895 if test "${with_isl_include+set}" = set; then :
5896 withval=$with_isl_include;
5900 # Check whether --with-isl-lib was given.
5901 if test "${with_isl_lib+set}" = set; then :
5902 withval=$with_isl_lib;
5906 # Check whether --enable-isl-version-check was given.
5907 if test "${enable_isl_version_check+set}" = set; then :
5908 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5909 else
5910 ENABLE_ISL_CHECK=yes
5914 # Initialize isllibs and islinc.
5915 case $with_isl in
5917 isllibs=
5918 islinc=
5920 "" | yes)
5923 isllibs="-L$with_isl/lib"
5924 islinc="-I$with_isl/include"
5926 esac
5927 if test "x${with_isl_include}" != x ; then
5928 islinc="-I$with_isl_include"
5930 if test "x${with_isl_lib}" != x; then
5931 isllibs="-L$with_isl_lib"
5933 if test "x${islinc}" = x && test "x${isllibs}" = x \
5934 && test -d ${srcdir}/isl; then
5935 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5936 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5937 ENABLE_ISL_CHECK=no
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5939 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5942 isllibs="${isllibs} -lisl"
5946 if test "${ENABLE_ISL_CHECK}" = yes ; then
5947 _isl_saved_CFLAGS=$CFLAGS
5948 _isl_saved_LDFLAGS=$LDFLAGS
5949 _isl_saved_LIBS=$LIBS
5951 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5952 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5953 LIBS="${_isl_saved_LIBS} -lisl"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5956 $as_echo_n "checking for compatible ISL... " >&6; }
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 #include <isl/val.h>
5961 main ()
5965 return 0;
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"; then :
5969 gcc_cv_isl=yes
5970 else
5971 gcc_cv_isl=no
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5976 $as_echo "$gcc_cv_isl" >&6; }
5978 CFLAGS=$_isl_saved_CFLAGS
5979 LDFLAGS=$_isl_saved_LDFLAGS
5980 LIBS=$_isl_saved_LIBS
5988 if test "x${with_isl}" = xno; then
5989 graphite_requested=no
5990 elif test "x${with_isl}" != x \
5991 || test "x${with_isl_include}" != x \
5992 || test "x${with_isl_lib}" != x ; then
5993 graphite_requested=yes
5994 else
5995 graphite_requested=no
6000 if test "${gcc_cv_isl}" = no ; then
6001 isllibs=
6002 islinc=
6005 if test "${graphite_requested}" = yes \
6006 && test "x${isllibs}" = x \
6007 && test "x${islinc}" = x ; then
6009 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6015 # If the ISL check failed, disable builds of in-tree variant of ISL
6016 if test "x$with_isl" = xno ||
6017 test "x$gcc_cv_isl" = xno; then
6018 noconfigdirs="$noconfigdirs isl"
6019 islinc=
6025 # Check for LTO support.
6026 # Check whether --enable-lto was given.
6027 if test "${enable_lto+set}" = set; then :
6028 enableval=$enable_lto; enable_lto=$enableval
6029 else
6030 enable_lto=yes; default_enable_lto=yes
6037 target_elf=no
6038 case $target in
6039 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6040 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6041 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6042 target_elf=no
6045 target_elf=yes
6047 esac
6049 if test $target_elf = yes; then :
6050 # ELF platforms build the lto-plugin always.
6051 build_lto_plugin=yes
6053 else
6054 if test x"$default_enable_lto" = x"yes" ; then
6055 case $target in
6056 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6057 # On other non-ELF platforms, LTO has yet to be validated.
6058 *) enable_lto=no ;;
6059 esac
6060 else
6061 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6062 # It would also be nice to check the binutils support, but we don't
6063 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6064 # warn during gcc/ subconfigure; unless you're bootstrapping with
6065 # -flto it won't be needed until after installation anyway.
6066 case $target in
6067 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6068 *) if test x"$enable_lto" = x"yes"; then
6069 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6072 esac
6074 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6075 # Build it unless LTO was explicitly disabled.
6076 case $target in
6077 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6078 *) ;;
6079 esac
6084 # Check whether --enable-linker-plugin-configure-flags was given.
6085 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6086 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6087 else
6088 extra_linker_plugin_configure_flags=
6092 # Check whether --enable-linker-plugin-flags was given.
6093 if test "${enable_linker_plugin_flags+set}" = set; then :
6094 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6095 else
6096 extra_linker_plugin_flags=
6102 # By default, C and C++ are the only stage 1 languages.
6103 stage1_languages=,c,
6105 # Target libraries that we bootstrap.
6106 bootstrap_target_libs=,target-libgcc,
6108 # Figure out what language subdirectories are present.
6109 # Look if the user specified --enable-languages="..."; if not, use
6110 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6111 # go away some day.
6112 # NB: embedded tabs in this IF block -- do not untabify
6113 if test -d ${srcdir}/gcc; then
6114 if test x"${enable_languages+set}" != xset; then
6115 if test x"${LANGUAGES+set}" = xset; then
6116 enable_languages="${LANGUAGES}"
6117 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6118 else
6119 enable_languages=all
6121 else
6122 if test x"${enable_languages}" = x ||
6123 test x"${enable_languages}" = xyes;
6124 then
6125 echo configure.in: --enable-languages needs at least one language argument 1>&2
6126 exit 1
6129 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6131 # 'f95' is the old name for the 'fortran' language. We issue a warning
6132 # and make the substitution.
6133 case ,${enable_languages}, in
6134 *,f95,*)
6135 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6136 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6138 esac
6140 # If bootstrapping, C++ must be enabled.
6141 case ",$enable_languages,:$enable_bootstrap" in
6142 *,c++,*:*) ;;
6143 *:yes)
6144 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6145 enable_languages="${enable_languages},c++"
6146 else
6147 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6150 esac
6152 # First scan to see if an enabled language requires some other language.
6153 # We assume that a given config-lang.in will list all the language
6154 # front ends it requires, even if some are required indirectly.
6155 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6156 case ${lang_frag} in
6157 ..) ;;
6158 # The odd quoting in the next line works around
6159 # an apparent bug in bash 1.12 on linux.
6160 ${srcdir}/gcc/[*]/config-lang.in) ;;
6162 # From the config-lang.in, get $language, $lang_requires, and
6163 # $lang_requires_boot_languages.
6164 language=
6165 lang_requires=
6166 lang_requires_boot_languages=
6167 . ${lang_frag}
6168 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6169 case ,${enable_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *,$language,*)
6173 echo " \`$other' language required by \`$language'; enabling" 1>&2
6174 enable_languages="${enable_languages},${other}"
6176 esac
6177 done
6178 for other in ${lang_requires_boot_languages} ; do
6179 if test "$other" != "c"; then
6180 case ,${enable_stage1_languages}, in
6181 *,$other,*) ;;
6182 *,all,*) ;;
6184 case ,${enable_languages}, in
6185 *,$language,*)
6186 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6187 enable_stage1_languages="$enable_stage1_languages,${other}"
6189 esac
6191 esac
6193 done
6195 esac
6196 done
6198 new_enable_languages=,c,
6200 # If LTO is enabled, add the LTO front end.
6201 if test "$enable_lto" = "yes" ; then
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
6206 if test "${build_lto_plugin}" = "yes" ; then
6207 configdirs="$configdirs lto-plugin"
6211 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6212 potential_languages=,c,
6214 enabled_target_libs=
6215 disabled_target_libs=
6217 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6218 case ${lang_frag} in
6219 ..) ;;
6220 # The odd quoting in the next line works around
6221 # an apparent bug in bash 1.12 on linux.
6222 ${srcdir}/gcc/[*]/config-lang.in) ;;
6224 # From the config-lang.in, get $language, $target_libs,
6225 # $lang_dirs, $boot_language, and $build_by_default
6226 language=
6227 target_libs=
6228 lang_dirs=
6229 subdir_requires=
6230 boot_language=no
6231 build_by_default=yes
6232 . ${lang_frag}
6233 if test x${language} = x; then
6234 echo "${lang_frag} doesn't set \$language." 1>&2
6235 exit 1
6238 if test "$language" = "c++"; then
6239 boot_language=yes
6242 add_this_lang=no
6243 case ,${enable_languages}, in
6244 *,${language},*)
6245 # Language was explicitly selected; include it
6246 # unless it is C, which is enabled by default.
6247 if test "$language" != "c"; then
6248 add_this_lang=yes
6251 *,all,*)
6252 # 'all' was selected, select it if it is a default language
6253 if test "$language" != "c"; then
6254 add_this_lang=${build_by_default}
6257 esac
6259 # Disable languages that need other directories if these aren't available.
6260 for i in $subdir_requires; do
6261 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6262 case ,${enable_languages}, in
6263 *,${language},*)
6264 # Specifically requested language; tell them.
6265 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6268 # Silently disable.
6269 add_this_lang=unsupported
6271 esac
6272 done
6274 # Disable Ada if no preexisting GNAT is available.
6275 case ,${enable_languages},:${language}:${have_gnat} in
6276 *,${language},*:ada:no)
6277 # Specifically requested language; tell them.
6278 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6280 *:ada:no)
6281 # Silently disable.
6282 add_this_lang=unsupported
6284 esac
6286 # Disable a language that is unsupported by the target.
6287 case " $unsupported_languages " in
6288 *" $language "*)
6289 add_this_lang=unsupported
6291 esac
6293 case $add_this_lang in
6294 unsupported)
6295 # Remove language-dependent dirs.
6296 disabled_target_libs="$disabled_target_libs $target_libs"
6297 noconfigdirs="$noconfigdirs $lang_dirs"
6300 # Remove language-dependent dirs; still show language as supported.
6301 disabled_target_libs="$disabled_target_libs $target_libs"
6302 noconfigdirs="$noconfigdirs $lang_dirs"
6303 potential_languages="${potential_languages}${language},"
6305 yes)
6306 new_enable_languages="${new_enable_languages}${language},"
6307 potential_languages="${potential_languages}${language},"
6308 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6309 enabled_target_libs="$enabled_target_libs $target_libs"
6310 case "${boot_language}:,$enable_stage1_languages," in
6311 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6312 # Add to (comma-separated) list of stage 1 languages.
6313 case ",$stage1_languages," in
6314 *,$language,* | ,yes, | ,all,) ;;
6315 *) stage1_languages="${stage1_languages}${language}," ;;
6316 esac
6317 # We need to bootstrap any supporting libraries.
6318 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6320 esac
6322 esac
6324 esac
6325 done
6327 # Add target libraries which are only needed for disabled languages
6328 # to noconfigdirs.
6329 if test -n "$disabled_target_libs"; then
6330 for dir in $disabled_target_libs; do
6331 case " $enabled_target_libs " in
6332 *" ${dir} "*) ;;
6333 *) noconfigdirs="$noconfigdirs $dir" ;;
6334 esac
6335 done
6338 # Check whether --enable-stage1-languages was given.
6339 if test "${enable_stage1_languages+set}" = set; then :
6340 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6341 ,no,|,,)
6342 # Set it to something that will have no effect in the loop below
6343 enable_stage1_languages=c ;;
6344 ,yes,)
6345 enable_stage1_languages=`echo $new_enable_languages | \
6346 sed -e "s/^,//" -e "s/,$//" ` ;;
6347 *,all,*)
6348 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6349 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6350 esac
6352 # Add "good" languages from enable_stage1_languages to stage1_languages,
6353 # while "bad" languages go in missing_languages. Leave no duplicates.
6354 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6355 case $potential_languages in
6356 *,$i,*)
6357 case $stage1_languages in
6358 *,$i,*) ;;
6359 *) stage1_languages="$stage1_languages$i," ;;
6360 esac ;;
6362 case $missing_languages in
6363 *,$i,*) ;;
6364 *) missing_languages="$missing_languages$i," ;;
6365 esac ;;
6366 esac
6367 done
6371 # Remove leading/trailing commas that were added for simplicity
6372 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6373 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6374 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6375 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6377 if test "x$missing_languages" != x; then
6378 as_fn_error "
6379 The following requested languages could not be built: ${missing_languages}
6380 Supported languages are: ${potential_languages}" "$LINENO" 5
6382 if test "x$new_enable_languages" != "x$enable_languages"; then
6383 echo The following languages will be built: ${new_enable_languages}
6384 enable_languages="$new_enable_languages"
6388 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6391 # Handle --disable-<component> generically.
6392 for dir in $configdirs $build_configdirs $target_configdirs ; do
6393 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6394 varname=`echo $dirname | sed -e s/+/_/g`
6395 if eval test x\${enable_${varname}} "=" xno ; then
6396 noconfigdirs="$noconfigdirs $dir"
6398 done
6400 # Check for Boehm's garbage collector
6401 # Check whether --enable-objc-gc was given.
6402 if test "${enable_objc_gc+set}" = set; then :
6403 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6404 *,objc,*:*:yes:*target-boehm-gc*)
6405 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6407 esac
6411 # Make sure we only build Boehm's garbage collector if required.
6412 case ,${enable_languages},:${enable_objc_gc} in
6413 *,objc,*:yes)
6414 # Keep target-boehm-gc if requested for Objective-C.
6417 # Otherwise remove target-boehm-gc depending on target-libjava.
6418 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6419 noconfigdirs="$noconfigdirs target-boehm-gc"
6422 esac
6424 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6425 case ,${enable_languages}, in
6426 *,c++,*)
6427 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6428 case "${noconfigdirs}" in
6429 *target-libstdc++-v3*)
6430 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6432 *) ;;
6433 esac
6436 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6438 esac
6440 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6441 # $build_configdirs and $target_configdirs.
6442 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6444 notsupp=""
6445 for dir in . $skipdirs $noconfigdirs ; do
6446 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6447 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6449 if test -r $srcdir/$dirname/configure ; then
6450 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 true
6452 else
6453 notsupp="$notsupp $dir"
6457 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6459 if test -r $srcdir/$dirname/configure ; then
6460 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6461 true
6462 else
6463 notsupp="$notsupp $dir"
6467 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6469 if test -r $srcdir/$dirname/configure ; then
6470 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 true
6472 else
6473 notsupp="$notsupp $dir"
6477 done
6479 # Quietly strip out all directories which aren't configurable in this tree.
6480 # This relies on all configurable subdirectories being autoconfiscated, which
6481 # is now the case.
6482 build_configdirs_all="$build_configdirs"
6483 build_configdirs=
6484 for i in ${build_configdirs_all} ; do
6485 j=`echo $i | sed -e s/build-//g`
6486 if test -f ${srcdir}/$j/configure ; then
6487 build_configdirs="${build_configdirs} $i"
6489 done
6491 configdirs_all="$configdirs"
6492 configdirs=
6493 for i in ${configdirs_all} ; do
6494 if test -f ${srcdir}/$i/configure ; then
6495 configdirs="${configdirs} $i"
6497 done
6499 target_configdirs_all="$target_configdirs"
6500 target_configdirs=
6501 for i in ${target_configdirs_all} ; do
6502 j=`echo $i | sed -e s/target-//g`
6503 if test -f ${srcdir}/$j/configure ; then
6504 target_configdirs="${target_configdirs} $i"
6506 done
6508 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6509 # so we have to add it after the preceding checks.
6510 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6511 then
6512 case " $configdirs " in
6513 *" libiberty "*)
6514 # If we can build libiberty, we can also build libiberty-linker-plugin.
6515 configdirs="$configdirs libiberty-linker-plugin"
6516 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6517 --with-libiberty=../libiberty-linker-plugin";;
6519 as_fn_error "libiberty missing" "$LINENO" 5;;
6520 esac
6523 # Sometimes we have special requirements for the host libiberty.
6524 extra_host_libiberty_configure_flags=
6525 case " $configdirs " in
6526 *" lto-plugin "* | *" libcc1 "*)
6527 # When these are to be built as shared libraries, the same applies to
6528 # libiberty.
6529 extra_host_libiberty_configure_flags=--enable-shared
6531 esac
6534 # Produce a warning message for the subdirs we can't configure.
6535 # This isn't especially interesting in the Cygnus tree, but in the individual
6536 # FSF releases, it's important to let people know when their machine isn't
6537 # supported by the one or two programs in a package.
6539 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6540 # If $appdirs is non-empty, at least one of those directories must still
6541 # be configured, or we error out. (E.g., if the gas release supports a
6542 # specified target in some subdirs but not the gas subdir, we shouldn't
6543 # pretend that all is well.)
6544 if test -n "$appdirs" ; then
6545 for dir in $appdirs ; do
6546 if test -r $dir/Makefile.in ; then
6547 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6548 appdirs=""
6549 break
6551 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6552 appdirs=""
6553 break
6556 done
6557 if test -n "$appdirs" ; then
6558 echo "*** This configuration is not supported by this package." 1>&2
6559 exit 1
6562 # Okay, some application will build, or we don't care to check. Still
6563 # notify of subdirs not getting built.
6564 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6565 echo " ${notsupp}" 1>&2
6566 echo " (Any other directories should still work fine.)" 1>&2
6569 case "$host" in
6570 *msdosdjgpp*)
6571 enable_gdbtk=no ;;
6572 esac
6574 # To find our prefix, in gcc_cv_tool_prefix.
6576 # The user is always right.
6577 if test "${PATH_SEPARATOR+set}" != set; then
6578 echo "#! /bin/sh" >conf$$.sh
6579 echo "exit 0" >>conf$$.sh
6580 chmod +x conf$$.sh
6581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6582 PATH_SEPARATOR=';'
6583 else
6584 PATH_SEPARATOR=:
6586 rm -f conf$$.sh
6591 if test "x$exec_prefix" = xNONE; then
6592 if test "x$prefix" = xNONE; then
6593 gcc_cv_tool_prefix=$ac_default_prefix
6594 else
6595 gcc_cv_tool_prefix=$prefix
6597 else
6598 gcc_cv_tool_prefix=$exec_prefix
6601 # If there is no compiler in the tree, use the PATH only. In any
6602 # case, if there is no compiler in the tree nobody should use
6603 # AS_FOR_TARGET and LD_FOR_TARGET.
6604 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6605 gcc_version=`cat $srcdir/gcc/BASE-VER`
6606 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6611 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6612 else
6613 gcc_cv_tool_dirs=
6616 if test x$build = x$target && test -n "$md_exec_prefix"; then
6617 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6622 copy_dirs=
6625 # Check whether --with-build-sysroot was given.
6626 if test "${with_build_sysroot+set}" = set; then :
6627 withval=$with_build_sysroot; if test x"$withval" != x ; then
6628 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6630 else
6631 SYSROOT_CFLAGS_FOR_TARGET=
6637 # Check whether --with-debug-prefix-map was given.
6638 if test "${with_debug_prefix_map+set}" = set; then :
6639 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6640 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6641 for debug_map in $withval; do
6642 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6643 done
6645 else
6646 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6651 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6652 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6653 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6654 # We want to ensure that TARGET libraries (which we know are built with
6655 # gcc) are built with "-O2 -g", so include those options when setting
6656 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6657 if test "x$CFLAGS_FOR_TARGET" = x; then
6658 CFLAGS_FOR_TARGET=$CFLAGS
6659 case " $CFLAGS " in
6660 *" -O2 "*) ;;
6661 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6662 esac
6663 case " $CFLAGS " in
6664 *" -g "* | *" -g3 "*) ;;
6665 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6666 esac
6670 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6671 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6672 case " $CXXFLAGS " in
6673 *" -O2 "*) ;;
6674 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6675 esac
6676 case " $CXXFLAGS " in
6677 *" -g "* | *" -g3 "*) ;;
6678 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6679 esac
6685 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6686 # the named directory are copied to $(tooldir)/sys-include.
6687 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6688 if test x${is_cross_compiler} = xno ; then
6689 echo 1>&2 '***' --with-headers is only supported when cross compiling
6690 exit 1
6692 if test x"${with_headers}" != xyes ; then
6693 x=${gcc_cv_tool_prefix}
6694 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6698 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6699 # the name directories are copied to $(tooldir)/lib. Multiple directories
6700 # are permitted.
6701 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6702 if test x${is_cross_compiler} = xno ; then
6703 echo 1>&2 '***' --with-libs is only supported when cross compiling
6704 exit 1
6706 if test x"${with_libs}" != xyes ; then
6707 # Copy the libraries in reverse order, so that files in the first named
6708 # library override files in subsequent libraries.
6709 x=${gcc_cv_tool_prefix}
6710 for l in ${with_libs}; do
6711 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6712 done
6716 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6718 # This is done by determining whether or not the appropriate directory
6719 # is available, and by checking whether or not specific configurations
6720 # have requested that this magic not happen.
6722 # The command line options always override the explicit settings in
6723 # configure.in, and the settings in configure.in override this magic.
6725 # If the default for a toolchain is to use GNU as and ld, and you don't
6726 # want to do that, then you should use the --without-gnu-as and
6727 # --without-gnu-ld options for the configure script. Similarly, if
6728 # the default is to use the included zlib and you don't want to do that,
6729 # you should use the --with-system-zlib option for the configure script.
6731 if test x${use_gnu_as} = x &&
6732 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6733 with_gnu_as=yes
6734 extra_host_args="$extra_host_args --with-gnu-as"
6737 if test x${use_gnu_ld} = x &&
6738 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6739 with_gnu_ld=yes
6740 extra_host_args="$extra_host_args --with-gnu-ld"
6743 if test x${use_included_zlib} = x &&
6744 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6746 else
6747 with_system_zlib=yes
6748 extra_host_args="$extra_host_args --with-system-zlib"
6751 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6752 # can detect this case.
6754 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6755 with_newlib=yes
6756 extra_host_args="$extra_host_args --with-newlib"
6759 # Handle ${copy_dirs}
6760 set fnord ${copy_dirs}
6761 shift
6762 while test $# != 0 ; do
6763 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6765 else
6766 echo Copying $1 to $2
6768 # Use the install script to create the directory and all required
6769 # parent directories.
6770 if test -d $2 ; then
6772 else
6773 echo >config.temp
6774 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6777 # Copy the directory, assuming we have tar.
6778 # FIXME: Should we use B in the second tar? Not all systems support it.
6779 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6781 # It is the responsibility of the user to correctly adjust all
6782 # symlinks. If somebody can figure out how to handle them correctly
6783 # here, feel free to add the code.
6785 echo $1 > $2/COPIED
6787 shift; shift
6788 done
6790 # Determine a target-dependent exec_prefix that the installed
6791 # gcc will search in. Keep this list sorted by triplet, with
6792 # the *-*-osname triplets last.
6793 md_exec_prefix=
6794 case "${target}" in
6795 i[34567]86-pc-msdosdjgpp*)
6796 md_exec_prefix=/dev/env/DJDIR/bin
6798 *-*-hpux* | \
6799 *-*-nto-qnx* | \
6800 *-*-solaris2*)
6801 md_exec_prefix=/usr/ccs/bin
6803 esac
6805 extra_arflags_for_target=
6806 extra_nmflags_for_target=
6807 extra_ranlibflags_for_target=
6808 target_makefile_frag=/dev/null
6809 case "${target}" in
6810 spu-*-*)
6811 target_makefile_frag="config/mt-spu"
6813 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6814 target_makefile_frag="config/mt-sde"
6816 mipsisa*-*-elfoabi*)
6817 target_makefile_frag="config/mt-mips-elfoabi"
6819 mips*-*-*linux* | mips*-*-gnu*)
6820 target_makefile_frag="config/mt-mips-gnu"
6822 nios2-*-elf*)
6823 target_makefile_frag="config/mt-nios2-elf"
6825 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6826 target_makefile_frag="config/mt-gnu"
6828 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6829 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6830 # commands to handle both 32-bit and 64-bit objects. These flags are
6831 # harmless if we're using GNU nm or ar.
6832 extra_arflags_for_target=" -X32_64"
6833 extra_nmflags_for_target=" -B -X32_64"
6835 esac
6837 alphaieee_frag=/dev/null
6838 case $target in
6839 alpha*-*-*)
6840 # This just makes sure to use the -mieee option to build target libs.
6841 # This should probably be set individually by each library.
6842 alphaieee_frag="config/mt-alphaieee"
6844 esac
6846 # If --enable-target-optspace always use -Os instead of -O2 to build
6847 # the target libraries, similarly if it is not specified, use -Os
6848 # on selected platforms.
6849 ospace_frag=/dev/null
6850 case "${enable_target_optspace}:${target}" in
6851 yes:*)
6852 ospace_frag="config/mt-ospace"
6854 :d30v-*)
6855 ospace_frag="config/mt-d30v"
6857 :m32r-* | :d10v-* | :fr30-*)
6858 ospace_frag="config/mt-ospace"
6860 no:* | :*)
6863 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6865 esac
6867 # Some systems (e.g., one of the i386-aix systems the gas testers are
6868 # using) don't handle "\$" correctly, so don't use it here.
6869 tooldir='${exec_prefix}'/${target_noncanonical}
6870 build_tooldir=${tooldir}
6872 # Create a .gdbinit file which runs the one in srcdir
6873 # and tells GDB to look there for source files.
6875 if test -r ${srcdir}/.gdbinit ; then
6876 case ${srcdir} in
6877 .) ;;
6878 *) cat > ./.gdbinit <<EOF
6879 # ${NO_EDIT}
6880 dir ${srcdir}
6881 dir .
6882 source ${srcdir}/.gdbinit
6885 esac
6888 # Make sure that the compiler is able to generate an executable. If it
6889 # can't, we are probably in trouble. We don't care whether we can run the
6890 # executable--we might be using a cross compiler--we only care whether it
6891 # can be created. At this point the main configure script has set CC.
6892 we_are_ok=no
6893 echo "int main () { return 0; }" > conftest.c
6894 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6895 if test $? = 0 ; then
6896 if test -s conftest || test -s conftest.exe ; then
6897 we_are_ok=yes
6900 case $we_are_ok in
6902 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6903 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6904 rm -f conftest*
6905 exit 1
6907 esac
6908 rm -f conftest*
6910 # Decide which environment variable is used to find dynamic libraries.
6911 case "${host}" in
6912 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6913 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6914 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6915 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6916 esac
6918 # On systems where the dynamic library environment variable is PATH,
6919 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6920 # built executables to PATH.
6921 if test "$RPATH_ENVVAR" = PATH; then
6922 GCC_SHLIB_SUBDIR=/shlib
6923 else
6924 GCC_SHLIB_SUBDIR=
6927 # Adjust the toplevel makefile according to whether bootstrap was selected.
6928 case $enable_bootstrap in
6929 yes)
6930 bootstrap_suffix=bootstrap
6931 BUILD_CONFIG=bootstrap-debug
6934 bootstrap_suffix=no-bootstrap
6935 BUILD_CONFIG=
6937 esac
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6940 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6943 # Check whether --with-build-config was given.
6944 if test "${with_build_config+set}" = set; then :
6945 withval=$with_build_config; case $with_build_config in
6946 yes) with_build_config= ;;
6947 no) with_build_config= BUILD_CONFIG= ;;
6948 esac
6952 if test "x${with_build_config}" != x; then
6953 BUILD_CONFIG=$with_build_config
6954 else
6955 case $BUILD_CONFIG in
6956 bootstrap-debug)
6957 if echo "int f (void) { return 0; }" > conftest.c &&
6958 ${CC} -c conftest.c &&
6959 mv conftest.o conftest.o.g0 &&
6960 ${CC} -c -g conftest.c &&
6961 mv conftest.o conftest.o.g &&
6962 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6964 else
6965 BUILD_CONFIG=
6967 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6969 esac
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6972 $as_echo "$BUILD_CONFIG" >&6; }
6975 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6977 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6978 # Check whether --enable-vtable-verify was given.
6979 if test "${enable_vtable_verify+set}" = set; then :
6980 enableval=$enable_vtable_verify; case "$enableval" in
6981 yes) enable_vtable_verify=yes ;;
6982 no) enable_vtable_verify=no ;;
6983 *) enable_vtable_verify=no;;
6984 esac
6985 else
6986 enable_vtable_verify=no
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6990 $as_echo "$enable_vtable_verify" >&6; }
6992 # Record target_configdirs and the configure arguments for target and
6993 # build configuration in Makefile.
6994 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6995 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6996 bootstrap_fixincludes=no
6998 # If we are building libgomp, bootstrap it.
6999 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7000 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7003 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7004 # or bootstrap-ubsan, bootstrap it.
7005 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7006 case "$BUILD_CONFIG" in
7007 *bootstrap-asan* | *bootstrap-ubsan* )
7008 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7009 bootstrap_fixincludes=yes
7011 esac
7014 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7015 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7016 test "$enable_vtable_verify" != no; then
7017 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7020 # Determine whether gdb needs tk/tcl or not.
7021 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7022 # and in that case we want gdb to be built without tk. Ugh!
7023 # In fact I believe gdb is the *only* package directly dependent on tk,
7024 # so we should be able to put the 'maybe's in unconditionally and
7025 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7026 # 100% sure that that's safe though.
7028 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7029 case "$enable_gdbtk" in
7031 GDB_TK="" ;;
7032 yes)
7033 GDB_TK="${gdb_tk}" ;;
7035 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7036 # distro. Eventually someone will fix this and move Insight, nee
7037 # gdbtk to a separate directory.
7038 if test -d ${srcdir}/gdb/gdbtk ; then
7039 GDB_TK="${gdb_tk}"
7040 else
7041 GDB_TK=""
7044 esac
7045 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7046 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7048 # Strip out unwanted targets.
7050 # While at that, we remove Makefiles if we were started for recursive
7051 # configuration, so that the top-level Makefile reconfigures them,
7052 # like we used to do when configure itself was recursive.
7054 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7055 # but now we're fixing up the Makefile ourselves with the additional
7056 # commands passed to AC_CONFIG_FILES. Use separate variables
7057 # extrasub-{build,host,target} not because there is any reason to split
7058 # the substitutions up that way, but only to remain below the limit of
7059 # 99 commands in a script, for HP-UX sed.
7060 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7062 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7063 yes:yes:*\ gold\ *:*,c++,*) ;;
7064 yes:yes:*\ gold\ *:*)
7065 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7067 esac
7069 extrasub_build=
7070 for module in ${build_configdirs} ; do
7071 if test -z "${no_recursion}" \
7072 && test -f ${build_subdir}/${module}/Makefile; then
7073 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7074 rm -f ${build_subdir}/${module}/Makefile
7076 extrasub_build="$extrasub_build
7077 /^@if build-$module\$/d
7078 /^@endif build-$module\$/d
7079 /^@if build-$module-$bootstrap_suffix\$/d
7080 /^@endif build-$module-$bootstrap_suffix\$/d"
7081 done
7082 extrasub_host=
7083 for module in ${configdirs} ; do
7084 if test -z "${no_recursion}"; then
7085 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7086 if test -f ${file}; then
7087 echo 1>&2 "*** removing ${file} to force reconfigure"
7088 rm -f ${file}
7090 done
7092 case ${module},${bootstrap_fixincludes} in
7093 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7094 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7095 esac
7096 extrasub_host="$extrasub_host
7097 /^@if $module\$/d
7098 /^@endif $module\$/d
7099 /^@if $module-$host_bootstrap_suffix\$/d
7100 /^@endif $module-$host_bootstrap_suffix\$/d"
7101 done
7102 extrasub_target=
7103 for module in ${target_configdirs} ; do
7104 if test -z "${no_recursion}" \
7105 && test -f ${target_subdir}/${module}/Makefile; then
7106 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7107 rm -f ${target_subdir}/${module}/Makefile
7110 # We only bootstrap target libraries listed in bootstrap_target_libs.
7111 case $bootstrap_target_libs in
7112 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7113 *) target_bootstrap_suffix=no-bootstrap ;;
7114 esac
7116 extrasub_target="$extrasub_target
7117 /^@if target-$module\$/d
7118 /^@endif target-$module\$/d
7119 /^@if target-$module-$target_bootstrap_suffix\$/d
7120 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7121 done
7123 # Do the final fixup along with target modules.
7124 extrasub_target="$extrasub_target
7125 /^@if /,/^@endif /d"
7127 # Create the serialization dependencies. This uses a temporary file.
7129 # Check whether --enable-serial-configure was given.
7130 if test "${enable_serial_configure+set}" = set; then :
7131 enableval=$enable_serial_configure;
7135 case ${enable_serial_configure} in
7136 yes)
7137 enable_serial_build_configure=yes
7138 enable_serial_host_configure=yes
7139 enable_serial_target_configure=yes
7141 esac
7143 # These force 'configure's to be done one at a time, to avoid problems
7144 # with contention over a shared config.cache.
7145 rm -f serdep.tmp
7146 echo '# serdep.tmp' > serdep.tmp
7147 olditem=
7148 test "x${enable_serial_build_configure}" = xyes &&
7149 for item in ${build_configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
7152 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7153 esac
7154 olditem=${item}
7155 done
7156 olditem=
7157 test "x${enable_serial_host_configure}" = xyes &&
7158 for item in ${configdirs} ; do
7159 case ${olditem} in
7160 "") ;;
7161 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7162 esac
7163 olditem=${item}
7164 done
7165 olditem=
7166 test "x${enable_serial_target_configure}" = xyes &&
7167 for item in ${target_configdirs} ; do
7168 case ${olditem} in
7169 "") ;;
7170 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7171 esac
7172 olditem=${item}
7173 done
7174 serialization_dependencies=serdep.tmp
7177 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7178 # target, nonopt, and variable assignments. These are the ones we
7179 # might not want to pass down to subconfigures. The exception being
7180 # --cache-file=/dev/null, which is used to turn off the use of cache
7181 # files altogether, and which should be passed on to subconfigures.
7182 # Also strip program-prefix, program-suffix, and program-transform-name,
7183 # so that we can pass down a consistent program-transform-name.
7184 baseargs=
7185 tbaseargs=
7186 keep_next=no
7187 skip_next=no
7188 eval "set -- $ac_configure_args"
7189 for ac_arg
7191 if test X"$skip_next" = X"yes"; then
7192 skip_next=no
7193 continue
7195 if test X"$keep_next" = X"yes"; then
7196 case $ac_arg in
7197 *\'*)
7198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7199 esac
7200 baseargs="$baseargs '$ac_arg'"
7201 tbaseargs="$tbaseargs '$ac_arg'"
7202 keep_next=no
7203 continue
7206 # Handle separated arguments. Based on the logic generated by
7207 # autoconf 2.59.
7208 case $ac_arg in
7209 *=* | --config-cache | -C | -disable-* | --disable-* \
7210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7212 | -with-* | --with-* | -without-* | --without-* | --x)
7213 separate_arg=no
7216 separate_arg=yes
7219 separate_arg=no
7221 esac
7223 skip_targ=no
7224 case $ac_arg in
7226 --with-* | --without-*)
7227 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7229 case $libopt in
7230 *[-_]include)
7231 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7233 *[-_]lib)
7234 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7237 lib=$libopt
7239 esac
7242 case $lib in
7243 mpc | mpfr | gmp | isl)
7244 # If we're processing --with-$lib, --with-$lib-include or
7245 # --with-$lib-lib, for one of the libs above, and target is
7246 # different from host, don't pass the current argument to any
7247 # target library's configure.
7248 if test x$is_cross_compiler = xyes; then
7249 skip_targ=yes
7252 esac
7254 esac
7256 case "$ac_arg" in
7257 --cache-file=/dev/null | \
7258 -cache-file=/dev/null )
7259 # Handled here to avoid the test to skip args below.
7260 baseargs="$baseargs '$ac_arg'"
7261 tbaseargs="$tbaseargs '$ac_arg'"
7262 # Assert: $separate_arg should always be no.
7263 keep_next=$separate_arg
7265 --no*)
7266 continue
7268 --c* | \
7269 --sr* | \
7270 --ho* | \
7271 --bu* | \
7272 --t* | \
7273 --program-* | \
7274 -cache_file* | \
7275 -srcdir* | \
7276 -host* | \
7277 -build* | \
7278 -target* | \
7279 -program-prefix* | \
7280 -program-suffix* | \
7281 -program-transform-name* )
7282 skip_next=$separate_arg
7283 continue
7286 # An option. Add it.
7287 case $ac_arg in
7288 *\'*)
7289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7290 esac
7291 baseargs="$baseargs '$ac_arg'"
7292 if test X"$skip_targ" = Xno; then
7293 tbaseargs="$tbaseargs '$ac_arg'"
7295 keep_next=$separate_arg
7298 # Either a variable assignment, or a nonopt (triplet). Don't
7299 # pass it down; let the Makefile handle this.
7300 continue
7302 esac
7303 done
7304 # Remove the initial space we just introduced and, as these will be
7305 # expanded by make, quote '$'.
7306 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7308 # Add in --program-transform-name, after --program-prefix and
7309 # --program-suffix have been applied to it. Autoconf has already
7310 # doubled dollar signs and backslashes in program_transform_name; we want
7311 # the backslashes un-doubled, and then the entire thing wrapped in single
7312 # quotes, because this will be expanded first by make and then by the shell.
7313 # Also, because we want to override the logic in subdir configure scripts to
7314 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7315 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7316 ${program_transform_name}
7317 EOF_SED
7318 gcc_transform_name=`cat conftestsed.out`
7319 rm -f conftestsed.out
7320 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7321 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7322 if test "$silent" = yes; then
7323 baseargs="$baseargs --silent"
7324 tbaseargs="$tbaseargs --silent"
7326 baseargs="$baseargs --disable-option-checking"
7327 tbaseargs="$tbaseargs --disable-option-checking"
7329 # Record and document user additions to sub configure arguments.
7334 # For the build-side libraries, we just need to pretend we're native,
7335 # and not use the same cache file. Multilibs are neither needed nor
7336 # desired. We can't even use the same cache file for all build-side
7337 # libraries, as they're compiled differently; some with C, some with
7338 # C++ or with different feature-enabling options.
7339 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7341 # For host modules, accept cache file option, or specification as blank.
7342 case "${cache_file}" in
7343 "") # empty
7344 cache_file_option="" ;;
7345 /* | [A-Za-z]:[\\/]* ) # absolute path
7346 cache_file_option="--cache-file=${cache_file}" ;;
7347 *) # relative path
7348 cache_file_option="--cache-file=../${cache_file}" ;;
7349 esac
7351 # Host dirs don't like to share a cache file either, horribly enough.
7352 # This seems to be due to autoconf 2.5x stupidity.
7353 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7355 target_configargs="$target_configargs ${tbaseargs}"
7357 # Passing a --with-cross-host argument lets the target libraries know
7358 # whether they are being built with a cross-compiler or being built
7359 # native. However, it would be better to use other mechanisms to make the
7360 # sorts of decisions they want to make on this basis. Please consider
7361 # this option to be deprecated. FIXME.
7362 if test x${is_cross_compiler} = xyes ; then
7363 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7366 # Special user-friendly check for native x86_64-linux build, if
7367 # multilib is not explicitly enabled.
7368 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7369 x86_64-*linux*:yes:$build:$build:)
7370 # Make sure we have a developement environment that handles 32-bit
7371 dev64=no
7372 echo "int main () { return 0; }" > conftest.c
7373 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7374 if test $? = 0 ; then
7375 if test -s conftest || test -s conftest.exe ; then
7376 dev64=yes
7379 rm -f conftest*
7380 if test x${dev64} != xyes ; then
7381 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
7384 esac
7386 # Default to --enable-multilib.
7387 if test x${enable_multilib} = x ; then
7388 target_configargs="--enable-multilib ${target_configargs}"
7391 # Pass --with-newlib if appropriate. Note that target_configdirs has
7392 # changed from the earlier setting of with_newlib.
7393 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7394 target_configargs="--with-newlib ${target_configargs}"
7397 # Different target subdirs use different values of certain variables
7398 # (notably CXX). Worse, multilibs use *lots* of different values.
7399 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7400 # it doesn't automatically accept command-line overrides of them.
7401 # This means it's not safe for target subdirs to share a cache file,
7402 # which is disgusting, but there you have it. Hopefully this can be
7403 # fixed in future. It's still worthwhile to use a cache file for each
7404 # directory. I think.
7406 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7407 # We need to pass --target, as newer autoconf's requires consistency
7408 # for target_alias and gcc doesn't manage it consistently.
7409 target_configargs="--cache-file=./config.cache ${target_configargs}"
7411 FLAGS_FOR_TARGET=
7412 case " $target_configdirs " in
7413 *" newlib "*)
7414 case " $target_configargs " in
7415 *" --with-newlib "*)
7416 case "$target" in
7417 *-cygwin*)
7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7420 esac
7422 # If we're not building GCC, don't discard standard headers.
7423 if test -d ${srcdir}/gcc; then
7424 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7426 if test "${build}" != "${host}"; then
7427 # On Canadian crosses, CC_FOR_TARGET will have already been set
7428 # by `configure', so we won't have an opportunity to add -Bgcc/
7429 # to it. This is right: we don't want to search that directory
7430 # for binaries, but we want the header files in there, so add
7431 # them explicitly.
7432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7434 # Someone might think of using the pre-installed headers on
7435 # Canadian crosses, in case the installed compiler is not fully
7436 # compatible with the compiler being built. In this case, it
7437 # would be better to flag an error than risking having
7438 # incompatible object files being constructed. We can't
7439 # guarantee that an error will be flagged, but let's hope the
7440 # compiler will do it, when presented with incompatible header
7441 # files.
7445 case "${target}-${is_cross_compiler}" in
7446 i[3456789]86-*-linux*-no)
7447 # Here host == target, so we don't need to build gcc,
7448 # so we don't want to discard standard headers.
7449 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7452 # If we're building newlib, use its generic headers last, but search
7453 # for any libc-related directories first (so make it the last -B
7454 # switch).
7455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7457 # If we're building libgloss, find the startup file, simulator library
7458 # and linker script.
7459 case " $target_configdirs " in
7460 *" libgloss "*)
7461 # Look for startup file, simulator library and maybe linker script.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7463 # Look for libnosys.a in case the target needs it.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7465 # Most targets have the linker script in the source directory.
7466 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7468 esac
7470 esac
7472 esac
7474 esac
7476 case "$target" in
7477 x86_64-*mingw* | *-w64-mingw*)
7478 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7479 # however, use a symlink named 'mingw' in ${prefix} .
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7482 *-mingw*)
7483 # MinGW can't be handled as Cygwin above since it does not use newlib.
7484 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'
7486 esac
7488 # Allow the user to override the flags for
7489 # our build compiler if desired.
7490 if test x"${build}" = x"${host}" ; then
7491 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7492 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7493 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7496 # On Canadian crosses, we'll be searching the right directories for
7497 # the previously-installed cross compiler, so don't bother to add
7498 # flags for directories within the install tree of the compiler
7499 # being built; programs in there won't even run.
7500 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7501 # Search for pre-installed headers if nothing else fits.
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7505 if test "x${use_gnu_ld}" = x &&
7506 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7507 # Arrange for us to find uninstalled linker scripts.
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7511 # Search for other target-specific linker scripts and such.
7512 case "${target}" in
7513 mep*)
7514 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7516 esac
7518 # Makefile fragments.
7519 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7521 eval fragval=\$$frag
7522 if test $fragval != /dev/null; then
7523 eval $frag=${srcdir}/$fragval
7525 done
7531 # Miscellanea: directories, flags, etc.
7540 # Build module lists & subconfigure args.
7544 # Host module lists & subconfigure args.
7549 # Target module lists & subconfigure args.
7553 # Build tools.
7571 # Generate default definitions for YACC, M4, LEX and other programs that run
7572 # on the build machine. These are used if the Makefile can't locate these
7573 # programs in objdir.
7574 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7576 for ac_prog in 'bison -y' byacc yacc
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_YACC+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$YACC"; then
7586 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_YACC="$ac_prog"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7605 YACC=$ac_cv_prog_YACC
7606 if test -n "$YACC"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7608 $as_echo "$YACC" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7615 test -n "$YACC" && break
7616 done
7617 test -n "$YACC" || YACC="$MISSING bison -y"
7619 case " $build_configdirs " in
7620 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7621 esac
7623 for ac_prog in bison
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if test "${ac_cv_prog_BISON+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$BISON"; then
7633 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_BISON="$ac_prog"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7646 done
7647 done
7648 IFS=$as_save_IFS
7652 BISON=$ac_cv_prog_BISON
7653 if test -n "$BISON"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7655 $as_echo "$BISON" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7662 test -n "$BISON" && break
7663 done
7664 test -n "$BISON" || BISON="$MISSING bison"
7666 case " $build_configdirs " in
7667 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7668 esac
7670 for ac_prog in gm4 gnum4 m4
7672 # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if test "${ac_cv_prog_M4+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 if test -n "$M4"; then
7680 ac_cv_prog_M4="$M4" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_prog_M4="$ac_prog"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7693 done
7694 done
7695 IFS=$as_save_IFS
7699 M4=$ac_cv_prog_M4
7700 if test -n "$M4"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7702 $as_echo "$M4" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 test -n "$M4" && break
7710 done
7711 test -n "$M4" || M4="$MISSING m4"
7713 case " $build_configdirs " in
7714 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7715 esac
7717 for ac_prog in flex lex
7719 # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_LEX+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$LEX"; then
7727 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_LEX="$ac_prog"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7746 LEX=$ac_cv_prog_LEX
7747 if test -n "$LEX"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7749 $as_echo "$LEX" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7756 test -n "$LEX" && break
7757 done
7758 test -n "$LEX" || LEX="$MISSING flex"
7760 case " $build_configdirs " in
7761 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7762 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7763 esac
7765 for ac_prog in flex
7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_FLEX+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 if test -n "$FLEX"; then
7775 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_FLEX="$ac_prog"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7788 done
7789 done
7790 IFS=$as_save_IFS
7794 FLEX=$ac_cv_prog_FLEX
7795 if test -n "$FLEX"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7797 $as_echo "$FLEX" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7804 test -n "$FLEX" && break
7805 done
7806 test -n "$FLEX" || FLEX="$MISSING flex"
7808 case " $build_configdirs " in
7809 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7810 esac
7812 for ac_prog in makeinfo
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_MAKEINFO="$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7841 MAKEINFO=$ac_cv_prog_MAKEINFO
7842 if test -n "$MAKEINFO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844 $as_echo "$MAKEINFO" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$MAKEINFO" && break
7852 done
7853 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7855 case " $build_configdirs " in
7856 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7859 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7860 # higher, else we use the "missing" dummy.
7861 if ${MAKEINFO} --version \
7862 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7864 else
7865 MAKEINFO="$MISSING makeinfo"
7869 esac
7871 # FIXME: expect and dejagnu may become build tools?
7873 for ac_prog in expect
7875 # Extract the first word of "$ac_prog", so it can be a program name with args.
7876 set dummy $ac_prog; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$EXPECT"; then
7883 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_EXPECT="$ac_prog"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 EXPECT=$ac_cv_prog_EXPECT
7903 if test -n "$EXPECT"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7905 $as_echo "$EXPECT" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7912 test -n "$EXPECT" && break
7913 done
7914 test -n "$EXPECT" || EXPECT="expect"
7916 case " $configdirs " in
7917 *" expect "*)
7918 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7920 esac
7922 for ac_prog in runtest
7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 if test -n "$RUNTEST"; then
7932 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_RUNTEST="$ac_prog"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7951 RUNTEST=$ac_cv_prog_RUNTEST
7952 if test -n "$RUNTEST"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7954 $as_echo "$RUNTEST" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7961 test -n "$RUNTEST" && break
7962 done
7963 test -n "$RUNTEST" || RUNTEST="runtest"
7965 case " $configdirs " in
7966 *" dejagnu "*)
7967 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7969 esac
7972 # Host tools.
7973 ncn_tool_prefix=
7974 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7975 ncn_target_tool_prefix=
7976 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7980 if test -n "$AR"; then
7981 ac_cv_prog_AR=$AR
7982 elif test -n "$ac_cv_prog_AR"; then
7983 AR=$ac_cv_prog_AR
7986 if test -n "$ac_cv_prog_AR"; then
7987 for ncn_progname in ar; do
7988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7989 set dummy ${ncn_progname}; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_AR+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if test -n "$AR"; then
7996 ac_cv_prog_AR="$AR" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_prog_AR="${ncn_progname}"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8009 done
8010 done
8011 IFS=$as_save_IFS
8015 AR=$ac_cv_prog_AR
8016 if test -n "$AR"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018 $as_echo "$AR" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8025 done
8028 for ncn_progname in ar; do
8029 if test -n "$ncn_tool_prefix"; then
8030 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8031 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 break 2
8051 done
8052 done
8053 IFS=$as_save_IFS
8057 AR=$ac_cv_prog_AR
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8068 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8070 set dummy ${ncn_progname}; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if test "${ac_cv_prog_AR+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$AR"; then
8077 ac_cv_prog_AR="$AR" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8086 ac_cv_prog_AR="${ncn_progname}"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8090 done
8091 done
8092 IFS=$as_save_IFS
8096 AR=$ac_cv_prog_AR
8097 if test -n "$AR"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8099 $as_echo "$AR" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8107 test -n "$ac_cv_prog_AR" && break
8108 done
8110 if test -z "$ac_cv_prog_AR" ; then
8111 set dummy ar
8112 if test $build = $host ; then
8113 AR="$2"
8114 else
8115 AR="${ncn_tool_prefix}$2"
8121 if test -n "$AS"; then
8122 ac_cv_prog_AS=$AS
8123 elif test -n "$ac_cv_prog_AS"; then
8124 AS=$ac_cv_prog_AS
8127 if test -n "$ac_cv_prog_AS"; then
8128 for ncn_progname in as; do
8129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8130 set dummy ${ncn_progname}; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_AS+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$AS"; then
8137 ac_cv_prog_AS="$AS" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_AS="${ncn_progname}"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8156 AS=$ac_cv_prog_AS
8157 if test -n "$AS"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159 $as_echo "$AS" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8166 done
8169 for ncn_progname in as; do
8170 if test -n "$ncn_tool_prefix"; then
8171 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 AS=$ac_cv_prog_AS
8199 if test -n "$AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201 $as_echo "$AS" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8209 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8211 set dummy ${ncn_progname}; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_AS+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$AS"; then
8218 ac_cv_prog_AS="$AS" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_AS="${ncn_progname}"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8237 AS=$ac_cv_prog_AS
8238 if test -n "$AS"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8240 $as_echo "$AS" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8248 test -n "$ac_cv_prog_AS" && break
8249 done
8251 if test -z "$ac_cv_prog_AS" ; then
8252 set dummy as
8253 if test $build = $host ; then
8254 AS="$2"
8255 else
8256 AS="${ncn_tool_prefix}$2"
8262 if test -n "$DLLTOOL"; then
8263 ac_cv_prog_DLLTOOL=$DLLTOOL
8264 elif test -n "$ac_cv_prog_DLLTOOL"; then
8265 DLLTOOL=$ac_cv_prog_DLLTOOL
8268 if test -n "$ac_cv_prog_DLLTOOL"; then
8269 for ncn_progname in dlltool; do
8270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_progname}; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$DLLTOOL"; then
8278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_DLLTOOL="${ncn_progname}"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8291 done
8292 done
8293 IFS=$as_save_IFS
8297 DLLTOOL=$ac_cv_prog_DLLTOOL
8298 if test -n "$DLLTOOL"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300 $as_echo "$DLLTOOL" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8307 done
8310 for ncn_progname in dlltool; do
8311 if test -n "$ncn_tool_prefix"; then
8312 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8339 DLLTOOL=$ac_cv_prog_DLLTOOL
8340 if test -n "$DLLTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342 $as_echo "$DLLTOOL" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8350 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8352 set dummy ${ncn_progname}; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$DLLTOOL"; then
8359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_prog_DLLTOOL="${ncn_progname}"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8374 IFS=$as_save_IFS
8378 DLLTOOL=$ac_cv_prog_DLLTOOL
8379 if test -n "$DLLTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381 $as_echo "$DLLTOOL" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8389 test -n "$ac_cv_prog_DLLTOOL" && break
8390 done
8392 if test -z "$ac_cv_prog_DLLTOOL" ; then
8393 set dummy dlltool
8394 if test $build = $host ; then
8395 DLLTOOL="$2"
8396 else
8397 DLLTOOL="${ncn_tool_prefix}$2"
8403 if test -n "$LD"; then
8404 ac_cv_prog_LD=$LD
8405 elif test -n "$ac_cv_prog_LD"; then
8406 LD=$ac_cv_prog_LD
8409 if test -n "$ac_cv_prog_LD"; then
8410 for ncn_progname in ld; do
8411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_progname}; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_LD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 if test -n "$LD"; then
8419 ac_cv_prog_LD="$LD" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428 ac_cv_prog_LD="${ncn_progname}"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8432 done
8433 done
8434 IFS=$as_save_IFS
8438 LD=$ac_cv_prog_LD
8439 if test -n "$LD"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441 $as_echo "$LD" >&6; }
8442 else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8448 done
8451 for ncn_progname in ld; do
8452 if test -n "$ncn_tool_prefix"; then
8453 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8480 LD=$ac_cv_prog_LD
8481 if test -n "$LD"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483 $as_echo "$LD" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8493 set dummy ${ncn_progname}; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_prog_LD+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test -n "$LD"; then
8500 ac_cv_prog_LD="$LD" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_prog_LD="${ncn_progname}"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8513 done
8514 done
8515 IFS=$as_save_IFS
8519 LD=$ac_cv_prog_LD
8520 if test -n "$LD"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8522 $as_echo "$LD" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8530 test -n "$ac_cv_prog_LD" && break
8531 done
8533 if test -z "$ac_cv_prog_LD" ; then
8534 set dummy ld
8535 if test $build = $host ; then
8536 LD="$2"
8537 else
8538 LD="${ncn_tool_prefix}$2"
8544 if test -n "$LIPO"; then
8545 ac_cv_prog_LIPO=$LIPO
8546 elif test -n "$ac_cv_prog_LIPO"; then
8547 LIPO=$ac_cv_prog_LIPO
8550 if test -n "$ac_cv_prog_LIPO"; then
8551 for ncn_progname in lipo; do
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8553 set dummy ${ncn_progname}; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_LIPO+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$LIPO"; then
8560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_LIPO="${ncn_progname}"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8573 done
8574 done
8575 IFS=$as_save_IFS
8579 LIPO=$ac_cv_prog_LIPO
8580 if test -n "$LIPO"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582 $as_echo "$LIPO" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8589 done
8592 for ncn_progname in lipo; do
8593 if test -n "$ncn_tool_prefix"; then
8594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8621 LIPO=$ac_cv_prog_LIPO
8622 if test -n "$LIPO"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624 $as_echo "$LIPO" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8634 set dummy ${ncn_progname}; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_LIPO+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$LIPO"; then
8641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_LIPO="${ncn_progname}"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8654 done
8655 done
8656 IFS=$as_save_IFS
8660 LIPO=$ac_cv_prog_LIPO
8661 if test -n "$LIPO"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8663 $as_echo "$LIPO" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8671 test -n "$ac_cv_prog_LIPO" && break
8672 done
8674 if test -z "$ac_cv_prog_LIPO" ; then
8675 set dummy lipo
8676 if test $build = $host ; then
8677 LIPO="$2"
8678 else
8679 LIPO="${ncn_tool_prefix}$2"
8685 if test -n "$NM"; then
8686 ac_cv_prog_NM=$NM
8687 elif test -n "$ac_cv_prog_NM"; then
8688 NM=$ac_cv_prog_NM
8691 if test -n "$ac_cv_prog_NM"; then
8692 for ncn_progname in nm; do
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_progname}; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if test "${ac_cv_prog_NM+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 if test -n "$NM"; then
8701 ac_cv_prog_NM="$NM" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_prog_NM="${ncn_progname}"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8714 done
8715 done
8716 IFS=$as_save_IFS
8720 NM=$ac_cv_prog_NM
8721 if test -n "$NM"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723 $as_echo "$NM" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8730 done
8733 for ncn_progname in nm; do
8734 if test -n "$ncn_tool_prefix"; then
8735 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8762 NM=$ac_cv_prog_NM
8763 if test -n "$NM"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765 $as_echo "$NM" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8773 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8775 set dummy ${ncn_progname}; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_prog_NM+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 if test -n "$NM"; then
8782 ac_cv_prog_NM="$NM" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_NM="${ncn_progname}"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8795 done
8796 done
8797 IFS=$as_save_IFS
8801 NM=$ac_cv_prog_NM
8802 if test -n "$NM"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8804 $as_echo "$NM" >&6; }
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8812 test -n "$ac_cv_prog_NM" && break
8813 done
8815 if test -z "$ac_cv_prog_NM" ; then
8816 set dummy nm
8817 if test $build = $host ; then
8818 NM="$2"
8819 else
8820 NM="${ncn_tool_prefix}$2"
8826 if test -n "$RANLIB"; then
8827 ac_cv_prog_RANLIB=$RANLIB
8828 elif test -n "$ac_cv_prog_RANLIB"; then
8829 RANLIB=$ac_cv_prog_RANLIB
8832 if test -n "$ac_cv_prog_RANLIB"; then
8833 for ncn_progname in ranlib; do
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$RANLIB"; then
8842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_RANLIB="${ncn_progname}"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8861 RANLIB=$ac_cv_prog_RANLIB
8862 if test -n "$RANLIB"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864 $as_echo "$RANLIB" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8871 done
8874 for ncn_progname in ranlib; do
8875 if test -n "$ncn_tool_prefix"; then
8876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8897 done
8898 done
8899 IFS=$as_save_IFS
8903 RANLIB=$ac_cv_prog_RANLIB
8904 if test -n "$RANLIB"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906 $as_echo "$RANLIB" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8914 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8916 set dummy ${ncn_progname}; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 if test -n "$RANLIB"; then
8923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_prog_RANLIB="${ncn_progname}"
8933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8936 done
8937 done
8938 IFS=$as_save_IFS
8942 RANLIB=$ac_cv_prog_RANLIB
8943 if test -n "$RANLIB"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8945 $as_echo "$RANLIB" >&6; }
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8953 test -n "$ac_cv_prog_RANLIB" && break
8954 done
8956 if test -z "$ac_cv_prog_RANLIB" ; then
8957 RANLIB="true"
8962 if test -n "$STRIP"; then
8963 ac_cv_prog_STRIP=$STRIP
8964 elif test -n "$ac_cv_prog_STRIP"; then
8965 STRIP=$ac_cv_prog_STRIP
8968 if test -n "$ac_cv_prog_STRIP"; then
8969 for ncn_progname in strip; do
8970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8971 set dummy ${ncn_progname}; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if test "${ac_cv_prog_STRIP+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 if test -n "$STRIP"; then
8978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8987 ac_cv_prog_STRIP="${ncn_progname}"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8991 done
8992 done
8993 IFS=$as_save_IFS
8997 STRIP=$ac_cv_prog_STRIP
8998 if test -n "$STRIP"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000 $as_echo "$STRIP" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9007 done
9010 for ncn_progname in strip; do
9011 if test -n "$ncn_tool_prefix"; then
9012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9033 done
9034 done
9035 IFS=$as_save_IFS
9039 STRIP=$ac_cv_prog_STRIP
9040 if test -n "$STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042 $as_echo "$STRIP" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9050 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9052 set dummy ${ncn_progname}; ac_word=$2
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 $as_echo_n "checking for $ac_word... " >&6; }
9055 if test "${ac_cv_prog_STRIP+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 if test -n "$STRIP"; then
9059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9060 else
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in $PATH
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_prog_STRIP="${ncn_progname}"
9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9072 done
9073 done
9074 IFS=$as_save_IFS
9078 STRIP=$ac_cv_prog_STRIP
9079 if test -n "$STRIP"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9081 $as_echo "$STRIP" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9089 test -n "$ac_cv_prog_STRIP" && break
9090 done
9092 if test -z "$ac_cv_prog_STRIP" ; then
9093 STRIP="true"
9098 if test -n "$WINDRES"; then
9099 ac_cv_prog_WINDRES=$WINDRES
9100 elif test -n "$ac_cv_prog_WINDRES"; then
9101 WINDRES=$ac_cv_prog_WINDRES
9104 if test -n "$ac_cv_prog_WINDRES"; then
9105 for ncn_progname in windres; do
9106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9107 set dummy ${ncn_progname}; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test -n "$WINDRES"; then
9114 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_prog_WINDRES="${ncn_progname}"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9133 WINDRES=$ac_cv_prog_WINDRES
9134 if test -n "$WINDRES"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136 $as_echo "$WINDRES" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9143 done
9146 for ncn_progname in windres; do
9147 if test -n "$ncn_tool_prefix"; then
9148 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9175 WINDRES=$ac_cv_prog_WINDRES
9176 if test -n "$WINDRES"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178 $as_echo "$WINDRES" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9188 set dummy ${ncn_progname}; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 if test -n "$WINDRES"; then
9195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9196 else
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_prog_WINDRES="${ncn_progname}"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9208 done
9209 done
9210 IFS=$as_save_IFS
9214 WINDRES=$ac_cv_prog_WINDRES
9215 if test -n "$WINDRES"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9217 $as_echo "$WINDRES" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9225 test -n "$ac_cv_prog_WINDRES" && break
9226 done
9228 if test -z "$ac_cv_prog_WINDRES" ; then
9229 set dummy windres
9230 if test $build = $host ; then
9231 WINDRES="$2"
9232 else
9233 WINDRES="${ncn_tool_prefix}$2"
9239 if test -n "$WINDMC"; then
9240 ac_cv_prog_WINDMC=$WINDMC
9241 elif test -n "$ac_cv_prog_WINDMC"; then
9242 WINDMC=$ac_cv_prog_WINDMC
9245 if test -n "$ac_cv_prog_WINDMC"; then
9246 for ncn_progname in windmc; do
9247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9248 set dummy ${ncn_progname}; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 if test -n "$WINDMC"; then
9255 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_prog_WINDMC="${ncn_progname}"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9268 done
9269 done
9270 IFS=$as_save_IFS
9274 WINDMC=$ac_cv_prog_WINDMC
9275 if test -n "$WINDMC"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277 $as_echo "$WINDMC" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9284 done
9287 for ncn_progname in windmc; do
9288 if test -n "$ncn_tool_prefix"; then
9289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9290 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9310 done
9311 done
9312 IFS=$as_save_IFS
9316 WINDMC=$ac_cv_prog_WINDMC
9317 if test -n "$WINDMC"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319 $as_echo "$WINDMC" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9327 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9329 set dummy ${ncn_progname}; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 if test -n "$WINDMC"; then
9336 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9337 else
9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in $PATH
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 ac_cv_prog_WINDMC="${ncn_progname}"
9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 break 2
9349 done
9350 done
9351 IFS=$as_save_IFS
9355 WINDMC=$ac_cv_prog_WINDMC
9356 if test -n "$WINDMC"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9358 $as_echo "$WINDMC" >&6; }
9359 else
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9366 test -n "$ac_cv_prog_WINDMC" && break
9367 done
9369 if test -z "$ac_cv_prog_WINDMC" ; then
9370 set dummy windmc
9371 if test $build = $host ; then
9372 WINDMC="$2"
9373 else
9374 WINDMC="${ncn_tool_prefix}$2"
9380 if test -n "$OBJCOPY"; then
9381 ac_cv_prog_OBJCOPY=$OBJCOPY
9382 elif test -n "$ac_cv_prog_OBJCOPY"; then
9383 OBJCOPY=$ac_cv_prog_OBJCOPY
9386 if test -n "$ac_cv_prog_OBJCOPY"; then
9387 for ncn_progname in objcopy; do
9388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9389 set dummy ${ncn_progname}; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 if test -n "$OBJCOPY"; then
9396 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405 ac_cv_prog_OBJCOPY="${ncn_progname}"
9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407 break 2
9409 done
9410 done
9411 IFS=$as_save_IFS
9415 OBJCOPY=$ac_cv_prog_OBJCOPY
9416 if test -n "$OBJCOPY"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418 $as_echo "$OBJCOPY" >&6; }
9419 else
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9425 done
9428 for ncn_progname in objcopy; do
9429 if test -n "$ncn_tool_prefix"; then
9430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9451 done
9452 done
9453 IFS=$as_save_IFS
9457 OBJCOPY=$ac_cv_prog_OBJCOPY
9458 if test -n "$OBJCOPY"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460 $as_echo "$OBJCOPY" >&6; }
9461 else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9468 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9470 set dummy ${ncn_progname}; ac_word=$2
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472 $as_echo_n "checking for $ac_word... " >&6; }
9473 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 if test -n "$OBJCOPY"; then
9477 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9478 else
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486 ac_cv_prog_OBJCOPY="${ncn_progname}"
9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 break 2
9490 done
9491 done
9492 IFS=$as_save_IFS
9496 OBJCOPY=$ac_cv_prog_OBJCOPY
9497 if test -n "$OBJCOPY"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9499 $as_echo "$OBJCOPY" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9507 test -n "$ac_cv_prog_OBJCOPY" && break
9508 done
9510 if test -z "$ac_cv_prog_OBJCOPY" ; then
9511 set dummy objcopy
9512 if test $build = $host ; then
9513 OBJCOPY="$2"
9514 else
9515 OBJCOPY="${ncn_tool_prefix}$2"
9521 if test -n "$OBJDUMP"; then
9522 ac_cv_prog_OBJDUMP=$OBJDUMP
9523 elif test -n "$ac_cv_prog_OBJDUMP"; then
9524 OBJDUMP=$ac_cv_prog_OBJDUMP
9527 if test -n "$ac_cv_prog_OBJDUMP"; then
9528 for ncn_progname in objdump; do
9529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9530 set dummy ${ncn_progname}; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 if test -n "$OBJDUMP"; then
9537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9546 ac_cv_prog_OBJDUMP="${ncn_progname}"
9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 break 2
9550 done
9551 done
9552 IFS=$as_save_IFS
9556 OBJDUMP=$ac_cv_prog_OBJDUMP
9557 if test -n "$OBJDUMP"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559 $as_echo "$OBJDUMP" >&6; }
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9566 done
9569 for ncn_progname in objdump; do
9570 if test -n "$ncn_tool_prefix"; then
9571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9572 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580 else
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9592 done
9593 done
9594 IFS=$as_save_IFS
9598 OBJDUMP=$ac_cv_prog_OBJDUMP
9599 if test -n "$OBJDUMP"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601 $as_echo "$OBJDUMP" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9609 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9611 set dummy ${ncn_progname}; ac_word=$2
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613 $as_echo_n "checking for $ac_word... " >&6; }
9614 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 if test -n "$OBJDUMP"; then
9618 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9619 else
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9623 IFS=$as_save_IFS
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9627 ac_cv_prog_OBJDUMP="${ncn_progname}"
9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 break 2
9631 done
9632 done
9633 IFS=$as_save_IFS
9637 OBJDUMP=$ac_cv_prog_OBJDUMP
9638 if test -n "$OBJDUMP"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9640 $as_echo "$OBJDUMP" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9648 test -n "$ac_cv_prog_OBJDUMP" && break
9649 done
9651 if test -z "$ac_cv_prog_OBJDUMP" ; then
9652 set dummy objdump
9653 if test $build = $host ; then
9654 OBJDUMP="$2"
9655 else
9656 OBJDUMP="${ncn_tool_prefix}$2"
9662 if test -n "$READELF"; then
9663 ac_cv_prog_READELF=$READELF
9664 elif test -n "$ac_cv_prog_READELF"; then
9665 READELF=$ac_cv_prog_READELF
9668 if test -n "$ac_cv_prog_READELF"; then
9669 for ncn_progname in readelf; do
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671 set dummy ${ncn_progname}; ac_word=$2
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 $as_echo_n "checking for $ac_word... " >&6; }
9674 if test "${ac_cv_prog_READELF+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 if test -n "$READELF"; then
9678 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_READELF="${ncn_progname}"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9691 done
9692 done
9693 IFS=$as_save_IFS
9697 READELF=$ac_cv_prog_READELF
9698 if test -n "$READELF"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9700 $as_echo "$READELF" >&6; }
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9707 done
9710 for ncn_progname in readelf; do
9711 if test -n "$ncn_tool_prefix"; then
9712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9733 done
9734 done
9735 IFS=$as_save_IFS
9739 READELF=$ac_cv_prog_READELF
9740 if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742 $as_echo "$READELF" >&6; }
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9750 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9752 set dummy ${ncn_progname}; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if test "${ac_cv_prog_READELF+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 if test -n "$READELF"; then
9759 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9768 ac_cv_prog_READELF="${ncn_progname}"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9772 done
9773 done
9774 IFS=$as_save_IFS
9778 READELF=$ac_cv_prog_READELF
9779 if test -n "$READELF"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9781 $as_echo "$READELF" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9789 test -n "$ac_cv_prog_READELF" && break
9790 done
9792 if test -z "$ac_cv_prog_READELF" ; then
9793 set dummy readelf
9794 if test $build = $host ; then
9795 READELF="$2"
9796 else
9797 READELF="${ncn_tool_prefix}$2"
9806 # Target tools.
9808 # Check whether --with-build-time-tools was given.
9809 if test "${with_build_time_tools+set}" = set; then :
9810 withval=$with_build_time_tools; case x"$withval" in
9811 x/*) ;;
9813 with_build_time_tools=
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9815 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9817 esac
9818 else
9819 with_build_time_tools=
9825 if test -n "$CC_FOR_TARGET"; then
9826 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9827 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9828 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9831 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9832 for ncn_progname in cc gcc; do
9833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9834 set dummy ${ncn_progname}; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 if test -n "$CC_FOR_TARGET"; then
9841 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9860 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9861 if test -n "$CC_FOR_TARGET"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9863 $as_echo "$CC_FOR_TARGET" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9870 done
9873 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9874 for ncn_progname in cc gcc; do
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9876 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9877 if test -x $with_build_time_tools/${ncn_progname}; then
9878 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9880 $as_echo "yes" >&6; }
9881 break
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9886 done
9889 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9890 for ncn_progname in cc gcc; do
9891 if test -n "$ncn_target_tool_prefix"; then
9892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if test -n "$CC_FOR_TARGET"; then
9900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9909 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9913 done
9914 done
9915 IFS=$as_save_IFS
9919 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9920 if test -n "$CC_FOR_TARGET"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9922 $as_echo "$CC_FOR_TARGET" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9930 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9932 set dummy ${ncn_progname}; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 if test -n "$CC_FOR_TARGET"; then
9939 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9940 else
9941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 break 2
9952 done
9953 done
9954 IFS=$as_save_IFS
9958 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9959 if test -n "$CC_FOR_TARGET"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9961 $as_echo "$CC_FOR_TARGET" >&6; }
9962 else
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9969 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9970 done
9973 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9974 set dummy cc gcc
9975 if test $build = $target ; then
9976 CC_FOR_TARGET="$2"
9977 else
9978 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9980 else
9981 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9986 if test -n "$CXX_FOR_TARGET"; then
9987 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9988 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9989 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9992 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9993 for ncn_progname in c++ g++ cxx gxx; do
9994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9995 set dummy ${ncn_progname}; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 if test -n "$CXX_FOR_TARGET"; then
10002 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10003 else
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10021 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10022 if test -n "$CXX_FOR_TARGET"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10024 $as_echo "$CXX_FOR_TARGET" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10031 done
10034 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10035 for ncn_progname in c++ g++ cxx gxx; do
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10037 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10038 if test -x $with_build_time_tools/${ncn_progname}; then
10039 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041 $as_echo "yes" >&6; }
10042 break
10043 else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10047 done
10050 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10051 for ncn_progname in c++ g++ cxx gxx; do
10052 if test -n "$ncn_target_tool_prefix"; then
10053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$CXX_FOR_TARGET"; then
10061 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10080 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10081 if test -n "$CXX_FOR_TARGET"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10083 $as_echo "$CXX_FOR_TARGET" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10093 set dummy ${ncn_progname}; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 if test -n "$CXX_FOR_TARGET"; then
10100 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10113 done
10114 done
10115 IFS=$as_save_IFS
10119 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10120 if test -n "$CXX_FOR_TARGET"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10122 $as_echo "$CXX_FOR_TARGET" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10130 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10131 done
10134 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10135 set dummy c++ g++ cxx gxx
10136 if test $build = $target ; then
10137 CXX_FOR_TARGET="$2"
10138 else
10139 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10141 else
10142 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10147 if test -n "$GCC_FOR_TARGET"; then
10148 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10149 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10150 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10153 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10154 for ncn_progname in gcc; do
10155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10156 set dummy ${ncn_progname}; ac_word=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 if test -n "$GCC_FOR_TARGET"; then
10163 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10164 else
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10178 IFS=$as_save_IFS
10182 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10183 if test -n "$GCC_FOR_TARGET"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10185 $as_echo "$GCC_FOR_TARGET" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10192 done
10195 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10196 for ncn_progname in gcc; do
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10199 if test -x $with_build_time_tools/${ncn_progname}; then
10200 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10202 $as_echo "yes" >&6; }
10203 break
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10208 done
10211 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10212 for ncn_progname in gcc; do
10213 if test -n "$ncn_target_tool_prefix"; then
10214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 if test -n "$GCC_FOR_TARGET"; then
10222 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10241 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10242 if test -n "$GCC_FOR_TARGET"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10244 $as_echo "$GCC_FOR_TARGET" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10252 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10254 set dummy ${ncn_progname}; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 if test -n "$GCC_FOR_TARGET"; then
10261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10280 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10281 if test -n "$GCC_FOR_TARGET"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10283 $as_echo "$GCC_FOR_TARGET" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10292 done
10295 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10296 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10297 else
10298 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10303 if test -n "$GCJ_FOR_TARGET"; then
10304 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10305 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10306 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10309 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10310 for ncn_progname in gcj; do
10311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10312 set dummy ${ncn_progname}; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test -n "$GCJ_FOR_TARGET"; then
10319 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10332 done
10333 done
10334 IFS=$as_save_IFS
10338 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10339 if test -n "$GCJ_FOR_TARGET"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10341 $as_echo "$GCJ_FOR_TARGET" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10348 done
10351 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10352 for ncn_progname in gcj; do
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10354 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10355 if test -x $with_build_time_tools/${ncn_progname}; then
10356 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; }
10359 break
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10364 done
10367 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10368 for ncn_progname in gcj; do
10369 if test -n "$ncn_target_tool_prefix"; then
10370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test -n "$GCJ_FOR_TARGET"; then
10378 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10398 if test -n "$GCJ_FOR_TARGET"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10400 $as_echo "$GCJ_FOR_TARGET" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10410 set dummy ${ncn_progname}; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 if test -n "$GCJ_FOR_TARGET"; then
10417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10430 done
10431 done
10432 IFS=$as_save_IFS
10436 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10437 if test -n "$GCJ_FOR_TARGET"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10439 $as_echo "$GCJ_FOR_TARGET" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10447 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10448 done
10451 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10452 set dummy gcj
10453 if test $build = $target ; then
10454 GCJ_FOR_TARGET="$2"
10455 else
10456 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10458 else
10459 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10464 if test -n "$GFORTRAN_FOR_TARGET"; then
10465 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10466 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10467 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10470 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10471 for ncn_progname in gfortran; do
10472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10473 set dummy ${ncn_progname}; ac_word=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 if test -n "$GFORTRAN_FOR_TARGET"; then
10480 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10493 done
10494 done
10495 IFS=$as_save_IFS
10499 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10500 if test -n "$GFORTRAN_FOR_TARGET"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10502 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10509 done
10512 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10513 for ncn_progname in gfortran; do
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10515 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10516 if test -x $with_build_time_tools/${ncn_progname}; then
10517 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10519 $as_echo "yes" >&6; }
10520 break
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10525 done
10528 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10529 for ncn_progname in gfortran; do
10530 if test -n "$ncn_target_tool_prefix"; then
10531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 if test -n "$GFORTRAN_FOR_TARGET"; then
10539 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10548 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10552 done
10553 done
10554 IFS=$as_save_IFS
10558 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10559 if test -n "$GFORTRAN_FOR_TARGET"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10561 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10569 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10571 set dummy ${ncn_progname}; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 if test -n "$GFORTRAN_FOR_TARGET"; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10579 else
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10587 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10597 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10598 if test -n "$GFORTRAN_FOR_TARGET"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10600 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10608 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10609 done
10612 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10613 set dummy gfortran
10614 if test $build = $target ; then
10615 GFORTRAN_FOR_TARGET="$2"
10616 else
10617 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10619 else
10620 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10625 if test -n "$GOC_FOR_TARGET"; then
10626 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10627 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10628 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10631 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10632 for ncn_progname in gccgo; do
10633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10634 set dummy ${ncn_progname}; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 if test -n "$GOC_FOR_TARGET"; then
10641 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10642 else
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10660 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10661 if test -n "$GOC_FOR_TARGET"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10663 $as_echo "$GOC_FOR_TARGET" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10670 done
10673 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10674 for ncn_progname in gccgo; do
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10677 if test -x $with_build_time_tools/${ncn_progname}; then
10678 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; }
10681 break
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10686 done
10689 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10690 for ncn_progname in gccgo; do
10691 if test -n "$ncn_target_tool_prefix"; then
10692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test -n "$GOC_FOR_TARGET"; then
10700 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10713 done
10714 done
10715 IFS=$as_save_IFS
10719 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10720 if test -n "$GOC_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10722 $as_echo "$GOC_FOR_TARGET" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10730 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732 set dummy ${ncn_progname}; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 if test -n "$GOC_FOR_TARGET"; then
10739 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10740 else
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10752 done
10753 done
10754 IFS=$as_save_IFS
10758 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10759 if test -n "$GOC_FOR_TARGET"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10761 $as_echo "$GOC_FOR_TARGET" >&6; }
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10769 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10770 done
10773 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10774 set dummy gccgo
10775 if test $build = $target ; then
10776 GOC_FOR_TARGET="$2"
10777 else
10778 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10780 else
10781 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10786 cat > conftest.c << \EOF
10787 #ifdef __GNUC__
10788 gcc_yay;
10789 #endif
10791 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10792 have_gcc_for_target=yes
10793 else
10794 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10795 have_gcc_for_target=no
10797 rm conftest.c
10802 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10803 if test -n "$with_build_time_tools"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10805 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10806 if test -x $with_build_time_tools/ar; then
10807 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10808 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10810 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10815 elif test $build != $host && test $have_gcc_for_target = yes; then
10816 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10817 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10818 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10821 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10822 # Extract the first word of "ar", so it can be a program name with args.
10823 set dummy ar; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 case $AR_FOR_TARGET in
10830 [\\/]* | ?:[\\/]*)
10831 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $gcc_cv_tool_dirs
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_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
10850 esac
10852 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10853 if test -n "$AR_FOR_TARGET"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10855 $as_echo "$AR_FOR_TARGET" >&6; }
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10863 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10866 if test -n "$AR_FOR_TARGET"; then
10867 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10868 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10869 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10872 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10873 for ncn_progname in ar; do
10874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10875 set dummy ${ncn_progname}; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 if test -n "$AR_FOR_TARGET"; then
10882 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10901 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10902 if test -n "$AR_FOR_TARGET"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10904 $as_echo "$AR_FOR_TARGET" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10911 done
10914 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10915 for ncn_progname in ar; do
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10917 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10918 if test -x $with_build_time_tools/${ncn_progname}; then
10919 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921 $as_echo "yes" >&6; }
10922 break
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10927 done
10930 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10931 for ncn_progname in ar; do
10932 if test -n "$ncn_target_tool_prefix"; then
10933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test -n "$AR_FOR_TARGET"; then
10941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10960 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10961 if test -n "$AR_FOR_TARGET"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10963 $as_echo "$AR_FOR_TARGET" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10971 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10973 set dummy ${ncn_progname}; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 if test -n "$AR_FOR_TARGET"; then
10980 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10981 else
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10993 done
10994 done
10995 IFS=$as_save_IFS
10999 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11000 if test -n "$AR_FOR_TARGET"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11002 $as_echo "$AR_FOR_TARGET" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11010 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11011 done
11014 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11015 set dummy ar
11016 if test $build = $target ; then
11017 AR_FOR_TARGET="$2"
11018 else
11019 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11021 else
11022 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11025 else
11026 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11032 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11033 if test -n "$with_build_time_tools"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11035 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11036 if test -x $with_build_time_tools/as; then
11037 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11038 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11040 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11045 elif test $build != $host && test $have_gcc_for_target = yes; then
11046 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11047 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11048 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11051 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11052 # Extract the first word of "as", so it can be a program name with args.
11053 set dummy as; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 case $AS_FOR_TARGET in
11060 [\\/]* | ?:[\\/]*)
11061 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $gcc_cv_tool_dirs
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11080 esac
11082 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11083 if test -n "$AS_FOR_TARGET"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11085 $as_echo "$AS_FOR_TARGET" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11093 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11096 if test -n "$AS_FOR_TARGET"; then
11097 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11098 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11099 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11102 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11103 for ncn_progname in as; do
11104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11105 set dummy ${ncn_progname}; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 if test -n "$AS_FOR_TARGET"; then
11112 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11113 else
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11121 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11125 done
11126 done
11127 IFS=$as_save_IFS
11131 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11132 if test -n "$AS_FOR_TARGET"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11134 $as_echo "$AS_FOR_TARGET" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11141 done
11144 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11145 for ncn_progname in as; do
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11147 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11148 if test -x $with_build_time_tools/${ncn_progname}; then
11149 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152 break
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11157 done
11160 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11161 for ncn_progname in as; do
11162 if test -n "$ncn_target_tool_prefix"; then
11163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 if test -n "$AS_FOR_TARGET"; then
11171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11172 else
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11184 done
11185 done
11186 IFS=$as_save_IFS
11190 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11191 if test -n "$AS_FOR_TARGET"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11193 $as_echo "$AS_FOR_TARGET" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11201 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203 set dummy ${ncn_progname}; ac_word=$2
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205 $as_echo_n "checking for $ac_word... " >&6; }
11206 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test -n "$AS_FOR_TARGET"; then
11210 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11211 else
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11219 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11223 done
11224 done
11225 IFS=$as_save_IFS
11229 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11230 if test -n "$AS_FOR_TARGET"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11232 $as_echo "$AS_FOR_TARGET" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11240 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11241 done
11244 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11245 set dummy as
11246 if test $build = $target ; then
11247 AS_FOR_TARGET="$2"
11248 else
11249 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11251 else
11252 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11255 else
11256 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11262 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11263 if test -n "$with_build_time_tools"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11265 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11266 if test -x $with_build_time_tools/dlltool; then
11267 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11268 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11270 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11275 elif test $build != $host && test $have_gcc_for_target = yes; then
11276 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11277 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11278 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11281 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11282 # Extract the first word of "dlltool", so it can be a program name with args.
11283 set dummy dlltool; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 case $DLLTOOL_FOR_TARGET in
11290 [\\/]* | ?:[\\/]*)
11291 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $gcc_cv_tool_dirs
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11301 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11305 done
11306 done
11307 IFS=$as_save_IFS
11310 esac
11312 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11313 if test -n "$DLLTOOL_FOR_TARGET"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11315 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11323 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11326 if test -n "$DLLTOOL_FOR_TARGET"; then
11327 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11328 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11329 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11332 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11333 for ncn_progname in dlltool; do
11334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11335 set dummy ${ncn_progname}; ac_word=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 if test -n "$DLLTOOL_FOR_TARGET"; then
11342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11343 else
11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11355 done
11356 done
11357 IFS=$as_save_IFS
11361 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11362 if test -n "$DLLTOOL_FOR_TARGET"; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11364 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11371 done
11374 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11375 for ncn_progname in dlltool; do
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11377 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11378 if test -x $with_build_time_tools/${ncn_progname}; then
11379 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381 $as_echo "yes" >&6; }
11382 break
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11387 done
11390 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11391 for ncn_progname in dlltool; do
11392 if test -n "$ncn_target_tool_prefix"; then
11393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$DLLTOOL_FOR_TARGET"; then
11401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11414 done
11415 done
11416 IFS=$as_save_IFS
11420 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11421 if test -n "$DLLTOOL_FOR_TARGET"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11423 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433 set dummy ${ncn_progname}; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 if test -n "$DLLTOOL_FOR_TARGET"; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11441 else
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11453 done
11454 done
11455 IFS=$as_save_IFS
11459 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11460 if test -n "$DLLTOOL_FOR_TARGET"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11462 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11471 done
11474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11475 set dummy dlltool
11476 if test $build = $target ; then
11477 DLLTOOL_FOR_TARGET="$2"
11478 else
11479 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11481 else
11482 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11485 else
11486 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11492 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11493 if test -n "$with_build_time_tools"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11495 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11496 if test -x $with_build_time_tools/ld; then
11497 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11498 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11500 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11505 elif test $build != $host && test $have_gcc_for_target = yes; then
11506 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11507 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11508 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11511 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11512 # Extract the first word of "ld", so it can be a program name with args.
11513 set dummy ld; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 case $LD_FOR_TARGET in
11520 [\\/]* | ?:[\\/]*)
11521 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $gcc_cv_tool_dirs
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11531 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11535 done
11536 done
11537 IFS=$as_save_IFS
11540 esac
11542 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11543 if test -n "$LD_FOR_TARGET"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11545 $as_echo "$LD_FOR_TARGET" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11553 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11556 if test -n "$LD_FOR_TARGET"; then
11557 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11558 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11559 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11562 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11563 for ncn_progname in ld; do
11564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11565 set dummy ${ncn_progname}; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 if test -n "$LD_FOR_TARGET"; then
11572 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11585 done
11586 done
11587 IFS=$as_save_IFS
11591 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11592 if test -n "$LD_FOR_TARGET"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11594 $as_echo "$LD_FOR_TARGET" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11601 done
11604 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11605 for ncn_progname in ld; do
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11607 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11608 if test -x $with_build_time_tools/${ncn_progname}; then
11609 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11611 $as_echo "yes" >&6; }
11612 break
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11617 done
11620 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11621 for ncn_progname in ld; do
11622 if test -n "$ncn_target_tool_prefix"; then
11623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11624 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 if test -n "$LD_FOR_TARGET"; then
11631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11644 done
11645 done
11646 IFS=$as_save_IFS
11650 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11651 if test -n "$LD_FOR_TARGET"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11653 $as_echo "$LD_FOR_TARGET" >&6; }
11654 else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11663 set dummy ${ncn_progname}; ac_word=$2
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 if test -n "$LD_FOR_TARGET"; then
11670 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11689 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11690 if test -n "$LD_FOR_TARGET"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11692 $as_echo "$LD_FOR_TARGET" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11700 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11701 done
11704 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11705 set dummy ld
11706 if test $build = $target ; then
11707 LD_FOR_TARGET="$2"
11708 else
11709 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11711 else
11712 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11715 else
11716 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11722 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11723 if test -n "$with_build_time_tools"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11725 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11726 if test -x $with_build_time_tools/lipo; then
11727 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11728 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11730 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11735 elif test $build != $host && test $have_gcc_for_target = yes; then
11736 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11737 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11738 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11741 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11742 # Extract the first word of "lipo", so it can be a program name with args.
11743 set dummy lipo; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 case $LIPO_FOR_TARGET in
11750 [\\/]* | ?:[\\/]*)
11751 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $gcc_cv_tool_dirs
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11765 done
11766 done
11767 IFS=$as_save_IFS
11770 esac
11772 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11773 if test -n "$LIPO_FOR_TARGET"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11775 $as_echo "$LIPO_FOR_TARGET" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11783 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11786 if test -n "$LIPO_FOR_TARGET"; then
11787 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11788 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11789 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11792 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11793 for ncn_progname in lipo; do
11794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11795 set dummy ${ncn_progname}; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$LIPO_FOR_TARGET"; then
11802 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11821 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11822 if test -n "$LIPO_FOR_TARGET"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11824 $as_echo "$LIPO_FOR_TARGET" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11831 done
11834 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11835 for ncn_progname in lipo; do
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11837 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11838 if test -x $with_build_time_tools/${ncn_progname}; then
11839 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841 $as_echo "yes" >&6; }
11842 break
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11847 done
11850 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11851 for ncn_progname in lipo; do
11852 if test -n "$ncn_target_tool_prefix"; then
11853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 if test -n "$LIPO_FOR_TARGET"; then
11861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11880 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11881 if test -n "$LIPO_FOR_TARGET"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11883 $as_echo "$LIPO_FOR_TARGET" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11893 set dummy ${ncn_progname}; ac_word=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 if test -n "$LIPO_FOR_TARGET"; then
11900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11901 else
11902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11913 done
11914 done
11915 IFS=$as_save_IFS
11919 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11920 if test -n "$LIPO_FOR_TARGET"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11922 $as_echo "$LIPO_FOR_TARGET" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11931 done
11934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11935 set dummy lipo
11936 if test $build = $target ; then
11937 LIPO_FOR_TARGET="$2"
11938 else
11939 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11941 else
11942 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11945 else
11946 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11952 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11953 if test -n "$with_build_time_tools"; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11955 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11956 if test -x $with_build_time_tools/nm; then
11957 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11958 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11960 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11961 else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11965 elif test $build != $host && test $have_gcc_for_target = yes; then
11966 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11967 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11968 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11971 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11972 # Extract the first word of "nm", so it can be a program name with args.
11973 set dummy nm; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975 $as_echo_n "checking for $ac_word... " >&6; }
11976 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 case $NM_FOR_TARGET in
11980 [\\/]* | ?:[\\/]*)
11981 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $gcc_cv_tool_dirs
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11991 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11995 done
11996 done
11997 IFS=$as_save_IFS
12000 esac
12002 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12003 if test -n "$NM_FOR_TARGET"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12005 $as_echo "$NM_FOR_TARGET" >&6; }
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12013 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12016 if test -n "$NM_FOR_TARGET"; then
12017 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12018 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12019 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12022 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12023 for ncn_progname in nm; do
12024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12025 set dummy ${ncn_progname}; ac_word=$2
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027 $as_echo_n "checking for $ac_word... " >&6; }
12028 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 if test -n "$NM_FOR_TARGET"; then
12032 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12033 else
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12041 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12051 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12052 if test -n "$NM_FOR_TARGET"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12054 $as_echo "$NM_FOR_TARGET" >&6; }
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12061 done
12064 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12065 for ncn_progname in nm; do
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12067 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12068 if test -x $with_build_time_tools/${ncn_progname}; then
12069 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071 $as_echo "yes" >&6; }
12072 break
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12077 done
12080 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12081 for ncn_progname in nm; do
12082 if test -n "$ncn_target_tool_prefix"; then
12083 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12084 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -n "$NM_FOR_TARGET"; then
12091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12104 done
12105 done
12106 IFS=$as_save_IFS
12110 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12111 if test -n "$NM_FOR_TARGET"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12113 $as_echo "$NM_FOR_TARGET" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12123 set dummy ${ncn_progname}; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 if test -n "$NM_FOR_TARGET"; then
12130 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12131 else
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12139 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 break 2
12143 done
12144 done
12145 IFS=$as_save_IFS
12149 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12150 if test -n "$NM_FOR_TARGET"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12152 $as_echo "$NM_FOR_TARGET" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12161 done
12164 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12165 set dummy nm
12166 if test $build = $target ; then
12167 NM_FOR_TARGET="$2"
12168 else
12169 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12171 else
12172 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12175 else
12176 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12182 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12183 if test -n "$with_build_time_tools"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12185 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/objdump; then
12187 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12188 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12190 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12195 elif test $build != $host && test $have_gcc_for_target = yes; then
12196 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12197 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12198 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12201 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12202 # Extract the first word of "objdump", so it can be a program name with args.
12203 set dummy objdump; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 case $OBJDUMP_FOR_TARGET in
12210 [\\/]* | ?:[\\/]*)
12211 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $gcc_cv_tool_dirs
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12221 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 break 2
12225 done
12226 done
12227 IFS=$as_save_IFS
12230 esac
12232 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12233 if test -n "$OBJDUMP_FOR_TARGET"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12235 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12243 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12246 if test -n "$OBJDUMP_FOR_TARGET"; then
12247 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12248 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12249 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12252 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12253 for ncn_progname in objdump; do
12254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12255 set dummy ${ncn_progname}; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 if test -n "$OBJDUMP_FOR_TARGET"; then
12262 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12275 done
12276 done
12277 IFS=$as_save_IFS
12281 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12282 if test -n "$OBJDUMP_FOR_TARGET"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12284 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12291 done
12294 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12295 for ncn_progname in objdump; do
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12297 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12298 if test -x $with_build_time_tools/${ncn_progname}; then
12299 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301 $as_echo "yes" >&6; }
12302 break
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12307 done
12310 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12311 for ncn_progname in objdump; do
12312 if test -n "$ncn_target_tool_prefix"; then
12313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12314 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$OBJDUMP_FOR_TARGET"; then
12321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12334 done
12335 done
12336 IFS=$as_save_IFS
12340 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12341 if test -n "$OBJDUMP_FOR_TARGET"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12343 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12351 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12353 set dummy ${ncn_progname}; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test -n "$OBJDUMP_FOR_TARGET"; then
12360 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12361 else
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12373 done
12374 done
12375 IFS=$as_save_IFS
12379 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12380 if test -n "$OBJDUMP_FOR_TARGET"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12382 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12390 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12391 done
12394 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12395 set dummy objdump
12396 if test $build = $target ; then
12397 OBJDUMP_FOR_TARGET="$2"
12398 else
12399 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12401 else
12402 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12405 else
12406 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12412 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12413 if test -n "$with_build_time_tools"; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12415 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12416 if test -x $with_build_time_tools/ranlib; then
12417 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12418 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12420 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12425 elif test $build != $host && test $have_gcc_for_target = yes; then
12426 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12427 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12428 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12431 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12432 # Extract the first word of "ranlib", so it can be a program name with args.
12433 set dummy ranlib; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 case $RANLIB_FOR_TARGET in
12440 [\\/]* | ?:[\\/]*)
12441 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $gcc_cv_tool_dirs
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12451 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12455 done
12456 done
12457 IFS=$as_save_IFS
12460 esac
12462 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12463 if test -n "$RANLIB_FOR_TARGET"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12465 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12473 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12476 if test -n "$RANLIB_FOR_TARGET"; then
12477 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12478 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12479 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12482 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12483 for ncn_progname in ranlib; do
12484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12485 set dummy ${ncn_progname}; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 if test -n "$RANLIB_FOR_TARGET"; then
12492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12505 done
12506 done
12507 IFS=$as_save_IFS
12511 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12512 if test -n "$RANLIB_FOR_TARGET"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12514 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12521 done
12524 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12525 for ncn_progname in ranlib; do
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12527 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12528 if test -x $with_build_time_tools/${ncn_progname}; then
12529 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12531 $as_echo "yes" >&6; }
12532 break
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 $as_echo "no" >&6; }
12537 done
12540 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12541 for ncn_progname in ranlib; do
12542 if test -n "$ncn_target_tool_prefix"; then
12543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 if test -n "$RANLIB_FOR_TARGET"; then
12551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12564 done
12565 done
12566 IFS=$as_save_IFS
12570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12571 if test -n "$RANLIB_FOR_TARGET"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12581 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12583 set dummy ${ncn_progname}; ac_word=$2
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 $as_echo_n "checking for $ac_word... " >&6; }
12586 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 if test -n "$RANLIB_FOR_TARGET"; then
12590 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12591 else
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12599 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12601 break 2
12603 done
12604 done
12605 IFS=$as_save_IFS
12609 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12610 if test -n "$RANLIB_FOR_TARGET"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12612 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12620 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12621 done
12624 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12625 set dummy ranlib
12626 if test $build = $target ; then
12627 RANLIB_FOR_TARGET="$2"
12628 else
12629 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12631 else
12632 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12635 else
12636 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12642 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12643 if test -n "$with_build_time_tools"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12645 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12646 if test -x $with_build_time_tools/readelf; then
12647 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12648 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12650 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12655 elif test $build != $host && test $have_gcc_for_target = yes; then
12656 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12657 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12658 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12661 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12662 # Extract the first word of "readelf", so it can be a program name with args.
12663 set dummy readelf; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 case $READELF_FOR_TARGET in
12670 [\\/]* | ?:[\\/]*)
12671 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $gcc_cv_tool_dirs
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12685 done
12686 done
12687 IFS=$as_save_IFS
12690 esac
12692 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12693 if test -n "$READELF_FOR_TARGET"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12695 $as_echo "$READELF_FOR_TARGET" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12703 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12706 if test -n "$READELF_FOR_TARGET"; then
12707 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12708 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12709 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12712 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12713 for ncn_progname in readelf; do
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -n "$READELF_FOR_TARGET"; then
12722 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12731 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12735 done
12736 done
12737 IFS=$as_save_IFS
12741 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12742 if test -n "$READELF_FOR_TARGET"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12744 $as_echo "$READELF_FOR_TARGET" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12751 done
12754 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12755 for ncn_progname in readelf; do
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12757 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12758 if test -x $with_build_time_tools/${ncn_progname}; then
12759 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761 $as_echo "yes" >&6; }
12762 break
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12767 done
12770 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12771 for ncn_progname in readelf; do
12772 if test -n "$ncn_target_tool_prefix"; then
12773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12774 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$READELF_FOR_TARGET"; then
12781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12794 done
12795 done
12796 IFS=$as_save_IFS
12800 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12801 if test -n "$READELF_FOR_TARGET"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12803 $as_echo "$READELF_FOR_TARGET" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12811 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12813 set dummy ${ncn_progname}; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 if test -n "$READELF_FOR_TARGET"; then
12820 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12821 else
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12833 done
12834 done
12835 IFS=$as_save_IFS
12839 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12840 if test -n "$READELF_FOR_TARGET"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12842 $as_echo "$READELF_FOR_TARGET" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12850 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12851 done
12854 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12855 set dummy readelf
12856 if test $build = $target ; then
12857 READELF_FOR_TARGET="$2"
12858 else
12859 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12861 else
12862 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12865 else
12866 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12872 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12873 if test -n "$with_build_time_tools"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12875 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/strip; then
12877 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12878 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12880 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12885 elif test $build != $host && test $have_gcc_for_target = yes; then
12886 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12887 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12888 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12891 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12892 # Extract the first word of "strip", so it can be a program name with args.
12893 set dummy strip; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 case $STRIP_FOR_TARGET in
12900 [\\/]* | ?:[\\/]*)
12901 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $gcc_cv_tool_dirs
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12915 done
12916 done
12917 IFS=$as_save_IFS
12920 esac
12922 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12923 if test -n "$STRIP_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12925 $as_echo "$STRIP_FOR_TARGET" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12933 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12936 if test -n "$STRIP_FOR_TARGET"; then
12937 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12938 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12939 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12942 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12943 for ncn_progname in strip; do
12944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12945 set dummy ${ncn_progname}; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 if test -n "$STRIP_FOR_TARGET"; then
12952 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12953 else
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12965 done
12966 done
12967 IFS=$as_save_IFS
12971 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12972 if test -n "$STRIP_FOR_TARGET"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12974 $as_echo "$STRIP_FOR_TARGET" >&6; }
12975 else
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12981 done
12984 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12985 for ncn_progname in strip; do
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12987 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12988 if test -x $with_build_time_tools/${ncn_progname}; then
12989 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12991 $as_echo "yes" >&6; }
12992 break
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
12997 done
13000 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; do
13002 if test -n "$ncn_target_tool_prefix"; then
13003 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13004 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$STRIP_FOR_TARGET"; then
13011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13024 done
13025 done
13026 IFS=$as_save_IFS
13030 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13031 if test -n "$STRIP_FOR_TARGET"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13033 $as_echo "$STRIP_FOR_TARGET" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13041 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13043 set dummy ${ncn_progname}; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 if test -n "$STRIP_FOR_TARGET"; then
13050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13051 else
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13063 done
13064 done
13065 IFS=$as_save_IFS
13069 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13070 if test -n "$STRIP_FOR_TARGET"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13072 $as_echo "$STRIP_FOR_TARGET" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13080 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13081 done
13084 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13085 set dummy strip
13086 if test $build = $target ; then
13087 STRIP_FOR_TARGET="$2"
13088 else
13089 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13091 else
13092 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13095 else
13096 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13102 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13103 if test -n "$with_build_time_tools"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13105 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13106 if test -x $with_build_time_tools/windres; then
13107 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13108 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13110 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13115 elif test $build != $host && test $have_gcc_for_target = yes; then
13116 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13117 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13118 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13121 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13122 # Extract the first word of "windres", so it can be a program name with args.
13123 set dummy windres; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 case $WINDRES_FOR_TARGET in
13130 [\\/]* | ?:[\\/]*)
13131 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $gcc_cv_tool_dirs
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13141 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13145 done
13146 done
13147 IFS=$as_save_IFS
13150 esac
13152 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13153 if test -n "$WINDRES_FOR_TARGET"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13155 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13163 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13166 if test -n "$WINDRES_FOR_TARGET"; then
13167 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13168 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13169 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13172 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13173 for ncn_progname in windres; do
13174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13175 set dummy ${ncn_progname}; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$WINDRES_FOR_TARGET"; then
13182 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13202 if test -n "$WINDRES_FOR_TARGET"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13204 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13211 done
13214 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13215 for ncn_progname in windres; do
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13217 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13218 if test -x $with_build_time_tools/${ncn_progname}; then
13219 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13221 $as_echo "yes" >&6; }
13222 break
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13227 done
13230 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 if test -n "$ncn_target_tool_prefix"; then
13233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$WINDRES_FOR_TARGET"; then
13241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13254 done
13255 done
13256 IFS=$as_save_IFS
13260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13261 if test -n "$WINDRES_FOR_TARGET"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13263 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13271 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13273 set dummy ${ncn_progname}; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 if test -n "$WINDRES_FOR_TARGET"; then
13280 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13281 else
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13289 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13293 done
13294 done
13295 IFS=$as_save_IFS
13299 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13300 if test -n "$WINDRES_FOR_TARGET"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13302 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13310 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13311 done
13314 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13315 set dummy windres
13316 if test $build = $target ; then
13317 WINDRES_FOR_TARGET="$2"
13318 else
13319 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13321 else
13322 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13325 else
13326 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13332 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13333 if test -n "$with_build_time_tools"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13335 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13336 if test -x $with_build_time_tools/windmc; then
13337 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13338 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13340 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13345 elif test $build != $host && test $have_gcc_for_target = yes; then
13346 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13347 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13348 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13351 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13352 # Extract the first word of "windmc", so it can be a program name with args.
13353 set dummy windmc; ac_word=$2
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 $as_echo_n "checking for $ac_word... " >&6; }
13356 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 case $WINDMC_FOR_TARGET in
13360 [\\/]* | ?:[\\/]*)
13361 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $gcc_cv_tool_dirs
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13375 done
13376 done
13377 IFS=$as_save_IFS
13380 esac
13382 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13383 if test -n "$WINDMC_FOR_TARGET"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13385 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13393 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13396 if test -n "$WINDMC_FOR_TARGET"; then
13397 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13398 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13399 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13402 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13403 for ncn_progname in windmc; do
13404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13405 set dummy ${ncn_progname}; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$WINDMC_FOR_TARGET"; then
13412 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13425 done
13426 done
13427 IFS=$as_save_IFS
13431 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13432 if test -n "$WINDMC_FOR_TARGET"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13434 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13441 done
13444 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13445 for ncn_progname in windmc; do
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13447 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13448 if test -x $with_build_time_tools/${ncn_progname}; then
13449 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13451 $as_echo "yes" >&6; }
13452 break
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13457 done
13460 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 if test -n "$ncn_target_tool_prefix"; then
13463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 if test -n "$WINDMC_FOR_TARGET"; then
13471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13484 done
13485 done
13486 IFS=$as_save_IFS
13490 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13491 if test -n "$WINDMC_FOR_TARGET"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13493 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13501 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13503 set dummy ${ncn_progname}; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 if test -n "$WINDMC_FOR_TARGET"; then
13510 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13511 else
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13519 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521 break 2
13523 done
13524 done
13525 IFS=$as_save_IFS
13529 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13530 if test -n "$WINDMC_FOR_TARGET"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13532 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13540 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13541 done
13544 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13545 set dummy windmc
13546 if test $build = $target ; then
13547 WINDMC_FOR_TARGET="$2"
13548 else
13549 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13551 else
13552 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13555 else
13556 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13560 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13563 $as_echo_n "checking where to find the target ar... " >&6; }
13564 if test "x${build}" != "x${host}" ; then
13565 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13566 # We already found the complete path
13567 ac_dir=`dirname $AR_FOR_TARGET`
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13569 $as_echo "pre-installed in $ac_dir" >&6; }
13570 else
13571 # Canadian cross, just use what we found
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13573 $as_echo "pre-installed" >&6; }
13575 else
13576 ok=yes
13577 case " ${configdirs} " in
13578 *" binutils "*) ;;
13579 *) ok=no ;;
13580 esac
13582 if test $ok = yes; then
13583 # An in-tree tool is available and we can use it
13584 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13586 $as_echo "just compiled" >&6; }
13587 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13588 # We already found the complete path
13589 ac_dir=`dirname $AR_FOR_TARGET`
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591 $as_echo "pre-installed in $ac_dir" >&6; }
13592 elif test "x$target" = "x$host"; then
13593 # We can use an host tool
13594 AR_FOR_TARGET='$(AR)'
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13596 $as_echo "host tool" >&6; }
13597 else
13598 # We need a cross tool
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13600 $as_echo "pre-installed" >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13605 $as_echo_n "checking where to find the target as... " >&6; }
13606 if test "x${build}" != "x${host}" ; then
13607 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13608 # We already found the complete path
13609 ac_dir=`dirname $AS_FOR_TARGET`
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611 $as_echo "pre-installed in $ac_dir" >&6; }
13612 else
13613 # Canadian cross, just use what we found
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13615 $as_echo "pre-installed" >&6; }
13617 else
13618 ok=yes
13619 case " ${configdirs} " in
13620 *" gas "*) ;;
13621 *) ok=no ;;
13622 esac
13624 if test $ok = yes; then
13625 # An in-tree tool is available and we can use it
13626 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13628 $as_echo "just compiled" >&6; }
13629 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13630 # We already found the complete path
13631 ac_dir=`dirname $AS_FOR_TARGET`
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633 $as_echo "pre-installed in $ac_dir" >&6; }
13634 elif test "x$target" = "x$host"; then
13635 # We can use an host tool
13636 AS_FOR_TARGET='$(AS)'
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13638 $as_echo "host tool" >&6; }
13639 else
13640 # We need a cross tool
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13642 $as_echo "pre-installed" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13647 $as_echo_n "checking where to find the target cc... " >&6; }
13648 if test "x${build}" != "x${host}" ; then
13649 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13650 # We already found the complete path
13651 ac_dir=`dirname $CC_FOR_TARGET`
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653 $as_echo "pre-installed in $ac_dir" >&6; }
13654 else
13655 # Canadian cross, just use what we found
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657 $as_echo "pre-installed" >&6; }
13659 else
13660 ok=yes
13661 case " ${configdirs} " in
13662 *" gcc "*) ;;
13663 *) ok=no ;;
13664 esac
13666 if test $ok = yes; then
13667 # An in-tree tool is available and we can use it
13668 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13670 $as_echo "just compiled" >&6; }
13671 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
13673 ac_dir=`dirname $CC_FOR_TARGET`
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675 $as_echo "pre-installed in $ac_dir" >&6; }
13676 elif test "x$target" = "x$host"; then
13677 # We can use an host tool
13678 CC_FOR_TARGET='$(CC)'
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13680 $as_echo "host tool" >&6; }
13681 else
13682 # We need a cross tool
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684 $as_echo "pre-installed" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13689 $as_echo_n "checking where to find the target c++... " >&6; }
13690 if test "x${build}" != "x${host}" ; then
13691 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13692 # We already found the complete path
13693 ac_dir=`dirname $CXX_FOR_TARGET`
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695 $as_echo "pre-installed in $ac_dir" >&6; }
13696 else
13697 # Canadian cross, just use what we found
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699 $as_echo "pre-installed" >&6; }
13701 else
13702 ok=yes
13703 case " ${configdirs} " in
13704 *" gcc "*) ;;
13705 *) ok=no ;;
13706 esac
13707 case ,${enable_languages}, in
13708 *,c++,*) ;;
13709 *) ok=no ;;
13710 esac
13711 if test $ok = yes; then
13712 # An in-tree tool is available and we can use it
13713 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'
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13715 $as_echo "just compiled" >&6; }
13716 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13717 # We already found the complete path
13718 ac_dir=`dirname $CXX_FOR_TARGET`
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13720 $as_echo "pre-installed in $ac_dir" >&6; }
13721 elif test "x$target" = "x$host"; then
13722 # We can use an host tool
13723 CXX_FOR_TARGET='$(CXX)'
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13725 $as_echo "host tool" >&6; }
13726 else
13727 # We need a cross tool
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13729 $as_echo "pre-installed" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13734 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13735 if test "x${build}" != "x${host}" ; then
13736 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13737 # We already found the complete path
13738 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13740 $as_echo "pre-installed in $ac_dir" >&6; }
13741 else
13742 # Canadian cross, just use what we found
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13744 $as_echo "pre-installed" >&6; }
13746 else
13747 ok=yes
13748 case " ${configdirs} " in
13749 *" gcc "*) ;;
13750 *) ok=no ;;
13751 esac
13752 case ,${enable_languages}, in
13753 *,c++,*) ;;
13754 *) ok=no ;;
13755 esac
13756 if test $ok = yes; then
13757 # An in-tree tool is available and we can use it
13758 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'
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13760 $as_echo "just compiled" >&6; }
13761 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13762 # We already found the complete path
13763 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13765 $as_echo "pre-installed in $ac_dir" >&6; }
13766 elif test "x$target" = "x$host"; then
13767 # We can use an host tool
13768 RAW_CXX_FOR_TARGET='$(CXX)'
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13770 $as_echo "host tool" >&6; }
13771 else
13772 # We need a cross tool
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774 $as_echo "pre-installed" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13779 $as_echo_n "checking where to find the target dlltool... " >&6; }
13780 if test "x${build}" != "x${host}" ; then
13781 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13782 # We already found the complete path
13783 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13785 $as_echo "pre-installed in $ac_dir" >&6; }
13786 else
13787 # Canadian cross, just use what we found
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789 $as_echo "pre-installed" >&6; }
13791 else
13792 ok=yes
13793 case " ${configdirs} " in
13794 *" binutils "*) ;;
13795 *) ok=no ;;
13796 esac
13798 if test $ok = yes; then
13799 # An in-tree tool is available and we can use it
13800 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13802 $as_echo "just compiled" >&6; }
13803 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13804 # We already found the complete path
13805 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13807 $as_echo "pre-installed in $ac_dir" >&6; }
13808 elif test "x$target" = "x$host"; then
13809 # We can use an host tool
13810 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13812 $as_echo "host tool" >&6; }
13813 else
13814 # We need a cross tool
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816 $as_echo "pre-installed" >&6; }
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13821 $as_echo_n "checking where to find the target gcc... " >&6; }
13822 if test "x${build}" != "x${host}" ; then
13823 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13824 # We already found the complete path
13825 ac_dir=`dirname $GCC_FOR_TARGET`
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13827 $as_echo "pre-installed in $ac_dir" >&6; }
13828 else
13829 # Canadian cross, just use what we found
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831 $as_echo "pre-installed" >&6; }
13833 else
13834 ok=yes
13835 case " ${configdirs} " in
13836 *" gcc "*) ;;
13837 *) ok=no ;;
13838 esac
13840 if test $ok = yes; then
13841 # An in-tree tool is available and we can use it
13842 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13844 $as_echo "just compiled" >&6; }
13845 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
13847 ac_dir=`dirname $GCC_FOR_TARGET`
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849 $as_echo "pre-installed in $ac_dir" >&6; }
13850 elif test "x$target" = "x$host"; then
13851 # We can use an host tool
13852 GCC_FOR_TARGET='$()'
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13854 $as_echo "host tool" >&6; }
13855 else
13856 # We need a cross tool
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858 $as_echo "pre-installed" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13863 $as_echo_n "checking where to find the target gcj... " >&6; }
13864 if test "x${build}" != "x${host}" ; then
13865 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
13867 ac_dir=`dirname $GCJ_FOR_TARGET`
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869 $as_echo "pre-installed in $ac_dir" >&6; }
13870 else
13871 # Canadian cross, just use what we found
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873 $as_echo "pre-installed" >&6; }
13875 else
13876 ok=yes
13877 case " ${configdirs} " in
13878 *" gcc "*) ;;
13879 *) ok=no ;;
13880 esac
13881 case ,${enable_languages}, in
13882 *,java,*) ;;
13883 *) ok=no ;;
13884 esac
13885 if test $ok = yes; then
13886 # An in-tree tool is available and we can use it
13887 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13889 $as_echo "just compiled" >&6; }
13890 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
13892 ac_dir=`dirname $GCJ_FOR_TARGET`
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894 $as_echo "pre-installed in $ac_dir" >&6; }
13895 elif test "x$target" = "x$host"; then
13896 # We can use an host tool
13897 GCJ_FOR_TARGET='$(GCJ)'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13899 $as_echo "host tool" >&6; }
13900 else
13901 # We need a cross tool
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903 $as_echo "pre-installed" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13908 $as_echo_n "checking where to find the target gfortran... " >&6; }
13909 if test "x${build}" != "x${host}" ; then
13910 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
13912 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914 $as_echo "pre-installed in $ac_dir" >&6; }
13915 else
13916 # Canadian cross, just use what we found
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918 $as_echo "pre-installed" >&6; }
13920 else
13921 ok=yes
13922 case " ${configdirs} " in
13923 *" gcc "*) ;;
13924 *) ok=no ;;
13925 esac
13926 case ,${enable_languages}, in
13927 *,fortran,*) ;;
13928 *) ok=no ;;
13929 esac
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934 $as_echo "just compiled" >&6; }
13935 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939 $as_echo "pre-installed in $ac_dir" >&6; }
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944 $as_echo "host tool" >&6; }
13945 else
13946 # We need a cross tool
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13953 $as_echo_n "checking where to find the target gccgo... " >&6; }
13954 if test "x${build}" != "x${host}" ; then
13955 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
13957 ac_dir=`dirname $GOC_FOR_TARGET`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959 $as_echo "pre-installed in $ac_dir" >&6; }
13960 else
13961 # Canadian cross, just use what we found
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13965 else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" gcc "*) ;;
13969 *) ok=no ;;
13970 esac
13971 case ,${enable_languages}, in
13972 *,go,*) ;;
13973 *) ok=no ;;
13974 esac
13975 if test $ok = yes; then
13976 # An in-tree tool is available and we can use it
13977 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979 $as_echo "just compiled" >&6; }
13980 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $GOC_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985 elif test "x$target" = "x$host"; then
13986 # We can use an host tool
13987 GOC_FOR_TARGET='$(GOC)'
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989 $as_echo "host tool" >&6; }
13990 else
13991 # We need a cross tool
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993 $as_echo "pre-installed" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13998 $as_echo_n "checking where to find the target ld... " >&6; }
13999 if test "x${build}" != "x${host}" ; then
14000 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
14002 ac_dir=`dirname $LD_FOR_TARGET`
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004 $as_echo "pre-installed in $ac_dir" >&6; }
14005 else
14006 # Canadian cross, just use what we found
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008 $as_echo "pre-installed" >&6; }
14010 else
14011 ok=yes
14012 case " ${configdirs} " in
14013 *" ld "*) ;;
14014 *) ok=no ;;
14015 esac
14017 if test $ok = yes; then
14018 # An in-tree tool is available and we can use it
14019 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14021 $as_echo "just compiled" >&6; }
14022 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14023 # We already found the complete path
14024 ac_dir=`dirname $LD_FOR_TARGET`
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026 $as_echo "pre-installed in $ac_dir" >&6; }
14027 elif test "x$target" = "x$host"; then
14028 # We can use an host tool
14029 LD_FOR_TARGET='$(LD)'
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14031 $as_echo "host tool" >&6; }
14032 else
14033 # We need a cross tool
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035 $as_echo "pre-installed" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14040 $as_echo_n "checking where to find the target lipo... " >&6; }
14041 if test "x${build}" != "x${host}" ; then
14042 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14043 # We already found the complete path
14044 ac_dir=`dirname $LIPO_FOR_TARGET`
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14046 $as_echo "pre-installed in $ac_dir" >&6; }
14047 else
14048 # Canadian cross, just use what we found
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14050 $as_echo "pre-installed" >&6; }
14052 else
14053 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $LIPO_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057 $as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 LIPO_FOR_TARGET='$(LIPO)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062 $as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14071 $as_echo_n "checking where to find the target nm... " >&6; }
14072 if test "x${build}" != "x${host}" ; then
14073 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $NM_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078 else
14079 # Canadian cross, just use what we found
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081 $as_echo "pre-installed" >&6; }
14083 else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" binutils "*) ;;
14087 *) ok=no ;;
14088 esac
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094 $as_echo "just compiled" >&6; }
14095 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $NM_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 NM_FOR_TARGET='$(NM)'
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104 $as_echo "host tool" >&6; }
14105 else
14106 # We need a cross tool
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14113 $as_echo_n "checking where to find the target objdump... " >&6; }
14114 if test "x${build}" != "x${host}" ; then
14115 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120 else
14121 # Canadian cross, just use what we found
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14125 else
14126 ok=yes
14127 case " ${configdirs} " in
14128 *" binutils "*) ;;
14129 *) ok=no ;;
14130 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14155 $as_echo_n "checking where to find the target ranlib... " >&6; }
14156 if test "x${build}" != "x${host}" ; then
14157 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $RANLIB_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 else
14163 # Canadian cross, just use what we found
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165 $as_echo "pre-installed" >&6; }
14167 else
14168 ok=yes
14169 case " ${configdirs} " in
14170 *" binutils "*) ;;
14171 *) ok=no ;;
14172 esac
14174 if test $ok = yes; then
14175 # An in-tree tool is available and we can use it
14176 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14178 $as_echo "just compiled" >&6; }
14179 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
14181 ac_dir=`dirname $RANLIB_FOR_TARGET`
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183 $as_echo "pre-installed in $ac_dir" >&6; }
14184 elif test "x$target" = "x$host"; then
14185 # We can use an host tool
14186 RANLIB_FOR_TARGET='$(RANLIB)'
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14188 $as_echo "host tool" >&6; }
14189 else
14190 # We need a cross tool
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192 $as_echo "pre-installed" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14197 $as_echo_n "checking where to find the target readelf... " >&6; }
14198 if test "x${build}" != "x${host}" ; then
14199 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $READELF_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204 else
14205 # Canadian cross, just use what we found
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207 $as_echo "pre-installed" >&6; }
14209 else
14210 ok=yes
14211 case " ${configdirs} " in
14212 *" binutils "*) ;;
14213 *) ok=no ;;
14214 esac
14216 if test $ok = yes; then
14217 # An in-tree tool is available and we can use it
14218 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14220 $as_echo "just compiled" >&6; }
14221 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14222 # We already found the complete path
14223 ac_dir=`dirname $READELF_FOR_TARGET`
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14225 $as_echo "pre-installed in $ac_dir" >&6; }
14226 elif test "x$target" = "x$host"; then
14227 # We can use an host tool
14228 READELF_FOR_TARGET='$(READELF)'
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14230 $as_echo "host tool" >&6; }
14231 else
14232 # We need a cross tool
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234 $as_echo "pre-installed" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14239 $as_echo_n "checking where to find the target strip... " >&6; }
14240 if test "x${build}" != "x${host}" ; then
14241 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
14243 ac_dir=`dirname $STRIP_FOR_TARGET`
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245 $as_echo "pre-installed in $ac_dir" >&6; }
14246 else
14247 # Canadian cross, just use what we found
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14249 $as_echo "pre-installed" >&6; }
14251 else
14252 ok=yes
14253 case " ${configdirs} " in
14254 *" binutils "*) ;;
14255 *) ok=no ;;
14256 esac
14258 if test $ok = yes; then
14259 # An in-tree tool is available and we can use it
14260 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14262 $as_echo "just compiled" >&6; }
14263 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14264 # We already found the complete path
14265 ac_dir=`dirname $STRIP_FOR_TARGET`
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14267 $as_echo "pre-installed in $ac_dir" >&6; }
14268 elif test "x$target" = "x$host"; then
14269 # We can use an host tool
14270 STRIP_FOR_TARGET='$(STRIP)'
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14272 $as_echo "host tool" >&6; }
14273 else
14274 # We need a cross tool
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14276 $as_echo "pre-installed" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14281 $as_echo_n "checking where to find the target windres... " >&6; }
14282 if test "x${build}" != "x${host}" ; then
14283 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14284 # We already found the complete path
14285 ac_dir=`dirname $WINDRES_FOR_TARGET`
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287 $as_echo "pre-installed in $ac_dir" >&6; }
14288 else
14289 # Canadian cross, just use what we found
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14291 $as_echo "pre-installed" >&6; }
14293 else
14294 ok=yes
14295 case " ${configdirs} " in
14296 *" binutils "*) ;;
14297 *) ok=no ;;
14298 esac
14300 if test $ok = yes; then
14301 # An in-tree tool is available and we can use it
14302 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304 $as_echo "just compiled" >&6; }
14305 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
14307 ac_dir=`dirname $WINDRES_FOR_TARGET`
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309 $as_echo "pre-installed in $ac_dir" >&6; }
14310 elif test "x$target" = "x$host"; then
14311 # We can use an host tool
14312 WINDRES_FOR_TARGET='$(WINDRES)'
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314 $as_echo "host tool" >&6; }
14315 else
14316 # We need a cross tool
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318 $as_echo "pre-installed" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14323 $as_echo_n "checking where to find the target windmc... " >&6; }
14324 if test "x${build}" != "x${host}" ; then
14325 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $WINDMC_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330 else
14331 # Canadian cross, just use what we found
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333 $as_echo "pre-installed" >&6; }
14335 else
14336 ok=yes
14337 case " ${configdirs} " in
14338 *" binutils "*) ;;
14339 *) ok=no ;;
14340 esac
14342 if test $ok = yes; then
14343 # An in-tree tool is available and we can use it
14344 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14346 $as_echo "just compiled" >&6; }
14347 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14348 # We already found the complete path
14349 ac_dir=`dirname $WINDMC_FOR_TARGET`
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14351 $as_echo "pre-installed in $ac_dir" >&6; }
14352 elif test "x$target" = "x$host"; then
14353 # We can use an host tool
14354 WINDMC_FOR_TARGET='$(WINDMC)'
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14356 $as_echo "host tool" >&6; }
14357 else
14358 # We need a cross tool
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14360 $as_echo "pre-installed" >&6; }
14368 # Certain tools may need extra flags.
14369 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14370 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14371 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14373 # When building target libraries, except in a Canadian cross, we use
14374 # the same toolchain as the compiler we just built.
14375 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14376 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14377 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14378 if test $host = $build; then
14379 case " $configdirs " in
14380 *" gcc "*)
14381 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14382 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14383 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14385 esac
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14393 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14394 # Check whether --enable-maintainer-mode was given.
14395 if test "${enable_maintainer_mode+set}" = set; then :
14396 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14397 else
14398 USE_MAINTAINER_MODE=no
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14402 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14405 if test "$USE_MAINTAINER_MODE" = yes; then
14406 MAINTAINER_MODE_TRUE=
14407 MAINTAINER_MODE_FALSE='#'
14408 else
14409 MAINTAINER_MODE_TRUE='#'
14410 MAINTAINER_MODE_FALSE=
14412 MAINT=$MAINTAINER_MODE_TRUE
14414 # ---------------------
14415 # GCC bootstrap support
14416 # ---------------------
14418 # Stage specific cflags for build.
14419 stage1_cflags="-g"
14420 case $build in
14421 vax-*-*)
14422 case ${GCC} in
14423 yes) stage1_cflags="-g -Wa,-J" ;;
14424 *) stage1_cflags="-g -J" ;;
14425 esac ;;
14426 esac
14430 # Enable --enable-checking in stage1 of the compiler.
14431 # Check whether --enable-stage1-checking was given.
14432 if test "${enable_stage1_checking+set}" = set; then :
14433 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14434 else
14435 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14436 stage1_checking=--enable-checking=yes,types
14437 else
14438 stage1_checking=--enable-checking=$enable_checking,types
14444 # Enable -Werror in bootstrap stage2 and later.
14445 # Check whether --enable-werror was given.
14446 if test "${enable_werror+set}" = set; then :
14447 enableval=$enable_werror;
14448 else
14449 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14450 enable_werror=yes
14451 else
14452 enable_werror=no
14456 case ${enable_werror} in
14457 yes) stage2_werror_flag="--enable-werror-always" ;;
14458 *) stage2_werror_flag="" ;;
14459 esac
14462 # Enable --enable-host-shared.
14463 # Check whether --enable-host-shared was given.
14464 if test "${enable_host_shared+set}" = set; then :
14465 enableval=$enable_host_shared; host_shared=$enableval
14466 else
14467 host_shared=no
14472 # Specify what files to not compare during bootstrap.
14474 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14475 case "$target" in
14476 hppa*64*-*-hpux*) ;;
14477 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14478 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14479 esac
14482 ac_config_files="$ac_config_files Makefile"
14484 cat >confcache <<\_ACEOF
14485 # This file is a shell script that caches the results of configure
14486 # tests run on this system so they can be shared between configure
14487 # scripts and configure runs, see configure's option --config-cache.
14488 # It is not useful on other systems. If it contains results you don't
14489 # want to keep, you may remove or edit it.
14491 # config.status only pays attention to the cache file if you give it
14492 # the --recheck option to rerun configure.
14494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14496 # following values.
14498 _ACEOF
14500 # The following way of writing the cache mishandles newlines in values,
14501 # but we know of no workaround that is simple, portable, and efficient.
14502 # So, we kill variables containing newlines.
14503 # Ultrix sh set writes to stderr and can't be redirected directly,
14504 # and sets the high bit in the cache file unless we assign to the vars.
14506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14507 eval ac_val=\$$ac_var
14508 case $ac_val in #(
14509 *${as_nl}*)
14510 case $ac_var in #(
14511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14513 esac
14514 case $ac_var in #(
14515 _ | IFS | as_nl) ;; #(
14516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14517 *) { eval $ac_var=; unset $ac_var;} ;;
14518 esac ;;
14519 esac
14520 done
14522 (set) 2>&1 |
14523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14524 *${as_nl}ac_space=\ *)
14525 # `set' does not quote correctly, so add quotes: double-quote
14526 # substitution turns \\\\ into \\, and sed turns \\ into \.
14527 sed -n \
14528 "s/'/'\\\\''/g;
14529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14530 ;; #(
14532 # `set' quotes correctly as required by POSIX, so do not add quotes.
14533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14535 esac |
14536 sort
14538 sed '
14539 /^ac_cv_env_/b end
14540 t clear
14541 :clear
14542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14543 t end
14544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14545 :end' >>confcache
14546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14547 if test -w "$cache_file"; then
14548 test "x$cache_file" != "x/dev/null" &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14550 $as_echo "$as_me: updating cache $cache_file" >&6;}
14551 cat confcache >$cache_file
14552 else
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14557 rm -f confcache
14559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14560 # Let make expand exec_prefix.
14561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14563 # Transform confdefs.h into DEFS.
14564 # Protect against shell expansion while executing Makefile rules.
14565 # Protect against Makefile macro expansion.
14567 # If the first sed substitution is executed (which looks for macros that
14568 # take arguments), then branch to the quote section. Otherwise,
14569 # look for a macro that doesn't take arguments.
14570 ac_script='
14571 :mline
14572 /\\$/{
14574 s,\\\n,,
14575 b mline
14577 t clear
14578 :clear
14579 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14580 t quote
14581 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14582 t quote
14583 b any
14584 :quote
14585 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14586 s/\[/\\&/g
14587 s/\]/\\&/g
14588 s/\$/$$/g
14590 :any
14593 s/^\n//
14594 s/\n/ /g
14598 DEFS=`sed -n "$ac_script" confdefs.h`
14601 ac_libobjs=
14602 ac_ltlibobjs=
14603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14604 # 1. Remove the extension, and $U if already installed.
14605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14611 done
14612 LIBOBJS=$ac_libobjs
14614 LTLIBOBJS=$ac_ltlibobjs
14618 : ${CONFIG_STATUS=./config.status}
14619 ac_write_fail=0
14620 ac_clean_files_save=$ac_clean_files
14621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14624 as_write_fail=0
14625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14626 #! $SHELL
14627 # Generated by $as_me.
14628 # Run this file to recreate the current configuration.
14629 # Compiler output produced by configure, useful for debugging
14630 # configure, is in config.log if it exists.
14632 debug=false
14633 ac_cs_recheck=false
14634 ac_cs_silent=false
14636 SHELL=\${CONFIG_SHELL-$SHELL}
14637 export SHELL
14638 _ASEOF
14639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14640 ## -------------------- ##
14641 ## M4sh Initialization. ##
14642 ## -------------------- ##
14644 # Be more Bourne compatible
14645 DUALCASE=1; export DUALCASE # for MKS sh
14646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14647 emulate sh
14648 NULLCMD=:
14649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14650 # is contrary to our usage. Disable this feature.
14651 alias -g '${1+"$@"}'='"$@"'
14652 setopt NO_GLOB_SUBST
14653 else
14654 case `(set -o) 2>/dev/null` in #(
14655 *posix*) :
14656 set -o posix ;; #(
14657 *) :
14659 esac
14663 as_nl='
14665 export as_nl
14666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14670 # Prefer a ksh shell builtin over an external printf program on Solaris,
14671 # but without wasting forks for bash or zsh.
14672 if test -z "$BASH_VERSION$ZSH_VERSION" \
14673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='print -r --'
14675 as_echo_n='print -rn --'
14676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14677 as_echo='printf %s\n'
14678 as_echo_n='printf %s'
14679 else
14680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14682 as_echo_n='/usr/ucb/echo -n'
14683 else
14684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14685 as_echo_n_body='eval
14686 arg=$1;
14687 case $arg in #(
14688 *"$as_nl"*)
14689 expr "X$arg" : "X\\(.*\\)$as_nl";
14690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14691 esac;
14692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14694 export as_echo_n_body
14695 as_echo_n='sh -c $as_echo_n_body as_echo'
14697 export as_echo_body
14698 as_echo='sh -c $as_echo_body as_echo'
14701 # The user is always right.
14702 if test "${PATH_SEPARATOR+set}" != set; then
14703 PATH_SEPARATOR=:
14704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14706 PATH_SEPARATOR=';'
14711 # IFS
14712 # We need space, tab and new line, in precisely that order. Quoting is
14713 # there to prevent editors from complaining about space-tab.
14714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14715 # splitting by setting IFS to empty value.)
14716 IFS=" "" $as_nl"
14718 # Find who we are. Look in the path if we contain no directory separator.
14719 case $0 in #((
14720 *[\\/]* ) as_myself=$0 ;;
14721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14724 IFS=$as_save_IFS
14725 test -z "$as_dir" && as_dir=.
14726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14727 done
14728 IFS=$as_save_IFS
14731 esac
14732 # We did not find ourselves, most probably we were run as `sh COMMAND'
14733 # in which case we are not to be found in the path.
14734 if test "x$as_myself" = x; then
14735 as_myself=$0
14737 if test ! -f "$as_myself"; then
14738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14739 exit 1
14742 # Unset variables that we do not need and which cause bugs (e.g. in
14743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14744 # suppresses any "Segmentation fault" message there. '((' could
14745 # trigger a bug in pdksh 5.2.14.
14746 for as_var in BASH_ENV ENV MAIL MAILPATH
14747 do eval test x\${$as_var+set} = xset \
14748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14749 done
14750 PS1='$ '
14751 PS2='> '
14752 PS4='+ '
14754 # NLS nuisances.
14755 LC_ALL=C
14756 export LC_ALL
14757 LANGUAGE=C
14758 export LANGUAGE
14760 # CDPATH.
14761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14764 # as_fn_error ERROR [LINENO LOG_FD]
14765 # ---------------------------------
14766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14768 # script with status $?, using 1 if that was 0.
14769 as_fn_error ()
14771 as_status=$?; test $as_status -eq 0 && as_status=1
14772 if test "$3"; then
14773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14776 $as_echo "$as_me: error: $1" >&2
14777 as_fn_exit $as_status
14778 } # as_fn_error
14781 # as_fn_set_status STATUS
14782 # -----------------------
14783 # Set $? to STATUS, without forking.
14784 as_fn_set_status ()
14786 return $1
14787 } # as_fn_set_status
14789 # as_fn_exit STATUS
14790 # -----------------
14791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14792 as_fn_exit ()
14794 set +e
14795 as_fn_set_status $1
14796 exit $1
14797 } # as_fn_exit
14799 # as_fn_unset VAR
14800 # ---------------
14801 # Portably unset VAR.
14802 as_fn_unset ()
14804 { eval $1=; unset $1;}
14806 as_unset=as_fn_unset
14807 # as_fn_append VAR VALUE
14808 # ----------------------
14809 # Append the text in VALUE to the end of the definition contained in VAR. Take
14810 # advantage of any shell optimizations that allow amortized linear growth over
14811 # repeated appends, instead of the typical quadratic growth present in naive
14812 # implementations.
14813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14814 eval 'as_fn_append ()
14816 eval $1+=\$2
14818 else
14819 as_fn_append ()
14821 eval $1=\$$1\$2
14823 fi # as_fn_append
14825 # as_fn_arith ARG...
14826 # ------------------
14827 # Perform arithmetic evaluation on the ARGs, and store the result in the
14828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14829 # must be portable across $(()) and expr.
14830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14831 eval 'as_fn_arith ()
14833 as_val=$(( $* ))
14835 else
14836 as_fn_arith ()
14838 as_val=`expr "$@" || test $? -eq 1`
14840 fi # as_fn_arith
14843 if expr a : '\(a\)' >/dev/null 2>&1 &&
14844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14845 as_expr=expr
14846 else
14847 as_expr=false
14850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14851 as_basename=basename
14852 else
14853 as_basename=false
14856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14857 as_dirname=dirname
14858 else
14859 as_dirname=false
14862 as_me=`$as_basename -- "$0" ||
14863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14864 X"$0" : 'X\(//\)$' \| \
14865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14866 $as_echo X/"$0" |
14867 sed '/^.*\/\([^/][^/]*\)\/*$/{
14868 s//\1/
14871 /^X\/\(\/\/\)$/{
14872 s//\1/
14875 /^X\/\(\/\).*/{
14876 s//\1/
14879 s/.*/./; q'`
14881 # Avoid depending upon Character Ranges.
14882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14885 as_cr_digits='0123456789'
14886 as_cr_alnum=$as_cr_Letters$as_cr_digits
14888 ECHO_C= ECHO_N= ECHO_T=
14889 case `echo -n x` in #(((((
14890 -n*)
14891 case `echo 'xy\c'` in
14892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14893 xy) ECHO_C='\c';;
14894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14895 ECHO_T=' ';;
14896 esac;;
14898 ECHO_N='-n';;
14899 esac
14901 rm -f conf$$ conf$$.exe conf$$.file
14902 if test -d conf$$.dir; then
14903 rm -f conf$$.dir/conf$$.file
14904 else
14905 rm -f conf$$.dir
14906 mkdir conf$$.dir 2>/dev/null
14908 if (echo >conf$$.file) 2>/dev/null; then
14909 if ln -s conf$$.file conf$$ 2>/dev/null; then
14910 as_ln_s='ln -s'
14911 # ... but there are two gotchas:
14912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14914 # In both cases, we have to default to `cp -p'.
14915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14916 as_ln_s='cp -p'
14917 elif ln conf$$.file conf$$ 2>/dev/null; then
14918 as_ln_s=ln
14919 else
14920 as_ln_s='cp -p'
14922 else
14923 as_ln_s='cp -p'
14925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926 rmdir conf$$.dir 2>/dev/null
14929 # as_fn_mkdir_p
14930 # -------------
14931 # Create "$as_dir" as a directory, including parents if necessary.
14932 as_fn_mkdir_p ()
14935 case $as_dir in #(
14936 -*) as_dir=./$as_dir;;
14937 esac
14938 test -d "$as_dir" || eval $as_mkdir_p || {
14939 as_dirs=
14940 while :; do
14941 case $as_dir in #(
14942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14943 *) as_qdir=$as_dir;;
14944 esac
14945 as_dirs="'$as_qdir' $as_dirs"
14946 as_dir=`$as_dirname -- "$as_dir" ||
14947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948 X"$as_dir" : 'X\(//\)[^/]' \| \
14949 X"$as_dir" : 'X\(//\)$' \| \
14950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14951 $as_echo X"$as_dir" |
14952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14953 s//\1/
14956 /^X\(\/\/\)[^/].*/{
14957 s//\1/
14960 /^X\(\/\/\)$/{
14961 s//\1/
14964 /^X\(\/\).*/{
14965 s//\1/
14968 s/.*/./; q'`
14969 test -d "$as_dir" && break
14970 done
14971 test -z "$as_dirs" || eval "mkdir $as_dirs"
14972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14975 } # as_fn_mkdir_p
14976 if mkdir -p . 2>/dev/null; then
14977 as_mkdir_p='mkdir -p "$as_dir"'
14978 else
14979 test -d ./-p && rmdir ./-p
14980 as_mkdir_p=false
14983 if test -x / >/dev/null 2>&1; then
14984 as_test_x='test -x'
14985 else
14986 if ls -dL / >/dev/null 2>&1; then
14987 as_ls_L_option=L
14988 else
14989 as_ls_L_option=
14991 as_test_x='
14992 eval sh -c '\''
14993 if test -d "$1"; then
14994 test -d "$1/.";
14995 else
14996 case $1 in #(
14997 -*)set "./$1";;
14998 esac;
14999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15000 ???[sx]*):;;*)false;;esac;fi
15001 '\'' sh
15004 as_executable_p=$as_test_x
15006 # Sed expression to map a string onto a valid CPP name.
15007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15009 # Sed expression to map a string onto a valid variable name.
15010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15013 exec 6>&1
15014 ## ----------------------------------- ##
15015 ## Main body of $CONFIG_STATUS script. ##
15016 ## ----------------------------------- ##
15017 _ASEOF
15018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # Save the log message, to keep $0 and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling.
15024 ac_log="
15025 This file was extended by $as_me, which was
15026 generated by GNU Autoconf 2.64. Invocation command line was
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15037 _ACEOF
15039 case $ac_config_files in *"
15040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15041 esac
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 # Files that config.status was made for.
15047 config_files="$ac_config_files"
15049 _ACEOF
15051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15052 ac_cs_usage="\
15053 \`$as_me' instantiates files and other configuration actions
15054 from templates according to the current configuration. Unless the files
15055 and actions are specified as TAGs, all are instantiated by default.
15057 Usage: $0 [OPTION]... [TAG]...
15059 -h, --help print this help, then exit
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet, --silent
15062 do not print progress messages
15063 -d, --debug don't remove temporary files
15064 --recheck update $as_me by reconfiguring in the same conditions
15065 --file=FILE[:TEMPLATE]
15066 instantiate the configuration file FILE
15068 Configuration files:
15069 $config_files
15071 Report bugs to the package provider."
15073 _ACEOF
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_version="\\
15076 config.status
15077 configured by $0, generated by GNU Autoconf 2.64,
15078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15080 Copyright (C) 2009 Free Software Foundation, Inc.
15081 This config.status script is free software; the Free Software Foundation
15082 gives unlimited permission to copy, distribute and modify it."
15084 ac_pwd='$ac_pwd'
15085 srcdir='$srcdir'
15086 INSTALL='$INSTALL'
15087 AWK='$AWK'
15088 test -n "\$AWK" || AWK=awk
15089 _ACEOF
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # The default lists apply if the user does not specify any file.
15093 ac_need_defaults=:
15094 while test $# != 0
15096 case $1 in
15097 --*=*)
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15100 ac_shift=:
15103 ac_option=$1
15104 ac_optarg=$2
15105 ac_shift=shift
15107 esac
15109 case $ac_option in
15110 # Handling of the options.
15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15112 ac_cs_recheck=: ;;
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 $as_echo "$ac_cs_version"; exit ;;
15115 --debug | --debu | --deb | --de | --d | -d )
15116 debug=: ;;
15117 --file | --fil | --fi | --f )
15118 $ac_shift
15119 case $ac_optarg in
15120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15121 esac
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
15123 ac_need_defaults=false;;
15124 --he | --h | --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15128 ac_cs_silent=: ;;
15130 # This is an error.
15131 -*) as_fn_error "unrecognized option: \`$1'
15132 Try \`$0 --help' for more information." ;;
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
15137 esac
15138 shift
15139 done
15141 ac_configure_extra_args=
15143 if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
15159 _ACEOF
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 exec 5>>config.log
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15166 _ASBOX
15167 $as_echo "$ac_log"
15168 } >&5
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15173 # INIT-COMMANDS
15175 extrasub_build="$extrasub_build"
15176 extrasub_host="$extrasub_host"
15177 extrasub_target="$extrasub_target"
15179 _ACEOF
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 # Handling of arguments.
15184 for ac_config_target in $ac_config_targets
15186 case $ac_config_target in
15187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15189 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15190 esac
15191 done
15194 # If the user did not use the arguments to specify the items to instantiate,
15195 # then the envvar interface is used. Set only those that are not.
15196 # We use the long form for the default assignment because of an extremely
15197 # bizarre bug on SunOS 4.1.3.
15198 if $ac_need_defaults; then
15199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15202 # Have a temporary directory for convenience. Make it in the build tree
15203 # simply because there is no reason against having it here, and in addition,
15204 # creating and moving files from /tmp can sometimes cause problems.
15205 # Hook for its removal unless debugging.
15206 # Note that there is a small window in which the directory will not be cleaned:
15207 # after its creation but before its name has been assigned to `$tmp'.
15208 $debug ||
15210 tmp=
15211 trap 'exit_status=$?
15212 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15214 trap 'as_fn_exit 1' 1 2 13 15
15216 # Create a (secure) tmp directory for tmp files.
15219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15220 test -n "$tmp" && test -d "$tmp"
15221 } ||
15223 tmp=./conf$$-$RANDOM
15224 (umask 077 && mkdir "$tmp")
15225 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15227 # Set up the scripts for CONFIG_FILES section.
15228 # No need to generate them if there are no CONFIG_FILES.
15229 # This happens for instance with `./config.status config.h'.
15230 if test -n "$CONFIG_FILES"; then
15232 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15233 ac_cs_awk_getline=:
15234 ac_cs_awk_pipe_init=
15235 ac_cs_awk_read_file='
15236 while ((getline aline < (F[key])) > 0)
15237 print(aline)
15238 close(F[key])'
15239 ac_cs_awk_pipe_fini=
15240 else
15241 ac_cs_awk_getline=false
15242 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15243 ac_cs_awk_read_file='
15244 print "|#_!!_#|"
15245 print "cat " F[key] " &&"
15246 '$ac_cs_awk_pipe_init
15247 # The final `:' finishes the AND list.
15248 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15250 ac_cr=`echo X | tr X '\015'`
15251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15252 # But we know of no other shell where ac_cr would be empty at this
15253 # point, so we can use a bashism as a fallback.
15254 if test "x$ac_cr" = x; then
15255 eval ac_cr=\$\'\\r\'
15257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15259 ac_cs_awk_cr='\r'
15260 else
15261 ac_cs_awk_cr=$ac_cr
15264 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15265 _ACEOF
15267 # Create commands to substitute file output variables.
15269 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15270 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15271 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15272 echo "_ACAWK" &&
15273 echo "_ACEOF"
15274 } >conf$$files.sh &&
15275 . ./conf$$files.sh ||
15276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15277 rm -f conf$$files.sh
15280 echo "cat >conf$$subs.awk <<_ACEOF" &&
15281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15282 echo "_ACEOF"
15283 } >conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15286 ac_delim='%!_!# '
15287 for ac_last_try in false false false false false :; do
15288 . ./conf$$subs.sh ||
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15292 if test $ac_delim_n = $ac_delim_num; then
15293 break
15294 elif $ac_last_try; then
15295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15296 else
15297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15299 done
15300 rm -f conf$$subs.sh
15302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15304 _ACEOF
15305 sed -n '
15307 s/^/S["/; s/!.*/"]=/
15310 s/^[^!]*!//
15311 :repl
15312 t repl
15313 s/'"$ac_delim"'$//
15314 t delim
15317 s/\(.\{148\}\).*/\1/
15318 t more1
15319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15322 b repl
15323 :more1
15324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15327 s/.\{148\}//
15328 t nl
15329 :delim
15331 s/\(.\{148\}\).*/\1/
15332 t more2
15333 s/["\\]/\\&/g; s/^/"/; s/$/"/
15336 :more2
15337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15340 s/.\{148\}//
15341 t delim
15342 ' <conf$$subs.awk | sed '
15343 /^[^""]/{
15345 s/\n//
15347 ' >>$CONFIG_STATUS || ac_write_fail=1
15348 rm -f conf$$subs.awk
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350 _ACAWK
15351 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15352 for (key in S) S_is_set[key] = 1
15353 FS = "\a"
15354 \$ac_cs_awk_pipe_init
15357 line = $ 0
15358 nfields = split(line, field, "@")
15359 substed = 0
15360 len = length(field[1])
15361 for (i = 2; i < nfields; i++) {
15362 key = field[i]
15363 keylen = length(key)
15364 if (S_is_set[key]) {
15365 value = S[key]
15366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15367 len += length(value) + length(field[++i])
15368 substed = 1
15369 } else
15370 len += 1 + keylen
15372 if (nfields == 3 && !substed) {
15373 key = field[2]
15374 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15375 \$ac_cs_awk_read_file
15376 next
15379 print line
15381 \$ac_cs_awk_pipe_fini
15382 _ACAWK
15383 _ACEOF
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15387 else
15389 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15391 _ACEOF
15393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15395 # trailing colons and then remove the whole line if VPATH becomes empty
15396 # (actually we leave an empty line to preserve line numbers).
15397 if test "x$srcdir" = x.; then
15398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15399 s/:*\$(srcdir):*/:/
15400 s/:*\${srcdir}:*/:/
15401 s/:*@srcdir@:*/:/
15402 s/^\([^=]*=[ ]*\):*/\1/
15403 s/:*$//
15404 s/^[^=]*=[ ]*$//
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 fi # test -n "$CONFIG_FILES"
15412 eval set X " :F $CONFIG_FILES "
15413 shift
15414 for ac_tag
15416 case $ac_tag in
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15418 esac
15419 case $ac_mode$ac_tag in
15420 :[FHL]*:*);;
15421 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424 esac
15425 ac_save_IFS=$IFS
15426 IFS=:
15427 set x $ac_tag
15428 IFS=$ac_save_IFS
15429 shift
15430 ac_file=$1
15431 shift
15433 case $ac_mode in
15434 :L) ac_source=$1;;
15435 :[FH])
15436 ac_file_inputs=
15437 for ac_f
15439 case $ac_f in
15440 -) ac_f="$tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15444 test -f "$ac_f" ||
15445 case $ac_f in
15446 [\\/$]*) false;;
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448 esac ||
15449 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15450 esac
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15453 done
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460 `' by configure.'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464 $as_echo "$as_me: creating $ac_file" >&6;}
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15472 esac
15474 case $ac_tag in
15475 *:-:* | *:-) cat >"$tmp/stdin" \
15476 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15477 esac
15479 esac
15481 ac_dir=`$as_dirname -- "$ac_file" ||
15482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15495 /^X\(\/\/\)$/{
15496 s//\1/
15499 /^X\(\/\).*/{
15500 s//\1/
15503 s/.*/./; q'`
15504 as_dir="$ac_dir"; as_fn_mkdir_p
15505 ac_builddir=.
15507 case "$ac_dir" in
15508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516 esac ;;
15517 esac
15518 ac_abs_top_builddir=$ac_pwd
15519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520 # for backward compatibility:
15521 ac_top_builddir=$ac_top_build_prefix
15523 case $srcdir in
15524 .) # We are building in place.
15525 ac_srcdir=.
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
15529 ac_srcdir=$srcdir$ac_dir_suffix;
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15536 esac
15537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15540 case $ac_mode in
15543 # CONFIG_FILE
15546 case $INSTALL in
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15549 esac
15550 _ACEOF
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 # If the template does not know about datarootdir, expand it.
15554 # FIXME: This hack should be removed a few years after 2.60.
15555 ac_datarootdir_hack=; ac_datarootdir_seen=
15556 ac_sed_dataroot='
15557 /datarootdir/ {
15561 /@datadir@/p
15562 /@docdir@/p
15563 /@infodir@/p
15564 /@localedir@/p
15565 /@mandir@/p'
15566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15567 *datarootdir*) ac_datarootdir_seen=yes;;
15568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15570 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15571 _ACEOF
15572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 ac_datarootdir_hack='
15574 s&@datadir@&$datadir&g
15575 s&@docdir@&$docdir&g
15576 s&@infodir@&$infodir&g
15577 s&@localedir@&$localedir&g
15578 s&@mandir@&$mandir&g
15579 s&\\\${datarootdir}&$datarootdir&g' ;;
15580 esac
15581 _ACEOF
15583 # Neutralize VPATH when `$srcdir' = `.'.
15584 # Shell code in configure.ac might set extrasub.
15585 # FIXME: do we really want to maintain this feature?
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 ac_sed_extra="$ac_vpsub
15588 $extrasub
15589 _ACEOF
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15593 s|@configure_input@|$ac_sed_conf_input|;t t
15594 s&@top_builddir@&$ac_top_builddir_sub&;t t
15595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15596 s&@srcdir@&$ac_srcdir&;t t
15597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15598 s&@top_srcdir@&$ac_top_srcdir&;t t
15599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15600 s&@builddir@&$ac_builddir&;t t
15601 s&@abs_builddir@&$ac_abs_builddir&;t t
15602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15603 s&@INSTALL@&$ac_INSTALL&;t t
15604 $ac_datarootdir_hack
15606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15607 if $ac_cs_awk_getline; then
15608 $AWK -f "$tmp/subs.awk"
15609 else
15610 $AWK -f "$tmp/subs.awk" | $SHELL
15611 fi >$tmp/out \
15612 || as_fn_error "could not create $ac_file" "$LINENO" 5
15614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15615 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618 which seems to be undefined. Please make sure it is defined." >&5
15619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15620 which seems to be undefined. Please make sure it is defined." >&2;}
15622 rm -f "$tmp/stdin"
15623 case $ac_file in
15624 -) cat "$tmp/out" && rm -f "$tmp/out";;
15625 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15626 esac \
15627 || as_fn_error "could not create $ac_file" "$LINENO" 5
15632 esac
15635 case $ac_file$ac_mode in
15636 "Makefile":F) sed "$extrasub_build" Makefile |
15637 sed "$extrasub_host" |
15638 sed "$extrasub_target" > mf$$
15639 mv -f mf$$ Makefile ;;
15641 esac
15642 done # for ac_tag
15645 as_fn_exit 0
15646 _ACEOF
15647 ac_clean_files=$ac_clean_files_save
15649 test $ac_write_fail = 0 ||
15650 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15653 # configure is writing to config.log, and then calls config.status.
15654 # config.status does its own redirection, appending to config.log.
15655 # Unfortunately, on DOS this fails, as config.log is still kept open
15656 # by configure, so config.status won't be able to write to it; its
15657 # output is simply discarded. So we exec the FD to /dev/null,
15658 # effectively closing config.log, so it can be properly (re)opened and
15659 # appended to by config.status. When coming back to configure, we
15660 # need to make the FD available again.
15661 if test "$no_create" != yes; then
15662 ac_cs_success=:
15663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
15666 exec 5>/dev/null
15667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15668 exec 5>>config.log
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
15671 $ac_cs_success || as_fn_exit $?
15673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15675 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}